--- asterisk/pbx.c 2004-03-05 21:38:45.000000000 +0100 +++ myasterisk/pbx.c 2004-03-05 21:48:14.000000000 +0100 @@ -3306,7 +3306,7 @@ /* ... 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->data, new_sw->data)) { free(new_sw); ast_mutex_unlock(&con->lock); errno = EEXIST;