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

Freeswitch SVN anthm at freeswitch.org
Fri Feb 23 15:03:30 EST 2007


Author: anthm
Date: Fri Feb 23 15:03:30 2007
New Revision: 4375

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

Log:
doh

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	Fri Feb 23 15:03:30 2007
@@ -239,8 +239,6 @@
 	char *timer_name;
 	int sip_port;
 	char *codec_string;
-	char *codec_order[SWITCH_MAX_CODECS];
-	int codec_order_last;
 	int running;
 	int codec_ms;
 	int dtmf_duration;
@@ -269,6 +267,8 @@
 	switch_payload_t agreed_pt;
 	switch_core_session_t *session;
 	switch_frame_t read_frame;
+	char *codec_order[SWITCH_MAX_CODECS];
+	int codec_order_last;
 	const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
 	int num_codecs;
 	switch_codec_t read_codec;
@@ -824,11 +824,11 @@
 	if (codec_string) {
 		char *tmp_codec_string;
 		if ((tmp_codec_string = strdup(codec_string))) {
-			tech_pvt->profile->codec_order_last = switch_separate_string(tmp_codec_string, ',', tech_pvt->profile->codec_order, SWITCH_MAX_CODECS);
+			tech_pvt->codec_order_last = switch_separate_string(tmp_codec_string, ',', tech_pvt->codec_order, SWITCH_MAX_CODECS);
 			tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs,
 																			SWITCH_MAX_CODECS,
-																			tech_pvt->profile->codec_order,
-																			tech_pvt->profile->codec_order_last);
+																			tech_pvt->codec_order,
+																			tech_pvt->codec_order_last);
 			free(tmp_codec_string);
 		}
 	} else {



More information about the Freeswitch-svn mailing list