dect
/
asterisk
Archived
13
0
Fork 0

Fixes issue with channel write format being incorrectly restored when MOH is used in confbridge.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@324422 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dvossel 2011-06-21 21:55:30 +00:00
parent e30177b43f
commit cb5d7f338b
1 changed files with 3 additions and 3 deletions

View File

@ -1362,12 +1362,12 @@ static int confbridge_exec(struct ast_channel *chan, const char *data)
ast_moh_stop(chan);
}
ast_stream_and_wait(chan, join_sound, "");
if (conference_bridge_user.playing_moh) {
ast_moh_start(chan, conference_bridge_user.u_profile.moh_class, NULL);
}
ast_autoservice_start(chan);
play_sound_file(conference_bridge, join_sound);
ast_autoservice_stop(chan);
if (conference_bridge_user.playing_moh) {
ast_moh_start(chan, conference_bridge_user.u_profile.moh_class, NULL);
}
}
/* Join our conference bridge for real */