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(SIPfirstname.lastname@example.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(SIPemail@example.com)
exten => 1234,1,app_forkcdr,Dial(SIPfirstname.lastname@example.org)
But obviously they dont work. Any ideas anyone???