mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 12:28:27 +00:00
Merged revisions 181612 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r181612 | file | 2009-03-12 10:24:12 -0300 (Thu, 12 Mar 2009) | 5 lines Fix crash when sleep and retries argument was not given to RetryDial application. (closes issue #14647) Reported by: sherpya ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@181614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2051,10 +2051,12 @@ static int retrydial_exec(struct ast_channel *chan, void *data)
|
|||||||
parse = ast_strdupa(data);
|
parse = ast_strdupa(data);
|
||||||
AST_STANDARD_APP_ARGS(args, parse);
|
AST_STANDARD_APP_ARGS(args, parse);
|
||||||
|
|
||||||
if ((sleepms = atoi(args.sleep)))
|
if (!ast_strlen_zero(args.sleep) && (sleepms = atoi(args.sleep)))
|
||||||
sleepms *= 1000;
|
sleepms *= 1000;
|
||||||
|
|
||||||
loops = atoi(args.retries);
|
if (!ast_strlen_zero(args.retries)) {
|
||||||
|
loops = atoi(args.retries);
|
||||||
|
}
|
||||||
|
|
||||||
if (!args.dialdata) {
|
if (!args.dialdata) {
|
||||||
ast_log(LOG_ERROR, "%s requires a 4th argument (dialdata)\n", rapp);
|
ast_log(LOG_ERROR, "%s requires a 4th argument (dialdata)\n", rapp);
|
||||||
|
|||||||
Reference in New Issue
Block a user