# Asterisk 1.8.11.1 realtime spa3102 not registering - Help!

**URL:** <https://community.asterisk.org/t/asterisk-1-8-11-1-realtime-spa3102-not-registering-help/40818>\
**Category:** Asterisk Support\
**Created:** [October 22, 2012, 3:23am UTC](https://community.asterisk.org/t/asterisk-1-8-11-1-realtime-spa3102-not-registering-help/40818 "2012-10-22T03:23:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pw44](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@pw44](https://community.asterisk.org/u/pw44)\
**Post date:** [October 22, 2012, 3:23am UTC](https://community.asterisk.org/t/asterisk-1-8-11-1-realtime-spa3102-not-registering-help/40818/1 "2012-10-22T03:23:00Z")

</div>

Hi,  
i’m facing a strange situation and as newbie i’m kindly asking for help.  
I had asterisk 1.6 with freepbx and a spa3102 woking as the pstn gateway.  
Now i got a new environment, with Asterisk 1.8.11.1 realtime (all configs are stored in the mysql database), and i’m not being able to make spa3102 work.  
The configurations of the spa3102 are the same i had in my previous environment, but it does not register.

The sip debug shows the following:

[code]\<— SIP read from UDP:192.168.80.30:5061 —\>  
REGISTER sip:192.168.80.1 SIP/2.0  
Via: SIP/2.0/UDP 192.168.80.30:5061;branch=z9hG4bK-b84734c9  
From: Unknown Caller sip:spa3102@192.168.80.1;tag=daea7b1299b5a3a8o1  
To: Unknown Caller sip:spa3102@192.168.80.1  
Call-ID: [59e95fec-ea4373df@192.168.80.30](mailto:59e95fec-ea4373df@192.168.80.30)  
CSeq: 47241 REGISTER  
Max-Forwards: 70  
Contact: Unknown Caller sip:spa3102@192.168.80.30:5061;expires=300  
User-Agent: Linksys/SPA3102-5.1.7(GW)  
Content-Length: 0  
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER  
Supported: x-sipura, replaces

\<-------------\>  
— (12 headers 0 lines) —  
Sending to 192.168.80.30:5061 (NAT)

\<— Transmitting (NAT) to 192.168.80.30:5061 —\>  
SIP/2.0 401 Unauthorized  
Via: SIP/2.0/UDP 192.168.80.30:5061;branch=z9hG4bK-b84734c9;received=192.168.80.30;rport=5061  
From: Unknown Caller sip:spa3102@192.168.80.1;tag=daea7b1299b5a3a8o1  
To: Unknown Caller sip:spa3102@192.168.80.1;tag=as00018c3a  
Call-ID: [59e95fec-ea4373df@192.168.80.30](mailto:59e95fec-ea4373df@192.168.80.30)  
CSeq: 47241 REGISTER  
Server: Asterisk PBX 1.8.11.1-1digium1~lucid  
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH  
Supported: replaces, timer  
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="77ef4f55"  
Content-Length: 0

\<------------\>  
Scheduling destruction of SIP dialog ‘59e95fec-ea4373df@192.168.80.30’ in 32000 ms (Method: REGISTER)  
[2012-10-21 12:31:53] NOTICE[13062]: chan\_sip.c:24933 handle\_request\_register: Registration from ‘Unknown Caller sip:spa3102@192.168.80.1’ failed for ‘192.168.80.30:5061’ - No matching peer found  
Scheduling destruction of SIP dialog ‘59e95fec-ea4373df@192.168.80.30’ in 32000 ms (Method: REGISTER)[/code]

Can someone help me in order to have it working?

TIA,

Paulo
