Did you do this?<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#playback_terminators">http://wiki.freeswitch.org/wiki/Channel_Variables#playback_terminators</a><br>-MC<br><br><div class="gmail_quote">On Thu, Sep 2, 2010 at 6:26 AM, Nigel Kent <span dir="ltr"><<a href="mailto:ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
code below and debug log now attached. It seems once playback file is played no further dtmf events come through? Any ideas!<br><br> while @con.connected<br>puts "wait for event"<br> e = @con.recvEvent<br>
puts "got event"<br> if (!e.nil?)<br>puts "test event"<br> name = e.getHeader("Event-Name")<br> break if name == "SERVER_DISCONNECTED"<br>
if name == "DTMF"<br>
digit = e.getHeader("DTMF-DIGIT")<br> duration = e.getHeader("DTMF-DURATION")<br> puts "*** dtmf #{digit} #{duration}"<br> end<br>
end<br> end<br><br><br><br>--- On <b>Wed, 1/9/10, Nigel Kent <i><<a href="mailto:ktngl@yahoo.co.uk" target="_blank">ktngl@yahoo.co.uk</a>></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Nigel Kent <<a href="mailto:ktngl@yahoo.co.uk" target="_blank">ktngl@yahoo.co.uk</a>><br>Subject: [Freeswitch-users] Problems getting dtmf events<br>To:
<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Date: Wednesday, 1 September, 2010, 21:15<br><br><div><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font: inherit;" valign="top">I am trying to catch dtmf events but am having problems. It seems no dtmfs are being recieved. I can filter to other events and it gets picked up so this section of the code is doing the indented action of getting events. <br>
<br>However I notice that during the execution of the playback command while the sound file is playing if a key press is done at this time the dtmf does get received.<br><br>So my thought are what conditions does the playback command set in order to be able to have dtmf get recognized.<br>
<br><br><br></td></tr></tbody></table><br>
</div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></td></tr></tbody></table><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></blockquote></div><br>