Re: [asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1

2011-02-23 Thread Terry Wilson

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
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1

2011-02-23 Thread Jose P. Espinal

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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1

2011-02-23 Thread Leif Madsen

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.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1

2011-02-23 Thread Leif Madsen

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.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] secret vs remotesecret on outgoing calls in Asterisk 1.6.2.16.1

2011-02-23 Thread Jose P. Espinal

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:j0nhp...@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" ;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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users