mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-22 13:25:17 +00:00
Merged revisions 43420 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43420 | tilghman | 2006-09-21 12:01:48 -0500 (Thu, 21 Sep 2006) | 2 lines Whitespace change... really just an excuse to test repotools ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1884,10 +1884,9 @@ static int get_wait_interval(struct rpt *myrpt, int type)
|
||||
{
|
||||
int interval;
|
||||
const char *wait_times;
|
||||
char *wait_times_save;
|
||||
char *wait_times_save = NULL;
|
||||
|
||||
wait_times_save = NULL;
|
||||
wait_times = ast_variable_retrieve(myrpt->cfg, myrpt->name, "wait_times");
|
||||
wait_times = ast_variable_retrieve(cfg, myrpt->name, "wait_times");
|
||||
|
||||
if (wait_times) {
|
||||
wait_times_save = ast_strdupa(wait_times);
|
||||
@@ -1900,28 +1899,28 @@ static int get_wait_interval(struct rpt *myrpt, int type)
|
||||
switch (type) {
|
||||
case DLY_TELEM:
|
||||
if (wait_times)
|
||||
interval = retrieve_astcfgint(myrpt,wait_times_save, "telemwait", 500, 5000, 1000);
|
||||
interval = retrieve_astcfgint(wait_times_save, "telemwait", 500, 5000, 1000);
|
||||
else
|
||||
interval = 1000;
|
||||
break;
|
||||
|
||||
case DLY_ID:
|
||||
if (wait_times)
|
||||
interval = retrieve_astcfgint(myrpt,wait_times_save, "idwait",250,5000,500);
|
||||
interval = retrieve_astcfgint(wait_times_save, "idwait", 250, 5000, 500);
|
||||
else
|
||||
interval = 500;
|
||||
break;
|
||||
|
||||
case DLY_UNKEY:
|
||||
if (wait_times)
|
||||
interval = retrieve_astcfgint(myrpt,wait_times_save, "unkeywait",500,5000,1000);
|
||||
interval = retrieve_astcfgint(wait_times_save, "unkeywait", 500, 5000, 1000);
|
||||
else
|
||||
interval = 1000;
|
||||
break;
|
||||
|
||||
case DLY_CALLTERM:
|
||||
if (wait_times)
|
||||
interval = retrieve_astcfgint(myrpt,wait_times_save, "calltermwait",500,5000,1500);
|
||||
interval = retrieve_astcfgint(wait_times_save, "calltermwait", 500, 5000, 1500);
|
||||
else
|
||||
interval = 1500;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user