Using reason header from SIP 183 message inside dialplan
Hello, I have a Vodafone SIP trunk connected to my freeswitch box. Everything works fine excepting one thing: I am unable to differentiate when a dialed number is busy or unavailable (line disconnected, mobile phone out of coverage area, &c). My provider signals this kind of situations inside a SIP 183 Session Progress message with reason header (user busy, subscriber absent, ...). How can I use/get that reason header inside dialplan? Sofia log uploaded here: http://pastebin.freeswitch.org/22101 Regards, Lucian
+1 for this... ive seen the same thing with carriers, would love to be able to hook this in a nice way. ( something similar to hangup hook I guess, progress hook ?? ) On 8 March 2014 21:20, Bunea Lucian <lucibunea@gmail.com> wrote:
Hello,
I have a Vodafone SIP trunk connected to my freeswitch box. Everything works fine excepting one thing: I am unable to differentiate when a dialed number is busy or unavailable (line disconnected, mobile phone out of coverage area, &c). My provider signals this kind of situations inside a SIP 183 Session Progress message with reason header (user busy, subscriber absent, ...).
How can I use/get that reason header inside dialplan?
Sofia log uploaded here: http://pastebin.freeswitch.org/22101
Regards, Lucian
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely Jay
Is it the violation of SIP Response rule? I thought the 1xx response is just transient. The final would be 200 if connected and 4xx if fail? Donny On Sun, Mar 9, 2014 at 5:47 AM, jay binks <jaybinks@gmail.com> wrote:
+1 for this... ive seen the same thing with carriers, would love to be able to hook this in a nice way. ( something similar to hangup hook I guess, progress hook ?? )
On 8 March 2014 21:20, Bunea Lucian <lucibunea@gmail.com> wrote:
Hello,
I have a Vodafone SIP trunk connected to my freeswitch box. Everything works fine excepting one thing: I am unable to differentiate when a dialed number is busy or unavailable (line disconnected, mobile phone out of coverage area, &c). My provider signals this kind of situations inside a SIP 183 Session Progress message with reason header (user busy, subscriber absent, ...).
How can I use/get that reason header inside dialplan?
Sofia log uploaded here: http://pastebin.freeswitch.org/22101
Regards, Lucian
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
not sure its a violation to have a reason header in a 18X response. what the carrier is saying in this case is... here is a 183, bring up media... BUT here is a REASON ( with q850 most probably ) you can conditionally hangup now.. EG. 183 with Q850 code 1 ( Unallocated number ) now if you dont hangup, the carrier plays a recorded announcement saying "unallocated number" key here is, you can decide if you want the recording, or to just hangup when you get the reason.
participants (3)
-
Bunea Lucian
-
Donny Hardyanto
-
jay binks