Using Dial() but no CDR is generated for this outcall

Home » Asterisk Users » Using Dial() but no CDR is generated for this outcall
Asterisk Users No Comments

Hi,

as far as I know my problem is not a bug but wanted behaviour. Let’s
assume the following dialplan:
exten => 123,1,Answer
exten => 123,n,Dial(DAHDI/g0/00492112233,20,g)
[…]
exten => 123,n,Hangup

I do an dial-in with my SIP-Client (or phone). The Dial-Application
starts the outdial and I get connected with my partner. After hangup,
only 1 CDR is generated. But I(!) need 2 CDRs – one for the incoming
call and 1 for the outgoing call. ForkCDR is not a solution for me
because it’s generating 2 CDRs but ignoring that the in-call goes on,
while the 2 CDRs are written after the Dial-App ended. Is there any
solution for me?

I am using Asterisk 1.6.1.20. Maybe I have to upgrade?

Thank for an answer,
-Thorsten-