--- app_dial.c Sun Nov 7 23:49:43 2004 +++ app_dial_new.c Tue Nov 16 14:55:17 2004 @@ -920,10 +920,16 @@ if (timeout && !ast_strlen_zero(timeout)) { to = atoi(timeout); - if (to > 0) + if (to > 0) { to *= 1000; - else - ast_log(LOG_WARNING, "Invalid timeout specified: '%s'\n", timeout); + } + else { + /* Use "-1" to specify no timeout. If "-1" is specified - + - do not use timeout and do not warn */ + if(to != -1) { + ast_log(LOG_WARNING, "Invalid timeout specified: '%s'\n", timeout); + } + } } else to = -1;