mod_event_socket: command to play and collect DTMF
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
I believe you can do that by connecting to FS using one of the available ESL clients at https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket+client... & then use the same dptools command. On Tue, Nov 24, 2020 at 1:59 PM Dmitry Mordovin <d.mordovin@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+play_and... Try play_and_get_digits dialplan app. Execute over event socket. On Tue, Nov 24, 2020 at 2:05 PM Dmitry Mordovin <d.mordovin@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
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@gmail.com> wrote:
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+play_and...
Try play_and_get_digits dialplan app. Execute over event socket.
On Tue, Nov 24, 2020 at 2:05 PM Dmitry Mordovin <d.mordovin@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (4)
-
Anshuman Rawat
-
Christopher Rienzo
-
Dmitry Mordovin
-
Gulyás Attila