提交 64a71c57 authored 作者: Anthony Minessale's avatar Anthony Minessale

destroy handle on bad authenticate

上级 c58efca2
......@@ -890,6 +890,18 @@ void sofia_event_callback(nua_event_t event,
break;
case nua_i_subscribe:
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;
default:
if (status > 100) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论