[commit] r11492 - in freeswitch/trunk/libs/esl: . src
Author: anthm Date: Mon Jan 26 12:10:19 2009 New Revision: 11492 Log: make err more obvious Modified: freeswitch/trunk/libs/esl/fs_cli.c freeswitch/trunk/libs/esl/src/esl.c Modified: freeswitch/trunk/libs/esl/fs_cli.c ============================================================================== --- freeswitch/trunk/libs/esl/fs_cli.c (original) +++ freeswitch/trunk/libs/esl/fs_cli.c Mon Jan 26 12:10:19 2009 @@ -619,7 +619,7 @@ } if (esl_connect(&handle, profile->host, profile->port, profile->pass)) { - esl_global_set_default_logger(3); + esl_global_set_default_logger(7); esl_log(ESL_LOG_ERROR, "Error Connecting [%s]\n", handle.err); return -1; } Modified: freeswitch/trunk/libs/esl/src/esl.c ============================================================================== --- freeswitch/trunk/libs/esl/src/esl.c (original) +++ freeswitch/trunk/libs/esl/src/esl.c Mon Jan 26 12:10:19 2009 @@ -648,7 +648,7 @@ if (esl_recv(handle)) { - snprintf(handle->err, sizeof(handle->err), "Connection Error"); + snprintf(handle->err, sizeof(handle->err), "Authentication Error"); goto fail; } @@ -656,7 +656,7 @@ hval = esl_event_get_header(handle->last_event, "reply-text"); if (strcasecmp(hval, "+OK accepted")) { - snprintf(handle->err, sizeof(handle->err), "Connection Error"); + snprintf(handle->err, sizeof(handle->err), "Authentication Error"); goto fail; }
participants (1)
-
FreeSWITCH SVN