[SR-Users] Include parameters in replies

Duarte Rocha duarterocha91 at gmail.com
Fri Sep 21 13:11:53 CEST 2018


Greetings,

I need to to include some routing information (Two Id's, example
"id_in=10;id_out=72") to be read later by Kamailio in every Request (Except
the first one and in every Reply.

For the requests, i'm including this info as parameters in the Record-Route
and i'm reading it later in the Route Headers.

For replies i thought about using the Via header. I'm using subst_hf() and
i'm having success adding the parameter to Via in the requests. However, it
does not seem the best idea since i breake the routing when i add the
parameter.

I wanted to avoid using custom headers for this since i can't really be
sure that they won't be erased by any client's CPE or endpoint.

Any ideas on this ?

Thanks

Cheers,

Duarte Rocha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180921/adedefd7/attachment.html>


More information about the sr-users mailing list