提交 bb62df6e authored 作者: Anthony Minessale's avatar Anthony Minessale

copy var

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16902 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ee3f9b79
...@@ -465,6 +465,8 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status, ...@@ -465,6 +465,8 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
switch_snprintf(st, sizeof(st), "%d", status); switch_snprintf(st, sizeof(st), "%d", status);
switch_channel_set_variable(channel, "sip_term_status", st); switch_channel_set_variable(channel, "sip_term_status", st);
switch_snprintf(st, sizeof(st), "sip:%d", status); switch_snprintf(st, sizeof(st), "sip:%d", status);
switch_channel_set_variable_partner(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st);
switch_channel_set_variable(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st);
if (phrase) { if (phrase) {
switch_channel_set_variable_partner(channel, "sip_hangup_phrase", phrase); switch_channel_set_variable_partner(channel, "sip_hangup_phrase", phrase);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论