[Asterisk-Users] Asterisk Manager API - multi "Originate" cal ls

Thomas Miller thomasamiller at rocketmail.com
Wed Mar 2 12:15:27 MST 2005


Hi Matt, in your experience is there a 100% reliable
way to know that the callee phone is ringing? In my
situation I don't need to know if they pick up or not,
I need to know (as reliably as possible) if the calee
phone number is ringing.

Thanks, Tom


--- mattf <mattf at vicimarketing.com> wrote:

> ActionID does not return in all events related to an
> Action sent, sometimes
> it will just send you a success message and nothing
> more. Just try
> Originating a call from a meetme room over an
> outside line. You will get
> about 150 lines of output and only one message will
> have the ActionID in it,
> the success message. On the other hand the callerID
> is placed on many more
> of the events in the output. It is still the case
> that if you do complex
> Manager Actions, the ONLY solution for tracking a
> call is to use a custom
> CallerID.
>  
> Action: Originate
> Exten: 8600080
> Channel: local/917275551212 at default
> Context: default
> Priority: 1
> Callerid: DF345678901234567890
> Actionid: AID45678901234567890
> 
>  
> MATT---
>  
> 
> -----Original Message-----
> From: Bill Seddon [mailto:bill.seddon at lyquidity.com]
> Sent: Wednesday, March 02, 2005 8:06 AM
> To: Stephen Owen hosted; Asterisk Users Mailing List
> - Non-Commercial
> Discussion
> Subject: RE: [Asterisk-Users] Asterisk Manager API -
> multi "Originate" calls
> 
> 
> 
> << read in places that you use "originate" command
> and wait for an event
> back, does that mean you cannot place another
> "originate" until the event
> comes back ?>>
> 
>  
> 
> Not in my experience.  Originate will not send an
> event to the caller until
> either the intended caller (that is the extension
> used in Originate) has
> picked up their phone or a timeout occurs because
> the intended caller does
> not pick up their phone.  You can send as many
> originate requests as you
> like but they will fail if more than one uses the
> same extension at the same
> time.
> 
>  
> 
> The issue you will face is determining which event
> generated by Asterisk
> belongs to which origination request.  For this
> reason, the Manager API
> allows you to specify an "ActionID" on any command.
> An ActionID is any
> string of characters that you use to uniquely
> identify each command use
> issue.  Asterisk will include the ActionID with each
> related event so you
> know which events to respond to and which to ignore.
>  You will see many
> events generated by Asterisk only some of which will
> relate to your command.
> The others will be events that Asterisk raises (for
> example when a phone
> registers) or events in response to commands issues
> by other Manager API
> users and at the command line.
> 
>  
> 
> Take a look at Nicolas Gudino's Flash Operator Panel
> ( www.asternic.org
> <http://www.asternic.org/> ) as it used the manager
> API extensively (albeit
> through a proxy) and will typically make many
> requests via the Manger API.  
> 
>  
> 
> <<Is it true that multiple API connections to
> Asterisk Manager API will
> crash it (thinking of alternative way to crack the
> nut)>>
> 
>  
> 
> Again, not in my experience.  
> 
>  
> 
> Lyquidity Solutions Limited 
> +44 (0) 208 241 0500 
> 
> 
>   _____  
> 
> 
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On
> Behalf Of Stephen Owen
> hosted
> Sent: March 02, 2005 12:28 PM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] Asterisk Manager API -
> multi "Originate" calls
> 
>  
> 
> Been researching connecting over TCP\IP to Asterisk
> Manager API to initiate
> several concurrent calls to dial out. Prefer not to
> generate ASCII .call
> files.
> 
>  
> 
> Question : I read in places that you use "originate"
> command and wait for an
> event back, does that mean you cannot place another
> "originate" until the
> event comes back ?
> 
>  
> 
> Is it true that multiple API connections to Asterisk
> Manager API will crash
> it (thinking of alternative way to crack the nut)
> 
>  
> 
> All help would be welcome - thanks
> 
>  
> 
> Stephen Owen
> 
>  
> 
> sip:stephenowen at iptel.org
> IM:stephen_owen_2001 at hotmail.com
> 
> > _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   
http://lists.digium.com/mailman/listinfo/asterisk-users



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/



More information about the asterisk-users mailing list