As I saw in asterisk wiki, local channels when invoked by external party, via Originate, for example. Produces only 2 CDR records.
In my case Local channels invoked by call files and produces 4 CDR records (2 for local channels and 2 for PJSIP channels which invoked later, by local channels). It’s little bit confusing, when using CDR for billing as well as having 2 records will save a space of database storage.
This what I have see in docs:
An external application Originates a Local channel. The first half of the Local channel Dials Alice over a SIP channel; Alice answers. This triggers the second half of the Local channel, which Dials Bob. Bob Answers, and Alice and Bob talk. Alice hangs up, the Local channels are hung up, and Bob is hung up on.
Anyone know why in examples they have pretty informative only 2 CDR, but I have even 4? As on screenshot:
I need originate a call from Asterisk to 2 parties and have only 2 CDR records after call end. Asterisk will make a call through provider to party A, when party A is answered then Asterisk will call through provider to party B. When party B answered - bridge party A and party B together, let them talk. After of the channels is hang up - save their CDR records to database.
Maybe I see 4 CDR due to using call files, and if channels will be invoked through ARI or AMI for example in CDR will be also 2?
Thanks in advance.