[asterisk-users] Event response (AMI)

Warren Selby wcselby at selbytech.com
Fri May 11 10:36:28 CDT 2012


On Fri, May 11, 2012 at 8:31 AM, Matthew Jordan <mjordan at digium.com> wrote:

>
> In your particular case, if I were writing a system that wanted to
> associate
> a created channel with an Originate Action, after I issue the Originate,
> I'd listen for a NewChannel event.  If that NewChannel event specified a
> channel that was created in the context I specified and with a
> technology/extension that I specified, I'd set that as the channel I just
> asked to be created. From there on, subsequent events (VarSet, NewExten,
> Hangup, etc.) that are associated with that channel will contain a Channel:
> header with that value.
>
>
Isn't that likely to cause race issues if for instance he Originates 30
calls all at the same time?  I would think a better approach would be to
set a unique channel variable for each originated call and track based on
that?

-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com <http://www.selbytech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120511/34eb3ee4/attachment.htm>


More information about the asterisk-users mailing list