[Freeswitch-users] Bridge in event socket - async mode

Anthony Minessale anthony.minessale at gmail.com
Wed Oct 14 07:26:39 PDT 2009


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 at 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 at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091014/d18b481d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list