Revision
15999
Author
anthm
Date
2009-12-18 14:46:39 -0600 (Fri, 18 Dec 2009)

Log Message

change ianacode to 10 across the board

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_pcm.c (15998 => 15999)


--- freeswitch/trunk/src/switch_pcm.c	2009-12-18 20:16:37 UTC (rev 15998)
+++ freeswitch/trunk/src/switch_pcm.c	2009-12-18 20:46:39 UTC (rev 15999)
@@ -322,7 +322,6 @@
 {
 	switch_codec_interface_t *codec_interface;
 	int mpf = 10000, spf = 80, bpf = 160, ebpf = 160, bps = 128000, rate = 8000, counta = 1, countb = 12;
-	switch_payload_t ianacode[4] = { 0, 10, 117, 119 };
 	int samples_per_frame, bytes_per_frame, ms_per_frame, x;
 
 	/* connect my internal structure to the blank pointer passed to me */
@@ -379,7 +378,7 @@
 		}
 		for (; countb > 0; countb--) {
 			switch_core_codec_add_implementation(pool, codec_interface,
-												 SWITCH_CODEC_TYPE_AUDIO, ianacode[counta], "L16", NULL, rate, rate, bps,
+												 SWITCH_CODEC_TYPE_AUDIO, 10, "L16", NULL, rate, rate, bps,
 												 mpf * countb, spf * countb, bpf * countb, ebpf * countb, 1, spf * countb,
 												 switch_raw_init, switch_raw_encode, switch_raw_decode, switch_raw_destroy);
 		}
@@ -398,7 +397,7 @@
 	for (x = 0; x < 5; x++) {
 		switch_core_codec_add_implementation(pool, codec_interface,
 											 SWITCH_CODEC_TYPE_AUDIO,	/* enumeration defining the type of the codec */
-											 118, 						/* the IANA code number */
+											 10, 						/* the IANA code number */
 											 "L16",						/* the IANA code name */
 											 NULL,						/* default fmtp to send (can be overridden by the init function) */
 											 48000,						/* samples transferred per second */
@@ -522,7 +521,7 @@
 	for (x = 0; x < 3; x++) {
 		switch_core_codec_add_implementation(pool, codec_interface,
 											 SWITCH_CODEC_TYPE_AUDIO,	/* enumeration defining the type of the codec */
-											 118, 						/* the IANA code number */
+											 10, 						/* the IANA code number */
 											 "L16",						/* the IANA code name */
 											 NULL,						/* default fmtp to send (can be overridden by the init function) */
 											 48000,						/* samples transferred per second */
@@ -545,7 +544,7 @@
 
 	switch_core_codec_add_implementation(pool, codec_interface,
 										 SWITCH_CODEC_TYPE_AUDIO,	/* enumeration defining the type of the codec */
-										 118,						/* the IANA code number */
+										 10,						/* the IANA code number */
 										 "L16", 					/* the IANA code name */
 										 NULL, 						/* default fmtp to send (can be overridden by the init function) */
 										 22050, 					/* samples transferred per second */
@@ -564,7 +563,7 @@
 
 	switch_core_codec_add_implementation(pool, codec_interface,
 										 SWITCH_CODEC_TYPE_AUDIO, 	/* enumeration defining the type of the codec */
-										 118, 						/* the IANA code number */
+										 10, 						/* the IANA code number */
 										 "L16", 					/* the IANA code name */
 										 NULL, 						/* default fmtp to send (can be overridden by the init function) */
 										 11025, 					/* samples transferred per second */