00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _ASTERISK_MOH_H
00024 #define _ASTERISK_MOH_H
00025
00026 #if defined(__cplusplus) || defined(c_plusplus)
00027 extern "C" {
00028 #endif
00029
00030
00031 extern int ast_moh_start(struct ast_channel *chan, char *mclass);
00032
00033
00034 extern void ast_moh_stop(struct ast_channel *chan);
00035
00036 extern void ast_install_music_functions(int (*start_ptr)(struct ast_channel *, char *),
00037 void (*stop_ptr)(struct ast_channel *),
00038 void (*cleanup_ptr)(struct ast_channel *));
00039
00040 extern void ast_uninstall_music_functions(void);
00041 void ast_moh_cleanup(struct ast_channel *chan);
00042
00043 #if defined(__cplusplus) || defined(c_plusplus)
00044 }
00045 #endif
00046
00047 #endif