Skip to main content

end user data

Posted by morshedi on Wed, 11/26/2008

Hi
PLZ let me know where in database can i see End user information.
can you send data from a website directly to database, like call forwarding.


Submitted by justdave on Wed, 11/26/2008 Permalink

database get TL will probably show you more than you ever wanted to know.

The poor man's way to put stuff in the database from outside is

asterisk -rx 'database put {tree} {key} "{data to put in db}"'

A better way is to log into the Manager interface and use the DBPut action.

Submitted by eeman on Wed, 11/26/2008 Permalink

DBput and DBget are depreciated and dont exist in 1.4 and 1.6. Instead use the DB function

Set(${DB(family/key)}=value)

to call the value just use the function.. for example the zero-out extension for voicemail

exten => o,1,Goto(from-inside,${DB(family/key)},1)

Submitted by justdave on Fri, 12/05/2008 Permalink

I was refering to the Manager API, not the dialplan. I was assuming he was doing something from an outside script, but maybe I assumed too much. Yeah, if you're doing it from the dialplan, the functions are what eeman said. :)