[Freeswitch-users] Unanswered pstn outbound call via gateway detection

Ciprian Dosoftei ciprian.dosoftei at gmail.com
Fri Nov 15 16:24:55 UTC 2019


Tanim --

Since you are using ESL, you should monitor the status of the outbound
channel you've originated -- you should do that by channel ID, either the
generated one or you could preset it via the origination_uuid variable.

During the channel's execution you will see a bunch of CHANNEL_* events
streamed via ESL; the relevant event for your question is CHANNEL_HANGUP.
You can extract the reason behind the hangup from the Hangup-Cause header
(could be CALL_REJECTED, USER_BUSY etc. here's a comprehensive list
https://freeswitch.org/confluence/display/FREESWITCH/Hangup+Cause+Code+Table
).

Conversely, if the call is picked up, you will see a CHANNEL_ANSWER event
coming through.


On Fri, 15 Nov 2019 at 10:59, Md,Mehedi Hasan Kabir(Tanim) <
tanim at surroundapps.com> wrote:

> Hi
>
> I have originated outbound call to pstn number using gateway provider
> flowroute with originate command. I am using python ESL to achieve this.
>
> If the call is not answered by pstn user, then i need to post status to my
> webserver .
>
> Can anyone suggests me how i can detect whether the pstn call is answered
> or not?
>
> Thanks
> Tanim
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://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
> https://freeswitch.com



-- 
Best Regards,
Ciprian Dosoftei

The information transmitted is intended only for the addressee and may
contain privileged and/or confidential material. If you are not the
intended recipient, kindly contact the sender and delete the message.

Any disclosure, distribution or copying of this message is strictly
prohibited without the expressed permission of the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20191115/a416042c/attachment.html>


More information about the FreeSWITCH-users mailing list