Hangup Handlers & Unwanted Cdr

Home » Asterisk Users » Hangup Handlers & Unwanted Cdr
Asterisk Users No Comments

hi,

i’m using hangup handlers on Asterisk13

with standard answered calls i have 1 CDR per call

with scenario call from voip->mobile, call rejected on mobile i have 2 CDRs

i dont want the second CDR

without hangup handlers i have 1 CDR

do you think its bug or its feature of hangup handlers?

*************************** 1. row ***************************
calldate: 2017-05-31 15:50:28
clid: “voip_number”
src: voip_number
dst: mobile_number
dcontext: route_phones_1
channel: SIP/vr1a915-0000001e
dstchannel: SIP/siptrunk-0000001f
channtype:
lastapp: Dial
lastdata:
SIP/siptrunk/mobile_number,120,tTb(pre_dial_handler^callee^1)B(pre_dial_handler^cal
duration: 10
billsec: 0
disposition: NO ANSWER
amaflags: 3
accountcode:
uniqueid: 1496238628.30
hangupcause:
stamp: 2017-05-31 15:50:38
linkedid: 1496238628.30
sequence: 30

*************************** 2. row ***************************
calldate: 2017-05-31 15:50:28
clid: “mobile_number”
src: mobile_number
dst: mobile_number
dcontext: trunk_context_1
channel: SIP/siptrunk-0000001f
dstchannel:
channtype:
lastapp: Return
lastdata:
duration: 9
billsec: 0
disposition: FAILED
amaflags: 3
accountcode:
uniqueid: 1496238628.31
hangupcause:
stamp: 2017-05-31 15:50:38
linkedid: 1496238628.30
sequence: 31