- Joined
- Jul 6, 2021
- Messages
- 24
- Reaction score
- 5
Similar to a regular trunk, is it possible to manually set the SIP contact and SDP connection fields for a gateway trunk?
In fact, was able to set the SIP contact in the outbound parameters but can’t find where and how to update the SDP connection field for a gateway trunk, ie: Patton SN4171/1E30VHP.
The goal is to register the gateway in site B to 3CX in site A. Both sites are inter-connected over VPN and as the subnets overlap, the traffic is NATed.
Site A: 3CX IP: 10.0.1.1 NATed as 10.10.10.1
Site B: GW IP: 10.0.1.5 NATed as 10.20.20.5
The gateway is added to 3CX as 10.20.20.5 and the 3CX is set in the gateway as 10.10.10.1.
While the registration and SIP signalling works, there is no audio as 3CX sends the local non-NATed IP 10.0.1.1 in the SDP connection field in the SIP INVITE message. As a result, the remote gateway s unable to reach to the 3CX.
How to make it so the IP 10.10.10.1 is shown in the SDP connection field in the SIP INVITE message coming from 3CX?
In an attempt to “make it work”, tried adding the gateway as a Generic SIP trunk, and when compared with the SIP REGISTER messages between the gateway and SIP trunk, see the following message:
26/03/2023 22:50:03 - Got REGISTER for foreign registrar: registrar host <sip: @10.10.10.1:5060/UDP> is not mine!
26/03/2023 22:50:03 - Misdirected REGISTER: RegErr Recv Req REGISTER from 10.20.20.5:5063 tid=33b7eb168882cf5e3 Call-ID=a211af332a0c5a02:
REGISTER sip:10.10.10.1:5060 SIP/2.0
Via: SIP/2.0/UDP 10.20.20.5:5063;branch=z9hG4bK33b7eb168882cf5e3
Max-Forwards: 70
Contact: <sip:[email protected]:5063;transport=udp>
To: <sip:[email protected]:5060>
From: <sip:[email protected]:5060>;tag=616c934800
Call-ID: a211af332a0c5a02
CSeq: 271073982 REGISTER
Expires: 60
User-Agent: Patton SN4171/1E30VHP 00A0BA116CBC 3.20.1-21101 1.6 M5T SIP Stack/4.2.28.153
Content-Length: 0
26/03/2023 22:50:03 - Source is identified as trunk Lc:10002(@Generic SIP Trunk[<sip:[email protected]:5060/UDP>])
26/03/2023 22:50:03 - Unexpected registration from Provider/SlaveBridge: Provider
26/03/2023 22:50:03 - [CM102001]: Authentication failed for AuthFail Recv Req REGISTER from 10.20.20.5:5063 tid=8499f93dfd468de39 Call-ID=a211af332a0c5a02:
REGISTER sip:10.10.10.1:5060 SIP/2.0
Via: SIP/2.0/UDP 10.20.20.5:5063;branch=z9hG4bK8499f93dfd468de39
Max-Forwards: 70
Contact: <sip:[email protected]:5063;transport=udp>
To: <sip:[email protected]:5060>
From: <sip:[email protected]:5060>;tag=616c934800
Call-ID: a211af332a0c5a02
CSeq: 271073983 REGISTER
Expires: 60
Proxy-Authorization: Digest username="10002",realm="3CXPhoneSystem",nonce="414d535c1a3140fb05:4640f3489a873cd55e9821c875ca82cd",uri="sip:10.10.10.1:5060",response="ee685fda4bc04d72bb989c92c643fa84",algorithm=MD5
User-Agent: Patton SN4171/1E30VHP 00A0BA116CBC 3.20.1-21101 1.6 M5T SIP Stack/4.2.28.153
Content-Length: 0
; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
What does it mean “Unexpected registration from Provider/SlaveBridge: Provider”?
How to modify the SDP connection field in the SIP INVITE message for a gateway trunk?
What am I doing wrong?
What can I do to make it work?
How would you do it differently?
Thanks in advance for your support.
In fact, was able to set the SIP contact in the outbound parameters but can’t find where and how to update the SDP connection field for a gateway trunk, ie: Patton SN4171/1E30VHP.
The goal is to register the gateway in site B to 3CX in site A. Both sites are inter-connected over VPN and as the subnets overlap, the traffic is NATed.
Site A: 3CX IP: 10.0.1.1 NATed as 10.10.10.1
Site B: GW IP: 10.0.1.5 NATed as 10.20.20.5
The gateway is added to 3CX as 10.20.20.5 and the 3CX is set in the gateway as 10.10.10.1.
While the registration and SIP signalling works, there is no audio as 3CX sends the local non-NATed IP 10.0.1.1 in the SDP connection field in the SIP INVITE message. As a result, the remote gateway s unable to reach to the 3CX.
How to make it so the IP 10.10.10.1 is shown in the SDP connection field in the SIP INVITE message coming from 3CX?
In an attempt to “make it work”, tried adding the gateway as a Generic SIP trunk, and when compared with the SIP REGISTER messages between the gateway and SIP trunk, see the following message:
26/03/2023 22:50:03 - Got REGISTER for foreign registrar: registrar host <sip: @10.10.10.1:5060/UDP> is not mine!
26/03/2023 22:50:03 - Misdirected REGISTER: RegErr Recv Req REGISTER from 10.20.20.5:5063 tid=33b7eb168882cf5e3 Call-ID=a211af332a0c5a02:
REGISTER sip:10.10.10.1:5060 SIP/2.0
Via: SIP/2.0/UDP 10.20.20.5:5063;branch=z9hG4bK33b7eb168882cf5e3
Max-Forwards: 70
Contact: <sip:[email protected]:5063;transport=udp>
To: <sip:[email protected]:5060>
From: <sip:[email protected]:5060>;tag=616c934800
Call-ID: a211af332a0c5a02
CSeq: 271073982 REGISTER
Expires: 60
User-Agent: Patton SN4171/1E30VHP 00A0BA116CBC 3.20.1-21101 1.6 M5T SIP Stack/4.2.28.153
Content-Length: 0
26/03/2023 22:50:03 - Source is identified as trunk Lc:10002(@Generic SIP Trunk[<sip:[email protected]:5060/UDP>])
26/03/2023 22:50:03 - Unexpected registration from Provider/SlaveBridge: Provider
26/03/2023 22:50:03 - [CM102001]: Authentication failed for AuthFail Recv Req REGISTER from 10.20.20.5:5063 tid=8499f93dfd468de39 Call-ID=a211af332a0c5a02:
REGISTER sip:10.10.10.1:5060 SIP/2.0
Via: SIP/2.0/UDP 10.20.20.5:5063;branch=z9hG4bK8499f93dfd468de39
Max-Forwards: 70
Contact: <sip:[email protected]:5063;transport=udp>
To: <sip:[email protected]:5060>
From: <sip:[email protected]:5060>;tag=616c934800
Call-ID: a211af332a0c5a02
CSeq: 271073983 REGISTER
Expires: 60
Proxy-Authorization: Digest username="10002",realm="3CXPhoneSystem",nonce="414d535c1a3140fb05:4640f3489a873cd55e9821c875ca82cd",uri="sip:10.10.10.1:5060",response="ee685fda4bc04d72bb989c92c643fa84",algorithm=MD5
User-Agent: Patton SN4171/1E30VHP 00A0BA116CBC 3.20.1-21101 1.6 M5T SIP Stack/4.2.28.153
Content-Length: 0
; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
What does it mean “Unexpected registration from Provider/SlaveBridge: Provider”?
How to modify the SDP connection field in the SIP INVITE message for a gateway trunk?
What am I doing wrong?
What can I do to make it work?
How would you do it differently?
Thanks in advance for your support.

