Asterisk - The Open Source Telephony Project
21.4.1
|
Music on hold handling. More...
Go to the source code of this file.
Functions | |
void | ast_install_music_functions (int(*start_ptr)(struct ast_channel *, const char *, const char *), void(*stop_ptr)(struct ast_channel *), void(*cleanup_ptr)(struct ast_channel *)) |
void | ast_moh_cleanup (struct ast_channel *chan) |
int | ast_moh_start (struct ast_channel *chan, const char *mclass, const char *interpclass) |
Turn on music on hold on a given channel. More... | |
void | ast_moh_stop (struct ast_channel *chan) |
Turn off music on hold on a given channel. | |
void | ast_uninstall_music_functions (void) |
Music on hold handling.
Definition in file musiconhold.h.
int ast_moh_start | ( | struct ast_channel * | chan, |
const char * | mclass, | ||
const char * | interpclass | ||
) |
Turn on music on hold on a given channel.
chan | The channel structure that will get music on hold |
mclass | The class to use if the musicclass is not currently set on the channel structure. NULL and the empty string are equivalent. |
interpclass | The class to use if the musicclass is not currently set on the channel structure or in the mclass argument. NULL and the empty string are equivalent. |
Zero | on success |
non-zero | on failure |
Definition at line 7766 of file channel.c.
Referenced by ast_ari_bridges_start_moh(), ast_bridge_channel_playfile(), ast_unreal_indicate(), chan_pjsip_indicate(), channel_do_masquerade(), conf_moh_start(), dial_exec_full(), jingle_indicate(), monitor_dial(), queue_exec(), rna(), and say_periodic_announcement().