[SR-Users] Sending CANCEL

Grant Bagdasarian GB at cm.nl
Thu Jul 4 09:58:50 CEST 2013


So if I use the t_cancel_callid function, Kamailio sends a CANCEL to the UAS, but doesn't send anything to the UAC? Or do I need to handle that myself?

-----Original Message-----
From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Olle E. Johansson
Sent: Thursday, July 4, 2013 9:45 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Sending CANCEL


4 jul 2013 kl. 09:32 skrev Alex Balashov <abalashov at evaristesys.com>:

> Kamailio is a proxy, and not designed to originate requests.
> 
> If you really, really want to generate a request, you can use uac_req_send():
> 
>   http://kamailio.org/docs/modules/4.0.x/modules/uac.html#idp1686632
> 
> But, you'll have to spoof all the parameters, including the pertinent branch ID, From tag and CSeq, correctly.  I'm not sure if $uac_req(...) lets you do that.
> 
> This is a very bad idea.  CANCELs -- like most requests -- are for user agents to send, not proxies.

Alex,
Who sends a CANCEL on a fork? ;-)
That's the proxy's job.

(Sorry could not resist)


But you are right that if you cancel ALL branches in the proxy so that the UA suddenly gets a 487 and is not aware of the CANCEL that can be messy.

/O
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list