summaryrefslogtreecommitdiff
path: root/res/ael
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 /res/ael
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 'res/ael')
-rw-r--r--res/ael/pval.c43
1 files changed, 7 insertions, 36 deletions
diff --git a/res/ael/pval.c b/res/ael/pval.c
index c0da0f03f..d72ef0d59 100644
--- a/res/ael/pval.c
+++ b/res/ael/pval.c
@@ -56,7 +56,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#endif
#include "asterisk/utils.h"
-extern struct ast_flags ast_compat;
extern int localized_pbx_load_module(void);
static char expr_output[2096];
@@ -3384,11 +3383,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement,
for (first = 1; first >= 0; first--) {
switch_set = new_prio();
switch_set->type = AEL_APPCALL;
- if (!ast_compat_app_set) {
- switch_set->app = strdup("MSet");
- } else {
- switch_set->app = strdup("Set");
- }
+ switch_set->app = strdup("MSet");
/* Are we likely inside a gosub subroutine? */
if (!strcmp(mother_exten->name, "~~s~~") && first) {
/* If we're not actually within a gosub, this will fail, but the
@@ -3413,11 +3408,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement,
for (first = 1; first >= 0; first--) {
switch_set = new_prio();
switch_set->type = AEL_APPCALL;
- if (!ast_compat_app_set) {
- switch_set->app = strdup("MSet");
- } else {
- switch_set->app = strdup("Set");
- }
+ switch_set->app = strdup("MSet");
/* Are we likely inside a gosub subroutine? */
if (!strcmp(exten->name, "~~s~~")) {
/* If we're not actually within a gosub, this will fail, but the
@@ -3453,11 +3444,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement,
pr = new_prio();
pr->type = AEL_APPCALL;
snprintf(buf1, BUF_SIZE, "%s=$[%s]", p->u1.str, p->u2.val);
- if (!ast_compat_app_set) {
- pr->app = strdup("MSet");
- } else {
- pr->app = strdup("Set");
- }
+ pr->app = strdup("MSet");
remove_spaces_before_equals(buf1);
pr->appargs = strdup(buf1);
pr->origin = p;
@@ -3468,11 +3455,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement,
pr = new_prio();
pr->type = AEL_APPCALL;
snprintf(buf1, BUF_SIZE, "LOCAL(%s)=$[%s]", p->u1.str, p->u2.val);
- if (!ast_compat_app_set) {
- pr->app = strdup("MSet");
- } else {
- pr->app = strdup("Set");
- }
+ pr->app = strdup("MSet");
remove_spaces_before_equals(buf1);
pr->appargs = strdup(buf1);
pr->origin = p;
@@ -3535,11 +3518,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement,
for_test->goto_false = for_end;
for_loop->type = AEL_CONTROL1; /* simple goto */
for_end->type = AEL_APPCALL;
- if (!ast_compat_app_set) {
- for_init->app = strdup("MSet");
- } else {
- for_init->app = strdup("Set");
- }
+ for_init->app = strdup("MSet");
strcpy(buf2,p->u1.for_init);
remove_spaces_before_equals(buf2);
@@ -3600,11 +3579,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement,
strncat(buf2,strp2+1, BUF_SIZE-strlen(strp2+1)-2);
strcat(buf2,"]");
for_inc->appargs = strdup(buf2);
- if (!ast_compat_app_set) {
- for_inc->app = strdup("MSet");
- } else {
- for_inc->app = strdup("Set");
- }
+ for_inc->app = strdup("MSet");
} else {
strp2 = p->u3.for_inc;
while (*strp2 && isspace(*strp2))
@@ -4489,11 +4464,7 @@ int ast_compile_ael2(struct ast_context **local_contexts, struct ast_hashtab *lo
/* for each arg, set up a "Set" command */
struct ael_priority *np2 = new_prio();
np2->type = AEL_APPCALL;
- if (!ast_compat_app_set) {
- np2->app = strdup("MSet");
- } else {
- np2->app = strdup("Set");
- }
+ np2->app = strdup("MSet");
snprintf(buf,sizeof(buf),"LOCAL(%s)=${ARG%d}", lp->u1.str, argc++);
remove_spaces_before_equals(buf);
np2->appargs = strdup(buf);