[OpenSER-Devel] Crash related to msg parser

Daniel Corbe daniel.junkmail at gmail.com
Mon Dec 10 19:47:12 UTC 2007


After looking a little closer, it's parse_to_uri which is failing.  not
parse_from*
-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/cb4b4bd9/attachment.htm 


More information about the Devel mailing list