<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body 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="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 09/21/2017 03:43 PM, Jim DeVito
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAcmnhmfeiAg0eJAc3oFyYP=1zapVnM0Wd=sa9kaGtovWgrVEA@mail.gmail.com">
      <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"
              moz-do-not-send="true">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_-3820948282300498539moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-3820948282300498539moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
              <div class="m_-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_-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"
                          moz-do-not-send="true">216.507.9497</a></div>
                    </div>
                  </div>
                </div>
                <br>
                <fieldset
                  class="m_-3820948282300498539mimeAttachmentHeader"></fieldset>
                <br>
                <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-3820948282300498539moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-3820948282300498539moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">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"
              moz-do-not-send="true">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>