mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user