diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-02-28 00:17:19 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-02-28 00:17:19 +0000 |
commit | ae07610d73c329312bbb393573ac0f0ba4d8853d (patch) | |
tree | 782c5acc3f7e273fb906b2883f32745a2d28131e /main | |
parent | 890717f3052c9715e1ac6be08d9e5d77b55892be (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 3ec6ac4f3..ded41da29 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); |