For some reason, we don't want directly access database. more over, it avoid to 
develop different database connection code, and leave the database connection 
part with Asterisk 



On Aug 31, 2012, at 5:00 PM, "Danny Nicholas" <da...@debsinc.com> wrote:

> -----Original Message-----
> From: Shitian Long [mailto:longst...@gmail.com] 
> Sent: Friday, August 31, 2012 9:59 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion;
> da...@debsinc.com
> Subject: Re: [asterisk-users] Good way to query data from asterisk realtime
> with Asterisk Manager API
> 
> Do you think it is a good way to use Manager API "command action" to
> implement this feature?
> 
> 
> On Aug 31, 2012, at 4:42 PM, "Danny Nicholas" <da...@debsinc.com> wrote:
> 
>> There might be a specific command to do it, but you can do almost any 
>> CLI command using "command" function.
>> 
>> -----Original Message-----
>> From: asterisk-users-boun...@lists.digium.com
>> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Shitian 
>> Long
>> Sent: Friday, August 31, 2012 9:36 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: [asterisk-users] Good way to query data from asterisk 
>> realtime with Asterisk Manager API
>> 
>> Hello.
>> 
>> I am trying to use Asterisk Manager API query data from realtime. From 
>> Asterisk CLI, we could use realtime load <realtime-family> <key> 
>> <matched key value> query realtime it would have response like
>> 
>>                  Column Name  Column Value                  
>>         --------------------  --------------------          
>>                           id  1                             
>>                        mykey  content                          
>>                      myvalue  value                        
>> 
>> I am wondering how I could make this type of query from Manager API.
>> 
>> 
>> Thanks for your time in advance.
>> 
> I agree with Warren.  Why bother having realtime if you're going to add a
> layer you don't need?  Just query the database.
> 


--
_____________________________________________________________________
-- 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

Reply via email to