Jose P. Espinal
2011-Feb-23 15:31 UTC
[asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1
Hello List, I have a little issue with calls placed to a provider declared on sip.conf, because of a not clear (*for me*) behavior of 'remotesecret' parameter. Before continuing, this is my environment: Asterisk: 1.6.2.16.1 OS: CentOS release 5.5 (Final) 2.6.18-194.32.1.el5 Details: I have this block 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, 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. Maybe I'm obviating something 'basic', 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 ----- I thought that 'remotesecret' is used to authenticate myself when placing a call to the remote network, as I used to do with 'secret' parameter. 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 Could someone please point me to documentation regarding this two parameters? Thanks in advice. -- Jose P. Espinal http://www.eslackware.com IRC: Khratos @ #asterisk / -doc / -bugs
Leif Madsen
2011-Feb-23 22:53 UTC
[asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1
On 11-02-23 10:31 AM, Jose P. Espinal wrote:> ----- > 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. > ----- > I thought that 'remotesecret' is used to authenticate myself when placing a call > to the remote network, as I used to do with 'secret' parameter.I may be mistaken, because I don't use remotesecret, but I think the purpose of that was to allow different authentication depending on the direction. My guess is remotesecret is used to authenticate the "remote" end when a call is placed into Asterisk, and secret is used when you're placing a call to the remote server. Or it's possible the feature has a bug and an issue should probably be opened on the issue tracker ;) Leif.
Leif Madsen
2011-Feb-24 00:56 UTC
[asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1
On 11-02-23 10:31 AM, Jose P. Espinal wrote:> Hello List, > > I have a little issue with calls placed to a provider declared on sip.conf, > because of a not clear (*for me*) behavior of 'remotesecret' parameter.Actually I was wrong! See here. It is being resolved. https://reviewboard.asterisk.org/r/1107/ Leif.
Jose P. Espinal
2011-Feb-24 01:11 UTC
[asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1
On 02/23/2011 08:56 PM, Leif Madsen wrote:> > Actually I was wrong! > > See here. It is being resolved. > > https://reviewboard.asterisk.org/r/1107/ > > Leif.Thanks for the feedback, Leif! I will follow that incident closely, as I was starting to doubt about my understanding of English (jk) -- Jose P. Espinal http://www.eslackware.com IRC: [OFTC|FreeNode] Khratos @ #slackware | #asterisk/-doc/-bugs
Terry Wilson
2011-Feb-24 03:50 UTC
[asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1
On Feb 23, 2011, at 7:11 PM, Jose P. Espinal wrote:> On 02/23/2011 08:56 PM, Leif Madsen wrote: >> >> Actually I was wrong! >> >> See here. It is being resolved. >> >> https://reviewboard.asterisk.org/r/1107/ >> >> Leif. > > Thanks for the feedback, Leif! > > I will follow that incident closely, as I was starting to doubt about my understanding of English (jk)I had forgotten that I got a "Ship It!" on that patch. I went ahead and committed the fix to 1.6.2, 1.8, and trunk. Terry