Hi,
I am using asterisk 13.26.0 and getting duplicate cdr entry for each call,
please suggest
extensions.conf:
[USERCONTEXT]
exten => _X.,1,Answer(2)
exten => _X.,n,NoOp({CDR(src)})
exten => _X.,n.NoOp({CDR(dst)})
exten => _X.,n,Dial(Sip/${EXTEN},45)
exten => _X.,n,Hangup()
console Logs:
β Executing [1001@USERCONTEXT:1] Answer(βSIP/1002-00000000β, β2β) in new stack
> 0x7fbe74030940 β Strict RTP switching to RTP target address 192.168.0.107:8000 as source
β Executing [1001@USERCONTEXT:2] NoOp(βSIP/1002-00000000β, β1002β) in new stack
β Executing [1001@USERCONTEXT:3] Dial(βSIP/1002-00000000β, βSip/1001,45β) in new stack
== Using SIP RTP CoS mark 5
β Called Sip/1001
β SIP/1001-00000001 is ringing
> 0x7fbe74030940 β Strict RTP learning complete - Locking on source address 192.168.0.107:8000
β Got SIP response 486 βBusy Hereβ back from 192.168.0.107:53719
β SIP/1001-00000001 is busy
== Everyone is busy/congested at this time (1:1/0/0)
β Executing [1001@USERCONTEXT:4] Hangup(βSIP/1002-00000000β, ββ) in new stack
cdr Tabel:
ββ <1002> | 1002 | 1001 | USERCONTEXT | SIP/1002-00000000 | SIP/1001-00000001 | Dial | Sip/1001,45 | 45 | 45 | BUSY | 3 | 1555388523.0 | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2019-04-16 09:52:03 | ββ <1002> | 1002 | 1001 | USERCONTEXT | SIP/1002-00000000 | SIP/1001-00000001 | Dial | Sip/1001,45 | 45 | 45 | BUSY | 3 | 1555388523.0 |