提交 7b09849c authored 作者: Brian West's avatar Brian West

clean this code up a tiny bit. Doesn't add anything

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7207 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 7f0c8c9f
...@@ -120,18 +120,19 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status, ...@@ -120,18 +120,19 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
tagi_t tags[]) tagi_t tags[])
{ {
switch_channel_t *channel = NULL; switch_channel_t *channel = NULL;
const char *rtp_txstat_header;
const char *rtp_rxstat_header;
if (session) { if (session) {
const char *tmp;
channel = switch_core_session_get_channel(session); channel = switch_core_session_get_channel(session);
if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_user_agent->g_string)){ if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_user_agent->g_string)){
switch_channel_set_variable(channel, "sip_user_agent", sip->sip_user_agent->g_string); switch_channel_set_variable(channel, "sip_user_agent", sip->sip_user_agent->g_string);
} }
if ((rtp_txstat_header = sofia_glue_get_unknown_header(sip, "rtp-txstat"))) { if ((tmp = sofia_glue_get_unknown_header(sip, "rtp-txstat"))) {
switch_channel_set_variable(channel, "sip_rtp_txstat", rtp_txstat_header); switch_channel_set_variable(channel, "sip_rtp_txstat", tmp);
} }
if ((rtp_rxstat_header = sofia_glue_get_unknown_header(sip, "rtp-rxstat"))) { if ((tmp = sofia_glue_get_unknown_header(sip, "rtp-rxstat"))) {
switch_channel_set_variable(channel, "sip_rtp_rxstat", rtp_rxstat_header); switch_channel_set_variable(channel, "sip_rtp_rxstat", tmp);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论