Hey!

> Quickly looking through the code, I see there is no link in nathelper to tm module, so the solution is to modify nathelper code, maybe?
Yes, I also experimentally detected that sending OPTIONS probing does not depend on the TM module.

In my scenario, the upstream SIP Proxy inserts Path headers towards the Registrar. And I need to somehow force nathelper to route ping OPTIONS according to a set of Routes.
This is now achieved by setting the received_avp parameter on Registrar as the IP address of the upstream SIP Proxy, but setting this adds the received parameter to the Contact of 200 OK.
However, the address entered above is not the client's real address, and some ancient terminals do not react well to this.

REGISTER: SIP-UA -> SIP Proxy (adds Path) -> SIP Registrar (setting $avp(received) = $sut before saving aor) 
OPTIONS:   SIP Registrar (routing as per Received) -> SIP Proxy (loose_route) -> SIP-UA


вт, 28 мая 2024 г. в 10:57, Ihor Olkhovskyi via sr-users <sr-users@lists.kamailio.org>:
Denys,

Quickly looking through the code, I see there is no link in nathelper to tm module, so the solution is to modify nathelper code, maybe?

Cheers,
Ihor.

Le jeu. 16 mai 2024 à 23:06, Denys Pozniak via sr-users <sr-users@lists.kamailio.org> a écrit :
Hello!

I need advice on how to intercept local SIP OPTIONS requests from the nathelper module for some adjustments?
As far as I tested, it does not fall into the event_route[tm:local-request]

Thanks in advance!

# kamailio -v
version: kamailio 5.7.1 (x86_64/linux) 1cf389-dirty

--

BR,
Denys Pozniak


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:


--
Best regards,
Ihor (Igor)
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:


--

BR,
Denys Pozniak