[asterisk-bugs] [JIRA] (ASTERISK-27823) attended transfer from queue to queue, creates incorrect queue log entries.

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue May 8 12:00:56 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team closed ASTERISK-27823.
------------------------------------


> attended transfer from queue to queue, creates incorrect queue log entries.
> ---------------------------------------------------------------------------
>
>                 Key: ASTERISK-27823
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27823
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 13.18.0
>         Environment: debian 9, 64 bit
>            Reporter: Grzesiek
>            Assignee: Richard Mudgett
>
> 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 at transfer-00000004;1|Local/_attended at 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 at 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 at 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 at 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 at 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 at 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 at 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}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list