Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17422

Freepbx is not using public IP in requests

$
0
0

I have an issue with my Freepbx install where it is not detecting external addresses and using the public IP. It is putting the private IP in all headers which, as you can imagine is breaking things quite badly.

Strangely, the public IP is in the SDP component of an INVITE, but the headers all show local IPs. Here is a sample header.

[17:18:46.209] RX from 13.75.xxx.xxx:5060:
INVITE sip:102@202.90.xxx.xxx:56176;user=phone;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 10.1.0.4:5060;rport;branch=z9hG4bKPj65f510ae-e8fc-4af5-9ad8-d8681ff83059;alias
From: “Mark Dutton” sip:101@10.1.0.4;user=phone;tag=40ff7e84-a9db-41cd-8802-acfc29a2346b
To: sip:102@202.90.xxx.xxx;user=phone
Contact: sip:asterisk@10.1.0.4:5060;transport=TCP
Call-ID: 1f2583f1-78d2-4c7f-a601-5f6505b76caf
CSeq: 14696 INVITE
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, INFO, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: “Mark Dutton” sip:101@10.1.0.4;user=phone
Max-Forwards: 70
User-Agent: FPBX-17.0.19.23(21.4.1)
Content-Type: application/sdp
Content-Length: 337

I have the correct external IP configured in the settings | Asterisk SIP settings page on the general SIP settings tab. I have also tested in the specific locations within the Sip settings (PJSIP) tab. I only use TCP and TLS SIP.

Here is a (sanitized) snippet of the general tab.

I am at a loss now. I cannot see any specific use NAT, as I have in some other Asterisk UIs, so I assume that it is implicitly set when the correct information is supplied.

This is running on an Azure instance. I have disabled systemd-networkd and I am using ifupdown to keep the network management side happy.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 17422

Trending Articles