summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-04-10 23:01:22 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-04-10 23:01:22 +0000
commitcf15740eaf6de047096a25afe678a577a574a9aa (patch)
tree062dab9878dd1b5502c0bca6a1ba35c21b8e6d37 /pbx.c
parent26198e88265f5c6bbf12a28ceb73981ee0cbf7bc (diff)
remove support for BYEXTENSION (which nobody even knows about anymore)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pbx.c b/pbx.c
index d28b9e8c0..d4b17dbf7 100644
--- a/pbx.c
+++ b/pbx.c
@@ -6040,7 +6040,7 @@ int ast_parseable_goto(struct ast_channel *chan, const char *goto_string)
pri++;
}
if (sscanf(pri, "%d", &ipri) != 1) {
- if ((ipri = ast_findlabel_extension(chan, context ? context : chan->context, (exten && strcasecmp(exten, "BYEXTENSION")) ? exten : chan->exten,
+ if ((ipri = ast_findlabel_extension(chan, context ? context : chan->context, exten ? exten : chan->exten,
pri, chan->cid.cid_num)) < 1) {
ast_log(LOG_WARNING, "Priority '%s' must be a number > 0, or valid label\n", pri);
return -1;
@@ -6049,9 +6049,6 @@ int ast_parseable_goto(struct ast_channel *chan, const char *goto_string)
}
/* At this point we have a priority and maybe an extension and a context */
- if (exten && !strcasecmp(exten, "BYEXTENSION"))
- exten = NULL;
-
if (mode)
ipri = chan->priority + (ipri * mode);