From: Mark Spencer Date: Thu, 9 Sep 2004 20:05:57 +0000 (+0000) Subject: Make ${CALLINGPRES} available (bug #2409) X-Git-Tag: 1.0.0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e0b84633ef0bd2744ae516f9d641caad882e051;p=thirdparty%2Fasterisk.git Make ${CALLINGPRES} available (bug #2409) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3755 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index 443b7e9902..dd8abbd4aa 100755 --- 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;