those events have nothing to do with the read app<br>the read app is designed to save the dtmf into a variable for you<br>so you would have to wait for the event telling you the execution was complete of read<br>then you can use the command uuid_getvar to get the dtmfdtmf<br>
<br>the reason he said you don&#39;t need it is because you could just collect it yourself<br>as you get dtmf events and just play the file.<br><br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 12:54 PM, Peter P GMX <span dir="ltr">&lt;<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I tried to read dtmfs via event socket and came across this thread.<br>
What do you mean by:<br>
&gt; If you&#39;re using event socket you have really no reason to use the read<br>
application.<br>
<br>
Is there another chance to do this?<br>
<br>
<br>
Currently I do the following and this isn&#39;t successful:<br>
<br>
I send the following message to FS:<br>
SendMsg 4f286c18-a5de-11dd-bef3-4b1a61d55c50<br>
call-command: execute<br>
execute-app-name: read<br>
execute-app-arg: 0 10 ivr/8000/ivr-enter_ext.wav dtmfdtmf 10000 #,*<br>
event-lock:true<br>
<br>
I type 4 digits on the phone 1 2 3 4 plus #<br>
<br>
I receive 5 separate DTMF events<br>
DTMF-Digit: 1<br>
DTMF-Digit: 2<br>
DTMF-Digit: 3<br>
DTMF-Digit: 4<br>
DTMF-Digit: %23<br>
<br>
The final event however doesn&#39;t deliver the parameter &quot;dtmfdtmf&quot; as<br>
defined above. So I cannot receive the dtmf digits this way.<br>
I grepped the network traffic to be sure I haven&#39;t missed anything.<br>
<br>
Any idea?<br>
<br>
Best regards<br>
Peter<br>
<br>
<br>
Brian West schrieb:<br>
&gt; If you&#39;re using event socket you have really no reason to use the read<br>
&gt; application. &nbsp;The way you invoked it would collect 0 to 4 digits into<br>
&gt; the variable &#39;digits&#39;.<br>
&gt;<br>
&gt; /b<br>
&gt;<br>
&gt;<br>
&gt; On Sep 12, 2008, at 4:27 PM, Luke Graybill wrote:<br>
&gt;<br>
&gt;&gt; I am having a hard time getting this command to work properly. Here<br>
&gt;&gt; is the c output from my test session, where I dial in to ext 500 with<br>
&gt;&gt; my sip client (Ekiga):<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt; listening on localhost:8084<br>
&gt;&gt; IPv4Address(TCP, &#39;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> &lt;<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>&gt;&#39;, 36685): Connected<br>
&gt;&gt; &gt;&gt; &#39;connect&#39;<br>
&gt;&gt; Caller: Killarny -<br>
&gt;&gt; &gt;&gt; &#39;myevents&#39;<br>
&gt;&gt; result was: Events Enabled<br>
&gt;&gt; &gt;&gt; &#39;sendmsg\ncall-command: execute\nexecute-app-name: answer&#39;<br>
&gt;&gt; OK<br>
&gt;&gt; &gt;&gt; &#39;sendmsg\ncall-command: execute\nexecute-app-name:<br>
&gt;&gt; read\nexecute-app-arg: 0 4 conference/8000/conf-pin.wav digits 10000 #&#39;<br>
&gt;&gt; OK<br>
&gt;&gt; DTMF: 1<br>
&gt;&gt; DTMF: 2<br>
&gt;&gt; DTMF: 3<br>
&gt;&gt; DTMF: 4<br>
&gt;&gt; DTMF: 5<br>
&gt;&gt; DTMF: 6<br>
&gt;&gt; DTMF: 7<br>
&gt;&gt; DTMF: 8<br>
&gt;&gt; DTMF: 9<br>
&gt;&gt; DTMF: 0<br>
&gt;&gt; DTMF: *<br>
&gt;&gt; DTMF: #<br>
&gt;&gt; IPv4Address(TCP, &#39;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> &lt;<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>&gt;&#39;, 36685): Connection<br>
&gt;&gt; was closed cleanly.<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt; I couldn&#39;t figure out how to get read to function without passing a<br>
&gt;&gt; wav file (I plan to use TTS for the voice prompts, and I don&#39;t need a<br>
&gt;&gt; wav file to play here) so I just plugged in a random wav that comes<br>
&gt;&gt; with freeswitch for testing.<br>
&gt;&gt;<br>
&gt;&gt; As you can see, freeswitch reports that the command executed<br>
&gt;&gt; properly, illustrated by the OK (which was a reply-text: +OK) but the<br>
&gt;&gt; read application doesn&#39;t seem to be functioning beyond playing the<br>
&gt;&gt; given wav file (and truncating the first half of it as well).<br>
&gt;&gt; Pressing digits in the sip client results in DTMF events being sent<br>
&gt;&gt; to the socket. Note that the DTMF events stop at # because I manually<br>
&gt;&gt; shut down the connection, not because of anything that freeswitch does.<br>
&gt;&gt;<br>
&gt;&gt; Am I doing something wrong here? I feel like I&#39;m following the<br>
&gt;&gt; available documentation given at<br>
&gt;&gt; <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read</a> but I am<br>
&gt;&gt; having no luck. Is the read application basically a dead command, and<br>
&gt;&gt; should I be instead just using DTMF event output?<br>
&gt;&gt;<br>
&gt;&gt; Any help that can be provided would be appreciated, thanks.<br>
&gt;&gt;<br>
&gt;&gt; Killarny<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>&gt;<br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; Brian West<br>
&gt; <a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>