Index: pbx/pbx_ael.c =================================================================== RCS file: /usr/cvsroot/asterisk/pbx/pbx_ael.c,v retrieving revision 1.21 diff -u -r1.21 pbx_ael.c --- pbx/pbx_ael.c 16 Nov 2005 17:16:23 -0000 1.21 +++ pbx/pbx_ael.c 21 Nov 2005 21:55:10 -0000 @@ -730,6 +730,11 @@ if (aeldebug & DEBUG_TOKENS) ast_verbose("--GOTO to : '%s'\n", args); app = "Goto"; + if (args[0] == '(' && args[strlen(args) - 1] == ')') { + args[0] = '\0'; + args++; + args[strlen(args) - 1] = '\0'; + } if (ast_add_extension2(con, 0, exten, (*pos)++, *label, NULL, app, strdup(args), FREE, registrar)) ast_log(LOG_WARNING, "Unable to add step at priority '%d' of %s '%s'\n", *pos, what, name); *label = NULL;