diff options
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -862,6 +862,9 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var, } 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) { |