aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-30 22:04:07 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-30 22:04:07 +0000
commit94769c439d55ed52cbfc96d1a6e6193d880672a8 (patch)
treea31ca57cade73e03f9675f15c903e7a3c0b5571c /apps/app_queue.c
parent97bee6fbc0d70643b2e25fbec2bc28a567dc50fe (diff)
Fix the 'n' option of app_queue. Thanks Mike
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2585 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rwxr-xr-xapps/app_queue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 1f3c812df..45a82221b 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -868,9 +868,11 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
char *announce = NULL;
char digit = 0;
time_t callstart;
+ time_t now;
/* Hold the lock while we setup the outgoing calls */
ast_mutex_lock(&qe->parent->lock);
strncpy(queuename, qe->parent->name, sizeof(queuename) - 1);
+ time(&now);
cur = qe->parent->members;
if (strlen(qe->announce))
announce = qe->announce;
@@ -899,7 +901,7 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
tmp->dataquality = 1;
if (strchr(options, 'H'))
tmp->allowdisconnect = 1;
- if (strchr(options, 'n'))
+ if ((strchr(options, 'n')) && (now - qe->start >= qe->parent->timeout))
*go_on = 1;
}
if (url) {