Fix rtp payload number and possibly other params, since we ALWAYS use PCMU all params should be hardcoded

This commit is contained in:
Seven Du 2012-08-15 14:34:16 +08:00 committed by Ken Rice
parent fbb53c75dd
commit 24a45b034b
1 changed files with 3 additions and 3 deletions

View File

@ -199,9 +199,9 @@ SWITCH_STANDARD_APP(bcast_function)
rtp_port, rtp_port,
mcast_ip, mcast_ip,
mcast_port, mcast_port,
read_impl.ianacode, 0,
read_impl.samples_per_packet, 8000,
read_impl.microseconds_per_packet, (switch_rtp_flag_t) flags, "soft", &err, switch_core_session_get_pool(session)); 20, (switch_rtp_flag_t) flags, "soft", &err, switch_core_session_get_pool(session));
if (!switch_rtp_ready(rtp_session)) { if (!switch_rtp_ready(rtp_session)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "RTP Error\n"); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "RTP Error\n");