diff --git a/daemon/media_player.c b/daemon/media_player.c index 4535a41f4..66e970822 100644 --- a/daemon/media_player.c +++ b/daemon/media_player.c @@ -1564,7 +1564,7 @@ bool media_player_play(struct media_player *mp, media_player_opts_t *opts) { * When to_ml is given, check MoH capabilities of it, * because then an offerer wants to use them instead of its own (from_ml). */ -bool call_ml_wants_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, +static bool call_ml_wants_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, enum ng_opmode opmode) { struct call_monologue *ml = to_ml ? : from_ml; @@ -1577,7 +1577,7 @@ bool call_ml_wants_moh(struct call_monologue *from_ml, struct call_monologue *to return false; } -bool call_ml_stops_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, +static bool call_ml_stops_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, enum ng_opmode opmode) { #ifdef WITH_TRANSCODING @@ -1598,7 +1598,7 @@ bool call_ml_stops_moh(struct call_monologue *from_ml, struct call_monologue *to * Sets the sendrecv state for the first found subscription media with a sendonly state * and audio type. */ -void call_ml_moh_handle_flags(struct call_monologue *from_ml, struct call_monologue *to_ml) { +static void call_ml_moh_handle_flags(struct call_monologue *from_ml, struct call_monologue *to_ml) { #ifdef WITH_TRANSCODING /* if from_ml not given, then it's a reflected MoH, use capabilities of to_ml */ diff --git a/include/media_player.h b/include/media_player.h index 26309265b..9db4677f1 100644 --- a/include/media_player.h +++ b/include/media_player.h @@ -141,11 +141,7 @@ void media_player_add_packet(struct media_player *mp, char *buf, size_t len, const char *call_play_media_for_ml(struct call_monologue *ml, media_player_opts_t *opts, sdp_ng_flags *flags); long long call_stop_media_for_ml(struct call_monologue *ml); -bool call_ml_wants_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, enum ng_opmode opmode); -bool call_ml_stops_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, - enum ng_opmode opmode); -void call_ml_moh_handle_flags(struct call_monologue *from_ml, struct call_monologue *to_ml); -const char * call_check_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, +const char *call_check_moh(struct call_monologue *from_ml, struct call_monologue *to_ml, sdp_ng_flags *flags); void media_player_init(void);