Fix ast_channel allocation init setting priority to -1 instead of 1.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 28 Feb 2012 00:17:19 +0000 (00:17 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 28 Feb 2012 00:17:19 +0000 (00:17 +0000)
* Fix opaquification conversion error.

(closes issue ASTERISK-19424)
Reported by: Jeremy Pepper
Patches:
      asterisk-19424-initialize_priority_regression.diff (license #5026) patch uploaded by Michael L. Young

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

main/channel.c

index 3ec6ac4..ded41da 100644 (file)
@@ -1097,7 +1097,7 @@ __ast_channel_alloc_ap(int needqueue, int state, const char *cid_num, const char
                
        ast_channel_context_set(tmp, S_OR(context, "default"));
        ast_channel_exten_set(tmp, S_OR(exten, "s"));
-       ast_channel_priority_set(tmp, -1);
+       ast_channel_priority_set(tmp, 1);
 
        ast_channel_cdr_set(tmp, ast_cdr_alloc());
        ast_cdr_init(ast_channel_cdr(tmp), tmp);