[asterisk-dev] [Code Review] 2979: ari: Fix deadlock when originating multiple calls at once

Joshua Colp reviewboard at asterisk.org
Fri Nov 1 07:33:30 CDT 2013

This is an automatically generated e-mail. To reply, visit:

(Updated Nov. 1, 2013, 12:33 p.m.)


This change has been marked as submitted.

Review request for Asterisk Developers.

Bugs: ASTERISK-22768

Repository: Asterisk


Currently when a stasis application is specified when originating using ARI the application is subscribed to the originated channel. This is done while the channel lock is held, which is dangerous as the underlying code locks and iterates the channels container. The attached change releases the lock after getting a snapshot of the originated channel.


  /branches/12/res/ari/resource_channels.c 402138 

Diff: https://reviewboard.asterisk.org/r/2979/diff/


Threw 10 originates at a time as fast as possible using ARI origination. Without patch there was a deadlock sporadically, with patch no deadlock.


Joshua Colp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131101/6aea69c5/attachment-0001.html>

More information about the asterisk-dev mailing list