[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-dev
Subject:    Re: [Freeswitch-dev] ftdm_call_place and caller_data.call_id
From:       Moises Silva <moises.silva () gmail ! com>
Date:       2011-09-08 16:54:25
Message-ID: CAA4nhyB19phiSKp9JgxhG7HKFscdMdVtyeOxb6VG7Ttqczxynw () mail ! gmail ! com
[Download RAW message or body]

Hello,

On Sat, Aug 27, 2011 at 10:37 AM, Juraj Fabo <juraj.fabo@gmail.com> wrote:
>
> - from sources I see, that after the ftdm_call_place_ex(..) application could
> use caller_data.fchan->caller_data.call_id
>  I tested it and it was ok, please is this a proper way how to use this API
> function?
>

Yes that is the proper way.


> - sigmsg's delivered to signalling callback seems again not to provide the
> call_id directly. From sources I found this approach to be usable when handling
> FTDM_SIGEVENT_START
>
>  ftdm_caller_data_t * callerData = ftdm_channel_get_caller_data(p->channel);
>  call_id = callerData->call_id;
>
>  However some other events delivered the call_id directly (as p->call_id)
>
>  Please, is my handling for _START event correct (despite that call to API from
> the callback handler is tabu)

You just found a bug. I just fixed it. Please do "git pull" and you
should be all set. You should NOT use the callerData->call_id, is not
thread-safe and can change when you less expect it. Please use the
call_id that comes in the SIGEVENT_XX message.

Moises Silva
Senior Software Engineer, Software Development Manager
Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON
L3R 9R6 Canada
t. 1 905 474 1990 x128 | e. moy@sangoma.com

_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic