aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2011-05-05 23:08:05 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2011-05-05 23:08:05 +0000
commitb1614a0ef555ea0a00578050ecf75c943e28d3a6 (patch)
tree1e92e6d46df50c213c8d5adb28a109cf77fce7fe
parent3e4196a930eedbb592bf53a570ba8ea5029a1df3 (diff)
Add CEL extra field to cel_pgsql.
(closes issue #18462) Reported by: joscas Patches: bug_18462.diff uploaded by snuffy (license 35) cel_pgsql.conf.sample.issue18462.patch uploaded by joscas (license 1180) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@317482 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--CHANGES5
-rw-r--r--UPGRADE.txt4
-rw-r--r--cel/cel_pgsql.c2
-rw-r--r--configs/cel_pgsql.conf.sample2
4 files changed, 12 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0a1e361fb..a801208d6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -108,6 +108,11 @@ FollowMe
compatability for a FollowMe call with certain dialplan apps, options, and
functions.
+CEL
+--------------------------
+ * cel_pgsql now supports the 'extra' column for data added using the
+ CELGenUserEvent() application.
+
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 1.6.2 to Asterisk 1.8 ----------------
------------------------------------------------------------------------------
diff --git a/UPGRADE.txt b/UPGRADE.txt
index e7aa03442..8554ac25f 100644
--- a/UPGRADE.txt
+++ b/UPGRADE.txt
@@ -21,6 +21,10 @@
From 1.8 to 1.10:
+cel_pgsql:
+ - This module now expects an 'extra' column in the database for data added
+ using the CELGenUserEvent() application.
+
ConfBridge
- ConfBridge's dialplan arguments have changed and are not
backwards compatible.
diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c
index c1861c855..62438d856 100644
--- a/cel/cel_pgsql.c
+++ b/cel/cel_pgsql.c
@@ -239,6 +239,8 @@ static void pgsql_log(const struct ast_event *event, void *userdata)
value = record.user_field;
} else if (strcmp(cur->name, "peer") == 0) {
value = record.peer;
+ } else if (strcmp(cur->name, "extra") == 0) {
+ value = record.extra;
} else {
value = NULL;
}
diff --git a/configs/cel_pgsql.conf.sample b/configs/cel_pgsql.conf.sample
index 75882118a..67d0574ab 100644
--- a/configs/cel_pgsql.conf.sample
+++ b/configs/cel_pgsql.conf.sample
@@ -51,7 +51,7 @@
; amaflag (an int)
; userfield
; peer
-
+; extra
[global]
;hostname=localhost