[OpenSIPS-Users] error-handling a parser error

Vallimamod ABDULLAH vallimamod.abdullah at imtelecom.fr
Wed Jan 26 17:14:56 CET 2011


On Jan 26, 2011, at 5:04 PM, Jeff Pyle 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?

Have you tried to use error_route ? 
Have a look at http://www.opensips.org/Resources/DocsCoreRoutes#toc5

Regards,
Vallimamod Abdullah
.




More information about the Users mailing list