[SR-Users] Diversion Header & Header management - $hdrc

Brandon Armstead brandon at cryy.com
Tue Mar 8 00:41:31 CET 2022


Thanks for your time in advance!

When dealing with multiple headers in different formats, i.e.

Diversion: <sip:foo>, <sip:bar>

$hdrc(Diversion) returns 1 header instead of 2.  Is this expected
behavior?  What is the best way to manage all scenarios of possible
multiple header values?  It seems currently there is no easy way to iterate
over ALL diversion headers, including scenarios like the following below:

Diversion: <sip:abc>

or

Diversion: <sip:abc>, <sip:def>

or

Diversion: <sip:abc>
Diversion: <sip:def>, <sip:ghi>

etc.

- Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220307/0902588d/attachment.htm>


More information about the sr-users mailing list