Check route[NATMANAGE] in default configuration [1]. Replies are handled via branch flags.
[1] https://github.com/kamailio/kamailio/blob/dad7f3ff3af02d086c1cb3f915f1502bca...
On Mon, Feb 19, 2024 at 10:48 AM Benoit Panizzon benoit.panizzon@imp.ch wrote:
Hi Bastian
you can add a Record Route parameter to the initial INVITE [1] and for that parameter after loose_route() for in-dialog INVITE [2]
Thank you, that looks promising.
But now I face another issue with parallel branching.
On the branch route I do add_rr_param(";rtp=yes") if I need to backhaul RTP towards that $nh. I also set $avp(rtp) = 1 to engage rtpengine on transaction replies in my MANAGE_REPLY route.
check_rr_param works fine on subsequent transactions. But not on the initial one with branches.
But assume I got two parallel branches. One needs rtp backhauling, the other one does not.
How can I, within my MANAGE_REPLY route, figure out, if I am processing a reply which needs backhauling or not?
Mit freundlichen Grüssen
-Benoît Panizzon-
I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________