ForkCDR Issue 4 Gateway

This should be very simple, but it doesnt seem to be:

We have a call coming in via iax and we are then sending a call out via iax or sip i.e. a basic diversion. At the momment only 1 entry is being placed in the CDR file.

How do I get two lines in their i.e. 1 for the “incoming” leg of the call and one for the “outgoing” leg of the call?

I believe this is done using the “ForkCDR()” variable, but i cant seem to get it working on a single line example:

Out by SIP Example:
exten => 1234,1,Dial(SIP/57617205@voipprovidersname.org)

It works fine if it is done in a sequence i.e:
exten => 1234,1,Background(xxx)
exten => 1234,2,ForkCDR
exten => …

I have tried the following:
exten => 1234,1,ForkCDR,Dial(SIP/57617205@voipprovidersname.org)
exten => 1234,1,app_forkcdr,Dial(SIP/57617205@voipprovidersname.org)

But obviously they dont work. Any ideas anyone???

removed by baconbuttie.

Try

exten => 1234,1,ForkCDR()
exten => 1234,n,Dial(SIP/57617205@voipprovidersname.org)

I am doing this and it seems to work.