]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make AgentComplete message more consistent.
authorMark Michelson <mmichelson@digium.com>
Wed, 26 May 2010 18:21:10 +0000 (18:21 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 26 May 2010 18:21:10 +0000 (18:21 +0000)
At times, the "Member" field was not specified during the event.
It's there now.

(closes issue #15638)
Reported by: elbriga
Patches:
      patchAppQueueAgentComplete.diff uploaded by elbriga (license 482)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@266004 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 8285e646279930ddbbfa7eb367a20587c9df0d15..bbfc8bd58bf9b2515e092b28d3a2f91b2ef51192 100644 (file)
@@ -3311,12 +3311,13 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
                                                        "Queue: %s\r\n"
                                                        "Uniqueid: %s\r\n"
                                                        "Channel: %s\r\n"
+                                                       "Member: %s\r\n"
                                                        "MemberName: %s\r\n"
                                                        "HoldTime: %ld\r\n"
                                                        "TalkTime: %ld\r\n"
                                                        "Reason: agent\r\n"
                                                        "%s",
-                                                       queuename, qe->chan->uniqueid, peer->name, member->membername, (long)(callstart - qe->start),
+                                                       queuename, qe->chan->uniqueid, peer->name, member->interface, member->membername, (long)(callstart - qe->start),
                                                        (long)(time(NULL) - callstart),
                                                        qe->parent->eventwhencalled == QUEUE_EVENT_VARIABLES ? vars2manager(qe->chan, vars, sizeof(vars)) : "");
                        }