Username Mismatch

Hello all

I’m trying to configure Asterisk as Application Server in OpenIMSCore.
But i have the following error, when user jane is trying to register:

WARNING[3934]: chan_sip_c: 8377 check_auth: username mismatch, have , digest has jane@ims.aet
NOTICE[3934]: chan_sip_c:14830 handle_request_subscribe: Failed to athenticate user "jane"sip:jane@ims.aet;tag=667e347f for SUBSCRIBE

my sip.conf:

[general]
context=default
allowoverlap=no
bindport=6060
bindaddr=0.0.0.0
srvlookup=yes
allow=all

[jane]
host=dynamic
type=peer
auth=jane@ims.aet
secret=jane
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=yes ; This phone is natted
canreinvite=no ; Asterisk by default tries to redirect
context=internal ; the internal context controls what we can do

Any help would be greatfully appreciated.
Thanks in advance.

Trowa

Seems that you are not sending the correct user name or pass. Try using a name with out @ims.net also try setting user=jane and username=jane

If i try without @ims.aet the registration is succesfull. For example:
[1000]
host=dynamic
type=peer
secret=test1
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=yes ; This phone is natted
canreinvite=no ; Asterisk by default tries to redirect
context=internal ; the internal context controls what we can do

I tried change this user to test the user and username field as follow:
[1000]
user=10003
username=10004
host=dynamic
type=peer
secret=test1
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=yes ; This phone is natted
canreinvite=no ; Asterisk by default tries to redirect
context=internal ; the internal context controls what we can do

the registration is same that the first one, i mean i don’t have to make any change in x-lite and the user is registrated succesfully. If i change the username or Auth name in X-Lite to 10003 or 10004 there is a 404 (or 403) error.
So, do i have to make other changes in configs files for user and username fields become active in registration?

The user and user name should be the same. In general I personally set the profile name (you have 1000) the user name and the authname to the same name/number. I set all those in my IP phone.

[quote=“trowabloom”][jane]
host=dynamic
type=peer
auth=jane@ims.aet
secret=jane
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=yes ; This phone is natted
canreinvite=no ; Asterisk by default tries to redirect
context=internal ; the internal context controls what we can do[/quote]
You either need to add username=jane or change the type to friend to use the context as the username.

Thanks for your replies.

Well i have the same problem so i put the question in different way:

How can i configure an user with username different from authorization user name??

Thanks in advance.

Regards,
Trowa.

Add a line username=.

Well i tried this:

[1000]
host=dynamic
type=friend
username=10001
secret=test1
qualify=yes ; Qualify peer is no more than 2000 ms away
nat=yes ; This phone is natted
canreinvite=no ; Asterisk by default tries to redirect
context=internal ; the internal context controls what we can do

So if i change the Authorization user name in eYeBeam to 10001 there is a 403 error, then this way isn’t working for entering a different username from authorization user name.

Are there another files to edit??

Thanks,
Trowa.

Please i really need help here.

I need configure a SIP user with different username and Authorization username.

How can i get this configuration? can it be possible?

Regards,
Trowa