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
[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.
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.
[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.