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

Freeswitch SVN mikej at freeswitch.org
Tue Oct 31 00:42:40 EST 2006


Author: mikej
Date: Tue Oct 31 00:42:40 2006
New Revision: 3240

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

Log:
use switch_payload_t for the rtp payload numbers.

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	Tue Oct 31 00:42:40 2006
@@ -252,7 +252,7 @@
 struct private_object {
 	sofia_private_t sofia_private;
 	uint32_t flags;
-	uint32_t agreed_pt;
+	switch_payload_t agreed_pt;
 	switch_core_session_t *session;
 	switch_frame_t read_frame;
 	const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
@@ -2016,7 +2016,7 @@
 						tech_pvt->remote_sdp_audio_ip = switch_core_session_strdup(session, (char *)sdp->sdp_connection->c_address);
 						tech_pvt->rm_fmtp = switch_core_session_strdup(session, (char *)map->rm_fmtp);
 						tech_pvt->remote_sdp_audio_port = (switch_port_t)m->m_port;
-						tech_pvt->agreed_pt = map->rm_pt;
+						tech_pvt->agreed_pt = (switch_payload_t)map->rm_pt;
 						break;
 					} else {
 						match = 0;



More information about the Freeswitch-svn mailing list