----- Original Message -----
> From: "Warren Selby" <[email protected]> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" > <[email protected]> > Sent: Friday, May 11, 2012 10:36:28 AM > Subject: Re: [asterisk-users] Event response (AMI) > On Fri, May 11, 2012 at 8:31 AM, Matthew Jordan < [email protected] > > 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 Warren: Yup, in a situation that consisted of more then one originate within a small period of time, that would be a better approach. -- Matthew Jordan Digium, Inc. | Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
