Index: pbx.c =================================================================== RCS file: /usr/cvsroot/asterisk/pbx.c,v retrieving revision 1.91 diff -u -r1.91 pbx.c --- pbx.c 1 Dec 2003 02:47:19 -0000 1.91 +++ pbx.c 13 Dec 2003 03:15:04 -0000 @@ -828,7 +828,7 @@ offset = strlen(c->exten); strncpy(workspace, c->exten + offset, workspacelen - 1); *ret = workspace; - ast_log(LOG_WARNING, "The use of 'EXTEN-foo' has been derprecated in favor of 'EXTEN:foo'\n"); + ast_log(LOG_WARNING, "The use of 'EXTEN-foo' has been deprecated in favor of 'EXTEN:foo'\n"); } else if (c && !strcmp(var, "RDNIS")) { if (c->rdnis) { strncpy(workspace, c->rdnis, workspacelen - 1); @@ -1668,7 +1668,7 @@ ast_log(LOG_WARNING, "%s already has PBX structure??\n", c->name); c->pbx = malloc(sizeof(struct ast_pbx)); if (!c->pbx) { - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); return -1; } if (c->amaflags) { @@ -2226,7 +2226,7 @@ apps = tmp; } } else { - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); ast_mutex_unlock(&applock); return -1; } @@ -2806,7 +2806,7 @@ else if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "Registered extension context '%s'\n", tmp->name); } else - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); if (!extcontexts) ast_mutex_unlock(&conlock); @@ -2902,24 +2903,26 @@ /* Otherwise expect a range */ e = strchr(times, '-'); if (!e) { - ast_log(LOG_WARNING, "Time range is not valid. Assuming no time.\n"); + ast_log(LOG_WARNING, "Time range is not valid. Assuming no restrictions based on time.\n"); return; } *e = '\0'; e++; while(*e && !isdigit(*e)) e++; if (!*e) { - ast_log(LOG_WARNING, "Invalid time range. Assuming no time.\n"); + ast_log(LOG_WARNING, "Invalid time range. Assuming no restrictions based on time.\n"); return; } if (sscanf(times, "%d:%d", &s1, &s2) != 2) { - ast_log(LOG_WARNING, "%s isn't a time. Assuming no time.\n", times); + ast_log(LOG_WARNING, "%s isn't a time. Assuming no restrictions based on time.\n", times); return; } if (sscanf(e, "%d:%d", &e1, &e2) != 2) { - ast_log(LOG_WARNING, "%s isn't a time. Assuming no time.\n", e); + ast_log(LOG_WARNING, "%s isn't a time. Assuming no restrictions based on time.\n", e); return; } s1 = s1 * 30 + s2/2; @@ -3147,7 +3173,7 @@ /* allocate new include structure ... */ if (!(new_include = malloc(sizeof(struct ast_include)))) { - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); errno = ENOMEM; return -1; } @@ -3247,7 +3273,7 @@ /* allocate new sw structure ... */ if (!(new_sw = malloc(sizeof(struct ast_sw)))) { - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); errno = ENOMEM; return -1; } @@ -3386,7 +3412,7 @@ struct ast_ignorepat *ignorepat, *ignorepatc, *ignorepatl = NULL; ignorepat = malloc(sizeof(struct ast_ignorepat)); if (!ignorepat) { - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); errno = ENOMEM; return -1; } @@ -3617,7 +3643,7 @@ tmp->peer = NULL; tmp->next = NULL; } else { - ast_log(LOG_WARNING, "Out of memory\n"); + ast_log(LOG_ERROR, "Out of memory\n"); errno = ENOMEM; return -1; } @@ -3814,7 +3840,7 @@ chan->priority = as->priority; /* Run the PBX */ if (ast_pbx_run(chan)) { - ast_log(LOG_WARNING, "Failed to start PBX on %s\n", chan->name); + ast_log(LOG_ERROR, "Failed to start PBX on %s\n", chan->name); } else { /* PBX will have taken care of this */ chan = NULL; @@ -3849,13 +3875,13 @@ if (sync > 1) { if (ast_pbx_run(chan)) { - ast_log(LOG_WARNING, "Unable to run PBX on %s\n", chan->name); + ast_log(LOG_ERROR, "Unable to run PBX on %s\n", chan->name); ast_hangup(chan); res = -1; } } else { if (ast_pbx_start(chan)) { - ast_log(LOG_WARNING, "Unable to start PBX on %s\n", chan->name); + ast_log(LOG_ERROR, "Unable to start PBX on %s\n", chan->name); ast_hangup(chan); res = -1; } @@ -3983,7 +4009,7 @@ } } } else { - ast_log(LOG_WARNING, "Out of memory :(\n"); + ast_log(LOG_ERROR, "Out of memory :(\n"); res = -1; } } else { @@ -4474,7 +4500,7 @@ char *stringp=NULL; if (!data || !strlen(data)) { - ast_log(LOG_WARNING, "Ignoring, since there is no variable to set\n"); + ast_log(LOG_WARNING, "Ignoring, since there is no variable to check\n"); return 0; } @@ -4491,7 +4517,7 @@ } if ((branch==NULL) || (strlen(branch)==0)) { - ast_log(LOG_WARNING, "Not taking any branch\n"); + ast_log(LOG_NOTICE, "Not taking any branch\n"); return(0); }