From 17524f08d421256c4115605f3d7c456c66f0f544 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 20 Aug 2014 15:06:08 +0200 Subject: [PATCH] Fix bug: Setting of "config-set rtp symmetric 0" is ignored when using audio-stream-start --- daemon/commands/audio-stream-start.cc | 4 +++- oRTP | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/commands/audio-stream-start.cc b/daemon/commands/audio-stream-start.cc index fa01f34d2..b2d31e5d9 100644 --- a/daemon/commands/audio-stream-start.cc +++ b/daemon/commands/audio-stream-start.cc @@ -26,7 +26,7 @@ void AudioStreamStartCommand::exec(Daemon *app, const char *args) { PayloadType *oldpt=rtp_profile_get_payload(default_profile,payload_type); PayloadType *pt; AudioStream *stream = audio_stream_new(local_port, local_port + 1, linphone_core_ipv6_enabled(app->getCore())); - + if (oldpt){ if (ptime>0){ char fmtp[256]; @@ -37,6 +37,8 @@ void AudioStreamStartCommand::exec(Daemon *app, const char *args) { } } audio_stream_enable_adaptive_jittcomp(stream, linphone_core_audio_adaptive_jittcomp_enabled(app->getCore())); + rtp_session_set_symmetric_rtp(stream->ms.sessions.rtp_session, linphone_core_symmetric_rtp_enabled(app->getCore())); + int err=audio_stream_start_now(stream, default_profile, addr, port, port + 1, payload_type, jitt, play_card, capture_card, echo_canceller); if (oldpt) rtp_profile_set_payload(default_profile,payload_type,oldpt); if (err != 0) { diff --git a/oRTP b/oRTP index b9534b1b2..b7c9040fe 160000 --- a/oRTP +++ b/oRTP @@ -1 +1 @@ -Subproject commit b9534b1b2beb4bc549741e1f55a9c0bfe15d6c90 +Subproject commit b7c9040fec9d3ac7383dff4a3022bbc6d62335d2