staticchar*synopsis="Provide directory of voicemail extensions";
staticchar*synopsis="Provide directory of voicemail extensions";
staticchar*descrip=
staticchar*descrip=
" Directory(vm-context[|dial-context[|options]]): Presents the user with a directory\n"
" Directory(vm-context[|dial-context[|options]]): This application will present\n"
"of extensions from which they may select by name. The list of names \n"
"the calling channel with a directory of extensions from which they can search\n"
"and extensions are retrieved from voicemail.conf. The vm-context argument\n"
"by name. The list of names and corresponding extensions is retrieved from the\n"
"is required, and specifies the context of voicemail.conf to use. The\n"
"voicemail configuration file, voicemail.conf.\n"
"dial-context is the context to use for dialing the users, and defaults to\n"
" This applicaiton will immediate exit if one of the following DTMF digits are\n"
"the vm-context if unspecified. The 'f' option causes the directory to match\n"
"received and the extension to jump to exists:\n"
"based on the first name in voicemail.conf instead of the last name.\n"
" 0 - Jump to the 'o' extension, if it exists.\n"
"The query should yield a contact unless the caller disconnects.\n"
" * - Jump to the 'a' extension, if it exists.\n\n"
"It also sets up the channel on exit to enter the extension the user selected.\n""If the user enters '0' and there exists an extension 'o' in the current \n"" context, the directory will contact the extension associated with 'o'\n"
" Parameters:\n"
"and call control will resume at that extension. Entering '*' will exit similarly,\n"
" vm-context - This is the context within voicemail.conf to use for the\n"
"but to the 'a' extension, much like app_voicemail's behavior.\n";
" Directory.\n"
" dial-context - This is the dialplan context to use when looking for an\n"
" extension that the user has selected, or when jumping to the\n"
" 'o' or 'a' extension.\n\n"
" Options:\n"
" f - Allow the caller to enter the first name of a user in the directory\n"
" instead of using the last name.\n";
/* For simplicity, I'm keeping the format compatible with the voicemail config,
/* For simplicity, I'm keeping the format compatible with the voicemail config,