Analysis Of Attended Transfer In CEL

Home » Asterisk Users » Analysis Of Attended Transfer In CEL
Asterisk Users No Comments

hi,

i need call time of userB after attended transfer

scenario

1) call from Customer to userA

2) userA start consultancy to userB (attended transfer started)

3) userA attended transfer to userB (transfer after consultacy)

4) userA hangup

in CEL i have eventtime of 3)

ATTENDEDTRANSFER    2019-06-21 16:46:57.390 1561128394.16799   
1561128387.16786
{“bridge1_id”:”a94bdc51-4426-4bfa-8e0d-b4f4adba6e77″,”channel2_name”:”SIP/vr1a200-00000319″,”channel…

HANGUP    2019-06-21 16:47:03.380    phone_vr1a201 1561128408.16833   
1561128387.16786
{“hangupcause”:16,”hangupsource”:”SIP/vr1a201-0000031a”,”dialstatus”:””}

but howto pair it to event Hangup?

i found one way

ATTENDEDTRANSFER    have bridge1_id in eventextra

event BRIDGE_ENTER have bridge_id, so i can get uniqueid if ATTENDEDTRANSFER.bridge1_id  =   BRIDGE_ENTER.bridge_id

then i can find right HANGUP   by uniqueId

what do you think about it?

is there more simple method?

Marek