try putting ESL::eslSetLogLevel(7); at the top so you can get a trace of the esl data on the stdout from your script also put some debug code to confirm you are getting the digit
On Wed, Oct 14, 2009 at 9:10 AM, Nagalenoj H. <[email protected]> wrote: > Hi, > > I'm using event outboud socket(perl) in async mode. > > Scenario where I face problem: > When a call comes to an extension(1000), my program will play some message > to the user, and get some DTMF. > I'll get the DTMF event(as I'm in async mode) and store the digits in a > variable. > > When he presses "#", I call $con->execute("bridge","user/$dtmf"), to bridge > him to the dialed number. > > It is bridging sometimes, and sometimes it is not bridging. > > Is it the problem with async mode?? > I also set $con->setEventLock("true"), before executing the bridge. But > still the problem persists. > > I've seen the logs too, I didn't find the bridge application getting > executed. > What makes the problem here..?? > > The freeswitch log, when bridge is happening: > http://pastebin.freeswitch.org/10704 > > The freeswitch log, when bridging is not happening: > http://pastebin.freeswitch.org/10705 > > Code: > > # some statements > > if($name eq "CHANNEL_BRIDGE") { # checking for events > . > } > elsif ($name eq "DTMF") { > my $digit = $e->getHeader("dtmf-digit"); > > if($digit eq '#') { > > print "Going to bridge\n"; > $con->execute("bridge","user/$dtmf_digit"); > } > else { > $dtmf_digit.=$digit; > } > } > > > -- > Regards, > Nagalenoj H. > > _______________________________________________ > FreeSWITCH-users mailing list > [email protected] > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:[email protected] <msn%[email protected]> GTALK/JABBER/PAYPAL:[email protected]<paypal%[email protected]> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[email protected] <sip%[email protected]> iax:[email protected]/888 googletalk:[email protected]<googletalk%3aconf%[email protected]> pstn:213-799-1400
_______________________________________________ FreeSWITCH-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
