From 8cade8452847ec2616fb83d82c8a9389b324bcd8 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Mon, 30 Jan 2012 16:15:08 -0500 Subject: [PATCH] freetdm: Set the call id into the caller data provided as argument to the call place function --- libs/freetdm/src/ftdm_io.c | 2 ++ 1 file changed, 2 insertions(+) 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);