Why is my "From" address the Private IP address, not Public IP

Asterisk 20.5.2

We are connecting our Asterisk to a Cisco PBX via SIPS trunk over the Internet. My SIP headers are showing the Private IP instead of the Public IP addresses. I want the Public IP addresses to be sent instead.

<— Transmitting SIP request (1118 bytes) to TLS:64.253.174.35:5061 —>
INVITE sip:2705@:5061 SIP/2.0
Via: SIP/2.0/TLS 54.226.54.243:5061;rport;branch=z9hG4bKPjHNVcE7EFd8N1R77tmXCuhVxaQr3FEI-K;alias
From: “Eric Dailey” sip:1000@10.90.42.4;tag=OwSilvua6NmI0lham4HF.kDRlRTzxwuO
To: sip:2705@64.253.174.35
Contact: sip:asterisk@54.226.54.243:5061;transport=TLS
Call-ID: zwYc1hQqPPCo.0AmjiK-43-WLkgqtgIu
CSeq: 15412 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: PerfectServe SBC 20.5.2
Content-Type: application/sdp
Content-Length: 430

INVITE sip:2705@<Public IP of Cisco SBC>:5061 SIP/2.0
Via: SIP/2.0/TLS 54.226.54.243:5061;rport;branch=z9hG4bKPjHNVcE7EFd8N1R77tmXCuhVxaQr3FEI-K;alias
From: "Eric Dailey" <sip:1000@10.90.42.4>;tag=OwSilvua6NmI0lham4HF.kDRlRTzxwuO
To: <sip:2705@64.253.174.35>
Contact: <sip:asterisk@54.226.54.243:5061;transport=TLS>
Call-ID: zwYc1hQqPPCo.0AmjiK-43-WLkgqtgIu
CSeq: 15412 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: PerfectServe SBC 20.5.2
Content-Type: application/sdp
Content-Length:   430

But note that some of the angle brackets are meta-name markers, and some are real angle brackets!

This will happen if you don’t configure the signalling address, or if you configure the local networks to include the destination address.

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