Make domain in "To" different than the one in "From"

Hello,

I’m using asterisk 13 (with pjsip) and I want to make the R-URI same as the To but different than the From.

say in a peer to peer setup

the local domain is: domain.local (used by the From header)
the remote is: domain.remote (used in R-URI and To headers)

How to acheive this? “from_domain” inside section of type endpoint force “From” and “To” to have the same domain which I don’t want. Any suggestions please.

Regards
Narcisse

The “from_domain” doesn’t touch the To header. It is strictly for the From. The To and RURI are dependent on the SIP URI dialed, or AOR.

You need to show an actual SIP trace as well as the accompanying configuration.