[sr-dev] Parsing list of headers

Ionut Razvan Ionita ionut-razvan.ionita at 1and1.ro
Thu Jul 25 17:44:44 CEST 2019


Hello all,


I am trying to implement RFC 7544 in kamailio.cfg, more specifically to transform Diversion header into History-Info. To do this I need to iterate over all Diversion headers and be able to get all the parameters from it. At first I discovered $di core variable, but I can access only the first header with it. I discovered kamailio selectors but I can't index them with a variable. I came to the point where I want to implement variable indexing to selectors but after I saw this API is quite complex I thought to ask here if there's any other solution to do this?!


Thanks,

Ionut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190725/3b73945b/attachment.html>


More information about the sr-dev mailing list