FusionPBX Outbound calls dropped at 30 seconds

SenseiNYC

New Member
Oct 6, 2023
8
0
1
54
My FusionPBX is hosted in the cloud. We have multiple branches of the company at different locations throughout the country. Each branch is configured as their own tenant on the system. Everything "was" fine until we made some changes which somehow messed things up. The boss asked "why don't we receive email when we get voicemail?"

So my first course of action was to update FusionPBX to the latest version. Done. Still nothing. Apparently we had no mail daemon installed, so I Exim4 is the recommended mail daemon for Debian, so I installed it and configuring it was not as simple. A colleague told me to uninstall it as Postfix is easier to work with, so I uninstalled Exim4 and installed Postfix. He was right much easier to work with. Emails started popping in immediately,

But then I was notified that all outbound calls were dropped at about 30 seconds. Voicemail, extension to extension, branch office to branch office, external calls, all dropped at 30 seconds. I am thinking this may be related to the FusionPBX update, but I cannot be sure. I checked with the trunk provider and they showed me logs stating that the disconnect is happening on our side, which I believe since the internal calls are also dropped, so that absolutely rules out the trunk provider.

So a quick background about the offices, each phone (Grandstream enterprise or Yealink) are using OpenVPN to connect to our cloud hosting to connect to FusionPBX. As I said before we performed any of the work, everything worked fine (with the exception of Voicemail notifications via email).

Any assistance would be greatly appreciated.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,417
376
83
Sounds like the ACK following the 200 OK is going missing. See if you can get a packet capture of a call to prove this. sngrep is a very useful tool.
 

SenseiNYC

New Member
Oct 6, 2023
8
0
1
54
Default command line sngrep with no switches should provide the detail you require.
So this was me test calling to voicemail and being cut off at about 30 seconds.

Code:
OPTIONS sip:office01.fusionpbx.cloud.lan SIP/2.0
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1489450487;rport
Route: <sip:10.201.201.10:5060;lr>
From: <sip:101@office01.fusionpbx.cloud.lan>;tag=1897136319
To: <sip:office01.fusionpbx.cloud.lan>
Call-ID: 1240553758-5060-1877@BJC.BGI.CH.HH
CSeq: 17660 OPTIONS
Contact: <sip:101@192.168.27.77:5060>
Max-Forwards: 70
User-Agent: Grandstream DP750 1.0.21.6
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1489450487;rport=5060
From: <sip:101@office01.fusionpbx.cloud.lan>;tag=1897136319
To: <sip:office01.fusionpbx.cloud.lan>;tag=BU3g2KgQ7UZFc
Call-ID: 1240553758-5060-1877@BJC.BGI.CH.HH
CSeq: 17660 OPTIONS
Contact: <sip:wan.cloud.lan>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0

INVITE sip:*97@office01.fusionpbx.cloud.lan SIP/2.0
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1021963682;rport
Route: <sip:10.201.201.10:5060;lr>
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17670 INVITE
Contact: "Cloud" <sip:101@192.168.27.77:5060>
Max-Forwards: 70
User-Agent: Grandstream DP750 1.0.21.6
Privacy: none
P-Preferred-Identity: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length:   478

v=0
o=101 8020 8000 IN IP4 192.168.27.77
s=SIP Call
c=IN IP4 192.168.27.77
t=0 0
m=audio 50000 RTP/AVP 9 0 8 4 18 2 97 123 101
a=sendrecv
a=rtpmap:9 G722/8000
a=ptime:20
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:2 G726-32/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=20
a=rtpmap:123 opus/48000/2
a=fmtp:123 maxplaybackrate=16000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16,32-36,54

SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1021963682;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=c4v93e1t44N2Q
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17670 INVITE
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Proxy-Authenticate: Digest realm="office01.fusionpbx.cloud.lan", nonce="5ad35fe0-a192-4557-ab08-8b5e16baaaed", algorithm=MD5, qop="auth"
Content-Length: 0

ACK sip:*97@office01.fusionpbx.cloud.lan SIP/2.0
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1021963682;rport
Route: <sip:10.201.201.10:5060;lr>
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=c4v93e1t44N2Q
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17670 ACK
Content-Length: 0

SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
User-Agent: FreeSWITCH
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

OPTIONS sip:101@192.168.27.77:5060 SIP/2.0
Via: SIP/2.0/UDP wan.cloud.lan;rport;branch=z9hG4bKteBpcNU5rXKFp
Route: <sip:101@192.168.27.77:5060>
Max-Forwards: 70
From: <sip:mod_sofia@wan.cloud.lan:5060>;tag=g81cBU48r8eDp
To: <sip:101@office01.fusionpbx.cloud.lan>
Call-ID: d50639d4-1450-41d6-bc21-1d419c5dacff_135551780-5060-2@BJC.BGI.CH.HH
CSeq: 82759046 OPTIONS
Contact: <sip:mod_sofia@wan.cloud.lan:5060>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP wan.cloud.lan;rport=5060;branch=z9hG4bKteBpcNU5rXKFp;received=10.201.201.10
From: <sip:mod_sofia@wan.cloud.lan:5060>;tag=g81cBU48r8eDp
To: <sip:101@office01.fusionpbx.cloud.lan>;tag=1527357817
Call-ID: d50639d4-1450-41d6-bc21-1d419c5dacff_135551780-5060-2@BJC.BGI.CH.HH
CSeq: 82759046 OPTIONS
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream DP750 1.0.21.6
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

OPTIONS sip:office01.fusionpbx.cloud.lan SIP/2.0
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1314713927;rport
Route: <sip:10.201.201.10:5060;lr>
From: <sip:101@office01.fusionpbx.cloud.lan>;tag=1267370779
To: <sip:office01.fusionpbx.cloud.lan>
Call-ID: 1188723317-5060-1879@BJC.BGI.CH.HH
CSeq: 17680 OPTIONS
Contact: <sip:101@192.168.27.77:5060>
Max-Forwards: 70
User-Agent: Grandstream DP750 1.0.21.6
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK1314713927;rport=5060
From: <sip:101@office01.fusionpbx.cloud.lan>;tag=1267370779
To: <sip:office01.fusionpbx.cloud.lan>;tag=HHU5cpNcpH5ZH
Call-ID: 1188723317-5060-1879@BJC.BGI.CH.HH
CSeq: 17680 OPTIONS
Contact: <sip:wan.cloud.lan>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

OPTIONS sip:101@192.168.27.77:5060 SIP/2.0
Via: SIP/2.0/UDP wan.cloud.lan;rport;branch=z9hG4bKX9p0H6Dggrp7r
Route: <sip:101@192.168.27.77:5060>
Max-Forwards: 70
From: <sip:mod_sofia@wan.cloud.lan:5060>;tag=mc7Fj77pDc8Qm
To: <sip:101@office01.fusionpbx.cloud.lan>
Call-ID: 093a4978-07fd-4d6e-9b4b-20897954f73b_135551780-5060-2@BJC.BGI.CH.HH
CSeq: 82759049 OPTIONS
Contact: <sip:mod_sofia@wan.cloud.lan:5060>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP wan.cloud.lan;rport=5060;branch=z9hG4bKX9p0H6Dggrp7r;received=10.201.201.10
From: <sip:mod_sofia@wan.cloud.lan:5060>;tag=mc7Fj77pDc8Qm
To: <sip:101@office01.fusionpbx.cloud.lan>;tag=427024186
Call-ID: 093a4978-07fd-4d6e-9b4b-20897954f73b_135551780-5060-2@BJC.BGI.CH.HH
CSeq: 82759049 OPTIONS
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream DP750 1.0.21.6
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

UPDATE sip:101@192.168.27.77:5060 SIP/2.0
Via: SIP/2.0/UDP wan.cloud.lan;rport;branch=z9hG4bKyjgSK1yKD1ctm
Max-Forwards: 70
From: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
To: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 82994695 UPDATE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "16462837919" <sip:*97@10.201.201.10>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

SIP/2.0 200 OK
Via: SIP/2.0/UDP wan.cloud.lan;rport=5060;branch=z9hG4bKyjgSK1yKD1ctm;received=10.201.201.10
From: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
To: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 82994695 UPDATE
Contact: <sip:101@192.168.27.77:5060>
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream DP750 1.0.21.6
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Type: application/sdp
Content-Length:   222

v=0
o=101 8020 8001 IN IP4 192.168.27.77
s=SIP Call
c=IN IP4 192.168.27.77
t=0 0
m=audio 50000 RTP/AVP 9 101
a=sendrecv
a=rtpmap:9 G722/8000
a=ptime:20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16,32-36,54

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.27.77:5060;branch=z9hG4bK2135655042;rport=5060
From: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
To: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 17671 INVITE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 224
P-Asserted-Identity: "*97" <sip:*97@office01.fusionpbx.cloud.lan>

v=0
o=FreeSWITCH 1715036931 1715036932 IN IP4 wan.cloud.lan
s=FreeSWITCH
c=IN IP4 wan.cloud.lan
t=0 0
m=audio 22600 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

BYE sip:101@192.168.27.77:5060 SIP/2.0
Via: SIP/2.0/UDP wan.cloud.lan;rport;branch=z9hG4bKZU9HNvFQaa3cg
Max-Forwards: 70
From: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
To: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 82994696 BYE
Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Reason: SIP;cause=408;text="ACK Timeout"
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP wan.cloud.lan;rport=5060;branch=z9hG4bKZU9HNvFQaa3cg;received=10.201.201.10
From: <sip:*97@office01.fusionpbx.cloud.lan>;tag=DDp259Hy1DcNK
To: "Cloud" <sip:101@office01.fusionpbx.cloud.lan>;tag=1395829521
Call-ID: 1374407593-5060-1878@BJC.BGI.CH.HH
CSeq: 82994696 BYE
Contact: <sip:101@192.168.27.77:5060>
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream DP750 1.0.21.6
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Length: 0

Where:
wan.cloud.lan is the external IP address of our FusionPBX going to our trunk provider
xxx.fusionpbx.cloud.lan is the internal IP address of our FusionPBX (10.201.201.10) managed by internal DNS
and
xxx is the branch office such as office01
192.168.27.0/24 is one of the subnets assigned by OpenVPN for remote phones to connect to our cloud.lan network

So each branch office is assigned a DNS host which every one of them all point to the FusionPBX at 10.201.201.10 so no matter if it's office01, office02, etc, all point to the same IP. This is the method we're using to manage the branches (as tenants really).

As I mentioned all was fine prior to any attempt to get the mail working and stupidly performing updates and messing things up.
 
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,045
566
113
The 200OK has the contact: Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>

So the ACK will be being sent to wan.cloud.lan in this case and I expect that is not where you want it?
 

SenseiNYC

New Member
Oct 6, 2023
8
0
1
54
The 200OK has the contact: Contact: <sip:*97@wan.cloud.lan:5060;transport=udp>

So the ACK will be being sent to wan.cloud.lan in this case and I expect that is not where you want it?
mmmm, no? wan.cloud.lan is the external interface of the PBX. office01.cloud.lan is the internal interface of the PBX which is actually hosted on the firewall (pfSense). Remote branch office phones connect via OpenVPN. They are configured to use wan.cloud.lan "only" in their OpenVPN configuration. No place in their SIP configuration is the phone aware of that address. In the SIP configuration, the phones use office01.fusionpbx.cloud.lan (of xxx.fusionpbx.cloud.lan) as their SIP server and 10.201.201.10 as their SIP Proxy. Now I am confused as to why it would send the ACK there and not office01.fusionpbx.cloud.lan or 10.201.201.10 (which are the same address).
 

Attachments

  • Drawing1.jpg
    Drawing1.jpg
    27.9 KB · Views: 5