Örn Arnarson
2009-Jan-16 18:12 UTC
[asterisk-users] CDR problems -- two call legs create only one CDR. Using ForkCDR() not even working.
Hello, When I bridge an incoming and outgoing call (attempting to simulate call-forwarding) I'm only getting one CDR -- that of the outgoing call. A (PSTN) calls B (residing on Asterisk) and the Asterisk calls C (cell phone on PSTN) and bridges the call. The only CDR created is from B to C. I have even tried using Answer() and ForkCDR() to get two CDRs, but to no avail. I am starting to wonder if there's a bug in the CDR generation in general, because I set up an extension to do only that: exten => 5822558,1,Answer() exten => 5822558,n,ForkCDR() exten => 5822558,n,Playback(tt-monkeys) exten => 5822558,n,Hangup() This is even given as an example on how to generate two CDRs from one call on this website: http://asterisk.name/asterisk/0596009623/asterisk-app-b-79.html I have been able to create two CDRs with the use of the Local/n channel, but the CDR is messy if I do so because I am required by law to change the caller-id for the outgoing call to that of the PBX, so both call legs seem to be originating from the Asterisk. Am I missing something? Any ideas appreciated. Best regards, ?rn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090116/61a089a0/attachment.htm
Grey Man
2009-Jan-16 23:33 UTC
[asterisk-users] CDR problems -- two call legs create only one CDR. Using ForkCDR() not even working.
On Fri, Jan 16, 2009 at 6:12 PM, ?rn Arnarson <orn at arnarson.net> wrote:> Am I missing something? Any ideas appreciated.No you are not missing anything. The Asterisk CDR implementation has a number of issues and one CDR per bridge is one of them. There is currently a re-design discussion going on on the list at the moment. If you're really interested you can read the new design document at http://svn.digium.com/svn/asterisk/team/murf/RFCs/CDRfix2.rfc.txt. Regards, Greyman.
sh0t
2009-Jan-20 10:28 UTC
[asterisk-users] CDR problems -- two call legs create only one CDR. Using ForkCDR() not even working.
hello> When I bridge an incoming and outgoing call (attempting to simulate > call-forwarding) I'm only getting one CDR -- that of the outgoing call. > A (PSTN) calls B (residing on Asterisk) and the Asterisk calls C (cell > phone on PSTN) and bridges the call. > The only CDR created is from B to C. I have even tried using Answer() > and ForkCDR() to get two CDRs, but to no avail. > I am starting to wonder if there's a bug in the CDR generation in > general, because I set up an extension to do only that: > exten => 5822558,1,Answer() > exten => 5822558,n,ForkCDR() > exten => 5822558,n,Playback(tt-monkeys) > exten => 5822558,n,Hangup()I have the same problem, try older version like 1.4.21 for example.. And look at: http://bugs.digium.com/view.php?id=13797, there is some patch that might help. For me the only possible option to play with forkcdr as I expected is using older versions of Asterisk best regards