Hi there,
I've installed the FreePBX distro running Asterisk version 13.7.1. I've configured several extensions and a sip trunk. All extensions can call each other further more its possible to make outgoing calls.
Unfortunatelly I'm not able to receive incoming calls. The extensions are configured as chan_sip on port 5060 as well as the trunk.
I've read several threads regarding call issues but unfortunatelly I haven't found a solution for my issues. Could someone explain how to debug such a issue correctly?
What I've already done. Double checked the extension and trunk configuration. Trunk configuration is from a blog related to my provider shich should work. At Generals SIP settings I've set NAT to yes and IP Configuration to static IP since I obtain a static one from my provider.
To determine the issue I gone to the Asterisk CLI and set debug on. Unfortunatelly I'm not able to finde the issues within the output.
Is it correct that the call from my cell phone is registrated as "Unknown" and the FreePBX server tries to forward it to the extension and for some reaosn the extension rejects the call?
`
Asterisk 13.7.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.7.1 currently running on VoiP-Server (pid = 1634)
Reliably Transmitting (no NAT) to 172.16.0.10:5060:
OPTIONS sip:108@172.16.0.10;line=6852 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK36a9dd40
Max-Forwards: 70
From: "Unknown" ;tag=as50a73c6b
To:
Contact:
Call-ID: 5c063d805660a811214da2fb26359a96@172.16.0.2:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.124(13.7.1)
Date: Tue, 07 Jun 2016 08:49:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<--- SIP read from UDP:172.16.0.10:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK36a9dd40
Max-Forwards: 70
From: "Unknown" ;tag=as50a73c6b
To:
Call-ID: 5c063d805660a811214da2fb26359a96@172.16.0.2:5060
CSeq: 102 OPTIONS
Accept: application/sdp
Accept-Encoding: identity
Accept-Language:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Date: Tue, 07 Jun 2016 08:49:29 GMT
Supported: replaces, timer
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (15 headers 0 lines) ---
Really destroying SIP dialog '5c063d805660a811214da2fb26359a96@172.16.0.2:5060' Method: OPTIONS
Reliably Transmitting (no NAT) to 172.16.0.10:5060:
OPTIONS sip:109@172.16.0.10;line=9032 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK60fe3c02
Max-Forwards: 70
From: "Unknown" ;tag=as223ebbfe
To:
Contact:
Call-ID: 4d7bf43c1fa80380064ee9cc7996ea04@172.16.0.2:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.124(13.7.1)
Date: Tue, 07 Jun 2016 08:49:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<--- SIP read from UDP:172.16.0.10:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK60fe3c02
Max-Forwards: 70
From: "Unknown" ;tag=as223ebbfe
To:
Call-ID: 4d7bf43c1fa80380064ee9cc7996ea04@172.16.0.2:5060
CSeq: 102 OPTIONS
Accept: application/sdp
Accept-Encoding: identity
Accept-Language:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Date: Tue, 07 Jun 2016 08:49:29 GMT
Supported: replaces, timer
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (15 headers 0 lines) ---
Really destroying SIP dialog '4d7bf43c1fa80380064ee9cc7996ea04@172.16.0.2:5060' Method: OPTIONS
Reliably Transmitting (NAT) to 217.0.23.100:5060:
OPTIONS sip:tel.myprovider.com SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK27143365;rport
Max-Forwards: 70
From: "Unknown" sip:0123987456@xxx.xxx.xxx.xxx;tag=as25bbe6f5
To:
Contact:
Call-ID: 4733926e25e863b74119846378888628@xxx.xxx.xxx.xxx:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.124(13.7.1)
Date: Tue, 07 Jun 2016 08:49:30 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<--- SIP read from UDP:217.0.23.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;received=xxx.xxx.xxx.xxx;rport=1365;branch=z9hG4bK27143365
To: ;tag=h7g4Esbg_cy8v8vz72eib14dk8o4v9bmcpg4iu9fz
From: "Unknown" sip:0123987456@xxx.xxx.xxx.xxx;tag=as25bbe6f5
Call-ID: 4733926e25e863b74119846378888628@xxx.xxx.xxx.xxx:5060
CSeq: 102 OPTIONS
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '4733926e25e863b74119846378888628@xxx.xxx.xxx.xxx:5060' Method: OPTIONS
<--- SIP read from UDP:172.16.0.10:5060 --->
REGISTER sip:172.16.0.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.10:5060;rport;branch=z9hG4bKj8aori78d2z7cnjkudcbrnyen9uhm
Max-Forwards: 70
From: ;tag=k5v0yr6qg84cjo
To:
Call-ID: c8thhtm2d1f8yl0r.mfozx2rs
CSeq: 22768 REGISTER
Contact:
Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK, UPDATE
Allow-Events: talk,hold
Expires: 3600
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 172.16.0.10:5060 (NAT)
Sending to 172.16.0.10:5060 (NAT)
<--- Transmitting (no NAT) to 172.16.0.10:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.10:5060;branch=z9hG4bKj8aori78d2z7cnjkudcbrnyen9uhm;received=172.16.0.10;rport=5060
From: ;tag=k5v0yr6qg84cjo
To: ;tag=as60738306
Call-ID: c8thhtm2d1f8yl0r.mfozx2rs
CSeq: 22768 REGISTER
Server: FPBX-13.0.124(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="39025d73"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'c8thhtm2d1f8yl0r.mfozx2rs' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:172.16.0.10:5060 --->
REGISTER sip:172.16.0.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.10:5060;rport;branch=z9hG4bKqfzlnv1mow5v
Max-Forwards: 70
From: ;tag=k5v0yr6qg84cjo
To:
Call-ID: c8thhtm2d1f8yl0r.mfozx2rs
CSeq: 22769 REGISTER
Contact:
Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK, UPDATE
Allow-Events: talk,hold
Authorization: Digest username="109", realm="asterisk", nonce="39025d73", uri="sip:172.16.0.2", response="a9221b1e287ed56be193c8ed9f246d30", algorithm=MD5
Expires: 3600
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 172.16.0.10:5060 (no NAT)
Reliably Transmitting (no NAT) to 172.16.0.10:5060:
OPTIONS sip:109@172.16.0.10;line=9032 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK31edbfb5
Max-Forwards: 70
From: "Unknown" ;tag=as4e426b1f
To:
Contact:
Call-ID: 15d95d0f352f41d055a02fe7495b9b18@172.16.0.2:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.124(13.7.1)
Date: Tue, 07 Jun 2016 08:49:43 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<--- Transmitting (no NAT) to 172.16.0.10:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.0.10:5060;branch=z9hG4bKqfzlnv1mow5v;received=172.16.0.10;rport=5060
From: ;tag=k5v0yr6qg84cjo
To: ;tag=as60738306
Call-ID: c8thhtm2d1f8yl0r.mfozx2rs
CSeq: 22769 REGISTER
Server: FPBX-13.0.124(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 3600
Contact: ;expires=3600
Date: Tue, 07 Jun 2016 08:49:43 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'c8thhtm2d1f8yl0r.mfozx2rs' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:172.16.0.10:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK31edbfb5
Max-Forwards: 70
From: "Unknown" ;tag=as4e426b1f
To:
Call-ID: 15d95d0f352f41d055a02fe7495b9b18@172.16.0.2:5060
CSeq: 102 OPTIONS
Accept: application/sdp
Accept-Encoding: identity
Accept-Language:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Date: Tue, 07 Jun 2016 08:49:43 GMT
Supported: replaces, timer
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (15 headers 0 lines) ---
Really destroying SIP dialog '15d95d0f352f41d055a02fe7495b9b18@172.16.0.2:5060' Method: OPTIONS
<--- SIP read from UDP:172.16.0.10:5060 --->
REGISTER sip:172.16.0.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.10:5060;rport;branch=z9hG4bKespxeft5vb7duiv86ifpftrst.yzs3
Max-Forwards: 70
From: ;tag=a0r2ag
To:
Call-ID: h67dc3yt158hmmxrir8e3.gg.is9y0
CSeq: 9063 REGISTER
Contact:
Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK, UPDATE
Allow-Events: talk,hold
Expires: 3600
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 172.16.0.10:5060 (NAT)
Sending to 172.16.0.10:5060 (NAT)
<--- Transmitting (no NAT) to 172.16.0.10:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.10:5060;branch=z9hG4bKespxeft5vb7duiv86ifpftrst.yzs3;received=172.16.0.10;rport=5060
From: ;tag=a0r2ag
To: ;tag=as65858164
Call-ID: h67dc3yt158hmmxrir8e3.gg.is9y0
CSeq: 9063 REGISTER
Server: FPBX-13.0.124(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7e728470"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'h67dc3yt158hmmxrir8e3.gg.is9y0' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:172.16.0.10:5060 --->
REGISTER sip:172.16.0.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.10:5060;rport;branch=z9hG4bKr2z5.tadivu.gn
Max-Forwards: 70
From: ;tag=a0r2ag
To:
Call-ID: h67dc3yt158hmmxrir8e3.gg.is9y0
CSeq: 9064 REGISTER
Contact:
Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK, UPDATE
Allow-Events: talk,hold
Authorization: Digest username="108", realm="asterisk", nonce="7e728470", uri="sip:172.16.0.2", response="74b05b30001795f408ee6ba1899a59f9", algorithm=MD5
Expires: 3600
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 172.16.0.10:5060 (no NAT)
Reliably Transmitting (no NAT) to 172.16.0.10:5060:
OPTIONS sip:108@172.16.0.10;line=6852 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK19091641
Max-Forwards: 70
From: "Unknown" ;tag=as4891b887
To:
Contact:
Call-ID: 7f2d6bf868e5922d65cbd9c54d2cbb1c@172.16.0.2:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.124(13.7.1)
Date: Tue, 07 Jun 2016 08:49:45 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<--- Transmitting (no NAT) to 172.16.0.10:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.0.10:5060;branch=z9hG4bKr2z5.tadivu.gn;received=172.16.0.10;rport=5060
From: ;tag=a0r2ag
To: ;tag=as65858164
Call-ID: h67dc3yt158hmmxrir8e3.gg.is9y0
CSeq: 9064 REGISTER
Server: FPBX-13.0.124(13.7.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 3600
Contact: ;expires=3600
Date: Tue, 07 Jun 2016 08:49:45 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'h67dc3yt158hmmxrir8e3.gg.is9y0' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:172.16.0.10:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK19091641
Max-Forwards: 70
From: "Unknown" ;tag=as4891b887
To:
Call-ID: 7f2d6bf868e5922d65cbd9c54d2cbb1c@172.16.0.2:5060
CSeq: 102 OPTIONS
Accept: application/sdp
Accept-Encoding: identity
Accept-Language:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Date: Tue, 07 Jun 2016 08:49:45 GMT
Supported: replaces, timer
User-Agent: Phone/03.24.0012 (MAC=000000000000; SER= 00000; HW=255)
Content-Length: 0
<------------->
--- (15 headers 0 lines) ---
Really destroying SIP dialog '7f2d6bf868e5922d65cbd9c54d2cbb1c@172.16.0.2:5060' Method: OPTIONS`
Can some one point in the right direct or provide a way to debug this correctly?
Best regards,
Sablapet