mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-22 19:29:54 +00:00
some minor regressions from the last commit
This commit is contained in:
parent
12dc982a2b
commit
129e67a8b9
@ -1664,11 +1664,18 @@ void sofia_event_callback(nua_event_t event,
|
|||||||
|
|
||||||
if ((session = switch_core_session_force_locate(sofia_private->uuid))) {
|
if ((session = switch_core_session_force_locate(sofia_private->uuid))) {
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
|
switch_call_cause_t cause;
|
||||||
|
|
||||||
switch_channel_set_flag(channel, CF_NO_CDR);
|
switch_channel_set_flag(channel, CF_NO_CDR);
|
||||||
switch_channel_hangup(channel, status == 403 ? SWITCH_CAUSE_BEARERCAPABILITY_NOTAVAIL : SWITCH_CAUSE_BEARERCAPABILITY_NOTAUTH);
|
|
||||||
|
cause = sofia_glue_sip_cause_to_freeswitch(status);
|
||||||
|
|
||||||
|
switch_channel_hangup(channel, cause);
|
||||||
switch_core_session_rwunlock(session);
|
switch_core_session_rwunlock(session);
|
||||||
|
if (status == 401 || status == 407) {
|
||||||
switch_core_session_id_dec();
|
switch_core_session_id_dec();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user