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 <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> 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 > _______________________________________________ Devel mailing list Devel@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/devel