[SOLVED] chan_sip.c:7708 handle_request: Registration

Hello folks,

I am using X-lite to connect to Asterisk. But when I enter the SIP into the phone, it wants to register.

The CLI gives me this error

Nov 17 07:32:10 NOTICE[15624]: chan_sip.c:7708 handle_request: Registration from '"mike"<sip:7101@xx.232.86.166>' failed for 'xx.15.117.27' Nov 17 07:32:14 NOTICE[15624]: chan_sip.c:7708 handle_request: Registration from '"mike"<sip:7101@xx.232.86.166>' failed for 'xx.15.117.27' Nov 17 07:32:18 NOTICE[15624]: chan_sip.c:7708 handle_request: Registration from '"mike"<sip:7101@xx.232.86.166>' failed for 'xx.15.117.27' Nov 17 07:32:22 NOTICE[15624]: chan_sip.c:7708 handle_request: Registration from '"mike"<sip:7101@xx.232.86.166>' failed for 'xx.15.117.27'

My sip.conf

[code][general]
port=5060
bindaddr=0.0.0.0
allow=all
context=bogon-calls

[2000]
type=friend
username=2000
secret=xxxx
host=dynamic
context=from-sip
mailbox=100

[2001]
type=friend
username=2001
secret=xxxx
host=dynamic
context=from-sip
mailbox=101

[222]
type=friend
allow=all
username=222
secret=xxx
host=dynamic
context=general
callerid=“Mike” <222>
amaflags=default
mailbox=222@default
dtmfmode=rfc2833
video=no
restrictcid=yes
insecure=invite
permit=201.67.14.154

[sip7101]
context=general
type=friend
username=7101
secret=xxxx
auth=md5
host=dynamic
dtmfmode=rfc2833
mailbox=7101
insecure=invite
callerid=""
restrictcid=no
amaflags=default
allow=all
nat=route[/code]

It does not matter wich sip I use to connect, the error keeps the same.

What could be wrong ?

Thanks

double check that you have the authentication details in X-Lite setup as per your entries in sip.conf. and remember to reload sip if you make any changes to sip.conf (or any includes to sip.conf) … you can do this by issuing a ‘CLI> sip reload’

This did not help me.
Still have the same errors.

So, again, what could be wrong?

well, again, you’ve not set it up correctly. if you’re struggling, just create the one entry in sip.conf and make sure that you set X-Lite up with the username and password that you specify in sip.conf.

I did clean out all settings/files and made a new install of asterisk.
Now it is running fine, think I made an other config error.