[Home]

Summary:ASTERISK-27823: attended transfer from queue to queue, creates incorrect queue log entries.
Reporter:Grzesiek (gzohop)Labels:
Date Opened:2018-04-23 04:53:31Date Closed:2020-01-14 11:13:51.000-0600
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:Applications/app_queue
Versions:13.18.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:debian 9, 64 bitAttachments:
Description:When agent does attended transfer of a call in queue to another queue or to the same queue queue log saves completecaller and attended transfer simultanously, even when the transfered call continues.

Example queue entries:
{code}
1524475470|1524475469.46|test|NONE|ENTERQUEUE||102|1
1524475472|1524475469.46|test|Sip/101|CONNECT|2|1524475470.47|1
1524475481|1524475480.48|test2|NONE|ENTERQUEUE||101|1
1524475482|1524475480.48|test2|Sip/103|CONNECT|1|1524475481.49|1
1524475495|1524475480.48|test2|Sip/103|COMPLETECALLER|1|13|1
1524475495|1524475469.46|test|Sip/101|ATTENDEDTRANSFER|LINK|Local/_attended@transfer-00000004;1|Local/_attended@transfer-00000004;2|2|23|1
{code}

In the above example agent 101 answers the call in queue test , then creates new call to queue test2. After it gets answered by agent 103, agent 101 transfers the call. After the transfer, queue log reports COMPLETECALLER and ATTENDEDTRANSFER events at the same time.
But in this case the COMPLETECALLER|COMPLETEAGENT event should appear after the call to test2 end. But now when call to test2 ends there is no new event in the queue_log, so call time is totally incorrect etc.

Below are cel and cdr entries from that calls:

CDR:

{code}
-[ RECORD 1 ]----+-----------------------------------------------------------
acctid           | 34
calldate         | 2018-04-23 11:24:40+02
clid             | "test2:A.Oczkowicz" <101>
src              | 101
dst              | 999
dcontext         | ivr
channel          | SIP/101-00000028
dstchannel       | SIP/103-00000029
lastapp          | Queue
lastdata         | test2,,,,,queue_connected.php
duration         | 15
billsec          | 15
disposition      | ANSWERED
amaflags         | 3
accountcode      | test2
uniqueid         | 1524475480.48
userfield        | test2/2018-04-23/2018-04-23_11.24.41-101-1524475480.48.wav
code             |
orig_src         |
orig_dst         |
callend          | 2018-04-23 11:24:55+02
oper             |
kwota            |
id_routing       |
id_user          | 1004
id_trunk_billing |
id_user_dst      |
id_customer      |
synced           | t
-[ RECORD 2 ]----+-----------------------------------------------------------
acctid           | 37
calldate         | 2018-04-23 11:24:55+02
clid             | "test:P.Olaszewski" <102>
src              | 102
dst              | 666
dcontext         | ivr
channel          | SIP/102-00000026
dstchannel       | Local/_attended@transfer-00000004;1
lastapp          | Queue
lastdata         | test,,,,,queue_connected.php
duration         | 22
billsec          | 22
disposition      | ANSWERED
amaflags         | 3
accountcode      | test
uniqueid         | 1524475469.46
userfield        | test/2018-04-23/2018-04-23_11.24.30-102-1524475469.46.wav
code             |
orig_src         |
orig_dst         |
callend          | 2018-04-23 11:25:17+02
oper             |
kwota            |
id_routing       |
id_user          | 1005
id_trunk_billing |
id_user_dst      |
id_customer      |
synced           | t
-[ RECORD 3 ]----+-----------------------------------------------------------
acctid           | 36
calldate         | 2018-04-23 11:24:29+02
clid             | "test:P.Olaszewski" <102>
src              | 102
dst              | 666
dcontext         | ivr
channel          | SIP/102-00000026
dstchannel       | SIP/101-00000027
lastapp          | Queue
lastdata         | test,,,,,queue_connected.php
duration         | 26
billsec          | 26
disposition      | ANSWERED
amaflags         | 3
accountcode      | test
uniqueid         | 1524475469.46
userfield        | test/2018-04-23/2018-04-23_11.24.30-102-1524475469.46.wav
code             |
orig_src         |
orig_dst         |
callend          | 2018-04-23 11:24:55+02
oper             |
kwota            |
id_routing       |
id_user          | 1005
id_trunk_billing |
id_user_dst      |
id_customer      |
synced           | t
-[ RECORD 4 ]----+-----------------------------------------------------------
acctid           | 35
calldate         | 2018-04-23 11:24:55+02
clid             | "test:P.Olaszewski" <102>
src              | 102
dst              | _attended
dcontext         | transfer
channel          | Local/_attended@transfer-00000004;2
dstchannel       | SIP/103-00000029
lastapp          |
lastdata         |
duration         | 22
billsec          | 22
disposition      | ANSWERED
amaflags         | 3
accountcode      | test
uniqueid         | 1524475495.51
userfield        |
code             |
orig_src         |
orig_dst         |
callend          | 2018-04-23 11:25:17+02
oper             |
kwota            |
id_routing       |
id_user          | 1005
id_trunk_billing |
id_user_dst      |
id_customer      |
synced           | t
{code}

CEL:

{code}
-[ RECORD 1 ]------------------------------------
id          | 100
eventtype   | BRIDGE_ENTER
eventtime   | 2018-04-23 11:24:32.659265
userdeftype |
cid_name    | A.Oczkowicz
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | 666
context     | telefony
channame    | SIP/101-00000027
appname     | AppQueue
appdata     | (Outgoing Line)
amaflags    | 3
accountcode |
peeraccount | test
uniqueid    | 1524475470.47
linkedid    | 1524475469.46
userfield   |
peer        |
-[ RECORD 2 ]------------------------------------
id          | 101
eventtype   | BRIDGE_ENTER
eventtime   | 2018-04-23 11:24:32.662726
userdeftype |
cid_name    | test:P.Olaszewski
cid_num     | 102
cid_ani     | 102
cid_rdnis   |
cid_dnid    | 666
exten       | 666
context     | ivr
channame    | SIP/102-00000026
appname     | Queue
appdata     | test,,,,,queue_connected.php
amaflags    | 3
accountcode | test
peeraccount |
uniqueid    | 1524475469.46
linkedid    | 1524475469.46
userfield   |
peer        | SIP/101-00000027
-[ RECORD 3 ]------------------------------------
id          | 102
eventtype   | BRIDGE_ENTER
eventtime   | 2018-04-23 11:24:42.743353
userdeftype |
cid_name    | M.Solarski
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | 999
context     | telefony
channame    | SIP/103-00000029
appname     | AppQueue
appdata     | (Outgoing Line)
amaflags    | 3
accountcode |
peeraccount | test2
uniqueid    | 1524475481.49
linkedid    | 1524475480.48
userfield   |
peer        |
-[ RECORD 4 ]------------------------------------
id          | 103
eventtype   | BRIDGE_ENTER
eventtime   | 2018-04-23 11:24:42.746611
userdeftype |
cid_name    | test2:A.Oczkowicz
cid_num     | 101
cid_ani     | 101
cid_rdnis   |
cid_dnid    | 999
exten       | 999
context     | ivr
channame    | SIP/101-00000028
appname     | Queue
appdata     | test2,,,,,queue_connected.php
amaflags    | 3
accountcode | test2
peeraccount |
uniqueid    | 1524475480.48
linkedid    | 1524475480.48
userfield   |
peer        | SIP/103-00000029
-[ RECORD 5 ]------------------------------------
id          | 104
eventtype   | BRIDGE_EXIT
eventtime   | 2018-04-23 11:24:55.861942
userdeftype |
cid_name    | test2:A.Oczkowicz
cid_num     | 101
cid_ani     | 101
cid_rdnis   |
cid_dnid    | 999
exten       | 999
context     | ivr
channame    | SIP/101-00000028
appname     | Queue
appdata     | test2,,,,,queue_connected.php
amaflags    | 3
accountcode | test2
peeraccount |
uniqueid    | 1524475480.48
linkedid    | 1524475480.48
userfield   |
peer        | SIP/103-00000029
-[ RECORD 6 ]------------------------------------
id          | 105
eventtype   | BRIDGE_ENTER
eventtime   | 2018-04-23 11:24:55.879615
userdeftype |
cid_name    |
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | _attended
context     | transfer
channame    | Local/_attended@transfer-00000004;2
appname     |
appdata     |
amaflags    | 3
accountcode | test
peeraccount |
uniqueid    | 1524475495.51
linkedid    | 1524475469.46
userfield   |
peer        | SIP/103-00000029
-[ RECORD 7 ]------------------------------------
id          | 106
eventtype   | BRIDGE_EXIT
eventtime   | 2018-04-23 11:24:55.910061
userdeftype |
cid_name    | A.Oczkowicz
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | 666
context     | telefony
channame    | SIP/101-00000027
appname     | AppQueue
appdata     | (Outgoing Line)
amaflags    | 3
accountcode |
peeraccount | test
uniqueid    | 1524475470.47
linkedid    | 1524475469.46
userfield   |
peer        | SIP/102-00000026
-[ RECORD 8 ]------------------------------------
id          | 107
eventtype   | BRIDGE_ENTER
eventtime   | 2018-04-23 11:24:55.918739
userdeftype |
cid_name    |
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | _attended
context     | transfer
channame    | Local/_attended@transfer-00000004;1
appname     |
appdata     |
amaflags    | 3
accountcode |
peeraccount | test
uniqueid    | 1524475495.50
linkedid    | 1524475469.46
userfield   |
peer        | SIP/102-00000026
-[ RECORD 9 ]------------------------------------
id          | 108
eventtype   | ATTENDEDTRANSFER
eventtime   | 2018-04-23 11:24:55.923661
userdeftype |
cid_name    | A.Oczkowicz
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | 666
context     | telefony
channame    | SIP/101-00000027
appname     | AppQueue
appdata     | (Outgoing Line)
amaflags    | 3
accountcode |
peeraccount | test
uniqueid    | 1524475470.47
linkedid    | 1524475469.46
userfield   |
peer        |
-[ RECORD 10 ]-----------------------------------
id          | 109
eventtype   | BRIDGE_EXIT
eventtime   | 2018-04-23 11:25:17.843127
userdeftype |
cid_name    | M.Solarski
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | 999
context     | telefony
channame    | SIP/103-00000029
appname     | AppQueue
appdata     | (Outgoing Line)
amaflags    | 3
accountcode |
peeraccount | test
uniqueid    | 1524475481.49
linkedid    | 1524475469.46
userfield   |
peer        |
-[ RECORD 11 ]-----------------------------------
id          | 110
eventtype   | BRIDGE_EXIT
eventtime   | 2018-04-23 11:25:17.872997
userdeftype |
cid_name    | test:P.Olaszewski
cid_num     | 102
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | _attended
context     | transfer
channame    | Local/_attended@transfer-00000004;2
appname     |
appdata     |
amaflags    | 3
accountcode | test
peeraccount |
uniqueid    | 1524475495.51
linkedid    | 1524475469.46
userfield   |
peer        |
-[ RECORD 12 ]-----------------------------------
id          | 111
eventtype   | BRIDGE_EXIT
eventtime   | 2018-04-23 11:25:17.883849
userdeftype |
cid_name    | M.Solarski
cid_num     |
cid_ani     |
cid_rdnis   |
cid_dnid    |
exten       | _attended
context     | transfer
channame    | Local/_attended@transfer-00000004;1
appname     |
appdata     |
amaflags    | 3
accountcode |
peeraccount | test
uniqueid    | 1524475495.50
linkedid    | 1524475469.46
userfield   |
peer        | SIP/102-00000026
-[ RECORD 13 ]-----------------------------------
id          | 112
eventtype   | BRIDGE_EXIT
eventtime   | 2018-04-23 11:25:17.888037
userdeftype |
cid_name    | test:P.Olaszewski
cid_num     | 102
cid_ani     | 102
cid_rdnis   |
cid_dnid    | 666
exten       | 666
context     | ivr
channame    | SIP/102-00000026
appname     | Queue
appdata     | test,,,,,queue_connected.php
amaflags    | 3
accountcode | test
peeraccount |
uniqueid    | 1524475469.46
linkedid    | 1524475469.46
userfield   |
peer        |
{code}
Comments:By: Asterisk Team (asteriskteam) 2018-04-23 04:53:33.741-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: George Joseph (gjoseph) 2018-04-24 09:16:43.311-0500

You've marked this issue as a regression.  What was the last version that produced the correct log entries?


By: Asterisk Team (asteriskteam) 2018-05-08 12:00:00.794-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines