]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Actually check to make sure a PBX was started on one of the Local channels instead...
authorJoshua Colp <jcolp@digium.com>
Thu, 5 Jul 2007 13:26:02 +0000 (13:26 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 5 Jul 2007 13:26:02 +0000 (13:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73318 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 9dceded67b20312bde3cbf8c58f499d8c873fc58..9a0f8d61bd78a140602643288610a111d3f790ab 100644 (file)
@@ -391,10 +391,10 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
                }
        }
 
-       p->launchedpbx = 1;
-
        /* Start switch on sub channel */
-       res = ast_pbx_start(p->chan);
+       if (!(res = ast_pbx_start(p->chan)))
+               p->launchedpbx = 1;
+
        ast_mutex_unlock(&p->lock);
        return res;
 }