+ maxdigitstr = strsep(&stringp,"|");
+ options = strsep(&stringp, "|");
+ if (options && !strcasecmp(options, "skip"))
+ option_skip = 1;
+ if (options && !strcasecmp(options, "noanswer"))
+ option_noanswer = 1;
+ if (!(filename) || ast_strlen_zero(filename))
+ filename = NULL;
+ if (maxdigitstr) {
+ maxdigits = atoi(maxdigitstr);
+ if ((maxdigits<1) || (maxdigits>255)) {
+ maxdigits = 255;
+ } else
+ ast_verbose(VERBOSE_PREFIX_3 "Accepting a maximum of %i digits.\n", maxdigits);
+ }
+ if (!(varname) || ast_strlen_zero(varname)) {
+ ast_log(LOG_WARNING, "Read requires an variable name\n");
+ return -1;
+ }