Index: pbx_config.c =================================================================== RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v retrieving revision 1.2 diff -c -r1.2 pbx_config.c *** pbx_config.c 30 Mar 2003 22:55:42 -0000 1.2 --- pbx_config.c 5 Apr 2003 05:41:58 -0000 *************** *** 1084,1096 **** cidmatch = NULL; } prior = strsep(&whole_exten,","); ! if (!strcmp(prior, "hint")) { ! iprior = PRIORITY_HINT; ! } else { ! iprior = atoi(prior); } app = strsep(&whole_exten,","); ! if ((start = strchr(app, '(')) && (end = strrchr(app, ')'))) { *start = *end = '\0'; app_data = start + 1; for (start = app_data; *start; start++) --- 1084,1098 ---- cidmatch = NULL; } prior = strsep(&whole_exten,","); ! if (prior) { ! if (!strcmp(prior, "hint")) { ! iprior = PRIORITY_HINT; ! } else { ! iprior = atoi(prior); ! } } app = strsep(&whole_exten,","); ! if (app && (start = strchr(app, '(')) && (end = strrchr(app, ')'))) { *start = *end = '\0'; app_data = start + 1; for (start = app_data; *start; start++)