[asterisk-dev] Read dtmf after ast_bridge_call

vassilux . v.gontcharov at gmail.com
Mon Aug 4 05:31:34 CDT 2014


ok Joshua thank again


2014-08-04 12:28 GMT+02:00 Joshua Colp <jcolp at digium.com>:

> vassilux . wrote:
>
>> Thank for the information about the frame hook.
>> I understand that both functions can be called by different threads
>> because lock/unlock used internally.
>>
>
> If you are referring to ast_waitfor and ast_read those functions are NOT
> safe to be called form separate threads simultaneously, even with locking
> internally. It won't work as you expect/want as only a single thread can
> service a channel. You would essentially end up with two threads fighting
> over the frames, with some going to one thread and some going to the other.
>
>
> --
> Joshua Colp
> Digium, Inc. | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
Vassili Gontcharov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140804/a42a8db0/attachment.html>


More information about the asterisk-dev mailing list