summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-05-24 09:00:20 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-05-24 09:00:20 -0500
commit87fe6b16227c49a1d07186ced49f1ea37e9af333 (patch)
tree5063b77526a109fcac6019f918b609e57a9be36f /configs
parent06c6478ad8cb6c6d8cac9e71b9407f01e05d5851 (diff)
parentcd89501d48b516ef03957bd39cdd8180b4684a56 (diff)
Merge "func_odbc: single database connection should be optional" into 13
Diffstat (limited to 'configs')
-rw-r--r--configs/samples/func_odbc.conf.sample14
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/samples/func_odbc.conf.sample b/configs/samples/func_odbc.conf.sample
index fd528d216..8614bf12a 100644
--- a/configs/samples/func_odbc.conf.sample
+++ b/configs/samples/func_odbc.conf.sample
@@ -1,6 +1,20 @@
;
; func_odbc.conf
;
+[general]
+;
+; Asterisk uses separate connections for every database operation.
+; If single_db_connection is enabled then func_odbc will use a single
+; database connection per DSN.
+; This option exists for those who expect that a second func_odbc call
+; works on the same connection. That allows you to do a LAST_INSERT_ID()
+; in a second func_odbc call.
+; Note that you'll need additional dialplan locks for this behaviour to work.
+; There are better ways: using stored procedures/functions instead.
+; This option is enabled by default.
+;single_db_connection=yes
+;
+;
; Each context is a separately defined function. By convention, all
; functions are entirely uppercase, so the defined contexts should also
; be all-uppercase, but there is nothing that enforces this. All functions