[Freeswitch-users] mod_event_socket: command to play and collect DTMF

Gulyás Attila toraritte at gmail.com
Wed Nov 25 16:45:27 UTC 2020


With mod_event_socket you can go to a deeper level and use the events
to drive your program. In our app, we subscribe to all events (see
"3.5 event" at https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket)
and filter out the incoming DTMF digits while playing a prompt (see
"3.9 sendmsg" at
https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket;
there is even an example there using "mod_dptools:playback",
https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket).

Specifically, we use "mod_erlang_event" (which is just a wrapper
around ESL,https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Library)
but the basics are the same. You can take a look here,
https://github.com/access-news/phone-service, but it is a bit messy
with almost no documentation (yet).

Hope this helps.
Attila

On Tue, Nov 24, 2020 at 8:07 PM Christopher Rienzo <cmrienzo at gmail.com> wrote:
>
> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+play_and_get_digits
>
> Try play_and_get_digits dialplan app.  Execute over event socket.
>
> On Tue, Nov 24, 2020 at 2:05 PM Dmitry Mordovin <d.mordovin at crestwavetech.ru> wrote:
>>
>> Hello
>>
>> I try to solve task: play a prompt and collect DTMF digits.
>>
>> Now I use Lua script and session:playAndGetDigits to did it.
>>
>> How can I do it thru mod_event_socket commands?
>>
>> I know uuid_broadcast command can play prompt, but I can’t find command to wait some DTMF digits.
>>
>> Any one can direct me to right simple solution?
>>
>> PS: one idea, it can be done if I can run same Lua script from mod_event_socket
>> _________________________________________________________________________
>>
>> 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



More information about the FreeSWITCH-users mailing list