Rodrigo Pimenta Carvalho
2015-Jul-07 20:28 UTC
[asterisk-users] Can I use ARI to update the builtin database, without executing the dial plan?
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)
Joshua Colp
2015-Jul-08 14:50 UTC
[asterisk-users] Can I use ARI to update the builtin database, without executing the dial plan?
Rodrigo Pimenta Carvalho wrote:> 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_KEYSEquivalents 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