VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
nagalenoj at gmail.com Guest
|
Posted: Wed Oct 14, 2009 9:26 am Post subject: [Freeswitch-users] 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
Quote: | 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. |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Wed Oct 14, 2009 9:39 am Post subject: [Freeswitch-users] Bridge in event socket - async mode |
|
|
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 (nagalenoj@gmail.com)> wrote:
Quote: | 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
Quote: | 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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|