[asterisk-users] Good way to query data from asterisk realtime with Asterisk Manager API
Shitian Long
longst.cn at gmail.com
Fri Aug 31 10:12:01 CDT 2012
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" <danny at debsinc.com> wrote:
> -----Original Message-----
> From: Shitian Long [mailto:longst.cn at gmail.com]
> Sent: Friday, August 31, 2012 9:59 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion;
> danny at 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" <danny at 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-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at 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.
>
More information about the asterisk-users
mailing list