How to change the header of TO before sending?


I am trying to set up two PBXs.
One calls, the other takes the call.

I need the SIP_HEADER (TO) header to go to the second PBX as +77772646363 "<sip: 77470952916@ 5060>

so far I only get this <sip: 77470952916@ 5060>

How can I insert the data I need into the SIP_HEADER (TO) header on the first PBX (from which the call is made)?

I don’t believe Asterisk allows you to set the request user name (for human consumption) to be different from the SIP user, for machine processing. I seem to remember that chan_sip allows setting the SIP user for the TO differently from that in the request URI, but I’m not sure how it handles the human readable part. I’m not convinced that chan_pjsip allows even this.

Why is the second PBX abusing the human readable part of the To: header?

Asterisk is basically a circuit switched PABX with VoIP bolted on, and people simply do not dial human readable called party names with traditional systems, so they have no capability to handle this.

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