res_stir_shaken: Add stir_shaken option and general improvements.

Added a new configuration option for PJSIP endpoints - stir_shaken. If
set to yes, then STIR/SHAKEN support will be added to inbound and
outbound INVITEs. The default is no. Alembic has been updated to include
this option.

Previously the dialplan function was not trimming the whitespace from
the parameters it recieved. Now it does.

Also added a conditional that, when TEST_FRAMEWORK is enabled, the
timestamp in the identity header will be overlooked. This is just for
testing, since the testsuite will rely on a SIPp scenario with a preset
identity header to trigger the MISMATCH result.

Change-Id: I43d67f1489b8c1c5729ed3ca8d71e35ddf438df1
This commit is contained in:
Ben Ford
2020-06-24 11:49:11 -05:00
committed by George Joseph
parent d979bdf87a
commit 21ab0a450b
9 changed files with 127 additions and 14 deletions

View File

@@ -1158,6 +1158,14 @@
being forwarded.</para>
</description>
</configOption>
<configOption name="stir_shaken" default="no">
<synopsis>Enable STIR/SHAKEN support on this endpoint</synopsis>
<description><para>
Enable STIR/SHAKEN support on this endpoint. On incoming INVITEs,
the Identity header will be checked for validity. On outgoing
INVITEs, an Identity header will be added.</para>
</description>
</configOption>
</configObject>
<configObject name="auth">
<synopsis>Authentication type</synopsis>