<div dir="ltr">thanks alex, will test this out further but looks good at the moment<div>any idea why it is not matching when RURI has the port if i only use t_check_trans() and relay?</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Kelvin Chua</div></div>
<br><div class="gmail_quote">On Wed, Apr 18, 2018 at 3:44 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try this instead:<br>
<br>
   route {<br>
      ...<br>
<br>
      t_check_trans();<br>
<br>
      ...<br>
<br>
      if(is_method("CANCEL")) {<br>
         if(!t_relay_cancel()) <br>
            sl_send_reply("500", "Internal Server Error");<br>
<br>
         exit;<br>
      }<br>
   }<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</font></span></blockquote></div><br></div>