<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If you're using event socket you have really no reason to use the read application. &nbsp;The way you invoked it would collect 0 to 4 digits into the variable 'digits'. &nbsp;<div><br></div><div>/b</div><div><br></div><div><br><div><div>On Sep 12, 2008, at 4:27 PM, Luke Graybill wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I am having a hard time getting this command to work properly. Here is the c output from my test session, where I dial in to ext 500 with my sip client (Ekiga):<br><br>----<br>listening on localhost:8084<br> IPv4Address(TCP, '<a href="http://127.0.0.1">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: 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">127.0.0.1</a>', 36685): Connection was closed cleanly.<br>----<br><br>I couldn't figure out how to get read to function without passing a wav file (I plan to use TTS for the voice prompts, and I don't need a wav file to play here) so I just plugged in a random wav that comes with freeswitch for testing.<br> <br>As you can see, freeswitch reports that the command executed properly, illustrated by the OK (which was a reply-text: +OK) but the read application doesn't seem to be functioning beyond playing the given wav file (and truncating the first half of it as well). Pressing digits in the sip client results in DTMF events being sent to the socket. Note that the DTMF events stop at # because I manually 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 available documentation given at <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read</a> but I am having no luck. Is the read application basically a dead command, and 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></div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="sip:brian@freeswitch.org">sip:brian@freeswitch.org</a></div><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>