[asterisk-app-dev] ARI or AMI originate for call files?

Oscar scriviaoscar at yahoo.it
Thu Feb 19 10:50:11 CST 2015


I'm sorry for my bad english :-(
You've understood my issue.I've done "call file" and it work fine. 
I would to do a "originate an outbound call" by ARI script PHP.
I've done a originate call by post (curl), now I would to create a link between originate outbound call from asterisk to sip number (my client) and a new calling from asterisk to sip number (my call center), Do I do? 
thanks _______________________________________________________________________
Oscar OXY

      Da: Matthew Jordan <mjordan at digium.com>
 A: Oscar <scriviaoscar at yahoo.it>; Asterisk Application Development discussion <asterisk-app-dev at lists.digium.com> 
 Inviato: Giovedì 19 Febbraio 2015 16:39
 Oggetto: Re: [asterisk-app-dev] ARI or AMI originate for call files?
   




On Tue, Feb 17, 2015 at 3:16 PM, Oscar <scriviaoscar at yahoo.it> wrote:

is it better ARI or AMI originate for call files?While into call file is it possible delete ring tone when asterisk calls?thanks


I'm not really sure I completely understand the question, but I'll give it a shot.

There are multiple ways to generate an outbound call in Asterisk. All of these, eventually, map to the same operation: Originate. You can:
* Use a call file, which is a text file placed in a particular location that has a specific formatting. Asterisk will monitor that location, read the file, parse it, originate an outbound call, and then typically discard the file.
* Use the AMI Originate action.
* Use the ARI POST /channels operation.
* Use the Originate dialplan application.
* Use the CLI "channel originate" command.

Which one you use depends on your application. Generally, if you are creating many outbound calls and you need to monitor the calls closely, the AMI or ARI options are more attractive, as they give you more information and more control over the call. If you need to control the outbound call in an application of your design, than ARI is more attractive than AMI. If you need to have little external control over a call, than a call file solution may be appropriate.

In the end, it is up to you and what you are trying to build.

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager445 Jan Davis Drive NW - Huntsville, AL 35806 - USACheck us out at: http://digium.com & http://asterisk.org

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20150219/fcd35de2/attachment.html>


More information about the asterisk-app-dev mailing list