Summary: | ASTERISK-17466: Asterisk Ignores 'remotesecret' parameter | ||
Reporter: | Jose P. Espinal (khratos) | Labels: | |
Date Opened: | 2011-02-23 18:06:40.000-0600 | Date Closed: | 2011-02-28 14:03:58.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | 1.6.2.15 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Having something like the following on sip.conf: ----- start ---- ... register => john:j0nhp4ss@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@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@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. ****** ADDITIONAL INFORMATION ****** Asterisk: 1.6.2.16.1 OS: CentOS release 5.5 (Final) 2.6.18-194.32.1.el5 Installed via Yum | ||
Comments: | By: Leif Madsen (lmadsen) 2011-02-28 14:03:58.000-0600 This has already been resolved and will be available in the latest 1.6.2 branch. |