diff --git a/console/linphonec.c b/console/linphonec.c index ca556536b7a786a413bd2c82d6985cc02548561f..b786288b410ebdf5df5ebbadab966b05a8799ed6 100644 --- a/console/linphonec.c +++ b/console/linphonec.c @@ -975,7 +975,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 */