diff options
Diffstat (limited to 'comms/asterisk18/patches/patch-ax')
-rw-r--r-- | comms/asterisk18/patches/patch-ax | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/comms/asterisk18/patches/patch-ax b/comms/asterisk18/patches/patch-ax index 735ab8141c1..6f500948637 100644 --- a/comms/asterisk18/patches/patch-ax +++ b/comms/asterisk18/patches/patch-ax @@ -1,8 +1,8 @@ -$NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ +$NetBSD: patch-ax,v 1.5 2014/07/26 07:03:26 jnemeth Exp $ ---- apps/app_queue.c.orig 2013-01-08 20:22:16.000000000 +0000 +--- apps/app_queue.c.orig 2014-06-12 15:38:48.000000000 +0000 +++ apps/app_queue.c -@@ -3533,8 +3533,8 @@ static void record_abandoned(struct queu +@@ -3591,8 +3591,8 @@ static void record_abandoned(struct queu "Uniqueid: %s\r\n" "Position: %d\r\n" "OriginalPosition: %d\r\n" @@ -13,16 +13,16 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ qe->parent->callsabandoned++; ao2_unlock(qe->parent); -@@ -4210,7 +4210,7 @@ static int wait_our_turn(struct queue_en +@@ -4309,7 +4309,7 @@ static int wait_our_turn(struct queue_en - if ((status = get_member_status(qe->parent, qe->max_penalty, qe->min_penalty, qe->parent->leavewhenempty))) { + if ((status = get_member_status(qe->parent, qe->max_penalty, qe->min_penalty, qe->parent->leavewhenempty, 0))) { *reason = QUEUE_LEAVEEMPTY; - ast_queue_log(qe->parent->name, qe->chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%ld", qe->pos, qe->opos, (long) time(NULL) - qe->start); + ast_queue_log(qe->parent->name, qe->chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%jd", qe->pos, qe->opos, (intmax_t) time(NULL) - qe->start); leave_queue(qe); break; } -@@ -4417,12 +4417,12 @@ static void send_agent_complete(const st +@@ -4516,12 +4516,12 @@ static void send_agent_complete(const st "Channel: %s\r\n" "Member: %s\r\n" "MemberName: %s\r\n" @@ -38,7 +38,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ qe->parent->eventwhencalled == QUEUE_EVENT_VARIABLES ? vars2manager(qe->chan, vars, vars_len) : ""); } -@@ -4465,9 +4465,9 @@ static void queue_transfer_fixup(void *d +@@ -4564,9 +4564,9 @@ static void queue_transfer_fixup(void *d int callcompletedinsl = qtds->callcompletedinsl; struct ast_datastore *datastore; @@ -51,7 +51,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ update_queue(qe->parent, member, callcompletedinsl, (time(NULL) - callstart)); -@@ -4956,7 +4956,7 @@ static int try_calling(struct queue_ent +@@ -5055,7 +5055,7 @@ static int try_calling(struct queue_ent } else if (ast_check_hangup(qe->chan)) { /* Caller must have hung up just before being connected */ ast_log(LOG_NOTICE, "Caller was about to talk to agent on %s but the caller hungup.\n", peer->name); @@ -60,7 +60,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ record_abandoned(qe); ast_hangup(peer); ao2_ref(member, -1); -@@ -5002,8 +5002,8 @@ static int try_calling(struct queue_ent +@@ -5101,8 +5101,8 @@ static int try_calling(struct queue_ent /* if setqueueentryvar is defined, make queue entry (i.e. the caller) variables available to the channel */ /* use pbx_builtin_setvar to set a load of variables with one call */ if (qe->parent->setqueueentryvar) { @@ -71,7 +71,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ pbx_builtin_setvar_multiple(qe->chan, interfacevar); pbx_builtin_setvar_multiple(peer, interfacevar); } -@@ -5257,8 +5257,8 @@ static int try_calling(struct queue_ent +@@ -5356,8 +5356,8 @@ static int try_calling(struct queue_ent ast_log(LOG_WARNING, "Asked to execute an AGI on this channel, but could not find application (agi)!\n"); } qe->handled++; @@ -82,7 +82,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ if (qe->chan->cdr) { struct ast_cdr *cdr; -@@ -5294,12 +5294,12 @@ static int try_calling(struct queue_ent +@@ -5393,12 +5393,12 @@ static int try_calling(struct queue_ent "Channel: %s\r\n" "Member: %s\r\n" "MemberName: %s\r\n" @@ -98,7 +98,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ qe->parent->eventwhencalled == QUEUE_EVENT_VARIABLES ? vars2manager(qe->chan, vars, sizeof(vars)) : ""); ast_copy_string(oldcontext, qe->chan->context, sizeof(oldcontext)); ast_copy_string(oldexten, qe->chan->exten, sizeof(oldexten)); -@@ -5331,17 +5331,17 @@ static int try_calling(struct queue_ent +@@ -5430,17 +5430,17 @@ static int try_calling(struct queue_ent /* detect a blind transfer */ if (!(qe->chan->_softhangup | peer->_softhangup) && (strcasecmp(oldcontext, qe->chan->context) || strcasecmp(oldexten, qe->chan->exten))) { @@ -123,7 +123,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ send_agent_complete(qe, queuename, peer, member, callstart, vars, sizeof(vars), AGENT); } if ((tds = ast_channel_datastore_find(qe->chan, &queue_transfer_info, NULL))) { -@@ -6237,8 +6237,8 @@ check_turns: +@@ -6336,8 +6336,8 @@ check_turns: record_abandoned(&qe); reason = QUEUE_TIMEOUT; res = 0; @@ -134,8 +134,8 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ break; } -@@ -6280,7 +6280,7 @@ check_turns: - if ((status = get_member_status(qe.parent, qe.max_penalty, qe.min_penalty, qe.parent->leavewhenempty))) { +@@ -6379,7 +6379,7 @@ check_turns: + if ((status = get_member_status(qe.parent, qe.max_penalty, qe.min_penalty, qe.parent->leavewhenempty, 0))) { record_abandoned(&qe); reason = QUEUE_LEAVEEMPTY; - ast_queue_log(args.queuename, chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%ld", qe.pos, qe.opos, (long)(time(NULL) - qe.start)); @@ -143,7 +143,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ res = 0; break; } -@@ -6302,7 +6302,7 @@ check_turns: +@@ -6401,7 +6401,7 @@ check_turns: record_abandoned(&qe); reason = QUEUE_TIMEOUT; res = 0; @@ -152,7 +152,7 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ break; } -@@ -6329,8 +6329,8 @@ stop: +@@ -6428,8 +6428,8 @@ stop: if (!qe.handled) { record_abandoned(&qe); ast_queue_log(args.queuename, chan->uniqueid, "NONE", "ABANDON", @@ -163,3 +163,12 @@ $NetBSD: patch-ax,v 1.4 2013/04/18 16:55:22 jnemeth Exp $ res = -1; } else if (qcontinue) { reason = QUEUE_CONTINUE; +@@ -6437,7 +6437,7 @@ stop: + } + } else if (qe.valid_digits) { + ast_queue_log(args.queuename, chan->uniqueid, "NONE", "EXITWITHKEY", +- "%s|%d|%d|%ld", qe.digits, qe.pos, qe.opos, (long) time(NULL) - qe.start); ++ "%s|%d|%d|%jd", qe.digits, qe.pos, qe.opos, (intmax_t) time(NULL) - qe.start); + } + } + |