diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index cb9999a..ff155b6 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -248,7 +248,8 @@ static void call_updated(SalOp *op){ lc->vtable.display_status(lc,"we have been resumed..."); call->state = LinphoneCallAVRunning; lc->vtable.resumed_recv(lc,call); - linphone_core_start_media_streams(lc,call); + //we have to keep sending when holded + //linphone_core_start_media_streams(lc,call); } else if( (call->state != LinphoneCallPaused) && !strcmp(call->resultdesc->addr,"0.0.0.0")) { @@ -256,11 +257,14 @@ static void call_updated(SalOp *op){ lc->vtable.display_status(lc,"we have been paused..."); call->state = LinphoneCallPaused; lc->vtable.paused_recv(lc,call); + //we have to keep sending when holded + /* if(call == linphone_core_get_current_call(lc)) { linphone_core_stop_media_streams(lc,call); linphone_core_init_media_streams(lc,call); } + */ } else { diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 5a85e7e..060de0a 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -18,7 +18,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - +#ifdef WIN32 +#include +#endif #include "linphonecore.h" #include "sipsetup.h" #include "lpconfig.h"