[OpenSER-Devel] Crash related to msg parser

Daniel Corbe daniel.junkmail at gmail.com
Mon Dec 10 17:48:27 UTC 2007


I get no error messgaes with debug=7
Is there a difference with the way the msg parser works with a sip MSG
destined for the OpenSER box vs destined for some other box?

Is there a way to ensure that the entire message is parsed every single time
through OpenSER?

-Daniel



On Dec 10, 2007 8:02 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:

> Hi Daniel,
>
> have you tried to use parse_from_header() to see what result you get? do
> you get any err messages?
>
> regards,
> bogdan
>
> Daniel Corbe wrote:
> >
> > Here's a code snippet.  parse_from_uri and parse_to_uri keep returning
> > NULL.  :(
> >
> >
> > if ((from = parse_from_uri(m)) == NULL)
> >
> > {
> >
> > LOG(L_ERR, "Could not parse From: header\n" );
> >
> > return( 0);
> >
> > }
> >
> > if ((to = parse_to_uri(m)) == NULL)
> >
> > {
> >
> > LOG(L_ERR, "Could not parse From: header\n" );
> >
> > return( 0);
> >
> > }
> >
> >
> >  0(11384) Processing request PAGE!
> >  0(11384) Could not parse From: header
> >  0(11384) Processing request PAGE!
> >  0(11384) Could not parse From: header
> >  0(11384) Processing request PAGE!
> >  0(11384) Could not parse From: header
> >  0(11384) Processing request PAGE!
> >  0(11384) Could not parse From: header
> >
> > On Dec 7, 2007 1:31 PM, Daniel Corbe <daniel.junkmail at gmail.com
> > <mailto:daniel.junkmail at gmail.com>> wrote:
> >
> >     One of my modules is crashing when receiving an INVITE from a
> >     polycom phone.  It only happens with this particular phone, and
> >     I'm not sure why.  I washed it through GDB and I discovered that
> >     m->from->name.s points to an invalid address, which leads me to
> >     believe the message parser didn't get around to parsing the From:
> >     header.
> >
> >     Is this common?  Is there a work around, or a function I can call
> >     within my module to ensure that the incoming SIP message has been
> >     fully parsed?
> >
> >
> >     Thank you for your assistance.
> >
> >     -Daniel
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openser.org/pipermail/devel/attachments/20071210/f80764fe/attachment.htm 


More information about the Devel mailing list