[asterisk-bugs] [Asterisk 0018876]: Asterisk Ignores 'remotesecret' parameter

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 23 18:06:40 CST 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18876 
====================================================================== 
Reported By:                khratos
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18876
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.16.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:             2011-02-23 18:06 CST
Last Modified:              2011-02-23 18:06 CST
====================================================================== 
Summary:                    Asterisk Ignores 'remotesecret' parameter
Description: 
Having something like the following on sip.conf:

----- start ----
...
register => john:j0nhp4ss at 66.128.XX.XXX
...

[john-peer]
type=peer
defaultuser=john
remotesecret=j0nhp4ss
;secret=j0nhp4ss
host=66.128.XX.XXX
directmedia=no
dtmfmode=rfc2833
context=jonh-context

----- end ---- 


When I send a call to that block ( Dial(SIP/something at jonh-peer) ), I
receive the following response unless I explicitly indicate a 'secret'
parameter, no matter if 'remotesecret' parameter was indicated:

"Forbidden" from '"Test Account"
<sip:9_XXX at 66.128.XX.XXX>;tag=as749a7ced'


If I set the 'secret' parameter, everything goes smoothly as expected.


Now, I might be confused, but the CHANGES file says:

-----
Added a new configuration option "remotesecret" for authentication *to
remote services*. 

For backwards compatibility, "secret" still has the
same function as before, but now you can configure both a remote secret
and a local secret for mutual authentication.
-----

and on sip.conf.sample

-----
;remotesecret=guessit             ; Our password *to their service*
-----


If (as it seems to say in documentation) 'remotesecret' is used to
authenticate myself when placing a call to the remote network, then is not
working.


Doing a: grep -ir 'remotesecret' . (inside the Asterisk source directory)
indicates that only this files mention that parameter:

./ChangeLog
./channels/chan_sip.c
./CHANGES:
./configs/sip.conf.sample


If I misunderstood the functionality (could be, as English is not my
native language), I would appreciate to be pointed to the correct
documentation. 


Thanks in advice.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-23 18:06 khratos        New Issue                                    
2011-02-23 18:06 khratos        Asterisk Version          => 1.6.2.16.1      
2011-02-23 18:06 khratos        Regression                => No              
2011-02-23 18:06 khratos        SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list