From 9a06cdebf24b7b659a6dae3c4c4ff0746ad93fca Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandre.savard@savoirfairelinux.net> Date: Thu, 29 Oct 2009 14:29:33 -0400 Subject: [PATCH] [#1933] Do not need to start audio stream in iax anymore --- sflphone-common/src/audio/ringbuffer.cpp | 2 +- sflphone-common/src/iax/iaxvoiplink.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sflphone-common/src/audio/ringbuffer.cpp b/sflphone-common/src/audio/ringbuffer.cpp index e0d2c505c1..4fcf390d46 100644 --- a/sflphone-common/src/audio/ringbuffer.cpp +++ b/sflphone-common/src/audio/ringbuffer.cpp @@ -171,7 +171,7 @@ RingBuffer::storeReadPointer(int pointer_value, CallID call_id) } else { - _debug("Cannot find \"%s\" readPointer\n", call_id.c_str()); + _debug("storeReadPointer: Cannot find \"%s\" readPointer in \"%s\" ringbuffer\n", call_id.c_str(), buffer_id.c_str()); } } diff --git a/sflphone-common/src/iax/iaxvoiplink.cpp b/sflphone-common/src/iax/iaxvoiplink.cpp index 1aac07fae3..f67faa5eb0 100644 --- a/sflphone-common/src/iax/iaxvoiplink.cpp +++ b/sflphone-common/src/iax/iaxvoiplink.cpp @@ -508,7 +508,7 @@ IAXVoIPLink::answer (const CallID& id) call->setState (Call::Active); call->setConnectionState (Call::Connected); // Start audio - audiolayer->startStream(); + // audiolayer->startStream(); return true; } @@ -531,7 +531,7 @@ IAXVoIPLink::hangup (const CallID& id) if (Manager::instance().isCurrentCall (id)) { // stop audio - audiolayer->stopStream(); + // audiolayer->stopStream(); } terminateOneCall (id); @@ -558,7 +558,7 @@ IAXVoIPLink::peerHungup (const CallID& id) if (Manager::instance().isCurrentCall (id)) { // stop audio - audiolayer->stopStream(); + // audiolayer->stopStream(); } terminateOneCall (id); @@ -601,7 +601,7 @@ IAXVoIPLink::offhold (const CallID& id) _mutexIAX.enterMutex(); iax_unquelch (call->getSession()); _mutexIAX.leaveMutex(); - audiolayer->startStream(); + // audiolayer->startStream(); call->setState (Call::Active); return true; } @@ -752,7 +752,7 @@ IAXVoIPLink::iaxHandleCallEvent (iax_event* event, IAXCall* call) if (Manager::instance().isCurrentCall (id)) { // stop audio - audiolayer->stopStream(); + // audiolayer->stopStream(); } Manager::instance().peerHungupCall (id); @@ -775,7 +775,7 @@ IAXVoIPLink::iaxHandleCallEvent (iax_event* event, IAXCall* call) if (Manager::instance().isCurrentCall (id)) { // stop audio - audiolayer->stopStream(); + // audiolayer->stopStream(); } call->setConnectionState (Call::Connected); @@ -803,7 +803,7 @@ IAXVoIPLink::iaxHandleCallEvent (iax_event* event, IAXCall* call) call->setConnectionState (Call::Connected); call->setState (Call::Active); - audiolayer->startStream(); + // audiolayer->startStream(); if (event->ies.format) { // Should not get here, should have been set in EVENT_ACCEPT -- GitLab