Hi,
I have been having a problem with my Asterisk / FreePBX setup since last week that is driving me mad. I use an SPA3102 as a local extension and inbound / outbound PSTN line. The PSTN functionality is working fine (but rarely used as VoIP is the default trunk).
The problem is that the SPA3102 is not registering properly as a local extension. Incoming trunk calls are going straight to voicemail and direct calls are failing. Ekiga flashes “Remote user rejected the call”.
The device claims to be registered and Asterisk also shows OK:
Connected to Asterisk 1.4.17~dfsg-2ubuntu1 currently running on octopus (pid = 4262)
octopusCLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
SPA3102_Out 192.168.1.90 5061 OK (5 ms)
SIPGate/2#####0 217.10.79.23 N 5060 OK (346 ms)
MyNetFone/0######1 125.213.160.81 N 5060 OK (46 ms)
203/203 192.168.1.121 D N 5061 OK (1 ms)
202 (Unspecified) D N 0 UNKNOWN
201/201 (Unspecified) D 0 UNKNOWN
200/200 192.168.1.90 D 5060 OK (5 ms)
7 sip peers [Monitored: 5 online, 2 offline Unmonitored: 0 online, 0 offline]
octopusCLI> sip show users
Username Secret Accountcode Def.Context ACL NAT
SPA3102_In from-trunk No RFC3581
2#####0 ######## from-trunk No RFC3581
203 ###### from-internal No Always
202 ###### from-internal No Always
201 ###### from-internal No RFC3581
200 ###### from-internal No RFC3581
0######1 ######## from-trunk No RFC3581
The following is the SIP debug trace. You will see a couple of 401 and 404 errors. Google isn’t providing a solution and I am all out of ideas.
[Dec 15 19:17:57] VERBOSE[4538] logger.c:
<--- SIP read from 192.168.1.90:5060 --->
SUBSCRIBE sip:192.168.1.88 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK-9ffbecbb;rport
From: SPA3102 ;tag=fada3acf1ea124a6
To: SPA3102
Call-ID: [email protected]
CSeq: 11160 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest username="200",realm="asterisk",nonce="7ec13917",uri="sip:192.168.1.88",algorithm=MD5,response="411e39c4ab7e6223eab6731e98170108"
Contact: SPA3102
Expires: 2147483647
Event: message-summary
User-Agent: Linksys/SPA3102-5.1.5(GWa)
Content-Length: 0
<------------->
[Dec 15 19:17:57] VERBOSE[4538] logger.c: — (13 headers 0 lines) —
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Creating new subscription
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Sending to 192.168.1.90 : 5060 (NAT)
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Found peer ‘200’
[Dec 15 19:17:57] VERBOSE[4538] logger.c:
<— Transmitting (no NAT) to 192.168.1.90:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK-9ffbecbb;received=192.168.1.90;rport=5060
From: SPA3102 sip:[email protected];tag=fada3acf1ea124a6
To: SPA3102 sip:[email protected];tag=as3edbe5f6
Call-ID: [email protected]
CSeq: 11160 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="3df5997f"
Content-Length: 0
<------------>
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Scheduling destruction of SIP dialog ‘[email protected]’ in 6400 ms (Method: SUBSCRIBE)
[Dec 15 19:17:57] VERBOSE[4538] logger.c:
<— SIP read from 192.168.1.90:5060 —>
SUBSCRIBE sip:192.168.1.88 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK-4692b97b;rport
From: SPA3102 sip:[email protected];tag=fada3acf1ea124a6
To: SPA3102 sip:[email protected]
Call-ID: [email protected]
CSeq: 11161 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest username=“200”,realm=“asterisk”,nonce=“3df5997f”,uri=“sip:192.168.1.88”,algorithm=MD5,response="9a04c3b03da660e9d584beef81181f6e"
Contact: SPA3102 sip:[email protected]:5060
Expires: 2147483647
Event: message-summary
User-Agent: Linksys/SPA3102-5.1.5(GWa)
Content-Length: 0
<------------->
[Dec 15 19:17:57] VERBOSE[4538] logger.c: — (13 headers 0 lines) —
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Creating new subscription
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Sending to 192.168.1.90 : 5060 (NAT)
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Found peer ‘200’
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Looking for s in from-internal (domain 192.168.1.88)
[Dec 15 19:17:57] VERBOSE[4538] logger.c:
<— Transmitting (no NAT) to 192.168.1.90:5060 —>
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.90:5060;branch=z9hG4bK-4692b97b;received=192.168.1.90;rport=5060
From: SPA3102 sip:[email protected];tag=fada3acf1ea124a6
To: SPA3102 sip:[email protected];tag=as3edbe5f6
Call-ID: [email protected]
CSeq: 11161 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
<------------>
[Dec 15 19:17:57] VERBOSE[4538] logger.c: Really destroying SIP dialog ‘[email protected]’ Method: SUBSCRIBE
[Dec 15 19:18:01] WARNING[7205] func_db.c: DB requires an argument, DB(/)
Thanks,
Paul