projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2a8ed
)
Make ${CALLINGPRES} available (bug #2409)
author
Mark Spencer
<markster@digium.com>
Thu, 9 Sep 2004 20:05:57 +0000
(20:05 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 9 Sep 2004 20:05:57 +0000
(20:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3755
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
pbx.c
patch
|
blob
|
history
diff --git
a/pbx.c
b/pbx.c
index
443b7e9
..
dd8abbd
100755
(executable)
--- a/
pbx.c
+++ b/
pbx.c
@@
-934,6
+934,9
@@
static void pbx_substitute_variables_temp(struct ast_channel *c, const char *var
} else if (c && !strcmp(var, "PRIORITY")) {
snprintf(workspace, workspacelen, "%d", c->priority);
*ret = workspace;
+ } else if (c && !strcmp(var, "CALLINGPRES")) {
+ snprintf(workspace, workspacelen, "%d", c->callingpres);
+ *ret = workspace;
} else if (c && !strcmp(var, "CHANNEL")) {
strncpy(workspace, c->name, workspacelen - 1);
*ret = workspace;