[asterisk-bugs] [Asterisk 0012157]: Global Register vs Global Authentication error
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Mar 18 01:53:00 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12157
======================================================================
Reported By: csabka
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12157
Category: Channels/chan_sip/Registration
Reproducibility: always
Severity: major
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 106328
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 03-06-2008 05:28 CST
Last Modified: 03-18-2008 01:53 CDT
======================================================================
Summary: Global Register vs Global Authentication error
Description:
I have a problem with global authentication based on username.
(I've tried also with match_auth_username=yes option, but nothing
changed)
The problem is the following:
I have two SIP account with different password at the same ITSP. If I
register it:
register=<user1>:<secret1>@sip.itsp.dom/<user1>
register=<user2>:<secret2>@sip.itsp.dom/<user2>
It works fine:
sip show registry
Host Username Refresh State
sip.itsp.dom:5060 <user1> 105 Registered
sip.itsp.dom:5060 <user2> 105 Registered
After I delete the secret from the register line, like this:
register=<user1>@sip.itsp.dom/<user1>
register=<user2>@sip.itsp.dom/<user2>
and add global authentication:
[authentication]
auth = <user1>:<secret1>@<realm>
auth = <user2>:<secret2>@<realm>
then:
Host Username Refresh State
sip.itsp.dom:5060 <user1> 105 Registered
sip.itsp.dom:5060 <user2> 120 Auth. Sent
After I change the order of global authentication
[authentication]
auth = <user2>:<secret2>@<realm>
auth = <user1>:<secret1>@<realm>
then:
Host Username Refresh State
sip.itsp.dom:5060 <user1> 120 Auth. Sent
sip.itsp.dom:5060 <user2> 105 Registered
I have also tried if I didn't delete the secret from register, but the
same result as above. Note that the realm is totally different from
sip.itsp.dom.
I found an interesting "solution". If I change my ITSP's password to the
same for all my accounts (user2's secret to the same as user1) then it
works.
Summary: This can only work if user[n] to user[n+1] has the same password:
secret[n]=secret[n+1]
Regards:
Csaba Lack
======================================================================
----------------------------------------------------------------------
oej - 03-18-08 01:53
----------------------------------------------------------------------
Well, we can't handle multiple credentials in the same realm. That's by
design, not a bug. We propably should point that out in the configuration
file.
Issue History
Date Modified Username Field Change
======================================================================
03-18-08 01:53 oej Note Added: 0084113
======================================================================
More information about the asterisk-bugs
mailing list