diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-06 20:15:08 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-06 20:15:08 +0000 |
commit | 74cb4e882537233510d5931187f92bba1b14413f (patch) | |
tree | 089788b3e4226ba963727377e3f0ba882df491d7 /pbx.c | |
parent | 2523ec1a669353bdd6b14d0c3bf9daa440727702 (diff) |
Allow multiple switches in the same context (bug #1171)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2360 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |