Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Can I use ARI to update the builtin database, without executing the dial plan?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
pimenta at inatel.br
Guest





PostPosted: Tue Jul 07, 2015 3:28 pm    Post subject: [asterisk-users] Can I use ARI to update the builtin databas Reply with quote

Hi.

In my dial plan I can use the following commands to access and handle data from the builtin database.

DB
DB_DELETE
DB_EXISTS
DB_KEYS

It is OK for me. However, in my current project there will be an application responsible for recording new information in the builtin database.
So, I need to know:

1. Is it possible to access the builtin database, by means of ARI ?

2. If it is possible by ARI, where can I find a tutorial about it?

3. Can I do something like this?:

My APP ----------sends data to a REST service----------------> Asterisk REST Interface--------------------the data is put into the builtin database--------------------> The builtin database

That is, can I send data to the builtin database, using REST interfaces, but without executing any dial plan? If yes, my app will be able to update data without executing the dial plan.

Any hint will be very helpful!

Best Regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979 (Brasil)
--
_____________________________________________________________________
-- 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
Back to top
jcolp at digium.com
Guest





PostPosted: Wed Jul 08, 2015 9:51 am    Post subject: [asterisk-users] Can I use ARI to update the builtin databas Reply with quote

Rodrigo Pimenta Carvalho wrote:
Quote:
Hi.

In my dial plan I can use the following commands to access and handle
data from the builtin database.

DB DB_DELETE DB_EXISTS DB_KEYS

Equivalents exist for these in the Asterisk Manager Interfaces as
actions. An example being DBGet[1] but others also exist. They require
no channel to operate on.

From the scope of ARI though you can use the /asterisk/variable
resource to GET and POST global variables and dialplan functions[2].
This also requires no channel to operate on. I haven't personally tried
it for this use case though.

[1]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_DBGet
[2] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Asterisk+REST+API

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services