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
This commit is contained in:
Brian West 2008-01-14 05:29:33 +00:00
parent 7f0c8c9f81
commit 7b09849c9c
1 changed files with 7 additions and 6 deletions

View File

@ -120,18 +120,19 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
tagi_t tags[])
{
switch_channel_t *channel = NULL;
const char *rtp_txstat_header;
const char *rtp_rxstat_header;
if (session) {
const char *tmp;
channel = switch_core_session_get_channel(session);
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);
}
if ((rtp_txstat_header = sofia_glue_get_unknown_header(sip, "rtp-txstat"))) {
switch_channel_set_variable(channel, "sip_rtp_txstat", rtp_txstat_header);
if ((tmp = sofia_glue_get_unknown_header(sip, "rtp-txstat"))) {
switch_channel_set_variable(channel, "sip_rtp_txstat", tmp);
}
if ((rtp_rxstat_header = sofia_glue_get_unknown_header(sip, "rtp-rxstat"))) {
switch_channel_set_variable(channel, "sip_rtp_rxstat", rtp_rxstat_header);
if ((tmp = sofia_glue_get_unknown_header(sip, "rtp-rxstat"))) {
switch_channel_set_variable(channel, "sip_rtp_rxstat", tmp);
}
}