[Freeswitch-users] play_and_get_digits on simultaneous calls
Adam Johnston
atomjohnston at gmail.com
Fri Feb 21 22:26:48 UTC 2020
I've been experimenting with IVRs and I'm having trouble with
play_and_get_digits in mod_dptools. Both in XML and Lua I'm see
play_and_get_digits process DTMF events from other calls that are
simultaneously active. Below is an XML example of what I'm going for, just
a basic authentication demo that reaches out to an HTTP endpoint via curl.
If I try out the demo on simultaneous calls, key presses from one call can
be picked up in the other and cause authentication to fail. Any ideas on
how to isolate the DTMF capture to the individual sessions?
<extension name="auth-demo">
<condition field="destination_number" expression="9395550357$">
<action application="answer" />
<action application="playback" data="silence_stream://1000" />
<action application="set" data="tts_engine=flite"/>
<action application="set" data="tts_voice=kal"/>
<action application="speak" data="Welcome." />
<action application="play_and_get_digits"
data="6 10 3 3000 # say:'Please enter your user name,
followed by the pound sign.' say:'I am sorry, I did not get that.' user \d+
3000 auth_failure" />
<action application="play_and_get_digits"
data="6 10 3 3000 # say:'Please enter your password,
followed by the pound sign.' say:'I am sorry, I did not get that.' secret
\d+ 3000 auth_failure" />
<action application="log" data="${user}:${secret}" />
<action application="curl" data="${auth_url} post
username=${user}&password=${secret}" />
<action application="log" data="${curl_response_data}" />
<action application="speak" data="${curl_response_data}" />
<action application="playback" data="silence_stream://3000" />
</condition>
</extension>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200221/de4ec8ee/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list