]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_iax2: Allow both secret and outkey at dial time
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 26 Oct 2021 00:47:02 +0000 (00:47 +0000)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 8 Nov 2021 17:26:21 +0000 (11:26 -0600)
commitdf9aeea4c89bde47e448dcd58c28b217dbeb26ae
tree2942917c14d1ad06e7693e3061b18dd30305e99f
parentd1163653d1baafb2e35da91c4a69c7ce4086eb24
chan_iax2: Allow both secret and outkey at dial time

Historically, the dial syntax for IAX2 has held that
an outkey (used only for RSA authenticated calls)
and a secret (used only for plain text and MD5 authenticated
calls, historically) were mutually exclusive, and thus
the same position in the dial string was used for both
values.

Now that encryption is possible with RSA authentication,
this poses a limitation, since encryption requires a
secret and RSA authentication requires an outkey. Thus,
the dial syntax is extended so that both a secret and
an outkey can be specified.

The new extended syntax is backwards compatible with the
old syntax. However, a secret can now be specified after
the outkey, or the outkey can be specified after the secret.
This makes it possible to spawn an encrypted RSA authenticated
call without a corresponding peer being predefined in iax.conf.

ASTERISK-29707 #close

Change-Id: I1f8149313ed760169d604afbb07720a8b07dd00e
channels/chan_iax2.c
doc/CHANGES-staging/chan_iax2_dial.txt [new file with mode: 0644]