summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-07-04 13:26:37 +0000
committerMatthew Jordan <mjordan@digium.com>2014-07-04 13:26:37 +0000
commit97834718c283d74e3571c1bf52d2840b93157cda (patch)
treea5887ff82e9f3d33c4cc1e64c0f9804dae47c295 /addons
parent3bd495a688199c2db5ebc397210f06191aa59581 (diff)
Remove many deprecated modules
Billing records are fair, To get paid is quite bright, You should really use ODBC; Good-bye cdr_sqlite. Microsoft did once push H.323, Hell, we all remember NetMeeting. But try to compile chan_h323 now And you will take quite a beating. The XMPP and SIP war was fierce, And in the distant fray Was birthed res_jabber/chan_jingle; But neither to stay. For everyone did care and chase what Google professed. "Free Internet Calling" was what devotees cried, But Google did change the specs so often That the developers were happy the day chan_gtalk died. And then there was that odd application Dedicated to the Polish tongue. app_saycountpl was subsumed by Say; One could say its bell was rung. To read and parse a file from the dialplan You could (I guess) use an application. app_readfile did fill that purpose, but I think A function is perhaps better in its creation. Barging is rude, I'm not sure why we do it. Inwardly, the caller will probably sigh. But if you really must do it, Don't use app_dahdibarge, use ChanSpy. We all despise the sound of tinny robots It makes our queues so cold. To control such an abomination It's better to not use Wait/SetMusicOnHold. It's often nice to know properties of a channel It makes our calls right We have a nice function called CHANNEL And so SIPCHANINFO is sent off into the night. And now things get odd; Apparently one could delimit with a colon Properties from the SIPPEER function! Commas are in; all others are done. Finally, a word on pipes and commas. We're sorry. We can't say it enough. But those compatibility options in asterisk.conf; To maintain them forever was just too tough. This patch removes: * cdr_sqlite * chan_gtalk * chan_jingle * chan_h323 * res_jabber * app_saycountpl * app_readfile * app_dahdibarge It removes the following applications/functions: * WaitMusicOnHold * SetMusicOnHold * SIPCHANINFO It removes the colon delimiter from the SIPPEER function. Finally, it also removes all compatibility options that were configurable from asterisk.conf, as these all applied to compatibility with Asterisk 1.4 systems. Review: https://reviewboard.asterisk.org/r/3698/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons')
-rw-r--r--addons/Makefile1
-rw-r--r--addons/app_saycountpl.c138
2 files changed, 0 insertions, 139 deletions
diff --git a/addons/Makefile b/addons/Makefile
index e1ff95f64..96438f5d0 100644
--- a/addons/Makefile
+++ b/addons/Makefile
@@ -27,7 +27,6 @@ H323OBJS:=ooCmdChannel.o ooLogChan.o ooUtils.o ooGkClient.o context.o \
H323CFLAGS:=-Iooh323c/src -Iooh323c/src/h323
ALL_C_MODS:=app_mysql \
- app_saycountpl \
cdr_mysql \
chan_mobile \
chan_ooh323 \
diff --git a/addons/app_saycountpl.c b/addons/app_saycountpl.c
deleted file mode 100644
index dce519d94..000000000
--- a/addons/app_saycountpl.c
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * Asterisk -- An open source telephony toolkit.
- *
- * Copyright (C) 2004, Andy Powell & TAAN Softworks Corp.
- *
- * See http://www.asterisk.org for more information about
- * the Asterisk project. Please do not directly contact
- * any of the maintainers of this project for assistance;
- * the project provides a web site, mailing lists and IRC
- * channels for your use.
- *
- * This program is free software, distributed under the terms of
- * the GNU General Public License Version 2. See the LICENSE file
- * at the top of the source tree.
- */
-
-/*!
- * \file
- * \brief Say Polish counting words
- * \author Andy Powell
- */
-
-/*** MODULEINFO
- <defaultenabled>no</defaultenabled>
- <support_level>deprecated</support_level>
- <replacement>say.conf</replacement>
- ***/
-
-#include "asterisk.h"
-
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
-#include "asterisk/file.h"
-#include "asterisk/logger.h"
-#include "asterisk/channel.h"
-#include "asterisk/pbx.h"
-#include "asterisk/module.h"
-#include "asterisk/lock.h"
-#include "asterisk/app.h"
-
-/*** DOCUMENTATION
- <application name="SayCountPL" language="en_US">
- <synopsis>
- Say Polish counting words.
- </synopsis>
- <syntax>
- <parameter name="word1" required="true" />
- <parameter name="word2" required="true" />
- <parameter name="word5" required="true" />
- <parameter name="number" required="true" />
- </syntax>
- <description>
- <para>Polish grammar has some funny rules for counting words. for example 1 zloty,
- 2 zlote, 5 zlotych. This application will take the words for 1, 2-4 and 5 and
- decide based on grammar rules which one to use with the number you pass to it.</para>
- <para>Example: SayCountPL(zloty,zlote,zlotych,122) will give: zlote</para>
- </description>
- </application>
-
- ***/
-static const char app[] = "SayCountPL";
-
-static int saywords(struct ast_channel *chan, char *word1, char *word2, char *word5, int num)
-{
- /* Put this in a separate proc because it's bound to change */
- int d = 0;
-
- if (num > 0) {
- if (num % 1000 == 1) {
- ast_streamfile(chan, word1, ast_channel_language(chan));
- d = ast_waitstream(chan,"");
- } else if (((num % 10) >= 2) && ((num % 10) <= 4 ) && ((num % 100) < 10 || (num % 100) > 20)) {
- ast_streamfile(chan, word2, ast_channel_language(chan));
- d = ast_waitstream(chan, "");
- } else {
- ast_streamfile(chan, word5, ast_channel_language(chan));
- d = ast_waitstream(chan, "");
- }
- }
-
- return d;
-}
-
-
-static int sayword_exec(struct ast_channel *chan, const char *data)
-{
- int res = 0;
- char *s;
- int inum;
- AST_DECLARE_APP_ARGS(args,
- AST_APP_ARG(word1);
- AST_APP_ARG(word2);
- AST_APP_ARG(word5);
- AST_APP_ARG(num);
- );
-
- if (!data) {
- ast_log(LOG_WARNING, "SayCountPL requires 4 arguments: word-1,word-2,word-5,number\n");
- return -1;
- }
-
- s = ast_strdupa(data);
-
- AST_STANDARD_APP_ARGS(args, s);
-
- /* Check to see if params passed */
- if (!args.word1 || !args.word2 || !args.word5 || !args.num) {
- ast_log(LOG_WARNING, "SayCountPL requires 4 arguments: word-1,word-2,word-3,number\n");
- return -1;
- }
-
- if (sscanf(args.num, "%30d", &inum) != 1) {
- ast_log(LOG_WARNING, "'%s' is not a valid number\n", args.num);
- return -1;
- }
-
- /* do the saying part (after a bit of maths) */
-
- res = saywords(chan, args.word1, args.word2, args.word5, inum);
-
- return res;
-}
-
-static int unload_module(void)
-{
- return ast_unregister_application(app);
-}
-
-static int load_module(void)
-{
- int res;
-
- res = ast_register_application_xml(app, sayword_exec);
-
- return res ? AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
-}
-
-AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Say polish counting words");