<br><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 5:24 PM, Nigel Kent <span dir="ltr">&lt;<a href="mailto:ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</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"><br># time out and inter digit time out<br>response_timeout = (20 * 1000)<br>interdigit_timeout = (10 * 1000)<br></td></tr>
</tbody></table></blockquote><div><br>According to page 224 of the handy dandy bridge book :) the recvEventTimed method accepts milliseconds as its argument. So... it looks like you are blocking for 20 seconds and 10 seconds on these two values. I&#39;m assuming that you don&#39;t want to block for that long?<br>
<br>-MC<br> <br></div><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">
<br><br>--- On <b>Tue, 31/8/10, Michael Collins <i>&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Michael Collins &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;<br>Subject: Re: [Freeswitch-users] recvEvent in ruby<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Tuesday, 31 August, 2010, 0:13<div><div></div><div class="h5"><br><br><div>What integer values are in response_timeout and interdigit_timeout? Just curious, because if they are too large then it will indeed block while waiting for events.<br>
-MC<br><br><div>On Mon, Aug 30, 2010 at 4:34 PM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" href="http://mc/compose?to=ktngl@yahoo.co.uk" target="_blank">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
I have this code below in which I want to receive and extract dtmf events.<br>It seems all previous events are queued and received together at this point as the while loop is run. I don&#39;t know why it does this I only need the current events to be received.<br>

<br>Another issue happening at this point when I press any digit 0-9 on the phone it is not getting an incoming dtmf events<br><br><br><br>while @con.connected<br>    #debug    <br>    puts &quot;start loop&quot; <br>    <br>

    #no digits<br>    if dtmfbuffer.length == 0<br>        e = @con.recvEventTimed(response_timeout)<br>    # there are digits<br>    elsif dtmfbuffer.length &gt; 0<br>        e =
 @con.recvEventTimed(interdigit_timeout)<br>    end<br><br><br>    if e<br>        name = e.getHeader(&quot;Event-Name&quot;)<br>        puts &quot;#{name}&quot;<br>        break if name == &quot;SERVER_DISCONNECTED&quot;<br>

        if name == &quot;DTMF&quot;<br>            digit = e.getHeader(&quot;DTMF-Digit&quot;)<br>            duration = e.getHeader(&quot;DTMF-Duration&quot;)        <br>            dtmfbuffer &lt;&lt; digit<br>            puts &quot;*** Dtmf #{digit} dur:#{duration} from #{@cli}&quot;<br>

        end<br>    end<br><br>    if dtmfbuffer.length &gt; 9<br>       
 break<br>    end<br>        #debug<br>        puts &quot;end loop&quot;<br>end<br></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div><br></div></div>-----Inline Attachment Follows-----<div class="im"><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></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>