<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'm also used to have is_request()/is_reply() and when switched
      to opensips started to use following helpers:<br>
      <br>
      route[IS_REQUEST] {<br>
              if (route(IS_REPLY))<br>
                      return(-1);<br>
              else<br>
                      return(1);<br>
      }<br>
      <br>
      route[IS_REPLY] {<br>
              if ($mb =~ "^SIP/2\.0")<br>
                      return(1);<br>
              else<br>
                      return(-1);<br>
      }<br>
    </p>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Of course checking $rs should be really
      better that my regexp.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <blockquote type="cite"
cite="mid:CACK6f-qyXO_1XjHNB+NWEME71fg5VryGOoz2feq8itDLM094PQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Hi Răzvan,</div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">Thanks! I totally forgot about that option!</div>
      <div dir="auto">Would there be a performance difference when using
        route params vs just testing the $rs value? Since route params
        are totally new to me, I’m not sure if they require additional
        processing time. Pretty sure performance wouldn’t be an issue
        since we’re dealing with OpenSips built to be high performance.</div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">Regards,</div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">Grant</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
  </body>
</html>