[OpenSIPS-Users] error-handling a parser error
Brett Nemeroff
brett at nemeroff.com
Wed Jan 26 17:12:57 CET 2011
On Wed, Jan 26, 2011 at 10:04 AM, Jeff Pyle <jpyle at fidelityvoice.com> wrote:
> Hello,
> I'm seeing errors like these:
> /usr/local/sbin/opensips[24330]: ERROR:core:parse_uri: bad char '@' in state
> 0 parsed: <sip:> (4) / <sip:@66.xx.yy.101> (17)
> /usr/local/sbin/opensips[24330]: ERROR:core:tr_eval_uri: invalid uri
> [sip:@66.xx.yy.101]
> /usr/local/sbin/opensips[24330]: ERROR:core:do_assign: no value in right
> expression
> /usr/local/sbin/opensips[24330]: ERROR:core:do_assign: error at line: 678
> It's because a UAC is sending invalid RPID headers. When I try to parse it,
> it doesn't go so well.
> Is there a way to handle these errors somehow so that I might reply with a
> 400 Bad Request?
Jeff,
Is there a specific function call you are doing that throws that
error? If so, you may be able to enclose it in an if statement to
check for failure and return the 400.
Then again, I'm not sure that'll do anything to surpress the log messages..
-Brett
More information about the Users
mailing list