[asterisk-bugs] [Asterisk 0016725]: [patch] Add support for configurable peer username in digest authentication

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 10 11:14:09 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16725 
====================================================================== 
Reported By:                pbertera
Assigned To:                oej
====================================================================== 
Project:                    Asterisk
Issue ID:                   16725
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-01-28 07:31 CST
Last Modified:              2010-05-10 11:14 CDT
====================================================================== 
Summary:                    [patch] Add support for configurable peer username
in digest authentication
Description: 
This patch add the ability to create different peers with same digest
credentials.
I added a new peer parameter "challengeuser" that defines the username
used during digest authentication.
this way you can define multiple peer with same digest credentials.

The peer definition in sip.conf:

[pietro](sip-client-base)
challengeuser=myauthuser
secret=XXXXX
qualify=yes
nat=yes

This is the authenticated INVITE matching the peer pietro: the dighest
fields is generated using challengeuser parameter.

Via: SIP/2.0/UDP 172.20.101.110;rport;branch=z9hG4bKxzadkqei
Max-Forwards: 70
To: <sip:01234567 at domain.it>
From: "Pietro" <sip:pietro at domain.it>;tag=vtrqd
Call-ID: uxgmnxznrqtgjqb at bertuccia
CSeq: 184 INVITE
Contact: <sip:pietro at 172.20.101.110>
Content-Type: application/sdp
Authorization: Digest
username="myauthuser",realm="domain.it",nonce="1bc80fe1",uri="sip:03384007825 at xsec.it",response="f5687eb90387b69013a217e2a15821ef",algorithm=MD5
Allow:
INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE
Supported: replaces,norefersub,100rel
User-Agent: Twinkle/1.4.2
Content-Length: 312
====================================================================== 

---------------------------------------------------------------------- 
 (0121650) lmadsen (administrator) - 2010-05-10 11:14
 https://issues.asterisk.org/view.php?id=16725#c121650 
---------------------------------------------------------------------- 
Since I'm deferring to Olle's judgment here, I'm closing this issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-10 11:14 lmadsen        Note Added: 0121650                          
2010-05-10 11:14 lmadsen        Status                   feedback => closed  
2010-05-10 11:14 lmadsen        Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list