Hello,
We are running SIP trunks on a PBX behind a Cisco ASA. Inbound calls come through without a hitch but outbound calls only last 30 seconds before being disconnected.
Things we have tried:
Adding local networks of phones to Asterisk SIP Settings
Configuring NAT settings in Asterisk SIP Settings
Updating Cisco ASA to disable SIP-Alg and increased udp timeout
Any assistance is appreciated.
Stewart1
(Stewart)
July 8, 2020, 8:26pm
2
In Asterisk SIP Settings, check that External Address and Local Networks are correctly set. If you have overridden these in chan_pjsip or chan_sip settings, make sure they are also correct.
If no luck, at the Asterisk command prompt, type
pjsip set logger on
or
sip set debug on
(according to trunk type) make a failing test call, paste the relevant section of the Asterisk log at https://pastebin.freepbx.org and post the link here.
Stewart1:
pjsip set logger on
Thanks for the quick reply. A new development reported by users is that they are getting the same results on extension to extension dialing as well. Attached is the pjsip log, I’ll post another post with sip debug.
[2020-07-09 16:36:45] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.40.8.76:49049 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj145a8424-83ff-43fd-b8f0-0e5ada99f5bd;received=10.30.2.8
From: <sip:[email protected] >;tag=46b39579-3ad8-4ee6-afc5-fe06e64ee203
To: <sip:[email protected] >;tag=192677728
Call-ID: e68e06ae-92e4-4877-aac7-8f3a887dcfc8
CSeq: 43594 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:45] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.20.2.64:34877 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj1e9c68f4-6ba6-44f3-8cc2-74aae5a3b6cf;received=10.30.2.8
From: <sip:[email protected] >;tag=9ebcb6c3-c3e0-44d5-ba87-f66f725dde51
To: <sip:[email protected] >;tag=2077021143
Call-ID: fe1edf58-fe77-48c1-868c-a0f3af08e43a
CSeq: 50131 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:45] VERBOSE[11382] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.30.2.47:55899 —>
OPTIONS sip:[email protected] :55899 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPjb2ce7da8-0dff-439c-8f0d-b3013fc8ec51
From: <sip:[email protected] >;tag=7b4f86d0-9e91-4611-bfe7-e5d565172ab9
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 31df0fe3-ce42-47a2-8e21-58455b317df9
CSeq: 28438 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:45] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.30.2.47:55899 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPjb2ce7da8-0dff-439c-8f0d-b3013fc8ec51;received=10.30.2.8
From: <sip:[email protected] >;tag=7b4f86d0-9e91-4611-bfe7-e5d565172ab9
To: <sip:[email protected] >;tag=1753800904
Call-ID: 31df0fe3-ce42-47a2-8e21-58455b317df9
CSeq: 28438 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[24594] res_pjsip_logger.c: <— Transmitting SIP response (933 bytes) to UDP:10.40.2.79:53207 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.40.2.79:53207;rport=53207;received=10.40.2.79;branch=z9hG4bK114814392
Call-ID: [email protected]
From: “4238” <sip:[email protected] >;tag=1193856054
To: <sip:[email protected] >;tag=ff5e6018-9c9e-440b-913a-29b743184d0a
CSeq: 181 INVITE
Server: FPBX-14.0.13.34(13.32.0)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:63.142.196.92:5160>
Supported: 100rel, timer, replaces, norefersub
P-Asserted-Identity: “CID:5093404200” <sip:[email protected] >
Content-Type: application/sdp
Content-Length: 294
o=- 8000 8002 IN IP4 10.30.2.8
s=Asterisk
c=IN IP4 10.30.2.8
t=0 0
m=audio 13770 RTP/AVP 0 8 2 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
[2020-07-09 16:36:46] VERBOSE[8419] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.20.2.76:31947 —>
OPTIONS sip:[email protected] :31947 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj785fc908-9f68-458b-ac3d-b61f7e465e0c
From: <sip:[email protected] >;tag=cd26ff14-a2de-4df3-a2de-1ce4a161d38c
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 03a95b58-9714-4b43-99a2-6a02b9b141a3
CSeq: 35596 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.20.2.76:31947 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj785fc908-9f68-458b-ac3d-b61f7e465e0c;received=10.30.2.8
From: <sip:[email protected] >;tag=cd26ff14-a2de-4df3-a2de-1ce4a161d38c
To: <sip:[email protected] >;tag=892316310
Call-ID: 03a95b58-9714-4b43-99a2-6a02b9b141a3
CSeq: 35596 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[10457] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.40.2.64:40089 —>
OPTIONS sip:[email protected] :40089 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPjac9c46c9-10ac-4b82-ae6f-717be007d25a
From: <sip:[email protected] >;tag=f2ff5334-f5f9-40be-8758-686c17862768
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 0bbad3d8-0a55-4bdd-9459-47c0bd67827f
CSeq: 10627 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.40.2.64:40089 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPjac9c46c9-10ac-4b82-ae6f-717be007d25a;received=10.30.2.8
From: <sip:[email protected] >;tag=f2ff5334-f5f9-40be-8758-686c17862768
To: <sip:[email protected] >;tag=1596500750
Call-ID: 0bbad3d8-0a55-4bdd-9459-47c0bd67827f
CSeq: 10627 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[814] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.30.2.54:43874 —>
OPTIONS sip:[email protected] :43874 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj55bdf8c4-556c-4318-adaa-9f28b6909545
From: <sip:[email protected] >;tag=0054e018-56f5-4b04-aa9f-1348eeb02942
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: ea579113-69ff-436a-b036-460ca4cd0942
CSeq: 37219 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.30.2.54:43874 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj55bdf8c4-556c-4318-adaa-9f28b6909545;received=10.30.2.8
From: <sip:[email protected] >;tag=0054e018-56f5-4b04-aa9f-1348eeb02942
To: <sip:[email protected] >;tag=1425176993
Call-ID: ea579113-69ff-436a-b036-460ca4cd0942
CSeq: 37219 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[19453] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.40.2.52:35826 —>
OPTIONS sip:[email protected] :35826 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPje52ef728-11b7-41e9-81da-6070e9e8a975
From: <sip:[email protected] >;tag=1f417f80-d550-4a1f-9c68-e1c046368946
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 45a320a9-cdc6-4d38-9ce2-1e25ca9d36aa
CSeq: 43520 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.40.2.52:35826 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPje52ef728-11b7-41e9-81da-6070e9e8a975;received=10.30.2.8
From: <sip:[email protected] >;tag=1f417f80-d550-4a1f-9c68-e1c046368946
To: <sip:[email protected] >;tag=2075274898
Call-ID: 45a320a9-cdc6-4d38-9ce2-1e25ca9d36aa
CSeq: 43520 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:48] VERBOSE[26914] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.10.2.46:46672 —>
OPTIONS sip:[email protected] :46672 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj97d55fc9-54b2-44d7-ba24-4826ceed706d
From: <sip:[email protected] >;tag=d09312b5-95aa-4064-844b-cfe6921cfb2b
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 7f8d83a8-104f-4639-9dcf-0d9e6145f4a4
CSeq: 38186 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:48] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.10.2.46:46672 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj97d55fc9-54b2-44d7-ba24-4826ceed706d;received=10.30.2.8
From: <sip:[email protected] >;tag=d09312b5-95aa-4064-844b-cfe6921cfb2b
To: <sip:[email protected] >;tag=836247981
Call-ID: 7f8d83a8-104f-4639-9dcf-0d9e6145f4a4
CSeq: 38186 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[6722] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.10.2.43:34907 —>
OPTIONS sip:[email protected] :34907 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj3f3a657c-37b6-425a-b654-88fd87f808b2
From: <sip:[email protected] >;tag=90255df6-8d8a-42d7-9415-c524d1736c88
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 79a88afe-4622-4dd8-aa2e-b00e5567e506
CSeq: 18502 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.10.2.43:34907 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj3f3a657c-37b6-425a-b654-88fd87f808b2;received=10.30.2.8
From: <sip:[email protected] >;tag=90255df6-8d8a-42d7-9415-c524d1736c88
To: <sip:[email protected] >;tag=343383648
Call-ID: 79a88afe-4622-4dd8-aa2e-b00e5567e506
CSeq: 18502 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2170 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[11382] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.40.2.41:31605 —>
OPTIONS sip:[email protected] :31605 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj7432221e-ccb9-4f5b-b1f4-4de56b9e8196
From: <sip:[email protected] >;tag=d469b7a2-7a07-4583-8975-7cdbb6e7e7a6
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: c8614653-0f07-4e54-9d0d-381171e8db76
CSeq: 50149 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.40.2.41:31605 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj7432221e-ccb9-4f5b-b1f4-4de56b9e8196;received=10.30.2.8
From: <sip:[email protected] >;tag=d469b7a2-7a07-4583-8975-7cdbb6e7e7a6
To: <sip:[email protected] >;tag=1939053506
Call-ID: c8614653-0f07-4e54-9d0d-381171e8db76
CSeq: 50149 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[8419] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.20.2.61:48823 —>
OPTIONS sip:[email protected] :48823 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj6800720d-08aa-4804-93a2-2353e5bc7314
From: <sip:[email protected] >;tag=0d747b8f-0729-4e96-92cb-73371556b863
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 8a3d6f83-6ddf-41ee-b384-f7ec298a2b56
CSeq: 25339 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.20.2.61:48823 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj6800720d-08aa-4804-93a2-2353e5bc7314;received=10.30.2.8
From: <sip:[email protected] >;tag=0d747b8f-0729-4e96-92cb-73371556b863
To: <sip:[email protected] >;tag=1644431407
Call-ID: 8a3d6f83-6ddf-41ee-b384-f7ec298a2b56
CSeq: 25339 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2170 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[10457] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.20.2.57:40284 —>
OPTIONS sip:[email protected] :40284 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPjab408999-8fc7-446d-b66b-6a435d83951a
From: <sip:[email protected] >;tag=a2985585-e79c-44ff-b904-40b80be4492c
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: b5ce8332-3998-4b6c-a70f-13733252c4ad
CSeq: 19174 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.20.2.57:40284 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPjab408999-8fc7-446d-b66b-6a435d83951a;received=10.30.2.8
From: <sip:[email protected] >;tag=a2985585-e79c-44ff-b904-40b80be4492c
To: <sip:[email protected] >;tag=1031976123
Call-ID: b5ce8332-3998-4b6c-a70f-13733252c4ad
CSeq: 19174 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0 * [2020-07-09 16:36:45] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.40.8.76:49049 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj145a8424-83ff-43fd-b8f0-0e5ada99f5bd;received=10.30.2.8
From: <sip:[email protected] >;tag=46b39579-3ad8-4ee6-afc5-fe06e64ee203
To: <sip:[email protected] >;tag=192677728
Call-ID: e68e06ae-92e4-4877-aac7-8f3a887dcfc8
CSeq: 43594 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:45] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.20.2.64:34877 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj1e9c68f4-6ba6-44f3-8cc2-74aae5a3b6cf;received=10.30.2.8
From: <sip:[email protected] >;tag=9ebcb6c3-c3e0-44d5-ba87-f66f725dde51
To: <sip:[email protected] >;tag=2077021143
Call-ID: fe1edf58-fe77-48c1-868c-a0f3af08e43a
CSeq: 50131 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:45] VERBOSE[11382] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.30.2.47:55899 —>
OPTIONS sip:[email protected] :55899 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPjb2ce7da8-0dff-439c-8f0d-b3013fc8ec51
From: <sip:[email protected] >;tag=7b4f86d0-9e91-4611-bfe7-e5d565172ab9
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 31df0fe3-ce42-47a2-8e21-58455b317df9
CSeq: 28438 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:45] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.30.2.47:55899 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPjb2ce7da8-0dff-439c-8f0d-b3013fc8ec51;received=10.30.2.8
From: <sip:[email protected] >;tag=7b4f86d0-9e91-4611-bfe7-e5d565172ab9
To: <sip:[email protected] >;tag=1753800904
Call-ID: 31df0fe3-ce42-47a2-8e21-58455b317df9
CSeq: 28438 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[24594] res_pjsip_logger.c: <— Transmitting SIP response (933 bytes) to UDP:10.40.2.79:53207 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.40.2.79:53207;rport=53207;received=10.40.2.79;branch=z9hG4bK114814392
Call-ID: [email protected]
From: “4238” <sip:[email protected] >;tag=1193856054
To: <sip:[email protected] >;tag=ff5e6018-9c9e-440b-913a-29b743184d0a
CSeq: 181 INVITE
Server: FPBX-14.0.13.34(13.32.0)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:63.142.196.92:5160>
Supported: 100rel, timer, replaces, norefersub
P-Asserted-Identity: “CID:5093404200” <sip:[email protected] >
Content-Type: application/sdp
Content-Length: 294
o=- 8000 8002 IN IP4 10.30.2.8
s=Asterisk
c=IN IP4 10.30.2.8
t=0 0
m=audio 13770 RTP/AVP 0 8 2 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
[2020-07-09 16:36:46] VERBOSE[8419] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.20.2.76:31947 —>
OPTIONS sip:[email protected] :31947 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj785fc908-9f68-458b-ac3d-b61f7e465e0c
From: <sip:[email protected] >;tag=cd26ff14-a2de-4df3-a2de-1ce4a161d38c
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 03a95b58-9714-4b43-99a2-6a02b9b141a3
CSeq: 35596 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.20.2.76:31947 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj785fc908-9f68-458b-ac3d-b61f7e465e0c;received=10.30.2.8
From: <sip:[email protected] >;tag=cd26ff14-a2de-4df3-a2de-1ce4a161d38c
To: <sip:[email protected] >;tag=892316310
Call-ID: 03a95b58-9714-4b43-99a2-6a02b9b141a3
CSeq: 35596 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[10457] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.40.2.64:40089 —>
OPTIONS sip:[email protected] :40089 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPjac9c46c9-10ac-4b82-ae6f-717be007d25a
From: <sip:[email protected] >;tag=f2ff5334-f5f9-40be-8758-686c17862768
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 0bbad3d8-0a55-4bdd-9459-47c0bd67827f
CSeq: 10627 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:46] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.40.2.64:40089 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPjac9c46c9-10ac-4b82-ae6f-717be007d25a;received=10.30.2.8
From: <sip:[email protected] >;tag=f2ff5334-f5f9-40be-8758-686c17862768
To: <sip:[email protected] >;tag=1596500750
Call-ID: 0bbad3d8-0a55-4bdd-9459-47c0bd67827f
CSeq: 10627 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[814] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.30.2.54:43874 —>
OPTIONS sip:[email protected] :43874 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj55bdf8c4-556c-4318-adaa-9f28b6909545
From: <sip:[email protected] >;tag=0054e018-56f5-4b04-aa9f-1348eeb02942
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: ea579113-69ff-436a-b036-460ca4cd0942
CSeq: 37219 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.30.2.54:43874 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj55bdf8c4-556c-4318-adaa-9f28b6909545;received=10.30.2.8
From: <sip:[email protected] >;tag=0054e018-56f5-4b04-aa9f-1348eeb02942
To: <sip:[email protected] >;tag=1425176993
Call-ID: ea579113-69ff-436a-b036-460ca4cd0942
CSeq: 37219 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[19453] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.40.2.52:35826 —>
OPTIONS sip:[email protected] :35826 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPje52ef728-11b7-41e9-81da-6070e9e8a975
From: <sip:[email protected] >;tag=1f417f80-d550-4a1f-9c68-e1c046368946
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 45a320a9-cdc6-4d38-9ce2-1e25ca9d36aa
CSeq: 43520 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:47] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.40.2.52:35826 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPje52ef728-11b7-41e9-81da-6070e9e8a975;received=10.30.2.8
From: <sip:[email protected] >;tag=1f417f80-d550-4a1f-9c68-e1c046368946
To: <sip:[email protected] >;tag=2075274898
Call-ID: 45a320a9-cdc6-4d38-9ce2-1e25ca9d36aa
CSeq: 43520 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:48] VERBOSE[26914] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.10.2.46:46672 —>
OPTIONS sip:[email protected] :46672 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj97d55fc9-54b2-44d7-ba24-4826ceed706d
From: <sip:[email protected] >;tag=d09312b5-95aa-4064-844b-cfe6921cfb2b
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 7f8d83a8-104f-4639-9dcf-0d9e6145f4a4
CSeq: 38186 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:48] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.10.2.46:46672 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj97d55fc9-54b2-44d7-ba24-4826ceed706d;received=10.30.2.8
From: <sip:[email protected] >;tag=d09312b5-95aa-4064-844b-cfe6921cfb2b
To: <sip:[email protected] >;tag=836247981
Call-ID: 7f8d83a8-104f-4639-9dcf-0d9e6145f4a4
CSeq: 38186 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[6722] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.10.2.43:34907 —>
OPTIONS sip:[email protected] :34907 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj3f3a657c-37b6-425a-b654-88fd87f808b2
From: <sip:[email protected] >;tag=90255df6-8d8a-42d7-9415-c524d1736c88
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 79a88afe-4622-4dd8-aa2e-b00e5567e506
CSeq: 18502 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (503 bytes) from UDP:10.10.2.43:34907 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj3f3a657c-37b6-425a-b654-88fd87f808b2;received=10.30.2.8
From: <sip:[email protected] >;tag=90255df6-8d8a-42d7-9415-c524d1736c88
To: <sip:[email protected] >;tag=343383648
Call-ID: 79a88afe-4622-4dd8-aa2e-b00e5567e506
CSeq: 18502 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2170 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[11382] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.40.2.41:31605 —>
OPTIONS sip:[email protected] :31605 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj7432221e-ccb9-4f5b-b1f4-4de56b9e8196
From: <sip:[email protected] >;tag=d469b7a2-7a07-4583-8975-7cdbb6e7e7a6
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: c8614653-0f07-4e54-9d0d-381171e8db76
CSeq: 50149 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.40.2.41:31605 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj7432221e-ccb9-4f5b-b1f4-4de56b9e8196;received=10.30.2.8
From: <sip:[email protected] >;tag=d469b7a2-7a07-4583-8975-7cdbb6e7e7a6
To: <sip:[email protected] >;tag=1939053506
Call-ID: c8614653-0f07-4e54-9d0d-381171e8db76
CSeq: 50149 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[8419] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.20.2.61:48823 —>
OPTIONS sip:[email protected] :48823 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPj6800720d-08aa-4804-93a2-2353e5bc7314
From: <sip:[email protected] >;tag=0d747b8f-0729-4e96-92cb-73371556b863
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: 8a3d6f83-6ddf-41ee-b384-f7ec298a2b56
CSeq: 25339 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.20.2.61:48823 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPj6800720d-08aa-4804-93a2-2353e5bc7314;received=10.30.2.8
From: <sip:[email protected] >;tag=0d747b8f-0729-4e96-92cb-73371556b863
To: <sip:[email protected] >;tag=1644431407
Call-ID: 8a3d6f83-6ddf-41ee-b384-f7ec298a2b56
CSeq: 25339 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2170 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[10457] res_pjsip_logger.c: <— Transmitting SIP request (421 bytes) to UDP:10.20.2.57:40284 —>
OPTIONS sip:[email protected] :40284 SIP/2.0
Via: SIP/2.0/UDP 63.142.196.92:5160;rport;branch=z9hG4bKPjab408999-8fc7-446d-b66b-6a435d83951a
From: <sip:[email protected] >;tag=a2985585-e79c-44ff-b904-40b80be4492c
To: <sip:[email protected] >
Contact: <sip:[email protected] :5160>
Call-ID: b5ce8332-3998-4b6c-a70f-13733252c4ad
CSeq: 19174 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.34(13.32.0)
Content-Length: 0
[2020-07-09 16:36:49] VERBOSE[24594] res_pjsip_logger.c: <— Received SIP response (504 bytes) from UDP:10.20.2.57:40284 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 63.142.196.92:5160;rport=5160;branch=z9hG4bKPjab408999-8fc7-446d-b66b-6a435d83951a;received=10.30.2.8
From: <sip:[email protected] >;tag=a2985585-e79c-44ff-b904-40b80be4492c
To: <sip:[email protected] >;tag=1031976123
Call-ID: b5ce8332-3998-4b6c-a70f-13733252c4ad
CSeq: 19174 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXP2135 1.0.9.135
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0
Stewart1
(Stewart)
July 9, 2020, 5:22pm
5
These logs do not contain the relevant information. Search the Asterisk log for a line starting
INVITE sip:
and addressing your trunk.
Paste the relevant section at https://pastebin.freepbx.org and post the link here.
I’m not finding anything that says INVITE SIP, is there a different log command I should be running? Here’s the standard asterisk log for the full length of a call attempt. Hopefully its helpful. Thanks again for the help.
https://pastebin.freepbx.org/view/a35f6f1b
Stewart1
(Stewart)
July 9, 2020, 6:40pm
7
When you do
pjsip set logger on
or
sip set debug on
(depending on trunk type) the SIP trace should appear in the regular Asterisk log, along with the normal entries. Note that when you Apply Config or otherwise reload Asterisk, the logger/debug commands are canceled and need to be issued again.
mcgrathr
(Mc GRATH Ricardo)
July 9, 2020, 8:25pm
8
Yes, trunk is disconnected on 29 seconds, because it execute hangup
Executing [h@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:1] Hangup("PJSIP/4238-00000082", "") in new stack.
How about by disabling reinvite on PJSIP trunks by setting timer=no?
Since the are post with similar issue, but with different disconnected time.
May be it could help.
I’m running FreePBX Distro 10.13.66 (Stable) and have been having problems that are apparently related to session timers and reinvites with res_pjsip. All our outgoing calls drop after 15 minutes and 30 seconds, and we can find no combination of session timer settings that will prevent this.
We’d like to try completely disabling reinvite on the pjsip trunk, but so far haven’t found a way to do this with the FreePBX GUI. Is this possible? If not, what would be the correct way to modify the trunk…
Workaround via «Admin»→«Config Edit»→pjsip.endpoint_custom_post.conf (replace myTrunkX with name of your pjsip trunk from «Connectivity»→«Trunks» or CLI “pjsip show endpoints”… note the (+) which indicates add this to an already present config.
pjsip.endpoint_custom_post.conf
myTrunk1
timers=no
timers_min_se=28800
timers_sess_expires=28800
link
https://issues.freepbx.org/browse/FREEPBX-18774
system
(system)
Closed
August 9, 2020, 8:25pm
9
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.