mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 22:18:07 +00:00
merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4291,7 +4291,9 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
bc->holded_bc=bridged_ch->bc;
|
||||
misdn_lib_send_event(bc, EVENT_HOLD_ACKNOWLEDGE);
|
||||
|
||||
ast_moh_start(bridged, NULL);
|
||||
/* XXX This should queue an AST_CONTROL_HOLD frame on this channel
|
||||
* instead of starting moh on the bridged channel directly */
|
||||
ast_moh_start(bridged, NULL, NULL);
|
||||
} else {
|
||||
misdn_lib_send_event(bc, EVENT_HOLD_REJECT);
|
||||
chan_misdn_log(0, bc->port, "We aren't bridged to anybody\n");
|
||||
|
||||
Reference in New Issue
Block a user