[SR-Users] Sending CANCEL

Olle E. Johansson oej at edvina.net
Thu Jul 4 09:45:28 CEST 2013


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


More information about the sr-users mailing list