[asterisk-users] Event response (AMI)

Matthew Jordan mjordan at digium.com
Fri May 11 11:07:30 CDT 2012



----- Original Message ----- 

> From: "Warren Selby" <wcselby at selbytech.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> <asterisk-users at lists.digium.com>
> 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 < 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

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



More information about the asterisk-users mailing list