From: Michael Jerris Date: Tue, 31 Oct 2006 05:42:40 +0000 (+0000) Subject: use switch_payload_t for the rtp payload numbers. X-Git-Tag: v1.0-beta1~1796 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3146d99422891351f011d95d35c410f536e8da3a;p=thirdparty%2Ffreeswitch.git use switch_payload_t for the rtp payload numbers. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3240 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 80daedd3cd..450bfc2ab2 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -252,7 +252,7 @@ struct sofia_profile { 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 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp) 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;