res_parking: Apply ringing role option on swap with a channel that rings

(closes issue ASTERISK-21877)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2656/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2013-07-08 15:59:47 +00:00
parent 7ee5b025f4
commit b083a4cdae
4 changed files with 35 additions and 12 deletions

View File

@@ -1015,7 +1015,9 @@ void ast_bridge_channel_playfile(struct ast_bridge_channel *bridge_channel, ast_
* playing the announcment.
*
* XXX We have no idea what MOH class was in use before playing
* the file.
* the file. This method also fails to restore ringing indications.
* the proposed solution is to create a resume_entertainment callback
* for the bridge technology and execute it here.
*/
if (ast_test_flag(ast_channel_flags(bridge_channel->chan), AST_FLAG_MOH)) {
ast_moh_start(bridge_channel->chan, NULL, NULL);