[Freeswitch-svn] [commit] r2324 - freeswitch/trunk/src/mod/endpoints/mod_dingaling

Freeswitch SVN mikej at freeswitch.org
Thu Aug 17 22:21:26 EDT 2006


Author: mikej
Date: Thu Aug 17 22:21:26 2006
New Revision: 2324

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

Log:
cast for possible loss of data.

Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	Thu Aug 17 22:21:26 2006
@@ -1645,7 +1645,7 @@
 							switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Choosing Payload index %u %s %u\n", y, payloads[x].name, payloads[x].id);
 							tech_pvt->codec_name = tech_pvt->codecs[y]->iananame;
 							tech_pvt->codec_num = tech_pvt->codecs[y]->ianacode;
-							tech_pvt->r_codec_num = payloads[x].id;
+							tech_pvt->r_codec_num = (switch_payload_t)(payloads[x].id);
 							if (!switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
 								do_describe(tech_pvt, 0);
 							}



More information about the Freeswitch-svn mailing list