]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Work around an issue that caused menuselect to display a bogus description for
authorRussell Bryant <russell@russellbryant.com>
Thu, 9 Nov 2006 21:26:27 +0000 (21:26 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 9 Nov 2006 21:26:27 +0000 (21:26 +0000)
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/branches/1.4@47391 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c
build_tools/prep_moduledeps
channels/chan_zap.c

index 149ba73a987018968dafd49c42379b8b266dbf6a..1503199832694cfeb389e2995d8e2a321837722e 100644 (file)
@@ -8649,6 +8649,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,
index d6ea8aef615c3872fae2aaa1807cc2cef89b0ec4..93dc896759cd45c12ecec307377e282df561c1d1 100755 (executable)
@@ -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() {
index 9ab10e593c9a82e6742ce92e14b6ce58dc30c778..b035ec4d6ad08399cc3185ac556a46cd5a8eca48 100644 (file)
@@ -11354,6 +11354,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