提交 6904ae6f authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4404 regression from b9b4db7d

上级 27155bcb
...@@ -1074,15 +1074,17 @@ static void our_sofia_event_callback(nua_event_t event, ...@@ -1074,15 +1074,17 @@ static void our_sofia_event_callback(nua_event_t event,
case nua_i_cancel: case nua_i_cancel:
if (sip && channel) {
switch_channel_set_variable(channel, "sip_hangup_disposition", "recv_cancel"); switch_channel_set_variable(channel, "sip_hangup_disposition", "recv_cancel");
if (sip && channel && sip->sip_reason) { if (sip->sip_reason) {
char *reason_header = sip_header_as_string(nh->nh_home, (void *) sip->sip_reason); char *reason_header = sip_header_as_string(nh->nh_home, (void *) sip->sip_reason);
if (!zstr(reason_header)) { if (!zstr(reason_header)) {
switch_channel_set_variable_partner(channel, "sip_reason", reason_header); switch_channel_set_variable_partner(channel, "sip_reason", reason_header);
} }
} }
}
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论