[Freeswitch-users] PSTN single legged call unanswered status

Michael Collins msc at freeswitch.org
Fri Jun 14 19:39:28 MSD 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130614/cdf1c846/attachment.html 


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