[Freeswitch-users] Unanswered pstn outbound call via gateway detection
David Villasmil
david.villasmil.work at gmail.com
Fri Nov 15 19:12:13 UTC 2019
This should go a long way
https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=1048914#content/view/1048916
On Fri, 15 Nov 2019 at 19:01, Md,Mehedi Hasan Kabir(Tanim) <
tanim at surroundapps.com> wrote:
> Hi Ciprian
>
> Thanks for your prompt response. As i am new to freeswitch,can you give
> some guideline/sample about how i can monitor status of the originated
> outbound channel?
>
> Thanks
> Tanim
>
> On Fri, Nov 15, 2019, 10:24 PM Ciprian Dosoftei <
> ciprian.dosoftei at gmail.com> wrote:
>
>> 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.
>> _________________________________________________________________________
>>
>> 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
>
> _________________________________________________________________________
>
> 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
--
Regards,
David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20191115/117f0ef2/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list