you can add a Record Route parameter to the initial INVITE [1] and for that parameter after loose_route() for in-dialog INVITE [2]
[1] https://www.kamailio.org/docs/modules/5.5.x/modules/rr.html#rr.f.add_rr_param [2] https://www.kamailio.org/docs/modules/5.5.x/modules/rr.html#rr.f.check_route_param On Fri, Feb 16, 2024 at 4:25 PM Benoît Panizzon via sr-users < [email protected]> wrote: > Hi > > I have come across this challenge: > > Initial invite (no to_tag) has is authenticated and has credentials. So > a lookup for the username is made to determine if the customer needs > backhauling, thus rtpengine needs to be engaged. > > On a subsequent invite (re-invite to change codec or to refresh > session timer) there is a to_tag so it is being routed without sending > a challenge and has no auth username. > > I don't use dialog on the registrar. This is another transaction. So I > don't know, if I need to engage rtpengine on that DSP or not. > > What is the best way to find out, if rtpengine is already handling that > callid? > > if(rtpengine_query_v("j", "$var(dummy)")) { > rtpengine_manage(); > } > > basically works, but generates a couple of ugly error messages in the > log as rtpengine_query_v does not find the call. > > Is there a nicer way? > > -- > Mit freundlichen Grüssen > > -Benoît Panizzon- @ HomeOffice und normal erreichbar > -- > 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 > ______________________________________________________ > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: >
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
