asterisk2billing.org
http://forum.asterisk2billing.org/

Free minutes each call, can be done?
http://forum.asterisk2billing.org/viewtopic.php?f=23&t=7247
Page 1 of 1

Author:  ciconet [ Sun Mar 07, 2010 4:46 pm ]
Post subject:  Free minutes each call, can be done?

I've a simply question: need to give to each call first seven free minutes ( first seven not billed minutes ).

example:
sell rate of usa is 0.03 -> 60sec - 60sec and connect charge of 0.20. I want each call is billed in this way: ( 4 samples )

1) Call destination usa with 3 min duration: customer pay only connect charge 0.20 ( include 7 min ) and no other: Total customer charge 0.20.
2) Call destination usa with 6 min duration: customer pay only connect charge 0.20 ( include 7 min ) and no other: Total customer charge 0.20.
3) Call destination usa with 8 min duration: customer pay connect charge 0.20 ( include 7 min ) + 1 min ( specified in selling rate 0.03 -> 60 - 60 ): Total customer charge 0.23.
4) Call destination usa with 10 min duration: customer pay connect charge 0.20 ( include 7 min ) + 3 min ( specified in selling rate 0.03 -> 60 - 60 ): Total customer charge 0.29.

How can i do this if possible ?
In package ( freesecond ) i don't find nothing for do this. Can i use the ROUNDING CALL TIME ? How can i use it ?

Thanks in advance

Alex

Author:  jroper [ Mon Mar 08, 2010 8:21 am ]
Post subject:  Re: Free minutes each call, can be done?

Used the advance ratecard, which allows stepped billing, this should get you closer to your requirements.

There is a setting in the system settings to turn it on.

Joe

Author:  ciconet [ Mon Mar 08, 2010 11:00 am ]
Post subject:  Re: Free minutes each call, can be done?

Hello Jroper

thanks again for you help.

I see advanced menu in ratecard. So about my scenario i put this:

buyrate=0.015
buyrate min duration = 1
buyrate billing block = 1

<< when call is answer - initial >>
Selling rate=0.03 ( i don't want to aply now this charge )
sellrate min duration=0
sellrate billing block=0
connect charge=0.20 ( i want to apply only this charge to customer for 7 minutes )
disconnect charge=0

<< after call answer -> go here ?? >>
Stepcharge A= 0
charge A=0
Timecharge A= 420 ( this is 7 minutes in seconds ?? )
Billing block A=0

<< after call is billed from A condition -> go here ?? >>
Stepcharge B= 0
Charge B=0.03
Timecharge B= 99999 ( this is duration limit of call ??? )
Billing block B=60 ( each 60 seconds charge 0.03 to customer, right ? )


This config not work, and i try to move other but don't understand how SellingRATE -> Step A -> Step B order works.
Please light me !!

Alex

Author:  ciconet [ Tue Mar 09, 2010 8:48 am ]
Post subject:  Re: Free minutes each call, can be done?

i make other tests but not work... or i don't understand how it work.

1° selling rate
2° Step A
3° Step B

or

1° Step A
2° Step B
3° Selling Rate

Connect charge work only if i put it on Selling Rate. In other, A or B ( Stepcharge ) never work...

:?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/