[sr-dev] Contact parameter parsing broken?

Peter Dunkley peter.dunkley at crocodile-rcs.com
Tue Jan 1 21:02:16 CET 2013


Hi,

When working on the outbound support I noticed that this Contact header
(as per RFC 5626):

Contact:
<sip:foo at 192.168.1.18:5061>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-1000-8000-AABBCCDDEEFF>"

does not get parsed properly (specifically, the param_hooks_t.hooks.reg_id
is not filled in by parse_params()).

However, some investigation showed that:

Contact:
<sip:foo at 192.168.1.18:5061;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-1000-8000-AABBCCDDEEFF>">

It looks like Kamailio is treating reg-id (and probably +sip.instance)
parameters as Contact-URI parameters instead of Contact header parameters.

Regards,

Peter
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd






More information about the sr-dev mailing list