diff --git a/console/linphonec.c b/console/linphonec.c index 8b1fe317bbd441656ac859fd2a6d9f7310b676b7..0ff82a624d4dec5f57a31c438e4b8ceb08407434 100644 --- a/console/linphonec.c +++ b/console/linphonec.c @@ -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 */