[<<][asterisk][>>][..]
Wed Oct 1 17:38:13 CEST 2014

AstDB

# sqlite2 db content of cdr_csv
/var/lib/asterisk/sqlite.db

# sqlite3 db with astdb : DB() in dialplan
/var/lib/asterisk/astdb.sqlite3

# old berkely db
/var/lib/asterisk/astdb



To use in dialplan rules:
exten => 456,1,Set(DB(test/count)=1)
exten => 456,n,Set(COUNT=${DB(test/count)})
exten => 456,n,SayNumber(${COUNT})

This should be enough to do the following:
- map extensions to real phone numbers
- map caller to thunk to use (which has external caller id)


Keys are <family>/<key>
At the prompt:

database get <family> <key>
database put <family> <key> <value>
database del <family> <key>


# For each internal phone, set a separate outgoing thunk.
database put outbound 11 outbound_tom
database put outbound 12 outbound_tom
database put outbound 13 outbound_mel
database put outbound 14 outbound_be
database put outbound 15 outbound_be
database put outbound 17 outbound_tom
database put outbound 18 outbound_mel
database put outbound 19 outbound_tom


# Shortcuts as well
database put shortcut xx yyyyyyyyyyyy




[Reply][About]
[<<][asterisk][>>][..]