Merge pull request #1680 from signalwire/q850

[mod_sofia] on call term optionally ignore Q.850 Reason
This commit is contained in:
Andrey Volk 2022-06-07 20:18:43 +03:00 committed by GitHub
commit 49652d4505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8718,7 +8718,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
sofia_clear_flag_locked(tech_pvt, TFLAG_NOHUP);
} else if (switch_channel_up(channel)) {
int cause;
if (tech_pvt->q850_cause) {
if (tech_pvt->q850_cause && !switch_channel_var_true(channel, "ignore_q850_reason")) {
cause = tech_pvt->q850_cause;
} else {
cause = sofia_glue_sip_cause_to_freeswitch(status);