[Home]

Summary:ASTERISK-14735: IAX2 RSA authentication --> calls always unauthenticated
Reporter:Jonas Kellens (jonaskellens)Labels:
Date Opened:2009-08-30 07:54:31Date Closed:2011-06-07 14:07:50
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk Box 1, iax.conf :

[BOX-YOCAN]
type=user
auth=rsa
inkeys=Box-Yocan-Key (public)
context=from-BOX-YOCAN

Asterisk Box 2, iax.conf :
[hostedasterisk]
type=peer
host=ip
auth=rsa
outkey=Box-Yocan-Key (private)
username=BOX-YOCAN

Keys are initialised with 'keys init' and reside in /var/lib/asterisk/keys

Still on the CLI of Asterisk Box 1 (when Asterisk Box 2 registers) :
[Aug 30 14:38:47]     -- Registered IAX2 'BOX-YOCAN' (UNAUTHENTICATED) at ip:4569

Also calls coming from Asterisk Box 2 to Asterisk Box 1 always come into the [default] context because all incoming calls are unauthenticated.

So I want to use RSA keypair from Box 2 to Box 1 but I have no luck...

Why is all communication still unauthenticated ??
Comments:By: Leif Madsen (lmadsen) 2009-08-31 09:14:02

First, you should try with a more recent version of Asterisk, and not an older 1.4 version.

Second, this seems like a possible configuration issue, and thus I'm going to direct you to the asterisk-users mailing list, or #asterisk IRC channel. If it is deemed to really be a bug, then please reopen this issue, but provide some more information about the call, and console output, and other necessary debugging information to reproduce. Thanks!