mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
Split Hold event into Hold/Unhold, and move it into core.
(closes issue ASTERISK-21487) Review: https://reviewboard.asterisk.org/r/2565/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -10943,7 +10943,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
ch->hold.port = 0;
|
||||
ch->hold.channel = 0;
|
||||
|
||||
ast_queue_control(ch->ast, AST_CONTROL_UNHOLD);
|
||||
ast_queue_unhold(ch->ast);
|
||||
|
||||
if (misdn_lib_send_event(bc, EVENT_RETRIEVE_ACKNOWLEDGE) < 0) {
|
||||
chan_misdn_log(4, bc->port, " --> RETRIEVE_ACK failed\n");
|
||||
@@ -10973,7 +10973,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
ch->hold.port = bc->port;
|
||||
ch->hold.channel = bc->channel;
|
||||
|
||||
ast_queue_control(ch->ast, AST_CONTROL_HOLD);
|
||||
ast_queue_hold(ch->ast, NULL);
|
||||
|
||||
misdn_lib_send_event(bc, EVENT_HOLD_ACKNOWLEDGE);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user