[SR-Users] use append_hf() and remove_hf() on the same message

Camille Oudot camille.oudot at orange.com
Tue Nov 5 16:49:35 CET 2013


Le Tue, 5 Nov 2013 14:53:34 +0100,
Daniel-Constantin Mierla <miconda at gmail.com> a écrit :

> Even if the header is not present, insert/append_hf() should not fail

Ok I assumed wrong. The issue looks trickier: I've made tests that go
OK or KO depending on a harmless looking cfg change. In the KO
situation, a Path header is set depending on a !ifdef directive + if
condition, while in the OK case, it's inserted without condition.

After the Path hdr insertion, three other headers are appended.

In the KO log, on line 3508, there are only three append_hf while in
the OK log, there are four (line 3408).

The network traces show that the Require header is not inserted as
requested in the cfg.

Update: adding a dummy xlog line on line 22 of kamailio.ko.cfg makes it
work: the Require header is inserted but the log line is not printed.

Regards,

-- 
Camille
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.ko.cfg
Type: application/octet-stream
Size: 1864 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/7a153685/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.ko.log.gz
Type: application/x-gzip
Size: 4705 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/7a153685/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.ok.cfg
Type: application/octet-stream
Size: 1244 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/7a153685/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.ok.log.gz
Type: application/x-gzip
Size: 4631 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/7a153685/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: register.ko.pcap.gz
Type: application/x-gzip
Size: 1300 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/7a153685/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: register.ok.pcap.gz
Type: application/x-gzip
Size: 1350 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/7a153685/attachment-0003.bin>


More information about the sr-users mailing list