Asterisk realtime does not register and gives this

[Jan 27 12:58:45] DEBUG[5322] chan_sip.c: Allocating new SIP dialog for (No Call-ID) - OPTIONS (No RTP)
[Jan 27 12:58:46] DEBUG[5322] chan_sip.c: Allocating new SIP dialog for (No Call-ID) - OPTIONS (No RTP)
[Jan 27 12:58:46] DEBUG[5322] chan_sip.c: Ignoring SIP message because of retransmit (REGISTER Seqno 1, ours 1)
[Jan 27 12:58:46] DEBUG[5322] res_config_mysql.c: MySQL RealTime: Everything is fine.
[Jan 27 12:58:46] DEBUG[5322] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_peers WHERE name = ‘999100043’ AND host = ‘dynamic’
[Jan 27 12:58:46] DEBUG[5322] db.c: Unable to find key ‘999100043’ in family ‘SIP/Registry’
[Jan 27 12:58:46] DEBUG[5322] chan_sip.c: Bah, we’re expired (1174/1233056352/1233057526)!
[Jan 27 12:58:46] DEBUG[5322] db.c: Unable to find key ‘999100043’ in family ‘SIP/Registry’

The other servers I have works, only this particular server is sending this error messages and does not register, even trunks are being set to UNAVAILABLE

It also gives 401 Unauthorized message. When registering

Here’s the debug log

<------------->
— (12 headers 0 lines) —
Using latest REGISTER request as basis request
Sending to 119.93.92.11 : 8915 (NAT)
ast02*CLI>
<— Transmitting (NAT) to 119.93.92.11:8915 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.100:8915;branch=z9hG4bK-d8754z-9d3fc378125b2058-1—d8754z-;received=119.93.92.11;rport=8915
From: "999100088"sip:999100088@193.67.129.200;tag=52462a13
To: "999100088"sip:999100088@193.67.129.200
Call-ID: NzBhMzBiMDJkMjUwZDA2ODBmZDBlYzljMzllYmEyZTA.
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: sip:999100088@193.67.129.200
Content-Length: 0

<------------>
ast02*CLI>
<— Transmitting (NAT) to 119.93.92.11:8915 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.100:8915;branch=z9hG4bK-d8754z-9d3fc378125b2058-1—d8754z-;received=119.93.92.11;rport=8915
From: "999100088"sip:999100088@193.67.129.200;tag=52462a13
To: "999100088"sip:999100088@193.67.129.200;tag=as36eee9c2
Call-ID: NzBhMzBiMDJkMjUwZDA2ODBmZDBlYzljMzllYmEyZTA.
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm=“connect1”, nonce="60a7290e"
Content-Length: 0

Hi,

I think you have already done all things right but the problem seem that user is not in database so it cannot find user. Can you send me configuration of extconfig.conf and res_mysql.conf

Thanks
Vikas kumar,
vikaskumar2020@gmail.com
vikaskumar81@msn.com

User is in the database and the password is correct