diff --git a/sflphone-common/src/iax/iaxvoiplink.cpp b/sflphone-common/src/iax/iaxvoiplink.cpp index f48d9a2c4efadbc4b6a3c76e98929ea6c7f48922..b6377ea7f4cec4aee220e81afcc3ce8528742f69 100644 --- a/sflphone-common/src/iax/iaxvoiplink.cpp +++ b/sflphone-common/src/iax/iaxvoiplink.cpp @@ -364,7 +364,7 @@ IAXVoIPLink::sendAudioFromMic (void) _mutexIAX.enterMutex(); // Make sure the session and the call still exists. - if (currentCall->getSession() && micDataEncoded != NULL) { + if (currentCall->getSession() && (micDataEncoded != NULL) && (nbSample_ > 0)) { if (iax_send_voice (currentCall->getSession(), currentCall->getFormat(), micDataEncoded, compSize, nbSample_) == -1) { _debug ("IAX: Error sending voice data.\n"); }