Asterisk sip configuration problem

Hi.

i got my asterisk up and runing,i tried to configure and make a call between 2 x-lite softphones with in my network as extensions,so when my x-lite registering on my asterisk server a iget this error warniing:

== Parsing ‘/etc/asterisk/cdr_custom.conf’: Found
*CLI> Feb 22 20:56:46 NOTICE[2448]: chan_sip.c:11200 handle_request_register: Registration from ‘"alias2"sip:alias2@206.224.114.55’ failed for ‘192.168.100.5’ - Username/auth name mismatch
this my sip conf file is like this.

[200]
type=friend
user=alias2
secret=200
host=dynamic
defaultip=192.168.100.5
nat=yes
context=sip

my extension conf file:

exten =>_200,1,Dial(SIP/${EXTEN})
exten =>_200,2,Hangup
my asterisk box ip adress is 206.224.114.55
My softphone ip adress is 192.168.100.5
so please any one can help will be appreciated…thanks in advance…

Regards
Alias.

The error you are getting is that the uid and or pass is wrong.

Try doing this:
[200]
type=friend
user=200
secret=200
host=dynamic
defaultip=192.168.100.5
nat=yes
context=sip
or
[alias2]
type=friend
user=alias2
secret=200
host=dynamic
defaultip=192.168.100.5
nat=yes
context=sip

Also for your extensions.conf
the _ before the extension is only if you are digits. If you want extension 200 to ring on phone 200 try this:

exten =>200,1,Dial(SIP/200)
exten =>200,2,Hangup

Thanks alot David,i tried to follow your instrection and ma getting the same error,i hv checked the username and password to be correct…and can u explain for me what do you mean(the _ before the extension is only if you are digits)any help will be appreciatd again and always…Thanks

Regards
Alias