Merged revisions 47391 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47391 | russell | 2006-11-09 16:26:27 -0500 (Thu, 09 Nov 2006) | 7 lines

Work around an issue that caused menuselect to display a bogus description for
app_voicemail and chan_zap.  These modules use some preprocessor directives to
determine what it will report to Asterisk as its description.  However, the way
we extract this information from the source files for menuselect is not smart
enough to figure this out.
(issue #8326, #8328)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2006-11-09 21:32:27 +00:00
parent ead6c4655e
commit 36793b730c
3 changed files with 9 additions and 1 deletions

View File

@ -8765,6 +8765,10 @@ static void get_mailbox_delimiter(MAILSTREAM *stream) {
}
#endif /* IMAP_STORAGE */
/* This is a workaround so that menuselect displays a proper description
* AST_MODULE_INFO(, , "Comedian Mail (Voicemail System)"
*/
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, tdesc,
.load = load_module,

View File

@ -1,7 +1,7 @@
#!/bin/sh
get_description() {
TDESC=`grep -e AST_MODULE_INFO ${1} | cut -d '"' -f 2`
TDESC=`grep -m 1 -e AST_MODULE_INFO ${1} | cut -d '"' -f 2`
}
process_dir() {

View File

@ -12694,6 +12694,10 @@ static int reload(void)
return 0;
}
/* This is a workaround so that menuselect displays a proper description
* AST_MODULE_INFO(, , "Zapata Telephony"
*/
#ifdef ZAPATA_PRI
#define tdesc "Zapata Telephony w/PRI"
#else