[Freeswitch-users] XML CDR Causes B Leg Hang
Wesley Akio
wesleyakio at tuntscorp.com
Thu Apr 19 15:33:20 MSD 2012
Out of curiosity, what happens to the physical interface if that channel is
tied to a hardware card(T1, E1)?
What if a call comes in while the channel is reporting?
On Wed, Apr 18, 2012 at 11:29 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> What is actually happening is the CDR state CS_REPORTING comes after
> the channel is hung up.
> The session is executing the post in its independent thread and it
> will remain in existence until the cdr post is complete.
> I think if it fails, it writes it to disk for a backup.
>
>
>
>
> On Wed, Apr 18, 2012 at 10:48 AM, Barnaby Ritchley
> <barnyritchley at hotmail.com> wrote:
> > Sure.
> >
> > My reason for the note was that we were trying to debug "stuck" b-leg
> channels and couldnt figure out what was causing the problem. SIP traces
> etc showed everything was fine, and it was a process of elimination that
> led us to the answer.
> >
> > As this script was triggered via the XML CDR module, we were of the
> opinion that when the CDR was POSTed to the HTTP/S script that this was
> dial plan independant - IE that the dial plan would not hang waiting for
> the CDR script to complete, or if this did cause the dial plan to hang, we
> would not expect to see a channel open.
> >
> > Hopefully this will help someone else who comes accross the same
> problem. I am of the opinion that nothing in FS needs to be changed, just
> some explanation added to the Wiki. I would do this myself, but thought it
> best left to someone who can use one word, where i would use 100 ;)
> >
> > Brgds
> >
> > On 18 Apr 2012, at 16:38, Anthony Minessale wrote:
> >
> >> However it's not really hurting anything since that leg is independent
> >> and getting the CDR processed is hight priority to most people.
> >> This is why I prefer to use mod_xml_cdr to write to disk where it's
> >> safe then use another program to sort and deliver them to a remote
> >> location.
> >>
> >>
> >> On Tue, Apr 17, 2012 at 3:10 PM, Michael Collins <msc at freeswitch.org>
> wrote:
> >>> Thanks for chiming in on this one. If you haven't already updated the
> wiki
> >>> we'll conscript someone to do it tomorrow on our conference call.
> >>> -MC
> >>>
> >>>
> >>> On Tue, Apr 17, 2012 at 6:46 AM, Barnaby Ritchley
> >>> <barnyritchley at hotmail.com> wrote:
> >>>>
> >>>> Hi Guys
> >>>>
> >>>> Just found that when using XML CDR module, if the script that is
> called
> >>>> hangs, this will also hang the b-leg. We had a situation where we
> were
> >>>> sending CDR data to humbuglabs and because their server was responding
> >>>> slowly, and in some cases not at all, this was causing b legs in
> >>>> freeswitch
> >>>> to hang.
> >>>>
> >>>> we added a timeout to the curl post to humbug which has solved the
> issue.
> >>>>
> >>>> More of a note to be added in to the wiki for others for future.
> >>>>
> >>>> Cheers
> >>>>
> >>>>
> >>>>
> _________________________________________________________________________
> >>>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120419/e9778895/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list