[Asterisk-cvs] asterisk pbx.c,1.61,1.62
markster at lists.digium.com
markster at lists.digium.com
Sat Oct 25 12:33:54 CDT 2003
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv5851
Modified Files:
pbx.c
Log Message:
Make HANGUPCAUSE accessible
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- pbx.c 25 Oct 2003 17:50:06 -0000 1.61
+++ pbx.c 25 Oct 2003 18:00:00 -0000 1.62
@@ -862,6 +862,9 @@
} else if (c && !strcmp(var, "UNIQUEID")) {
snprintf(workspace, workspacelen -1, "%s", c->uniqueid);
*ret = workspace;
+ } else if (c && !strcmp(var, "HANGUPCAUSE")) {
+ snprintf(workspace, workspacelen -1, "%i", c->hangupcause);
+ *ret = workspace;
} else {
if (c) {
AST_LIST_TRAVERSE(headp,variables,entries) {
More information about the svn-commits
mailing list