[Asterisk-Users] get value from DB directly

Damon Estep damon at suburbanbroadband.net
Mon Jun 12 19:30:01 MST 2006


The question has changed, but the answer has not

> Search the wiki for the application command realtime() if you are 
> using realtime.
>
> www.voip-info.org

Accountcode is a channel variable that can be read at any time, if you
are trying to get information from the DB that is not held in a channel
variable use Realtime() to do a query.

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of unplug
> Sent: Monday, June 12, 2006 8:17 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] get value from DB directly
> 
> Thanks. I have set the ARA to using DB without problem.  From the
> example, I can get the value of account code from sip_buddies using
> the following.
> exten=>100,1,Answer()
> exten=>100,2,NoOp(${ACCOUNTCODE})
> 
> I can't get the value of the field 'cancallforward' using the
following.
> exten=>101,1,Answer()
> exten=>101,2,NoOp(${CANCALLFORWARD})
> 
> How cant I get the value of each field in the table?
> 
> 
> 
> On 6/13/06, Damon Estep <damon at suburbanbroadband.net> wrote:
> > Search the wiki for the application command realtime() if you are
using
> > realtime.
> >
> > www.voip-info.org
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list