Index: res/res_musiconhold.c
===================================================================
--- res/res_musiconhold.c (revision 199221)
+++ res/res_musiconhold.c (working copy)
@@ -70,54 +70,84 @@
#define INITIAL_NUM_FILES 8
-static char *play_moh = "MusicOnHold";
-static char *wait_moh = "WaitMusicOnHold";
-static char *set_moh = "SetMusicOnHold";
-static char *start_moh = "StartMusicOnHold";
-static char *stop_moh = "StopMusicOnHold";
+/*** DOCUMENTATION
+
+
+ Play Music On Hold indefinitely.
+
+
+
+
+
+
+ Plays hold music specified by class. If omitted, the default music source for the channel will be used. Change the default class with Set(CHANNEL(musicclass)=...). If duration is given, hold music will be played specified number of seconds. If duration is ommited, music plays indefinitely. Returns 0 when done, -1 on hangup.
+
+
+
+
+ Wait, playing Music On Hold.
+
+
+
+
+
+ !!! DEPRECATED. Use MusicOnHold instead !!!
+ Plays hold music specified number of seconds. Returns 0 when done, or -1 on hangup. If no hold music is available, the delay will still occur with no sound.
+ !!! DEPRECATED. Use MusicOnHold instead !!!
+
+
+
+
+ Set default Music On Hold class.
+
+
+
+
+
+ !!! DEPRECATED. USe Set(CHANNEL(musicclass)=...) instead !!!
+ Sets the default class for music on hold for a given channel. When music on hold is activated, this class will be used to select which music is played.
+ !!! DEPRECATED. USe Set(CHANNEL(musicclass)=...) instead !!!
+
+
+
+
+ Play Music On Hold.
+
+
+
+
+
+ Starts playing music on hold, uses default music class for channel. Starts playing music specified by class. If omitted, the default music source for the channel will be used. Always returns 0.
+
+
+
+
+ Stop playing Music On Hold.
+
+
+ Stops playing music on hold.
+
+
+ ***/
-static char *play_moh_syn = "Play Music On Hold indefinitely";
-static char *wait_moh_syn = "Wait, playing Music On Hold";
-static char *set_moh_syn = "Set default Music On Hold class";
-static char *start_moh_syn = "Play Music On Hold";
-static char *stop_moh_syn = "Stop Playing Music On Hold";
+static char *play_moh;
+static char *wait_moh;
+static char *set_moh;
+static char *start_moh;
+static char *stop_moh;
-static char *play_moh_desc = " MusicOnHold(class[,duration]):\n"
-"Plays hold music specified by class. If omitted, the default\n"
-"music source for the channel will be used. Change the default \n"
-"class with Set(CHANNEL(musicclass)=...).\n"
-"If duration is given, hold music will be played specified number\n"
-"of seconds. If duration is ommited, music plays indefinitely.\n"
-"Returns 0 when done, -1 on hangup.\n";
+static char *play_moh_syn;
+static char *wait_moh_syn;
+static char *set_moh_syn;
+static char *start_moh_syn;
+static char *stop_moh_syn;
-static char *wait_moh_desc = " WaitMusicOnHold(delay):\n"
-"\n"
-" !!! DEPRECATED. Use MusicOnHold instead !!!\n"
-"\n"
-"Plays hold music specified number of seconds. Returns 0 when\n"
-"done, or -1 on hangup. If no hold music is available, the delay will\n"
-"still occur with no sound.\n"
-"\n"
-" !!! DEPRECATED. Use MusicOnHold instead !!!\n";
+static char *play_moh_desc;
+static char *wait_moh_desc;
+static char *set_moh_desc;
+static char *start_moh_desc;
+static char *stop_moh_desc;
-static char *set_moh_desc = " SetMusicOnHold(class):\n"
-"\n"
-" !!! DEPRECATED. USe Set(CHANNEL(musicclass)=...) instead !!!\n"
-"\n"
-"Sets the default class for music on hold for a given channel. When\n"
-"music on hold is activated, this class will be used to select which\n"
-"music is played.\n"
-"\n"
-" !!! DEPRECATED. USe Set(CHANNEL(musicclass)=...) instead !!!\n";
-
-static char *start_moh_desc = " StartMusicOnHold(class):\n"
-"Starts playing music on hold, uses default music class for channel.\n"
-"Starts playing music specified by class. If omitted, the default\n"
-"music source for the channel will be used. Always returns 0.\n";
-
-static char *stop_moh_desc = " StopMusicOnHold(): "
-"Stops playing music on hold.\n";
-
static int respawn_time = 20;
struct moh_files_state {