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
certified/11.2
Richard Mudgett 14 years ago
parent 890717f305
commit ae07610d73

@ -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_context_set(tmp, S_OR(context, "default"));
ast_channel_exten_set(tmp, S_OR(exten, "s")); 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_channel_cdr_set(tmp, ast_cdr_alloc());
ast_cdr_init(ast_channel_cdr(tmp), tmp); ast_cdr_init(ast_channel_cdr(tmp), tmp);

Loading…
Cancel
Save