[SR-Users] Help to overwrite the $od, or another solution

Victor Velo victor.velo at yahoo.ca
Fri May 14 20:49:36 CEST 2021


Hello,
I'm facing to some challenge in my learning process and using Kamalio as MS Teams SBC,
the request I receive from MS Teams seems to be correct but I need to overwrite the Original Domain, which is the FQDN of Kamailio itself, to another domain name:
INVITE sip:+15142144069 at dev-sbc.openfabrik.com:5061;user=phone;transport=tls SIP/2.0Record-Route: <sip:155.138.140.233;r2=on;lr=on;ftag=3e2ca0c5d0da4335b121f205a6f20541>Record-Route: <sip:155.138.140.233:5061;transport=tls;r2=on;lr=on;ftag=3e2ca0c5d0da4335b121f205a6f20541>FROM: Victor Velo<sip:+14507001777 at sip.pstnhub.microsoft.com:5061;user=phone>;tag=3e2ca0c5d0da4335b121f205a6f20541TO: <sip:+15142144069 at dev-sbc.openfabrik.com:5061;user=phone>
rewrite to:
INVITE sip:+15142144069 at dev-sbc.openfabrik.com:5061;user=phone;transport=tls SIP/2.0Record-Route: <sip:155.138.140.233;r2=on;lr=on;ftag=3e2ca0c5d0da4335b121f205a6f20541>Record-Route: <sip:155.138.140.233:5061;transport=tls;r2=on;lr=on;ftag=3e2ca0c5d0da4335b121f205a6f20541>FROM: Victor Velo<sip:+14507001777 at sip.pstnhub.microsoft.com:5061;user=phone>;tag=3e2ca0c5d0da4335b121f205a6f20541TO: <sip:+15142144069 at dev.myinternaldomain.openfabrik.com:5061;user=phone>
What would the best why to achieve this rewriting? 
Thanks,
Victor


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210514/2ccf2cf4/attachment.htm>


More information about the sr-users mailing list