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 © 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer [email protected]
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:[email protected];line=6852 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK36a9dd40
Max-Forwards: 70
From: “Unknown” sip:[email protected];tag=as50a73c6b
To: sip:[email protected];line=6852
Contact: sip:[email protected]:5060
Call-ID: [email protected]: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” sip:[email protected];tag=as50a73c6b
To: sip:[email protected];line=6852
Call-ID: [email protected]: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 ‘[email protected]:5060’ Method: OPTIONS
Reliably Transmitting (no NAT) to 172.16.0.10:5060:
OPTIONS sip:[email protected];line=9032 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK60fe3c02
Max-Forwards: 70
From: “Unknown” sip:[email protected];tag=as223ebbfe
To: sip:[email protected];line=9032
Contact: sip:[email protected]:5060
Call-ID: [email protected]: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” sip:[email protected];tag=as223ebbfe
To: sip:[email protected];line=9032
Call-ID: [email protected]: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 ‘[email protected]: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:[email protected];tag=as25bbe6f5
To: sip:tel.myprovider.com
Contact: sip:[email protected]:5060
Call-ID: [email protected]: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: sip:tel.myprovider.com;tag=h7g4Esbg_cy8v8vz72eib14dk8o4v9bmcpg4iu9fz
From: “Unknown” sip:[email protected];tag=as25bbe6f5
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Content-Length: 0
<------------->
— (7 headers 0 lines) —
Really destroying SIP dialog ‘[email protected]: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: sip:[email protected];tag=k5v0yr6qg84cjo
To: sip:[email protected]
Call-ID: c8thhtm2d1f8yl0r.mfozx2rs
CSeq: 22768 REGISTER
Contact: sip:[email protected];line=9032
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: sip:[email protected];tag=k5v0yr6qg84cjo
To: sip:[email protected];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: sip:[email protected];tag=k5v0yr6qg84cjo
To: sip:[email protected]
Call-ID: c8thhtm2d1f8yl0r.mfozx2rs
CSeq: 22769 REGISTER
Contact: sip:[email protected];line=9032
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:[email protected];line=9032 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK31edbfb5
Max-Forwards: 70
From: “Unknown” sip:[email protected];tag=as4e426b1f
To: sip:[email protected];line=9032
Contact: sip:[email protected]:5060
Call-ID: [email protected]: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: sip:[email protected];tag=k5v0yr6qg84cjo
To: sip:[email protected];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: sip:[email protected];line=9032;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” sip:[email protected];tag=as4e426b1f
To: sip:[email protected];line=9032
Call-ID: [email protected]: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 ‘[email protected]: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: sip:[email protected];tag=a0r2ag
To: sip:[email protected]
Call-ID: h67dc3yt158hmmxrir8e3.gg.is9y0
CSeq: 9063 REGISTER
Contact: sip:[email protected];line=6852
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: sip:[email protected];tag=a0r2ag
To: sip:[email protected];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: sip:[email protected];tag=a0r2ag
To: sip:[email protected]
Call-ID: h67dc3yt158hmmxrir8e3.gg.is9y0
CSeq: 9064 REGISTER
Contact: sip:[email protected];line=6852
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:[email protected];line=6852 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.2:5060;branch=z9hG4bK19091641
Max-Forwards: 70
From: “Unknown” sip:[email protected];tag=as4891b887
To: sip:[email protected];line=6852
Contact: sip:[email protected]:5060
Call-ID: [email protected]: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: sip:[email protected];tag=a0r2ag
To: sip:[email protected];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: sip:[email protected];line=6852;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” sip:[email protected];tag=as4891b887
To: sip:[email protected];line=6852
Call-ID: [email protected]: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 ‘[email protected]:5060’ Method: OPTIONS`
Can some one point in the right direct or provide a way to debug this correctly?
Best regards,
Sablapet