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'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"><<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>></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>
> If you'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'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't deliver the parameter "dtmfdtmf" as<br>
defined above. So I cannot receive the dtmf digits this way.<br>
I grepped the network traffic to be sure I haven't missed anything.<br>
<br>
Any idea?<br>
<br>
Best regards<br>
Peter<br>
<br>
<br>
Brian West schrieb:<br>
> If you're using event socket you have really no reason to use the read<br>
> application. The way you invoked it would collect 0 to 4 digits into<br>
> the variable 'digits'.<br>
><br>
> /b<br>
><br>
><br>
> On Sep 12, 2008, at 4:27 PM, Luke Graybill wrote:<br>
><br>
>> I am having a hard time getting this command to work properly. Here<br>
>> is the c output from my test session, where I dial in to ext 500 with<br>
>> my sip client (Ekiga):<br>
>><br>
>> ----<br>
>> listening on localhost:8084<br>
>> IPv4Address(TCP, '<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> <<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>>', 36685): Connected<br>
>> >> 'connect'<br>
>> Caller: Killarny -<br>
>> >> 'myevents'<br>
>> result was: Events Enabled<br>
>> >> 'sendmsg\ncall-command: execute\nexecute-app-name: answer'<br>
>> OK<br>
>> >> 'sendmsg\ncall-command: execute\nexecute-app-name:<br>
>> read\nexecute-app-arg: 0 4 conference/8000/conf-pin.wav digits 10000 #'<br>
>> OK<br>
>> DTMF: 1<br>
>> DTMF: 2<br>
>> DTMF: 3<br>
>> DTMF: 4<br>
>> DTMF: 5<br>
>> DTMF: 6<br>
>> DTMF: 7<br>
>> DTMF: 8<br>
>> DTMF: 9<br>
>> DTMF: 0<br>
>> DTMF: *<br>
>> DTMF: #<br>
>> IPv4Address(TCP, '<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> <<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>>', 36685): Connection<br>
>> was closed cleanly.<br>
>> ----<br>
>><br>
>> I couldn't figure out how to get read to function without passing a<br>
>> wav file (I plan to use TTS for the voice prompts, and I don't need a<br>
>> wav file to play here) so I just plugged in a random wav that comes<br>
>> with freeswitch for testing.<br>
>><br>
>> As you can see, freeswitch reports that the command executed<br>
>> properly, illustrated by the OK (which was a reply-text: +OK) but the<br>
>> read application doesn't seem to be functioning beyond playing the<br>
>> given wav file (and truncating the first half of it as well).<br>
>> Pressing digits in the sip client results in DTMF events being sent<br>
>> to the socket. Note that the DTMF events stop at # because I manually<br>
>> shut down the connection, not because of anything that freeswitch does.<br>
>><br>
>> Am I doing something wrong here? I feel like I'm following the<br>
>> available documentation given at<br>
>> <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>
>> having no luck. Is the read application basically a dead command, and<br>
>> should I be instead just using DTMF event output?<br>
>><br>
>> Any help that can be provided would be appreciated, thanks.<br>
>><br>
>> Killarny<br>
>> _______________________________________________<br>
>> Freeswitch-users mailing list<br>
>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
>> <mailto:<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>
><br>
> Brian West<br>
> <a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@freeswitch.org</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
> ------------------------------------------------------------------------<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>
><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>