[SR-Users] Diversion headers access and message too long error

Daniel Tryba d.tryba at pocos.nl
Tue Oct 30 10:30:07 CET 2018


On Mon, Oct 29, 2018 at 05:27:27PM +0100, Joan Salvatella wrote:
> On this setup we are facing 2 issues:
>    - *Diversion headers access: *Currently, Kamailio only supports access
>    to the last diversion header but since we are receiving traffic from Twilio
>    (it sets the last Diversion header) we are unable to see if the caller was
>    diverted to our SIP trunk. Is there a workaround for this? Any external
>    module that would support this use case?

You mean $di points to last Diversion header?
You can access nth header with same name with
$(hdr(name)[n])

See
https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#hdr_name_-_headers
 



More information about the sr-users mailing list