mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
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>
This commit is contained in:
@@ -75,11 +75,12 @@ FST_CORE_BEGIN("./conf")
|
||||
int duration;
|
||||
float pos = 0.0;
|
||||
int got_transition = 0;
|
||||
int res;
|
||||
switch_vad_state_t cur_state = SWITCH_VAD_STATE_NONE;
|
||||
|
||||
switch_vad_t *vad = switch_vad_init(8000, 1);
|
||||
fst_requires(vad);
|
||||
int res = switch_vad_set_mode(vad, 0); // tone is detected as speech in mode 0
|
||||
res = switch_vad_set_mode(vad, 0); // tone is detected as speech in mode 0
|
||||
fst_requires(res == 0);
|
||||
switch_vad_set_param(vad, "silence_ms", 400);
|
||||
switch_vad_set_param(vad, "voice_ms", 80);
|
||||
|
||||
Reference in New Issue
Block a user