mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
Don't set a global variable if the channel you're trying to set CHANLOCALSTATUS on has gone away already.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -394,7 +394,7 @@ static int local_hangup(struct ast_channel *ast)
|
||||
isoutbound = IS_OUTBOUND(ast, p);
|
||||
if (isoutbound) {
|
||||
status = pbx_builtin_getvar_helper(p->chan, "DIALSTATUS");
|
||||
if(status)
|
||||
if ((status) && (p->owner))
|
||||
pbx_builtin_setvar_helper(p->owner, "CHANLOCALSTATUS", status);
|
||||
p->chan = NULL;
|
||||
p->launchedpbx = 0;
|
||||
|
Reference in New Issue
Block a user