Shitian Long
2012-Aug-31 14:36 UTC
[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.
Danny Nicholas
2012-Aug-31 14:42 UTC
[asterisk-users] Good way to query data from asterisk realtime with Asterisk Manager API
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. -- _____________________________________________________________________ -- 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
Warren Selby
2012-Aug-31 14:52 UTC
[asterisk-users] Good way to query data from asterisk realtime with Asterisk Manager API
On Fri, Aug 31, 2012 at 9:36 AM, Shitian Long <longst.cn at gmail.com> wrote:> 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. > >Is there a specific reason you want to access the realtime data through the Manager API and not directly from the database itself? It seems like the Manager API would add an extra layer to whatever you're trying to accomplish. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com <http://www.selbytech.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120831/55821945/attachment.htm>
Shitian Long
2012-Aug-31 14:58 UTC
[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. > > > > -- > _____________________________________________________________________ > -- 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 > > > -- > _____________________________________________________________________ > -- 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
Shitian Long
2012-Aug-31 15:12 UTC
[asterisk-users] Good way to query data from asterisk realtime with Asterisk Manager API
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. >