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. <nagale...@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_miness...@hotmail.com <msn%3aanthony_miness...@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com<paypal%3aanthony.miness...@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org <sip%3a...@conference.freeswitch.org>
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org<googletalk%3aconf%2b...@conference.freeswitch.org>
pstn:213-799-1400
_______________________________________________
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

Reply via email to