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
On 07/04/2013 03:30 AM, Grant Bagdasarian wrote:
Hello,
Which module can I use to have Kamailio generate a CANCEL request when
it receives a certain reply code? I want to cancel a dialog when
Kamailio receives a 181 Call Forwarded.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web:
http://www.evaristesys.com/,
http://www.alexbalashov.com/