On 5/14/21 2:49 PM, Victor Velo wrote:
Hello,
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:
TO: sip:+15142144069@*dev-sbc.openfabrik.com:5061*;user=phone
rewrite to: TO: sip:+15142144069@*dev.myinternaldomain.openfabrik.com*:5061;user=phone
What would the best why to achieve this rewriting?
Take a look at UAC module: https://www.kamailio.org/docs/modules/stable/modules/uac.html
In your case: uac_replace_to_uri
You can also use replace_all within textops: https://www.kamailio.org/docs/modules/stable/modules/textops.html