[asterisk-users] ForkCdr in 1.4.*
thieums
thieums at thieums.com
Mon Feb 18 06:14:40 CST 2008
Old behaviour doesn't end current Cdr
-> At the end of the call, you have 2 Cdrs, 1 before et 1 after
ForkCdr call. Each CDR keep trace of the duration of the Call.
I want this behaviour in order to generate 2 CDRs, 1 for my customer,
and 1 on my reseller
....
....Set(CDR(accountcode)=mycustomer)
....ForkCdr()
....Set(CDR(accountcode)=myreseller)
....
=> at the end of the call, I know exactly what I sell and what I buy,
and i don't need to parse all my CDRs to know how many minutes i've send
on myreseller.
As far as I know, it's not possible anymore with the current
implementation of ForkCDR.
Anyway, thank you for the svn trick ;)
Mathieu
New behaviour ends current Cdr
Atis Lezdins wrote:
> On 2/18/08, thieums <thieums at thieums.com> wrote:
>
>> Hello,
>> I'm looking for a way to restore old behaviour (before Arkadia patch
>> #0010668) of ForkCDR application in 1.4.18
>> I've done some research directly in the code (cdr.c & forkcdr.c), but
>> can't find any flag.
>> I am just f*c*ed or do you have something to suggest ? :)
>> Thank you for help.
>>
>
> Could you describe the behavior you want to achieve, and why? It
> probably could be done in other ways. If really not, you should post a
> bug regarding lost functionality.
>
> If you want to stick to reverting, this should work:
>
> # svn co http://svn.digium.com/svn/asterisk/tags/1.4.18 asterisk-1.4.18
> # cd asterisk-1.4.18
> # svn diff -c 82444 > m10668.patch
> # patch -R -p0 < m10668.patch
>
> that should give you version with that specific patch reverted, then
> you can just upgrade to next version by
> # svn switch http://svn.digium.com/svn/asterisk/tags/1.4.19
> and re- make, make install
>
> Regards,
> Atis
>
>
More information about the asterisk-users
mailing list