Ohh, that's gonna be tricky then. 

Well, the thing is we want to do some kind of answer machine detection by 
catching the 181 SIP responses and CANCEL the dialogs. I've tested this with 
one of our suppliers and for the most mobile operators in this country a 181 
response is given when the call is being forwarded to voicemail. For our 
purpose this covers roughly about 90% of all the calls. I know there are 
modules available for Asterisk and FreeSwitch which do AMD, but those consume 
too much resources.

-----Original Message-----
From: sr-users-boun...@lists.sip-router.org 
[mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Thursday, July 4, 2013 9:33 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Sending CANCEL

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@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/

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

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

Reply via email to