[Asterisk-cvs] asterisk pbx.c,1.140,1.141
malcolmd at lists.digium.com
malcolmd at lists.digium.com
Fri Jul 30 14:35:51 CDT 2004
Update of /usr/cvsroot/asterisk
In directory localhost.localdomain:/tmp/cvs-serv726
Modified Files:
pbx.c
Log Message:
Bug # 2115: Allow Caller TON to be retrieved in the dialplan
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- pbx.c 24 Jul 2004 02:26:07 -0000 1.140
+++ pbx.c 30 Jul 2004 18:21:54 -0000 1.141
@@ -896,6 +896,8 @@
*ret = workspace;
} else
*ret = NULL;
+ } else if (c && !strcmp(var, "CALLERTON")) {
+ snprintf(workspace, workspacelen, "%d", c->callerton);
} else if (c && !strcmp(var, "DNID")) {
if (c->dnid) {
strncpy(workspace, c->dnid, workspacelen - 1);
More information about the svn-commits
mailing list