[Home]

Summary:ASTERISK-25187: Caller or member information missing from app_queue AgentComplete event
Reporter:Etienne Lessard (hexanol)Labels:
Date Opened:2015-06-23 15:00:08Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Applications/app_queue
Versions:13.4.0 Frequency of
Occurrence
Constant
Related
Issues:
is duplicated byASTERISK-30130 app_queue: AMI "Event: AgentComplete" is sometimes missing data when channel is hung up by AMI
is related toASTERISK-25185 Segfault in app_queue on transfer scenarios
Environment:Attachments:
Description:In Asterisk 13, the AgentComplete event (https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerEvent_AgentComplete) never contains information about the caller's channel (prefix "") and agent/member's channel (prefix "Dest") at the same time:

* if the caller hangs up, then you only have information about the agent/member's channel
* if the member hangs up, then you only have information about the caller's channel

For example, if Alice calls the queue, Bob answers and Alice hangs up, then I have the following event:

{noformat}
Event: AgentComplete
Privilege: agent,all
DestChannel: SIP/je5qtq-00000007
DestChannelState: 6
DestChannelStateDesc: Up
DestCallerIDNum: 1001
DestCallerIDName: Bob
DestConnectedLineNum: 1045
DestConnectedLineName: Alice
DestLanguage: fr_FR
DestAccountCode:
DestContext: default
DestExten:
DestPriority: 1
DestUniqueid: 1435089318.13
TalkTime: 1
HoldTime: 1
MemberName: Agent/1001
Interface: Local/id-1@agentcallback
Queue: phyl1
WrapupTime: 0
Reason: caller
{noformat}

If Alice calls the queue, Bob answers and Bob hangs up, then I have the following event:

{noformat}
Event: AgentComplete
Privilege: agent,all
Channel: SIP/as2mkq-00000008
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1045
CallerIDName: Alice
ConnectedLineNum: 1001
ConnectedLineName: Bob
Language: fr_FR
AccountCode:
Context: queue
Exten: s
Priority: 29
Uniqueid: 1435089355.14
TalkTime: 1
HoldTime: 4
MemberName: Agent/1001
Interface: Local/id-1@agentcallback
Queue: phyl1
WrapupTime: 0
Reason: agent
{noformat}

This makes the AgentComplete event not that interesting in my opinion, because the only information you'll have "for sure" is the Queue, MemberName, Interface, etc, but no information on the channels.

For the record, in asterisk 11, the member's channel information was always present.

Thank you
Comments: