leg timeout beats the group confirm timeouts<div><br><br><div class="gmail_quote">On Tue, Jun 15, 2010 at 12:28 AM, Nagalenoj H. <span dir="ltr">&lt;<a href="mailto:nagalenoj@gmail.com">nagalenoj@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear friends,<br>    I&#39;ve tried using the group_confirm_cancel_timeout channel variable. I&#39;ve written a testing script to get digits before bridging. But, it doesn&#39;t seem to be working.<br>
<br>My understanding after reading wiki is,<br>
        * When I dial [leg_timeout=10]user/1005, if he answers before timeout and in the process of giving digits, then the call shouldn&#39;t be disconnected after the leg_timeout secs (10 sec in the example).<br><br>But, When I experiment it, the call is getting disconnected after 10 seconds and it doesn&#39;t bother whether the callee has answered the call(Started giving digits) or not answered at all.<br>

<br>I&#39;ve checked it with nc as follows,<br><br>sendmsg<br>call-command: execute<br>execute-app-name: set<br>execute-app-arg: group_confirm_key=exec<br><br>sendmsg<br>call-command: execute<br>execute-app-name: set<br>
execute-app-arg: group_confirm_file=perl /root/<a href="http://confirm.pl" target="_blank">confirm.pl</a><br>
<br>sendmsg<br>call-command: execute<br>execute-app-name: set<br>execute-app-arg: group_confirm_cancel_timeout=1<br><br>sendmsg<br>call-command: execute<br>execute-app-name: bridge<br>execute-app-arg: [leg_timeout=10]user/1005<br>

<br>And here is the script,<br><br>use freeswitch;<br>our $session;<br>my $digit;<br><br>while(1)  {<br>        # Wait till response timeout for the first digit.<br>        $digit = $session-&gt;getDigits(1, &quot;&quot;, 10000);<br>

        freeswitch::consoleLog (&quot;info&quot;,&quot;Digit&gt;&gt;&quot;.$digit.&quot;&lt;&lt;&quot;);<br><br>        if (! $session-&gt;ready() ) {<br>                freeswitch::consoleLog(&quot;info&quot;,&quot;Going to Exit\n&quot;);<br>

                last;<br>        }<br>        if (defined $digit and $digit ne &quot;&quot; )  {<br>                freeswitch::consoleLog(&quot;info&quot;,&quot;DTMF received: $digit\n&quot;);<br>                if ($digit eq &#39;#&#39;)  {<br>

                        return;<br>                }<br>        }<br>        else  {<br>                freeswitch::consoleLog(&quot;info&quot;,&quot;Timeout\n&quot;);<br>                $session-&gt;hangup();<br>        }<br>

}<br>1;<br><br>If my understanding is right then, I believe there is something wrong with channel_variable.<br><br>Kindly help me to resolve this.<br><br>-- <br>Regards,<br><font color="#888888">Nagalenoj H.<br>
</font><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><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>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</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="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>