mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1195,13 +1195,21 @@ static int handle_context_add_extension(int fd, int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
}
|
||||
app = strsep(&whole_exten, ",");
|
||||
app = whole_exten;
|
||||
if (app && (start = strchr(app, '(')) && (end = strrchr(app, ')'))) {
|
||||
*start = *end = '\0';
|
||||
app_data = start + 1;
|
||||
process_quotes_and_slashes(app_data, ',', '|');
|
||||
} else
|
||||
app_data = whole_exten;
|
||||
} else {
|
||||
if (app) {
|
||||
app_data = strchr(app, ',');
|
||||
if (app_data) {
|
||||
*app_data = '\0';
|
||||
app_data++;
|
||||
}
|
||||
} else
|
||||
app_data = NULL;
|
||||
}
|
||||
|
||||
if (!exten || !prior || !app || (!app_data && iprior != PRIORITY_HINT)) return RESULT_SHOWUSAGE;
|
||||
|
||||
|
Reference in New Issue
Block a user