diff --git a/src/iaxvoiplink.cpp b/src/iaxvoiplink.cpp index af8038886f2f2ac922dce49441a0dadc0f8adb60..f28a33bc41ca707dc6ebc19f21a2c453b1b39ade 100644 --- a/src/iaxvoiplink.cpp +++ b/src/iaxvoiplink.cpp @@ -257,7 +257,6 @@ IAXVoIPLink::sendAudioFromMic(void) } AudioCodec* ac = currentCall -> getCodecMap().getCodec( currentCall -> getAudioCodec() ); - _debug("Audiocodec name = %s\n" , ac->getCodecName().c_str()); if (!ac) { // Audio codec still not determined. if (audiolayer) { @@ -666,7 +665,6 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call) if (event->ies.format) { call->setFormat(event->ies.format); } - break; case IAX_EVENT_ANSWER: @@ -697,6 +695,9 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call) break; case IAX_EVENT_VOICE: + //_debug("Should have a decent value!!!!!! = %i\n" , call -> getAudioCodec()); + if( !audiolayer -> isCaptureActive()) + audiolayer->startStream(); iaxHandleVoiceEvent(event, call); break; diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp index cd0b8da0eefbc22a0344fba0fb613d48faf2c79a..da557b72aacdb198b6af733cf92e5555b687db27 100644 --- a/src/managerimpl.cpp +++ b/src/managerimpl.cpp @@ -245,7 +245,7 @@ ManagerImpl::answerCall(const CallID& id) removeCallAccount(id); return false; } - + //Place current call on hold if it isn't