summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-03-06 20:15:08 +0000
committerJames Golovich <james@gnuinter.net>2004-03-06 20:15:08 +0000
commit146469ab19c02f9b7711e60e08637e0c3f4496b5 (patch)
tree089788b3e4226ba963727377e3f0ba882df491d7 /pbx.c
parentfa4ed416c7fdd3deeb3446f991794f48c006814b (diff)
Allow multiple switches in the same context (bug #1171)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 85b469764..8de44ee66 100755
--- a/pbx.c
+++ b/pbx.c
@@ -3306,7 +3306,7 @@ int ast_context_add_switch2(struct ast_context *con, char *value,
/* ... go to last sw and check if context is already swd too... */
i = con->alts;
while (i) {
- if (!strcasecmp(i->name, new_sw->name)) {
+ if (!strcasecmp(i->name, new_sw->name) && !strcasecmp(i->data, new_sw->data)) {
free(new_sw);
ast_mutex_unlock(&con->lock);
errno = EEXIST;