]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
STIR/SHAKEN (#1160)
authorChris Rienzo <chris@signalwire.com>
Tue, 27 Apr 2021 19:54:32 +0000 (15:54 -0400)
committerGitHub <noreply@github.com>
Tue, 27 Apr 2021 19:54:32 +0000 (13:54 -0600)
commitdeecaae870dc0caf14bfc421c871bb6660f5e602
tree6c248b59eebf4f7648ff4bcc94aac2a50a9255d7
parentb7316ba557e6e30e5f12f9ac8c797e947c8d8dca
STIR/SHAKEN (#1160)

* [core] Add SWITCH_CAUSEs for STIR/SHAKEN.
[mod_sofia] Add sofia_verify_identity dialplan APP as a STIR/SHAKEN verification service.  Set sip_hangup_on_verify_identity_fail=true to end calls that fail verification, otherwise check sip_verstat and sip_verstat_detailed channel variables for verification result.

* [mod_sofia] Fix stir shaken implementation issues on fail.

* fix build

* Fix given comments

* stir_shaken_passport_get_grant return does not require to be freed.

* reworked things

* [core] add switch_rfc822_datetime_to_epoch()

* [mod_sofia] fix test return code

* [mod_sofia] Add Date header when signing Identity

* [mod_sofia] Check Date - WIP doesn't work

* [mod_sofia] STIR/SHAKEN check SIP Date header

* Try to give time for sofia to clean up calls

Co-authored-by: Andrey Volk <andywolk@gmail.com>
16 files changed:
configure.ac
src/include/switch_types.h
src/mod/endpoints/mod_sofia/Makefile.am
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.h
src/mod/endpoints/mod_sofia/sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c
src/mod/endpoints/mod_sofia/test/conf/freeswitch.xml
src/mod/endpoints/mod_sofia/test/stir-shaken/priv.pem [new file with mode: 0644]
src/mod/endpoints/mod_sofia/test/stir-shaken/pub.pem [new file with mode: 0644]
src/mod/endpoints/mod_sofia/test/stir-shaken/www/cert.pem [new file with mode: 0644]
src/mod/endpoints/mod_sofia/test/stir-shaken/www/pub.pem [new file with mode: 0644]
src/mod/endpoints/mod_sofia/test/test_sofia_funcs.c
src/mod/endpoints/mod_sofia/test/test_sofia_funcs.sh [new file with mode: 0755]
src/switch_channel.c
tests/unit/switch_vad.c