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
This commit is contained in:
Naveen Albert
2021-10-26 00:47:02 +00:00
committed by George Joseph
parent f81c4ff3c9
commit 530e89655e
2 changed files with 29 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
Subject: chan_iax2
Both a secret and an outkey may be specified at dial time,
since encryption is possible with RSA authentication.