Can you modify the INVITE URI without modifying the To URI?

Is there a way of adding a routing prefix to the SIP INVITE URI so that it’s not included in the To URI? So that for example you would end up with the following lines in the SIP invite:

INVITE sip:[PREFIX]+441234567890@ SIP/2.0.
To: <sip:+441234567890@>.


Which channel driver are you referring to? I don’t believe chan_pjsip does, but do not remember about chan_sip.

This would be for chan_sip.

Looking at some old source code, you can put an ! at the end of the dialstring, followed by either the To: user part or the To: user@domain string.

1 Like

Wow - I can’t believe that works! Thanks so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.