<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>The Lua script works fine. No problem in capturing the DTMF from both the call legs.<BR> <BR>Only in Mod_Managed I have issue. Its simple 3 lines of code nothing fancy...<BR><font size="2" face="Consolas"><font size="2" face="Consolas"> <BR></font>public void Run(AppContext context) {<BR> context.Session.Answer();<br> var newSession = new ManagedSession("sofia/gateway/foo/callenumber");<br> freeswitch.bridge(newSession, context.Session);<br>}<br><BR></font>FreeSWITCH version is<BR> FreeSWITCH Version 1.0.head (git-f477404 2012-02-09 11-08-52 -0600)<BR> <BR>Thanks<BR>Srini<BR><div><div id="ecxSkyDrivePlaceholder"></div>> Date: Fri, 10 Feb 2012 12:32:03 -0600<br>> From: anthony.minessale@gmail.com<br>> To: freeswitch-users@lists.freeswitch.org<br>> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after receiving DTMF from the Callee.<br>> <br>> I tried this lua script which should be the same thing:<br>> <br>> b_leg = freeswitch.Session("sofia/internal/foo@bar.com", session);<br>> freeswitch.bridge(session, b_leg);<br>> <br>> See if you get the same problem running this lua code, I was passing dtmf fine.<br>> <br>> <br>> Internally, the code should not even use a callback capable of ending<br>> the call as you described unless your program has an input callback of<br>> dtmf handler function.<br>> <br>> <br>> Also make sure you are on a recent build of FS.<br>> <br>> <br>> <br>> On Fri, Feb 10, 2012 at 12:21 PM, Srini K <aksrini@hotmail.com> wrote:<br>> > Anthony,<br>> > Thanks for your response.<br>> > I have not defined any of these input_callback or dtmf_callback.<br>> ><br>> > I have attached the log with debug level.<br>> > http://pastebin.freeswitch.org/18360<br>> ><br>> > Thanks in advance.<br>> ><br>> > Regards<br>> > Srini<br>> ><br>> ><br>> ><br>> >> Date: Thu, 9 Feb 2012 19:06:39 -0600<br>> ><br>> >> From: anthony.minessale@gmail.com<br>> >> To: freeswitch-users@lists.freeswitch.org<br>> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after receiving<br>> >> DTMF from the Callee.<br>> >><br>> >> do you have input_callback or dtmf_callback or anything defined?<br>> >><br>> >> On Thu, Feb 9, 2012 at 6:37 PM, Srini K <aksrini@hotmail.com> wrote:<br>> >> > Iam using the latest FreeSWITCh version (updated today morning).<br>> >> ><br>> >> > FS terminates on receiving any DTMF digits from the callee. I have not<br>> >> > set<br>> >> > bridge_terminate_key.<br>> >> ><br>> >> > I have created an oubound session and bridging the inbound and oubound<br>> ><br>> >> > session. Code snippet is<br>> >> ><br>> >> > var session = new ManagedSession("{origination_caller_id_number=" +<br>> >> > callerIdNumber + ",originate_timeout=8" + "}sofia/gateway/408xxxxyyyy");<br>> >> > string outBoundUuid = session.GetVariable("uuid");<br>> >> > if (string.IsNullOrEmpty(outBoundUuid))<br>> >> > { // Log error;<br>> >> > return;<br>> >> > }<br>> >> > freeswitch.bridge(inboundSession, session);<br>> >> ><br>> >> > Also I have tried setting hangup_after_bridge=false.<br>> >> ><br>> >> > Regards<br>> >> > Srini<br>> >> ><br>> >> ><br>> >> ><br>> >> >> Date: Thu, 9 Feb 2012 18:17:45 -0600<br>> >> ><br>> >> >> From: anthony.minessale@gmail.com<br>> >> >> To: freeswitch-users@lists.freeswitch.org<br>> >> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after<br>> >> >> receiving<br>> >> >> DTMF from the Callee.<br>> >> >><br>> >> >> the obvious reason would be setting bridge_terminate_key=1<br>> >> >> but I don't know where your bridge is being started based on your<br>> >> >> description or what version of the code you are using.<br>> >> >><br>> >> >> On Thu, Feb 9, 2012 at 6:06 PM, Srini K <aksrini@hotmail.com> wrote:<br>> >> >> > Any reason that it didn't return success. Anything Iam missing it<br>> >> >> > out.<br>> >> >> ><br>> >> >> ><br>> >> >> >> Date: Thu, 9 Feb 2012 17:33:01 -0600<br>> >> >> >> From: anthony.minessale@gmail.com<br>> >> >> >> To: freeswitch-users@lists.freeswitch.org<br>> >> >> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after<br>> >> >> >> receiving<br>> >> >> >> DTMF from the Callee.<br>> >> >> ><br>> >> >> >><br>> >> >> >> bridge with input_callback and did not return success.<br>> >> >> >><br>> >> >> >> On Thu, Feb 9, 2012 at 5:28 PM, Srini K <aksrini@hotmail.com> wrote:<br>> >> >> >> > Hi,<br>> >> >> >> > I have configured FreeSWITCH to receive DTMF by<br>> >> >> >> ><br>> >> >> >> > <param name="liberal-dtmf" value="true"/><br>> >> >> >> > <variable direction="both" name="dtmf_type" value="info"/><br>> >> >> >> ><br>> >> >> >> > in both sip_profile internal and external files.<br>> >> >> >> ><br>> >> >> >> > Iam using mod managed and I have subscribed to receive DTMF<br>> >> >> >> > events.<br>> >> >> >> > I can process DTMF from Caller without any problem. When I receive<br>> >> >> >> > DTMF<br>> >> >> >> > from<br>> >> >> >> > the callee as Sip Info, I do receive the DTMF event from the<br>> >> >> >> > FreeSWITCH<br>> >> >> >> > and<br>> >> >> >> > immediately FreeSWITCH disconnects the call.<br>> >> >> >> ><br>> >> >> >> > Snapshot of the log is...<br>> >> >> >> ><br>> >> >> >> > [DEBUG] sofia.c:7229 INFO DTMF(1)<br>> >> >> >> > [DEBUG] sofia.c:7307 dispatched freeswitch event for INFO<br>> >> >> >> > [DEBUG] switch_core_session.c:875 Send signal<br>> >> >> >> > sofia/external/yyyyyyyyyy<br>> >> >> >> > [BREAK]<br>> >> >> >> > [DEBUG] switch_ivr_bridge.c:383 sofia/external/yyyyyyyyyy ended<br>> >> >> >> > call<br>> >> >> >> > via<br>> >> >> >> > DTMF<br>> >> >> >> > [DEBUG] switch_ivr_bridge.c:384 Send signal<br>> >> >> >> > sofia/external/xxxxxxxxxx@10.10.2.3 [BREAK]<br>> >> >> >> > [DEBUG] switch_ivr_bridge.c:586 BRIDGE THREAD DONE<br>> >> >> >> > [sofia/external/yyyyyyyyyy]<br>> >> >> >> ><br>> >> >> >> > Whether Iam missing anything in the config?<br>> >> >> >> ><br>> >> >> >> > Thanks in advance.<br>> >> >> >> > Srini<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > _________________________________________________________________________<br>> >> >> >> > Professional FreeSWITCH Consulting Services:<br>> >> >> >> > consulting@freeswitch.org<br>> >> >> >> > http://www.freeswitchsolutions.com<br>> >> >> >> ><br>> >> >> >> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> >> >> >> > http://www.cudatel.com<br>> >> >> >> ><br>> >> >> >> > Official FreeSWITCH Sites<br>> >> >> >> > http://www.freeswitch.org<br>> >> >> >> > http://wiki.freeswitch.org<br>> >> >> >> > http://www.cluecon.com<br>> >> >> >> ><br>> >> >> >> > FreeSWITCH-users mailing list<br>> >> >> >> > FreeSWITCH-users@lists.freeswitch.org<br>> >> >> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> >> >> >> > http://www.freeswitch.org<br>> >> >> >> ><br>> >> >> >><br>> >> >> >><br>> >> >> >><br>> >> >> >> --<br>> >> >> >> Anthony Minessale II<br>> >> >> >><br>> >> >> >> FreeSWITCH http://www.freeswitch.org/<br>> >> >> >> ClueCon http://www.cluecon.com/<br>> >> >> >> Twitter: http://twitter.com/FreeSWITCH_wire<br>> >> >> >><br>> >> >> >> AIM: anthm<br>> >> >> >> MSN:anthony_minessale@hotmail.com<br>> >> >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>> >> >> >> IRC: irc.freenode.net #freeswitch<br>> >> >> >><br>> >> >> >> FreeSWITCH Developer Conference<br>> >> >> >> sip:888@conference.freeswitch.org<br>> >> >> >> googletalk:conf+888@conference.freeswitch.org<br>> >> >> >> pstn:+19193869900<br>> >> >> >><br>> >> >> >><br>> >> >> >><br>> >> >> >> _________________________________________________________________________<br>> >> >> >> Professional FreeSWITCH Consulting Services:<br>> >> >> >> consulting@freeswitch.org<br>> >> >> >> http://www.freeswitchsolutions.com<br>> >> >> >><br>> >> >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> >> >> >> http://www.cudatel.com<br>> >> >> >><br>> >> >> >> Official FreeSWITCH Sites<br>> >> >> >> http://www.freeswitch.org<br>> >> >> >> http://wiki.freeswitch.org<br>> >> >> >> http://www.cluecon.com<br>> >> >> >><br>> >> >> >> FreeSWITCH-users mailing list<br>> >> >> >> FreeSWITCH-users@lists.freeswitch.org<br>> >> >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> >> >> >><br>> >> >> >><br>> >> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> >> >> >> http://www.freeswitch.org<br>> >> >> ><br>> >> >> ><br>> >> >> ><br>> >> >> > _________________________________________________________________________<br>> >> >> > Professional FreeSWITCH Consulting Services:<br>> >> >> > consulting@freeswitch.org<br>> >> >> > http://www.freeswitchsolutions.com<br>> >> >> ><br>> >> >> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> >> >> > http://www.cudatel.com<br>> >> >> ><br>> >> >> > Official FreeSWITCH Sites<br>> >> >> > http://www.freeswitch.org<br>> >> >> > http://wiki.freeswitch.org<br>> >> >> > http://www.cluecon.com<br>> >> >> ><br>> >> >> > FreeSWITCH-users mailing list<br>> >> >> > FreeSWITCH-users@lists.freeswitch.org<br>> >> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> >> >> ><br>> >> >> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> >> >> > http://www.freeswitch.org<br>> >> >> ><br>> >> >><br>> >> >><br>> >> >><br>> >> >> --<br>> >> >> Anthony Minessale II<br>> >> >><br>> >> >> FreeSWITCH http://www.freeswitch.org/<br>> >> >> ClueCon http://www.cluecon.com/<br>> >> >> Twitter: http://twitter.com/FreeSWITCH_wire<br>> >> >><br>> >> >> AIM: anthm<br>> >> >> MSN:anthony_minessale@hotmail.com<br>> >> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>> >> >> IRC: irc.freenode.net #freeswitch<br>> >> >><br>> >> >> FreeSWITCH Developer Conference<br>> >> >> sip:888@conference.freeswitch.org<br>> >> >> googletalk:conf+888@conference.freeswitch.org<br>> >> >> pstn:+19193869900<br>> >> >><br>> >> >><br>> >> >> _________________________________________________________________________<br>> >> >> Professional FreeSWITCH Consulting Services:<br>> >> >> consulting@freeswitch.org<br>> >> >> http://www.freeswitchsolutions.com<br>> >> >><br>> >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> >> >> http://www.cudatel.com<br>> >> >><br>> >> >> Official FreeSWITCH Sites<br>> >> >> http://www.freeswitch.org<br>> >> >> http://wiki.freeswitch.org<br>> >> >> http://www.cluecon.com<br>> >> >><br>> >> >> FreeSWITCH-users mailing list<br>> >> >> FreeSWITCH-users@lists.freeswitch.org<br>> >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> >> >><br>> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> >> >> http://www.freeswitch.org<br>> >> ><br>> >> ><br>> >> > _________________________________________________________________________<br>> >> > Professional FreeSWITCH Consulting Services:<br>> >> > consulting@freeswitch.org<br>> >> > http://www.freeswitchsolutions.com<br>> >> ><br>> >> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> >> > http://www.cudatel.com<br>> >> ><br>> >> > Official FreeSWITCH Sites<br>> >> > http://www.freeswitch.org<br>> >> > http://wiki.freeswitch.org<br>> >> > http://www.cluecon.com<br>> >> ><br>> >> > FreeSWITCH-users mailing list<br>> >> > FreeSWITCH-users@lists.freeswitch.org<br>> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> >> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> >> > http://www.freeswitch.org<br>> >> ><br>> >><br>> >><br>> >><br>> >> --<br>> >> Anthony Minessale II<br>> >><br>> >> FreeSWITCH http://www.freeswitch.org/<br>> >> ClueCon http://www.cluecon.com/<br>> >> Twitter: http://twitter.com/FreeSWITCH_wire<br>> >><br>> >> AIM: anthm<br>> >> MSN:anthony_minessale@hotmail.com<br>> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>> >> IRC: irc.freenode.net #freeswitch<br>> >><br>> >> FreeSWITCH Developer Conference<br>> >> sip:888@conference.freeswitch.org<br>> >> googletalk:conf+888@conference.freeswitch.org<br>> >> pstn:+19193869900<br>> >><br>> >> _________________________________________________________________________<br>> >> Professional FreeSWITCH Consulting Services:<br>> >> consulting@freeswitch.org<br>> >> http://www.freeswitchsolutions.com<br>> >><br>> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> >> http://www.cudatel.com<br>> >><br>> >> Official FreeSWITCH Sites<br>> >> http://www.freeswitch.org<br>> >> http://wiki.freeswitch.org<br>> >> http://www.cluecon.com<br>> >><br>> >> FreeSWITCH-users mailing list<br>> >> FreeSWITCH-users@lists.freeswitch.org<br>> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> >> http://www.freeswitch.org<br>> ><br>> > _________________________________________________________________________<br>> > Professional FreeSWITCH Consulting Services:<br>> > consulting@freeswitch.org<br>> > http://www.freeswitchsolutions.com<br>> ><br>> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> > http://www.cudatel.com<br>> ><br>> > Official FreeSWITCH Sites<br>> > http://www.freeswitch.org<br>> > http://wiki.freeswitch.org<br>> > http://www.cluecon.com<br>> ><br>> > FreeSWITCH-users mailing list<br>> > FreeSWITCH-users@lists.freeswitch.org<br>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> > http://www.freeswitch.org<br>> ><br>> <br>> <br>> <br>> -- <br>> Anthony Minessale II<br>> <br>> FreeSWITCH http://www.freeswitch.org/<br>> ClueCon http://www.cluecon.com/<br>> Twitter: http://twitter.com/FreeSWITCH_wire<br>> <br>> AIM: anthm<br>> MSN:anthony_minessale@hotmail.com<br>> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>> IRC: irc.freenode.net #freeswitch<br>> <br>> FreeSWITCH Developer Conference<br>> sip:888@conference.freeswitch.org<br>> googletalk:conf+888@conference.freeswitch.org<br>> pstn:+19193869900<br>> <br>> _________________________________________________________________________<br>> Professional FreeSWITCH Consulting Services:<br>> consulting@freeswitch.org<br>> http://www.freeswitchsolutions.com<br>> <br>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> http://www.cudatel.com<br>> <br>> Official FreeSWITCH Sites<br>> http://www.freeswitch.org<br>> http://wiki.freeswitch.org<br>> http://www.cluecon.com<br>> <br>> FreeSWITCH-users mailing list<br>> FreeSWITCH-users@lists.freeswitch.org<br>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> http://www.freeswitch.org<br></div>                                            </div></body>
</html>