[Freeswitch-users] DTMF events not occurring while using VOIP-GSM gateway hardware locally

Freeswitch user freeswitch940 at gmail.com
Thu Sep 14 18:15:58 UTC 2017


For  detect In-band dtmf . You can try below application in your xml
dialplan.

<action application="start_dtmf" />

On Thu, Sep 14, 2017 at 11:12 PM, Deepika Yadav <deepikay at iiitd.ac.in>
wrote:

> It is not ESl but a python script only which is called from a XML
> extension. The code is as follows:
>
>
> def initial_greeting(session, phone_number, channel_uuid):
>
>     sangoshthi_greeting = "/usr/local/freeswitch/sounds/
> sangoshthi_ivr_audios/Sangoshthi_greeting.wav"
>     invalid_digit = "/usr/local/freeswitch/sounds/
> sangoshthi_ivr_audios/Invalid_entry.wav"
>
>     topic = str(session.playAndGetDigits(1, 1, 5, 5000,"",
> sangoshthi_greeting, invalid_digit, "[12345*]"))
>
>      ivr_handler(topic, session,  phone_number, channel_uuid)
>
>
> def handler(session, args):
>
>     session.setHangupHook(hangup_hook)
>     session.setInputCallback(input_callback)
>
>     print('session object value is ', str(session))
>
>     callerid =  session.getVariable('caller_id_number')
>     call_uuid = session.getVariable('uuid')
>
>     phone_number = callerid[len(callerid)-10:]
>
>      initial_greeting(session, phone_number, call_uuid)
>
>
>
>
> On Thu, Sep 14, 2017 at 10:08 PM, Freeswitch user <freeswitch940 at gmail.com
> > wrote:
>
>> Hello Deepika,
>>
>> As per my experience playandGetDigits is channel  variable so we can use
>> it with session only. I don't think it will work with ESL. You can use
>> mod_perl for same..
>>
>> On Thu, 14 Sep 2017 at 9:10 PM, Deepika Yadav <deepikay at iiitd.ac.in>
>> wrote:
>>
>>> Hi
>>>
>>> I need to originate calls to Indian mobile numbers from my python ESL
>>> script. I used to use service from a company for sending calls from
>>> Freeswitch to GSM network for which I set up external SIP profile.
>>>
>>> But recently I bought my own GOIP hardware, though I am able to make
>>> calls but DTMF events are not getting captured on Freeswitch, API like
>>> playandGetDigits does not work and there are no logs on Freeswitch console.
>>>
>>> --
>>> Regards,
>>> Deepika
>>> https://deepikay.wixsite.com/deepika
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.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
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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
>>
>
>
>
> --
> Regards,
> Deepika
> https://deepikay.wixsite.com/deepika
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170914/c756e385/attachment-0001.html>


More information about the FreeSWITCH-users mailing list