summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2013-10-04 18:13:37 +0000
committerJonathan Rose <jrose@digium.com>2013-10-04 18:13:37 +0000
commit44bd543181df661b2ac5ae5cf5486b12d7228741 (patch)
treeb9b393f4f641db8510ca18bffe834e973c9b4511 /configs
parent8d7873b836999b09caad87abec27579f1f065b84 (diff)
chan_pjsip: Add alembic scripts for generating db tables for PJSIP
Also updates sample configurations for sorcery and extconfig to demonstrate how to use databases created by that alembic script. (closes issue ASTERISK-22133) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2892/ ........ Merged revisions 400532 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r--configs/extconfig.conf.sample6
-rw-r--r--configs/sorcery.conf.sample10
2 files changed, 16 insertions, 0 deletions
diff --git a/configs/extconfig.conf.sample b/configs/extconfig.conf.sample
index 5f9ee210d..52a49cfbe 100644
--- a/configs/extconfig.conf.sample
+++ b/configs/extconfig.conf.sample
@@ -65,6 +65,7 @@
; engine. Here are several of the possible options:
; odbc ... res_config_odbc
; sqlite ... res_config_sqlite
+; sqlite3 ... res_config_sqlite3
; pgsql ... res_config_pgsql
; curl ... res_config_curl
; ldap ... res_config_ldap
@@ -78,6 +79,11 @@
;iaxpeers => odbc,asterisk
;sippeers => odbc,asterisk
;sipregs => odbc,asterisk ; (avoid sipregs if possible, e.g. by using a view)
+;ps_endpoints => odbc,asterisk
+;ps_auths => odbc,asterisk
+;ps_aors => odbc,asterisk
+;ps_domain_aliases => odbc,asterisk
+;ps_endpoint_id_ips => odbc,asterisk
;voicemail => odbc,asterisk
;extensions => odbc,asterisk
;meetme => mysql,general
diff --git a/configs/sorcery.conf.sample b/configs/sorcery.conf.sample
index 899467a4e..ab802d450 100644
--- a/configs/sorcery.conf.sample
+++ b/configs/sorcery.conf.sample
@@ -48,3 +48,13 @@ test=memory
test/cache=test
test=memory
+;
+; The following object mappings set PJSIP objects to use realtime database mappings from extconfig
+; with the table names used when automatically generating configuration from the alembic script.
+;
+;[res_pjsip]
+;endpoint=realtime,ps_endpoints
+;auth=realtime,ps_auths
+;aor=realtime,ps_aors
+;domain_alias=realtime,ps_domain_aliases
+;identify=realtime,ps_endpoint_id_ips