diff --git a/libs/freetdm/src/ftdm_io.c b/libs/freetdm/src/ftdm_io.c index e88ad6e4ac..07def33034 100644 --- a/libs/freetdm/src/ftdm_io.c +++ b/libs/freetdm/src/ftdm_io.c @@ -2548,7 +2548,9 @@ FT_DECLARE(ftdm_status_t) _ftdm_call_place(const char *file, const char *func, i goto done; } + /* let the user know which channel was picked and which call id was generated */ caller_data->fchan = fchan; + caller_data->call_id = fchan->caller_data.call_id; done: ftdm_channel_unlock(fchan);