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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 27 13:36:15 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
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:                     feedback
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:              
====================================================================== 
Date Submitted:             2010-01-28 07:31 CST
Last Modified:              2010-04-27 13:36 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
====================================================================== 

---------------------------------------------------------------------- 
 (0121020) jtodd (administrator) - 2010-04-27 13:36
 https://issues.asterisk.org/view.php?id=16725#c121020 
---------------------------------------------------------------------- 
Olle, is there any progress or status on how to move forward with this or
abandon the patch? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-27 13:36 jtodd          Note Added: 0121020                          
======================================================================




More information about the asterisk-bugs mailing list