]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 8 Nov 2021 16:34:04 +0000 (10:34 -0600)
commitbea08a563bb18927fc2afac912fb0653c543ef93
tree89dee5b9e8694ced3e3f938323075465e31c554c
parent95da40cd50f78cb76514c32bae7c476714096f99
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]