提交 2d856f8f authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3276 --resolve please attach the diff next time, do not paste it into the…

FS-3276 --resolve please attach the diff next time, do not paste it into the comment.  It ruins the formatting.  Also I changed the patch so the variable names refelect what is being harvested namely sip_bye_content_type and sip_bye_payload
上级 5ef8c497
...@@ -519,6 +519,14 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status, ...@@ -519,6 +519,14 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
cause = sofia_glue_sip_cause_to_freeswitch(status); cause = sofia_glue_sip_cause_to_freeswitch(status);
} }
if (sip->sip_content_type && sip->sip_content_type->c_type) {
switch_channel_set_variable(channel, "sip_bye_content_type", sip->sip_content_type->c_type);
}
if (sip->sip_payload && sip->sip_payload->pl_data) {
switch_channel_set_variable(channel, "sip_bye_payload", sip->sip_payload->pl_data);
}
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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论