Bridge in event socket - async mode
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.
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. <nagalenoj@gmail.com> 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 FreeSWITCH-users@lists.freeswitch.org 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:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
Nagalenoj H.