Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] ForkCdr in 1.4.*


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
thieums at thieums.com
Guest





PostPosted: Mon Feb 18, 2008 5:15 am    Post subject: [asterisk-users] ForkCdr in 1.4.* Reply with quote

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 ? Smile
Thank you for help.

Mathieu
Back to top
atis at iq-labs.net
Guest





PostPosted: Mon Feb 18, 2008 6:33 am    Post subject: [asterisk-users] ForkCdr in 1.4.* Reply with quote

On 2/18/08, thieums <thieums at thieums.com> wrote:
Quote:
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 ? Smile
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

--
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835
Back to top
thieums at thieums.com
Guest





PostPosted: Mon Feb 18, 2008 7:14 am    Post subject: [asterisk-users] ForkCdr in 1.4.* Reply with quote

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 Wink

Mathieu
New behaviour ends current Cdr

Atis Lezdins wrote:
Quote:
On 2/18/08, thieums <thieums at thieums.com> wrote:

Quote:
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 ? Smile
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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services