[Freeswitch-users] PSTN single legged call unanswered status

Michael Collins msc at freeswitch.org
Mon Jun 17 18:55:16 MSD 2013


Which events are being fired in such a case? Get a complete list of all
events that do get fired when you call a mobile number that is turned
off/out of reach. I suspect there will be at least one event that can clue
you in as to what happened.

-MC


On Mon, Jun 17, 2013 at 2:47 AM, Ashish gautam <ashish at nms.co.in> wrote:

> Hi Michael,
>
> I am using event socket to generate calls, CHANNEL_HANGUP_COMPLETE event
> is not being generated when the mobile number being dialled is switched
> off/out of reach. What to do in that case.
>
> Thanks.
>
> -Ashish
>
> On Fri, Jun 14, 2013 at 9:09 PM, Michael Collins <msc at freeswitch.org>wrote:
>
>> Are you using event socket to send an originate? Or are you using fs_cli
>> -x? Also, are you ignoring early media? Those are all factors in the method
>> you choose, however if you want to make absolutely certain that you know
>> what happened to a call then listen for CHANNEL_HANGUP_COMPLETE events.
>> You'll have a header like this:
>> Hangup-Cause: NO_ANSWER
>>
>> If you are looking at XML CDRs then you can apply some logic. Look for
>> sip_hangup_disposition of "send_cancel" and that tells you that FreeSWITCH
>> sent a cancel, possibly because the far end did not answer. Also, the
>> answer_epoch is 0 so you know that the call was not answered, but you don't
>> necessarily know why. However, you can subtract the progress_epoch from the
>> end_epoch and find out how many seconds the call was ringing. You'll have
>> to determine the number of seconds of ringing that constitutes a "no
>> answer" but that's probably the easy part.
>>
>> -MC
>>
>>
>>
>> On Fri, Jun 14, 2013 at 5:29 AM, Ashish gautam <ashish at nms.co.in> wrote:
>>
>>> Hi,
>>>
>>> I am generating a single legged call to a PSTN network and playing an
>>> IVR. I cannot get the disposition status if the call remains unanswered.
>>> How can I get it?
>>>
>>> --
>>> Ashish Gautam
>>>
>>> Nucleus Microsystems (Pvt.) Ltd.
>>>
>>> Ph. 011 47574758
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>>
>> --
>> Michael S Collins
>> Twitter: @mercutioviz
>> http://www.FreeSWITCH.org
>> http://www.ClueCon.com
>> http://www.OSTAG.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Ashish Gautam
>
> Nucleus Microsystems (Pvt.) Ltd.
>
> Ph. 011 47574758
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130617/6a5f89df/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list