提交 a4a79bcf authored 作者: Anthony Minessale's avatar Anthony Minessale

let sofia have here way

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3236 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 46129566
...@@ -252,6 +252,7 @@ struct sofia_profile { ...@@ -252,6 +252,7 @@ struct sofia_profile {
struct private_object { struct private_object {
sofia_private_t sofia_private; sofia_private_t sofia_private;
uint32_t flags; uint32_t flags;
uint32_t agreed_pt;
switch_core_session_t *session; switch_core_session_t *session;
switch_frame_t read_frame; switch_frame_t read_frame;
const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS]; const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
...@@ -1329,7 +1330,7 @@ static switch_status_t activate_rtp(private_object_t *tech_pvt) ...@@ -1329,7 +1330,7 @@ static switch_status_t activate_rtp(private_object_t *tech_pvt)
tech_pvt->local_sdp_audio_port, tech_pvt->local_sdp_audio_port,
tech_pvt->remote_sdp_audio_ip, tech_pvt->remote_sdp_audio_ip,
tech_pvt->remote_sdp_audio_port, tech_pvt->remote_sdp_audio_port,
tech_pvt->read_codec.implementation->ianacode, tech_pvt->agreed_pt,
tech_pvt->read_codec.implementation->microseconds_per_frame / 1000); tech_pvt->read_codec.implementation->microseconds_per_frame / 1000);
...@@ -1352,7 +1353,7 @@ static switch_status_t activate_rtp(private_object_t *tech_pvt) ...@@ -1352,7 +1353,7 @@ static switch_status_t activate_rtp(private_object_t *tech_pvt)
tech_pvt->local_sdp_audio_port, tech_pvt->local_sdp_audio_port,
tech_pvt->remote_sdp_audio_ip, tech_pvt->remote_sdp_audio_ip,
tech_pvt->remote_sdp_audio_port, tech_pvt->remote_sdp_audio_port,
tech_pvt->read_codec.implementation->ianacode, tech_pvt->agreed_pt,
tech_pvt->read_codec.implementation->encoded_bytes_per_frame, tech_pvt->read_codec.implementation->encoded_bytes_per_frame,
tech_pvt->codec_ms * 1000, tech_pvt->codec_ms * 1000,
(switch_rtp_flag_t) flags, (switch_rtp_flag_t) flags,
...@@ -2015,6 +2016,7 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp) ...@@ -2015,6 +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->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->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->remote_sdp_audio_port = (switch_port_t)m->m_port;
tech_pvt->agreed_pt = map->rm_pt;
break; break;
} else { } else {
match = 0; match = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论