Asterisk API

Home » Asterisk Users » Asterisk API
Asterisk Users 7 Comments

Hello Folks;

I have an Asterisk server Asterisk 11.7.0 built by root @xxxxxxxxxxx on a x86_64 running Linux on
2013-12-27 18:47:44 UTC

No FreePBX, no AsteriskNOW, no Elastix. Just Asterisk.

Is there an API out there that anyone knows of that I can pass commands, etc to Asterisk? Creating Extensions, adding voicemail users, setting up voicemail, etc?

I’m kind of clueless. Is there something available?

Thanks – Glen

7 thoughts on - Asterisk API

  • Search google for “Asterisk Manager Interface”. For the most part, if you have raw Asterisk installed then that’s what you get and have to build what you want on top of it or hire a developer to do it. Date: Fri, 10 Jan 2014 12:12:47 -0500
    From: szilverthorne@gmail.com To: asterisk-users@lists.digium.com Subject: [asterisk-users] Asterisk API

    Hello Folks;
    I have an Asterisk server Asterisk 11.7.0 built by root @xxxxxxxxxxx on a x86_64 running Linux on 2013-12-27 18:47:44 UTC

    No FreePBX, no AsteriskNOW, no Elastix. Just Asterisk. Is there an API out there that anyone knows of that I can pass commands, etc to Asterisk? Creating Extensions, adding voicemail users, setting up voicemail, etc?
    I’m kind of clueless. Is there something available?

    Thanks – Glen

  • Good Day, Ishfaq;

    This may be a much better idea than the REST API. Correct me if I’m wrong, but the concept is this:

    You write to the database, and this gives the same result as perhaps modifying the dialplan, sip, voicemail, etc *without* having to physically modify the extensions.conf, sip.conf, voicemail.conf?

    Am I on the right track?

    Thanks!

  • Yes, this would most likely be a better solution (REST API is in Asterisk 12), just be careful about putting your dialplan in a Real Time Database. You sometimes have to do things a little different if your dialplan is in the RTDB. As well you need to make sure security is locked down when using this approach, but security is needed for all approaches.

    Jacob

    From: asterisk-users-bounces@lists.digium.com
    [mailto:asterisk-users-bounces@lists.digium.com] Hello Folks;

    I have an Asterisk server

    Asterisk 11.7.0 built by root @xxxxxxxxxxx on a x86_64 running Linux on
    2013-12-27 18:47:44 UTC

    No FreePBX, no AsteriskNOW, no Elastix. Just Asterisk.

    Is there an API out there that anyone knows of that I can pass commands, etc to Asterisk? Creating Extensions, adding voicemail users, setting up voicemail, etc?

    I’m kind of clueless. Is there something available?

    Thanks – Glen

    You could use asterisk realtime architecture and use your favourite database to hold peer/voicemail/dialplan configuration.

    https://wiki.asterisk.org/wiki/display/AST/Realtime+Database+Configurati on

  • Hi all,

    currently we’re looking to program a new asterisk application. Years ago we used AMI and Asterisk Java. When we did this we pretty soon encountered performance issues when using a lot of channels. We want to place calls, bridge channels, disconnect channels, monitor them, hangup. What’s the status with Asterisk REST API?
    Any experiences on performance,stability,documentation, caveats? Any toolkits for a fast start, Frameworks in any language? Hints? Best practices?

    Thanks for any insights!

    Markus

  • As you’ve probably discovered, most of the API toolkits are half baked and poorly maintained. The Java interface is not great for performance and is suffering from the above too.

    From our experience (including customer specific and commercial apps) using the AMI directly is the best way to go. Next you also have to develop in a language suitable to the throughput needs of whatever you are building. If you need performance, I’d recommend developing in C++ and building your own AMI interface to suit your needs. (If you use boost or Qt then it will speed your development time).

    This topic might step on troll territory (which ____ is best) so feel free to email me off list if you want more info.

  • Markus Weiler wrote:

    Kia ora,

    While bugs have crept up they haven’t really been in the performance or stability area. It’s mostly been features and making it a better experience for the users of ARI. Documentation wise the wiki[1] has a lot of great information including some example usage and a list of libraries. There’s also a new asterisk-app-dev mailing list which is focused on applications built upon Asterisk.

    Cheers,

    [1] https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId)395573