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

Freeswitch SVN mikej at freeswitch.org
Sat Jan 20 17:32:20 EST 2007


Author: mikej
Date: Sat Jan 20 17:32:20 2007
New Revision: 4009

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

Log:
make r_sdp char * due to function w/ diff const qualifer.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Sat Jan 20 17:32:20 2007
@@ -2574,7 +2574,7 @@
 						tagi_t tags[])
 	 
 {
-	char const *l_sdp = NULL, *r_sdp = NULL;
+	char *l_sdp = NULL, *r_sdp = NULL;
 	int offer_recv = 0, answer_recv = 0, offer_sent = 0, answer_sent = 0;
 	int ss_state = nua_callstate_init;
 	switch_channel_t *channel = NULL;
@@ -2627,9 +2627,9 @@
 
 		if (r_sdp) {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Remote SDP:\n%s\n", r_sdp);			
-			tech_pvt->remote_sdp_str = switch_core_session_strdup(session, (char *)r_sdp);
-			switch_channel_set_variable(channel, SWITCH_R_SDP_VARIABLE, (char *) r_sdp);
-			pass_sdp(tech_pvt, (char *) r_sdp);
+			tech_pvt->remote_sdp_str = switch_core_session_strdup(session, r_sdp);
+			switch_channel_set_variable(channel, SWITCH_R_SDP_VARIABLE, r_sdp);
+			pass_sdp(tech_pvt, r_sdp);
 
 		}
 	}



More information about the Freeswitch-svn mailing list