fix crash in linphonec

This commit is contained in:
Simon Morlat 2017-09-14 21:16:05 +02:00
parent f145c0d49e
commit c3b31767a3

View file

@ -1023,7 +1023,7 @@ linphonec_idle_call ()
linphone_core_iterate(opm);
if (answer_call){
fprintf (stdout, "-------auto answering to call-------\n" );
linphone_core_accept_call(opm,NULL);
linphone_core_accept_call(opm, linphone_core_get_current_call(opm));
answer_call=FALSE;
}
/* auto call handling */