[Freeswitch-svn] [commit] r7207 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN brian at freeswitch.org
Mon Jan 14 00:29:33 EST 2008


Author: brian
Date: Mon Jan 14 00:29:33 2008
New Revision: 7207

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Mon Jan 14 00:29:33 2008
@@ -120,18 +120,19 @@
 							  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);
 		}
 		
 	}



More information about the Freeswitch-svn mailing list