freetdm: Set the call id into the caller data provided as argument to the call place function

This commit is contained in:
Moises Silva 2012-01-30 16:15:08 -05:00
parent 5ef3c94271
commit 8cade84528

View File

@ -2548,7 +2548,9 @@ FT_DECLARE(ftdm_status_t) _ftdm_call_place(const char *file, const char *func, i
goto done; goto done;
} }
/* let the user know which channel was picked and which call id was generated */
caller_data->fchan = fchan; caller_data->fchan = fchan;
caller_data->call_id = fchan->caller_data.call_id;
done: done:
ftdm_channel_unlock(fchan); ftdm_channel_unlock(fchan);