diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 18:23:30 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 18:23:30 +0000 |
commit | 5af8c4e9eba73dd65ff9f9b1dd652e125245e99f (patch) | |
tree | a0ed0858bdd1013eaed352e26d1735233b861420 /channels/chan_local.c | |
parent | d1792564f718f16a007e96d37add4904c18eca19 (diff) |
Implement the autologoffunavail option in chan_agent (#6038 with some minor mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8063 f38db490-d61c-443f-a65b-d21fe96a405b
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 |