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

Freeswitch SVN mikej at freeswitch.org
Sat Jan 12 14:56:47 EST 2008


Author: mikej
Date: Sat Jan 12 14:56:47 2008
New Revision: 7191

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

Log:
use braces on ifs.

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	Sat Jan 12 14:56:47 2008
@@ -2354,8 +2354,9 @@
 
 		switch_channel_set_variable(channel, "sip_from_comment", sip->sip_from->a_comment);
 
-		if (sip->sip_from->a_params)
+		if (sip->sip_from->a_params) {
 			set_variable_sip_param(channel, "from", sip->sip_from->a_params);
+		}
 
 		switch_channel_set_variable(channel, "sofia_profile_name", profile->name);
 
@@ -2420,8 +2421,9 @@
 		
 			switch_channel_set_variable(channel, "sip_to_comment", sip->sip_to->a_comment);
 
-			if (sip->sip_to->a_params)
+			if (sip->sip_to->a_params) {
 				set_variable_sip_param(channel, "to", sip->sip_to->a_params);
+			}
 
 			if (sip->sip_contact->m_url->url_port) {
 				port = atoi(sip->sip_contact->m_url->url_port);
@@ -2483,9 +2485,9 @@
 
 		switch_channel_set_variable(channel, "sip_referred_by_cid", sip->sip_referred_by->b_cid);
 
-		if (sip->sip_referred_by->b_params)
+		if (sip->sip_referred_by->b_params) {
 			set_variable_sip_param(channel, "referred_by", sip->sip_referred_by->b_params);
-
+		}
 	}
 
 	sofia_glue_attach_private(session, profile, tech_pvt, channel_name);



More information about the Freeswitch-svn mailing list