Check out the  t_save_lumps() function, which should solve your problem.

https://kamailio.org/docs/modules/5.3.x/modules/tm.html#tm.f.t_save_lumps

On Fri, May 29, 2020 at 11:12 AM Володимир Іванець <volodyaivan...@gmail.com>
wrote:

> Hello!
>
> I'm having interesting behavior and wanted to ask if someone knows if this
> is correct or not. Kamailio v5.3.3. is used.
>
> Asterisk sends INVITE to Kamailio. Kamailio performs lookup. Some contacts
> require Record-Route and Via headers adjustments before sending out
> INVITEs. I use functions *record_route_preset* and
> *set_advertised_address* in the branch_route.
>
> Everything works as expected when branch 0 does not require changes. But
> when it does, changes are applied to all other branches as well.
>
> Is it by design or it's a bug?
>
> Thank you!
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to