Hello,

do you have a pcap with all messages for such call (invite, replies, cancel)? It is important to see if the transaction matching elements are properly set.

In general, the rule for cancel is to be sent in the same way (with the same elements) as the invite, because cancel is not a standalone transaction, it must match the associated invite one.

Cheers,
Daniel

On 18.04.18 16:59, Kelvin Chua wrote:
after couple of tests, it is still hit and miss, sometimes it matches, sometimes it does not.

On Wed, Apr 18, 2018, 6:47 PM Kelvin Chua <kelchy@gmail.com> wrote:
thanks alex, will test this out further but looks good at the moment
any idea why it is not matching when RURI has the port if i only use t_check_trans() and relay?

Kelvin Chua

On Wed, Apr 18, 2018 at 3:44 PM, Alex Balashov <abalashov@evaristesys.com> wrote:
Try this instead:

   route {
      ...

      t_check_trans();

      ...

      if(is_method("CANCEL")) {
         if(!t_relay_cancel())
            sl_send_reply("500", "Internal Server Error");

         exit;
      }
   }

-- Alex

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com