[asterisk-commits] trunk r9139 - /trunk/channels/chan_local.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 3 15:38:39 MST 2006


Author: bweschke
Date: Fri Feb  3 16:38:38 2006
New Revision: 9139

URL: http://svn.digium.com/view/asterisk?rev=9139&view=rev
Log:
 Don't set a global variable if the channel you're trying to set CHANLOCALSTATUS on has gone away already.


Modified:
    trunk/channels/chan_local.c

Modified: trunk/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_local.c?rev=9139&r1=9138&r2=9139&view=diff
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Fri Feb  3 16:38:38 2006
@@ -394,7 +394,7 @@
 	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;



More information about the asterisk-commits mailing list