<div dir="ltr">Hmmm. I want to use the contents of <span style="font-family:monospace;font-size:10.4px">$avp(carrier_id) as the route name. So if </span><span style="font-family:monospace;font-size:10.4px">$avp(carrier_id) is 25 I want it to call the routing block route[25].</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 21, 2017 at 8:52 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<tt>Hi, Jim!<br>
<br>
You should have a name for the route, such as:<br>
<br>
route(route_name, $avp(carrier_id));<br>
<br>
Best regards,<br>
</tt>
<pre class="m_-3293041758390909581moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-3293041758390909581moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div class="m_-3293041758390909581moz-cite-prefix">On 09/21/2017 03:43 PM, Jim DeVito
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Razvan,
<div><br>
</div>
<div>So what am I doing wrong with </div>
<div><br>
</div>
<div>route($avp(carrier_id));<br>
</div>
<div><br>
</div>
<div>It produces...</div>
<div><br>
</div>
<div>...line 318, column 53-54: bad routeargument<br>
</div>
<div><br>
</div>
<div>Thanks!!</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Sep 21, 2017 at 8:31 AM, Răzvan
Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi, Jim!<br>
<br>
Script variables or AVPs are PV (pseudo-variables)
themselves, so you should be able to use them.<br>
<br>
Best regards,<br>
</tt>
<pre class="m_-3293041758390909581m_-3820948282300498539moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-3293041758390909581m_-3820948282300498539moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div class="m_-3293041758390909581m_-3820948282300498539moz-cite-prefix">On
09/21/2017 03:14 PM, Jim DeVito wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>It's my understanding only PV, integers and
strings can be used in the core route function. Is
there a reason I don't understand why we can not use
script variables or AVP's?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks!!</div>
<div><br>
</div>
<div class="m_-3293041758390909581m_-3820948282300498539gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">-------------
<div>Jim DeVito</div>
<div>Mobile <a href="tel:%28216%29%20507-9497" value="+12165079497" target="_blank">216.507.9497</a></div>
</div>
</div>
</div>
<br>
<fieldset class="m_-3293041758390909581m_-3820948282300498539mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-3293041758390909581m_-3820948282300498539moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-3293041758390909581m_-3820948282300498539moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all"><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
<div class="m_-3293041758390909581gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">-------------
<div>Jim DeVito</div>
<div>Mobile <a href="tel:(216)%20507-9497" value="+12165079497" target="_blank">216.507.9497</a></div>
</div>
</div>
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<fieldset class="m_-3293041758390909581mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-3293041758390909581moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-3293041758390909581moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</font></span></blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile 216.507.9497</div></div></div>
</div>