]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_local: Fix reversed LocalOptimization field in LocalBridge event
authorJonathan Rose <jrose@digium.com>
Wed, 5 Feb 2014 20:37:14 +0000 (20:37 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 5 Feb 2014 20:37:14 +0000 (20:37 +0000)
(closes issue ASTERISK-23232)
Reported by: Leon Roy

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@407457 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 07325eb4b0e265f7514b646fb81f41dcdb2576de..43516c8b84fe221e440500871a71d13488e683b0 100644 (file)
@@ -1006,7 +1006,7 @@ static int local_call(struct ast_channel *ast, const char *dest, int timeout)
                      "LocalOptimization: %s\r\n",
                        ast_channel_name(p->owner), ast_channel_name(p->chan), ast_channel_uniqueid(p->owner), ast_channel_uniqueid(p->chan),
                        p->context, p->exten,
-                       ast_test_flag(p, LOCAL_NO_OPTIMIZATION) ? "Yes" : "No");
+                       ast_test_flag(p, LOCAL_NO_OPTIMIZATION) ? "No" : "Yes");
 
 
        /* Start switch on sub channel */