diff options
author | BJ Weschke <bweschke@btwtech.com> | 2006-01-13 18:23:30 +0000 |
---|---|---|
committer | BJ Weschke <bweschke@btwtech.com> | 2006-01-13 18:23:30 +0000 |
commit | 1874f21ff8dee7d4a2cc8941b31c88af494602d6 (patch) | |
tree | a0ed0858bdd1013eaed352e26d1735233b861420 /channels/chan_local.c | |
parent | 130ce286ba14e489a6e5586d092718f88d842579 (diff) |
Implement the autologoffunavail option in chan_agent (#6038 with some minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r-- | channels/chan_local.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index 44103de50..612e28c8b 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -390,10 +390,14 @@ static int local_hangup(struct ast_channel *ast) struct local_pvt *cur, *prev=NULL; struct ast_channel *ochan = NULL; int glaredetect; + char *status; ast_mutex_lock(&p->lock); isoutbound = IS_OUTBOUND(ast, p); if (isoutbound) { + status = pbx_builtin_getvar_helper(p->chan, "DIALSTATUS"); + if(status) + pbx_builtin_setvar_helper(p->owner, "CHANLOCALSTATUS", status); p->chan = NULL; p->launchedpbx = 0; } else |