[SR-Users] sanity from uri check

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 15 18:37:56 CET 2022

The SIP parser was designed on purpose to be loosely in order to be able
to fix broken SIP traffic. Without this "feature", making the parser
very strict and dropping the traffic, Kamailio won't be that useful. I
have been

But there are config functions in textops, siputils, ... or regexp
options to be as stricter as you want.

Not the author, but the sanity module seems also designed around the
format, not the content of the parts, relying mainly on parser.


On 15.03.22 16:42, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>> Strange! The next log message indicates that it gets to From URI check:
>> Mar 15 14:58:42 /usr/bin/sip-proxy[3043875]: DEBUG: sanity [sanity.c:776]: check_parse_uris(): looking up From header
>> But for what so ever reason is not triggering a failure, it needs to dig
>> in ...
> I made another test, this time with From URI sip:^@
> and that too was accepted, although ^ character is not allowed in
> user field:
> INFO: OPTIONS <sip:test at test.tutpro.com> from <sip:^@> is OK
> -- Juha

Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/

More information about the sr-users mailing list