Hi,<br><br>I'm using event outboud socket(perl) in async mode.<br><br>Scenario where I face problem:<br>When a call comes to an extension(1000), my program will play some message to the user, and get some DTMF.<br>I'll get the DTMF event(as I'm in async mode) and store the digits in a variable.<br>
<br>When he presses "#", I call $con->execute("bridge","user/$dtmf"), to bridge him to the dialed number.<br><br>It is bridging sometimes, and sometimes it is not bridging.<br><br>Is it the problem with async mode??<br>
I also set $con->setEventLock("true"), before executing the bridge. But still the problem persists.<br><br>I've seen the logs too, I didn't find the bridge application getting executed.<br>What makes the problem here..??<br>
<br>The freeswitch log, when bridge is happening:<br> <a href="http://pastebin.freeswitch.org/10704">http://pastebin.freeswitch.org/10704</a><br><br>The freeswitch log, when bridging is not happening:<br> <a href="http://pastebin.freeswitch.org/10705">http://pastebin.freeswitch.org/10705</a><br>
<br>Code:<br><br> # some statements<br><br>
<pre width="100">if($name eq "CHANNEL_BRIDGE") { # checking for events<br>.<br>}<br>elsif ($name eq "DTMF") {<br> my $digit = $e->getHeader("dtmf-digit");<br>        <br> if($digit eq '#') {<br>
        print "Going to bridge\n";<br>        $con->execute("bridge","user/$dtmf_digit");                <br> }<br> else {<br>        $dtmf_digit.=$digit;<br> }<br>}<br></pre><br>-- <br>Regards,<br>Nagalenoj H.<br>