Hello List,

i search for the right place in kamailio to manipulate the dispatcher OPTIONS packets to add an Contact header.

For uac generated traffic i can use the event_route[tm:local-request] from the tm module.
But how can i manipulate kamailio *self* generated OPTION pings from the dispatcher?

OPTIONS request for MS Teams must contain the Contact header of such a format:
Contact: <sip:SBC_FQDN:5061;transport=tls>

I follow this guide (for opensips) and try to adapt that step by step to kamailio:

https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/  
 
CentOS 7 / kamailio 5.2.x (and maybe soon 5.3.x) / rtpengine
--
Cheers
*Karsten Horsmann*