Asterisk RealTime

Asterisk Realtime Architecture (ARA)

 

res_mysql.conf or res_config_mysql

[general]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = asterisk
dbpass = asterisk
dbport = 3306

 

Static configuration: regular *.conf files (read at Asterisk startup/reload)

Family - A name associated with a RealTime call. Examples: sippeers, sipusers, voicemail

 

External configuration is configured

- /etc/asterisk/extconfig.conf

Static configuration files:

[settings]
; file.conf => driver,database[,table[,priority]]

asterisk.conf, extconfig.conf 及 logger.conf 不能 REAL TIME

Realtime configuration engine

example => mysql,asterisk,alttable,2

Usage

sip.conf => mysql,asterisk,sip
sippeers => mysql,asterisk,sip_peers
sipusers => mysql,asterisk,sip_users

* you only have to define those columns you actually use in sip.conf

priorities

- use as failover methods

backends

- mysql ... res_config_mysql

- sqlite ... res_config_sqlite

- curl ... res_config_curl

mini example:

[foo]
host=dynamic
secret=bar
context=default
allow=gsm
allow=ulaw

相當於

name    host     secret    context    ipaddr       port    allow
foo     dynamic    bar     default    127.0.0.1    4569    gsm;ulaw

 


sippeers, sipusers

 

Configure


 


 

 

Creative Commons license icon Creative Commons license icon