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">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>Nagalenoj H.<br>