mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-03 22:26:51 +00:00
destroy handle on bad authenticate
This commit is contained in:
parent
c58efca29d
commit
64a71c5798
@ -890,6 +890,18 @@ void sofia_event_callback(nua_event_t event,
|
|||||||
break;
|
break;
|
||||||
case nua_i_subscribe:
|
case nua_i_subscribe:
|
||||||
sofia_presence_handle_sip_i_subscribe(status, phrase, nua, profile, nh, sofia_private, sip, tags);
|
sofia_presence_handle_sip_i_subscribe(status, phrase, nua, profile, nh, sofia_private, sip, tags);
|
||||||
|
break;
|
||||||
|
case nua_r_authenticate:
|
||||||
|
|
||||||
|
if (status >= 500) {
|
||||||
|
if (sofia_private && sofia_private->gateway) {
|
||||||
|
nua_handle_destroy(sofia_private->gateway->nh);
|
||||||
|
sofia_private->gateway->nh = NULL;
|
||||||
|
} else {
|
||||||
|
nua_handle_destroy(nh);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (status > 100) {
|
if (status > 100) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user