With PJSIP extensions and High Availabilty, From, Via and Contact headers don't contain floating IP

When calling a PJSIP extension from another PJSIP extensions on my FreePBX High Availability system, I noticed that the Invite that the server sends to the called party contains the IP address of the active server in the Via, From and Contact headers, instead of the HA cluster floating IP.

Options and Notify messages also don’t contain the floating IP, but the active server IP.
This is not happening in ChanSIP.

I am wondering if I missed a specific configuration, but according to @xrobau, all I need to do is enable binding of the interface in PJSIP settings by turning on Advanced Settings.

The floating IP of my HA cluster is 10.1.1.178, the IP of the active server is 10.1.1.176.
As you can see further down below, in the Invite sent to the called party (extension 5454), contains 10.1.1.176 in the Via, From and Contact headers, instead of the floating IP (10.1.1.178).

<--- Received SIP request (858 bytes) from UDP:10.124.193.26:5160 --->
INVITE sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.124.193.26:5160;branch=z9hG4bK1854564294
From: "5314" <sip:[email protected]:5160>;tag=2339008074
To: <sip:[email protected]:5160>
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: <sip:[email protected]:5160>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T23G 44.81.0.70
Allow-Events: talk,hold,conference,refer,check-sync
Supported: replaces
Content-Length: 270

v=0
o=- 20135 20135 IN IP4 10.124.193.26
s=SDP data
c=IN IP4 10.124.193.26
t=0 0
m=audio 12534 RTP/AVP 0 18 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 mode=20
a=rtpmap:9 G722/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<--- Transmitting SIP response (478 bytes) to UDP:10.124.193.26:5160 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.124.193.26:5160;rport=5160;received=10.124.193.26;branch=z9hG4bK1854564294
Call-ID: [email protected]
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=z9hG4bK1854564294
CSeq: 1 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1521762238/eff14d510ec3bfd2676de36ccaf073ac",opaque="6de3e40318b2a6f8",algorithm=md5,qop="auth"
Server: FPBX-13.0.194.2(13.18.3)
Content-Length: 0

<--- Received SIP request (271 bytes) from UDP:10.124.193.26:5160 --->
ACK sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.124.193.26:5160;branch=z9hG4bK1854564294
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=z9hG4bK1854564294
Call-ID: [email protected]
CSeq: 1 ACK
Content-Length: 0

<--- Received SIP request (1129 bytes) from UDP:10.124.193.26:5160 --->
INVITE sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.124.193.26:5160;branch=z9hG4bK3479468159
From: "5314" <sip:[email protected]:5160>;tag=2339008074
To: <sip:[email protected]:5160>
Call-ID: [email protected]
CSeq: 2 INVITE
Contact: <sip:[email protected]:5160>
Authorization: Digest username="5314", realm="asterisk", nonce="1521762238/eff14d510ec3bfd2676de36ccaf073ac", uri="sip:[email protected]:5160", response="edcd4d26b7c566a78fc70ceecc565a54", algorithm=MD5, cnonce="0a4f113b", opaque="6de3e40318b2a6f8", qop=auth, nc=00000001
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T23G 44.81.0.70
Allow-Events: talk,hold,conference,refer,check-sync
Supported: replaces
Content-Length: 270

v=0
o=- 20135 20135 IN IP4 10.124.193.26
s=SDP data
c=IN IP4 10.124.193.26
t=0 0
m=audio 12534 RTP/AVP 0 18 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 mode=20
a=rtpmap:9 G722/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<--- Transmitting SIP response (303 bytes) to UDP:10.124.193.26:5160 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.124.193.26:5160;rport=5160;received=10.124.193.26;branch=z9hG4bK3479468159
Call-ID: [email protected]
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>
CSeq: 2 INVITE
Server: FPBX-13.0.194.2(13.18.3)
Content-Length: 0

<--- Transmitting SIP response (554 bytes) to UDP:10.124.193.26:5160 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.124.193.26:5160;rport=5160;received=10.124.193.26;branch=z9hG4bK3479468159
Call-ID: [email protected]
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=5d1c1863-c488-403c-ad89-9525de9310a7
CSeq: 2 INVITE
Server: FPBX-13.0.194.2(13.18.3)
Contact: <sip:10.1.176:5160>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
P-Asserted-Identity: "Inventory Room M.A." <sip:[email protected]>
Content-Length: 0

<--- Transmitting SIP request (1056 bytes) to UDP:10.1.12.152:5160 --->
INVITE sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.1.1.176:5160;rport;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>
Contact: <sip:[email protected]:5160>
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: "Johann Zurner" <sip:[email protected]>
Max-Forwards: 70
User-Agent: FPBX-13.0.194.2(13.18.3)
Content-Type: application/sdp
Content-Length: 333

v=0
o=- 1484529160 1484529160 IN IP4 10.1.1.176
s=Asterisk
c=IN IP4 10.1.1.176
t=0 0
m=audio 11232 RTP/AVP 9 0 18 119 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:119 speex/32000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv

<--- Received SIP response (361 bytes) from UDP:10.1.12.152:5160 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.1.1.176:5160;rport=5160;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 INVITE
User-Agent: Yealink SIP-T23G 44.81.0.70
Content-Length: 0

<--- Received SIP response (583 bytes) from UDP:10.1.12.152:5160 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.1.1.176:5160;rport=5160;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>;tag=27728191
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 INVITE
Contact: <sip:[email protected]:5160>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T23G 44.81.0.70
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0

<--- Transmitting SIP response (554 bytes) to UDP:10.124.193.26:5160 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.124.193.26:5160;rport=5160;received=10.124.193.26;branch=z9hG4bK3479468159
Call-ID: [email protected]
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=5d1c1863-c488-403c-ad89-9525de9310a7
CSeq: 2 INVITE
Server: FPBX-13.0.194.2(13.18.3)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Contact: <sip:10.1.1.176:5160>
P-Asserted-Identity: "Inventory Room M.A." <sip:[email protected]>
Content-Length: 0

<--- Received SIP request (324 bytes) from UDP:10.124.193.26:5160 --->
CANCEL sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.124.193.26:5160;branch=z9hG4bK3479468159
From: "5314" <sip:[email protected]:5160>;tag=2339008074
To: <sip:[email protected]:5160>
Call-ID: [email protected]
CSeq: 2 CANCEL
Max-Forwards: 70
User-Agent: Yealink SIP-T23G 44.81.0.70
Content-Length: 0

<--- Transmitting SIP response (340 bytes) to UDP:10.124.193.26:5160 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.124.193.26:5160;rport=5160;received=10.124.193.26;branch=z9hG4bK3479468159
Call-ID: [email protected]
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=5d1c1863-c488-403c-ad89-9525de9310a7
CSeq: 2 CANCEL
Server: FPBX-13.0.194.2(13.18.3)
Content-Length: 0

<--- Transmitting SIP response (533 bytes) to UDP:10.124.193.26:5160 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.124.193.26:5160;rport=5160;received=10.124.193.26;branch=z9hG4bK3479468159
Call-ID: [email protected]
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=5d1c1863-c488-403c-ad89-9525de9310a7
CSeq: 2 INVITE
Server: FPBX-13.0.194.2(13.18.3)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
P-Asserted-Identity: "Inventory Room M.A." <sip:[email protected]>
Content-Length: 0

<--- Transmitting SIP request (417 bytes) to UDP:10.1.12.152:5160 --->
CANCEL sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.1.1.176:5160;rport;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 CANCEL
Reason: Q.850;cause=0
Max-Forwards: 70
User-Agent: FPBX-13.0.194.2(13.18.3)
Content-Length: 0

<--- Received SIP response (370 bytes) from UDP:10.1.12.152:5160 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.1.1.176:5160;rport=5160;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>;tag=27728191
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 CANCEL
User-Agent: Yealink SIP-T23G 44.81.0.70
Content-Length: 0

<--- Received SIP response (385 bytes) from UDP:10.1.12.152:5160 --->
SIP/2.0 487 Request Cancelled
Via: SIP/2.0/UDP 10.1.1.176:5160;rport=5160;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>;tag=27728191
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 INVITE
User-Agent: Yealink SIP-T23G 44.81.0.70
Content-Length: 0

<--- Transmitting SIP request (401 bytes) to UDP:10.1.12.152:5160 --->
ACK sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.1.1.176:5160;rport;branch=z9hG4bKPjdfa5f78d-000e-4415-ac7c-1d82c0f2ce30
From: "Johann Zurner" <sip:[email protected]>;tag=1eb45fa9-afeb-488e-9c0e-3ebbe27378b5
To: <sip:[email protected]>;tag=27728191
Call-ID: 33796e6b-4fb6-4693-b030-e0258222b065
CSeq: 26723 ACK
Max-Forwards: 70
User-Agent: FPBX-13.0.194.2(13.18.3)
Content-Length: 0

<--- Received SIP request (290 bytes) from UDP:10.124.193.26:5160 --->
ACK sip:[email protected]:5160 SIP/2.0
Via: SIP/2.0/UDP 10.124.193.26:5160;branch=z9hG4bK3479468159
From: "5314" <sip:[email protected]>;tag=2339008074
To: <sip:[email protected]>;tag=5d1c1863-c488-403c-ad89-9525de9310a7
Call-ID: [email protected]
CSeq: 2 ACK
Content-Length: 0

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