From ae07610d73c329312bbb393573ac0f0ba4d8853d Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 28 Feb 2012 00:17:19 +0000 Subject: [PATCH] Fix ast_channel allocation init setting priority to -1 instead of 1. * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/channel.c b/main/channel.c index 3ec6ac4f32..ded41da295 100644 --- a/main/channel.c +++ b/main/channel.c @@ -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);