[Kamailio-Users] A function to add uri/header parameters

Iñaki Baz Castillo ibc at aliax.net
Sun Aug 10 19:29:47 CEST 2008


El Domingo, 10 de Agosto de 2008, Iñaki Baz Castillo escribió:
>   search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes');

4) An **always** present bug in any openser.cfg: The URI protocol is also case 
insensitive, so it could be "sip", "SIP", "Sip"... (also the above code 
doesn't match "sips" protocol).

In any openser.cfg the RURI is matched using:
  if $ru == "^sip:0034[0-9]+@"

This contains the same problem as above explained.


PD: I'd like to know how much interest exists to make OpenSer/Kamailio as more 
RFC compliant as possible. Well, I'm the first thinking that RFC 3261 is a 
pain because it's too much permissive (lowcase is enough in 99% of cases and 
easier to code, why 99% of the SIP BNF allows case insensitive?, why painful 
line-folding? why so many MAY instead of MUST?). Anyway RFC3261 (and much 
more RFC's) is what we have. Is OpenSer target to be super RFC compliant even 
if it looses performance?


Thanks.

-- 
Iñaki Baz Castillo




More information about the sr-users mailing list