[Freeswitch-users] FreeSWITCH ends the calls after receiving DTMF from the Callee.

Anthony Minessale anthony.minessale at gmail.com
Sat Feb 11 07:16:03 MSK 2012


This illustrates that something in your code or something close to it is
setting the input callback.  Maybe a lib you are using on top of managed?
On Feb 10, 2012 7:21 PM, "Srini K" <aksrini at hotmail.com> wrote:

>  Anthony,
> I do see the two prints as...
>
> [CRIT] switch_cpp.cpp:697 ASSIGN INPUT CALLBACK 003F2559
> [CRIT] switch_cpp.cpp:1274 BRIDGE input callback func: 003F2559
>
> Complete debug log is attached and I have highlighted them.
> http://pastebin.freeswitch.org/18362
>
> Thanks
> Srini
>
> Date: Fri, 10 Feb 2012 17:46:13 -0600
> From: anthony.minessale at gmail.com
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after receiving
> DTMF from the Callee.
>
> Try this patch to print more debug info.
>
> It seems somewhere in the managed code something is assigning an input
> callback and its being executed and returns false which makes the call
> end.
>
> On Fri, Feb 10, 2012 at 2:13 PM, Srini K <aksrini at hotmail.com> wrote:
> >
> > The Lua script works fine. No problem in capturing the DTMF from both the
> > call legs.
> >
> > Only in Mod_Managed I  have issue. Its simple 3 lines of code nothing
> > fancy...
> >
> > public void Run(AppContext context) {
> >  context.Session.Answer();
> >  var newSession = new ManagedSession("sofia/gateway/foo/callenumber");
> >  freeswitch.bridge(newSession, context.Session);
> > }
> >
> > FreeSWITCH version is
> >  FreeSWITCH Version 1.0.head (git-f477404 2012-02-09 11-08-52 -0600)
> >
> > Thanks
> > Srini
> >> Date: Fri, 10 Feb 2012 12:32:03 -0600
> >
> >> From: anthony.minessale at gmail.com
> >> To: freeswitch-users at lists.freeswitch.org
> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after receiving
> >> DTMF from the Callee.
> >>
> >> I tried this lua script which should be the same thing:
> >>
> >> b_leg = freeswitch.Session("sofia/internal/foo at bar.com", session);
> >> freeswitch.bridge(session, b_leg);
> >>
> >> See if you get the same problem running this lua code, I was passing dtmf
> >> fine.
> >>
> >>
> >> Internally, the code should not even use a callback capable of ending
> >> the call as you described unless your program has an input callback of
> >> dtmf handler function.
> >>
> >>
> >> Also make sure you are on a recent build of FS.
> >>
> >>
> >>
> >> On Fri, Feb 10, 2012 at 12:21 PM, Srini K <aksrini at hotmail.com> wrote:
> >> > Anthony,
> >> > Thanks for your response.
> >> > I have not defined any of these input_callback or dtmf_callback.
> >> >
> >> > I have attached the log with debug level.
> >> > http://pastebin.freeswitch.org/18360
> >> >
> >> > Thanks in advance.
> >> >
> >> > Regards
> >> > Srini
> >> >
> >> >
> >> >
> >> >> Date: Thu, 9 Feb 2012 19:06:39 -0600
> >> >
> >> >> From: anthony.minessale at gmail.com
> >> >> To: freeswitch-users at lists.freeswitch.org
> >> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after
> >> >> receiving
> >> >> DTMF from the Callee.
> >> >>
> >> >> do you have input_callback or dtmf_callback or anything defined?
> >> >>
> >> >> On Thu, Feb 9, 2012 at 6:37 PM, Srini K <aksrini at hotmail.com> wrote:
> >> >> > Iam using the latest FreeSWITCh version (updated today morning).
> >> >> >
> >> >> > FS terminates on receiving any DTMF digits from the callee. I have
> >> >> > not
> >> >> > set
> >> >> > bridge_terminate_key.
> >> >> >
> >> >> > I have created an oubound session and bridging the inbound and
> >> >> > oubound
> >> >
> >> >> > session. Code snippet is
> >> >> >
> >> >> > var session = new ManagedSession("{origination_caller_id_number=" +
> >> >> > callerIdNumber + ",originate_timeout=8" +
> >> >> > "}sofia/gateway/408xxxxyyyy");
> >> >> > string outBoundUuid = session.GetVariable("uuid");
> >> >> > if (string.IsNullOrEmpty(outBoundUuid))
> >> >> > { // Log error;
> >> >> >     return;
> >> >> > }
> >> >> > freeswitch.bridge(inboundSession, session);
> >> >> >
> >> >> > Also I have tried setting hangup_after_bridge=false.
> >> >> >
> >> >> > Regards
> >> >> > Srini
> >> >> >
> >> >> >
> >> >> >
> >> >> >> Date: Thu, 9 Feb 2012 18:17:45 -0600
> >> >> >
> >> >> >> From: anthony.minessale at gmail.com
> >> >> >> To: freeswitch-users at lists.freeswitch.org
> >> >> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after
> >> >> >> receiving
> >> >> >> DTMF from the Callee.
> >> >> >>
> >> >> >> the obvious reason would be setting bridge_terminate_key=1
> >> >> >> but I don't know where your bridge is being started based on your
> >> >> >> description or what version of the code you are using.
> >> >> >>
> >> >> >> On Thu, Feb 9, 2012 at 6:06 PM, Srini K <aksrini at hotmail.com> wrote:
> >> >> >> > Any reason that it didn't return success. Anything Iam missing it
> >> >> >> > out.
> >> >> >> >
> >> >> >> >
> >> >> >> >> Date: Thu, 9 Feb 2012 17:33:01 -0600
> >> >> >> >> From: anthony.minessale at gmail.com
> >> >> >> >> To: freeswitch-users at lists.freeswitch.org
> >> >> >> >> Subject: Re: [Freeswitch-users] FreeSWITCH ends the calls after
> >> >> >> >> receiving
> >> >> >> >> DTMF from the Callee.
> >> >> >> >
> >> >> >> >>
> >> >> >> >> bridge with input_callback and did not return success.
> >> >> >> >>
> >> >> >> >> On Thu, Feb 9, 2012 at 5:28 PM, Srini K <aksrini at hotmail.com>
> >> >> >> >> wrote:
> >> >> >> >> > Hi,
> >> >> >> >> > I have configured FreeSWITCH to receive DTMF by
> >> >> >> >> >
> >> >> >> >> > <param name="liberal-dtmf" value="true"/>
> >> >> >> >> > <variable direction="both" name="dtmf_type" value="info"/>
> >> >> >> >> >
> >> >> >> >> > in both sip_profile internal and external files.
> >> >> >> >> >
> >> >> >> >> > Iam using mod managed and I have subscribed to receive DTMF
> >> >> >> >> > events.
> >> >> >> >> > I can process DTMF from Caller without any problem. When I
> >> >> >> >> > receive
> >> >> >> >> > DTMF
> >> >> >> >> > from
> >> >> >> >> > the callee as Sip Info, I do receive the DTMF event from the
> >> >> >> >> > FreeSWITCH
> >> >> >> >> > and
> >> >> >> >> > immediately FreeSWITCH disconnects the call.
> >> >> >> >> >
> >> >> >> >> > Snapshot of the log is...
> >> >> >> >> >
> >> >> >> >> > [DEBUG] sofia.c:7229 INFO DTMF(1)
> >> >> >> >> > [DEBUG] sofia.c:7307 dispatched freeswitch event for INFO
> >> >> >> >> > [DEBUG] switch_core_session.c:875 Send signal
> >> >> >> >> > sofia/external/yyyyyyyyyy
> >> >> >> >> > [BREAK]
> >> >> >> >> > [DEBUG] switch_ivr_bridge.c:383 sofia/external/yyyyyyyyyy ended
> >> >> >> >> > call
> >> >> >> >> > via
> >> >> >> >> > DTMF
> >> >> >> >> > [DEBUG] switch_ivr_bridge.c:384 Send signal
> >> >> >> >> > sofia/external/xxxxxxxxxx at 10.10.2.3 [BREAK]
> >> >> >> >> > [DEBUG] switch_ivr_bridge.c:586 BRIDGE THREAD DONE
> >> >> >> >> > [sofia/external/yyyyyyyyyy]
> >> >> >> >> >
> >> >> >> >> > Whether Iam missing anything in the config?
> >> >> >> >> >
> >> >> >> >> > Thanks in advance.
> >> >> >> >> > Srini
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > _________________________________________________________________________
> >> >> >> >> > Professional FreeSWITCH Consulting Services:
> >> >> >> >> > consulting at freeswitch.org
> >> >> >> >> > http://www.freeswitchsolutions.com
> >> >> >> >> >
> >> >> >> >> > 
> >> >> >> >> > 
> >> >> >> >> >
> >> >> >> >> > Official FreeSWITCH Sites
> >> >> >> >> > http://www.freeswitch.org
> >> >> >> >> > http://wiki.freeswitch.org
> >> >> >> >> > http://www.cluecon.com
> >> >> >> >> >
> >> >> >> >> > 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
> >> >> >> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> >> >> >> >> IRC: irc.freenode.net #freeswitch
> >> >> >> >>
> >> >> >> >> FreeSWITCH Developer Conference
> >> >> >> >> sip:888 at conference.freeswitch.org
> >> >> >> >> googletalk:conf+888 at conference.freeswitch.org
> >> >> >> >> pstn:+19193869900
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> _________________________________________________________________________
> >> >> >> >> Professional FreeSWITCH Consulting Services:
> >> >> >> >> consulting at freeswitch.org
> >> >> >> >> http://www.freeswitchsolutions.com
> >> >> >> >>
> >> >> >> >> 
> >> >> >> >> 
> >> >> >> >>
> >> >> >> >> Official FreeSWITCH Sites
> >> >> >> >> http://www.freeswitch.org
> >> >> >> >> http://wiki.freeswitch.org
> >> >> >> >> http://www.cluecon.com
> >> >> >> >>
> >> >> >> >> 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
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > _________________________________________________________________________
> >> >> >> > Professional FreeSWITCH Consulting Services:
> >> >> >> > consulting at freeswitch.org
> >> >> >> > http://www.freeswitchsolutions.com
> >> >> >> >
> >> >> >> > 
> >> >> >> > 
> >> >> >> >
> >> >> >> > Official FreeSWITCH Sites
> >> >> >> > http://www.freeswitch.org
> >> >> >> > http://wiki.freeswitch.org
> >> >> >> > http://www.cluecon.com
> >> >> >> >
> >> >> >> > 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
> >> >> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> >> >> >> IRC: irc.freenode.net #freeswitch
> >> >> >>
> >> >> >> FreeSWITCH Developer Conference
> >> >> >> sip:888 at conference.freeswitch.org
> >> >> >> googletalk:conf+888 at conference.freeswitch.org
> >> >> >> pstn:+19193869900
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> _________________________________________________________________________
> >> >> >> Professional FreeSWITCH Consulting Services:
> >> >> >> consulting at freeswitch.org
> >> >> >> http://www.freeswitchsolutions.com
> >> >> >>
> >> >> >> 
> >> >> >> 
> >> >> >>
> >> >> >> Official FreeSWITCH Sites
> >> >> >> http://www.freeswitch.org
> >> >> >> http://wiki.freeswitch.org
> >> >> >> http://www.cluecon.com
> >> >> >>
> >> >> >> 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
> >> >> >
> >> >> >
> >> >> >
> >> >> > _________________________________________________________________________
> >> >> > Professional FreeSWITCH Consulting Services:
> >> >> > consulting at freeswitch.org
> >> >> > http://www.freeswitchsolutions.com
> >> >> >
> >> >> > 
> >> >> > 
> >> >> >
> >> >> > Official FreeSWITCH Sites
> >> >> > http://www.freeswitch.org
> >> >> > http://wiki.freeswitch.org
> >> >> > http://www.cluecon.com
> >> >> >
> >> >> > 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
> >> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> >> >> IRC: irc.freenode.net #freeswitch
> >> >>
> >> >> FreeSWITCH Developer Conference
> >> >> sip:888 at conference.freeswitch.org
> >> >> googletalk:conf+888 at conference.freeswitch.org
> >> >> pstn:+19193869900
> >> >>
> >> >>
> >> >> _________________________________________________________________________
> >> >> Professional FreeSWITCH Consulting Services:
> >> >> consulting at freeswitch.org
> >> >> http://www.freeswitchsolutions.com
> >> >>
> >> >> 
> >> >> 
> >> >>
> >> >> Official FreeSWITCH Sites
> >> >> http://www.freeswitch.org
> >> >> http://wiki.freeswitch.org
> >> >> http://www.cluecon.com
> >> >>
> >> >> 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
> >> >
> >> >
> >> > _________________________________________________________________________
> >> > Professional FreeSWITCH Consulting Services:
> >> > consulting at freeswitch.org
> >> > http://www.freeswitchsolutions.com
> >> >
> >> > 
> >> > 
> >> >
> >> > Official FreeSWITCH Sites
> >> > http://www.freeswitch.org
> >> > http://wiki.freeswitch.org
> >> > http://www.cluecon.com
> >> >
> >> > 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
> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> >> IRC: irc.freenode.net #freeswitch
> >>
> >> FreeSWITCH Developer Conference
> >> sip:888 at conference.freeswitch.org
> >> googletalk:conf+888 at conference.freeswitch.org
> >> pstn:+19193869900
> >>
> >> _________________________________________________________________________
> >> Professional FreeSWITCH Consulting Services:
> >> consulting at freeswitch.org
> >> http://www.freeswitchsolutions.com
> >>
> >> 
> >> 
> >>
> >> Official FreeSWITCH Sites
> >> http://www.freeswitch.org
> >> http://wiki.freeswitch.org
> >> http://www.cluecon.com
> >>
> >> 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
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > 
> > 
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> >
> > 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
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.org
> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel
> Communication Server  Official FreeSWITCH Sites
> http://www.freeswitch.org http://wiki.freeswitch.org
> http://www.cluecon.com 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
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120210/d8ebecd7/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list