Re: [Asterisk-Users] ASTCC: different incriments

2005-08-02 Thread Darren Wiebe

Please see comments inline.

Rusty Shackleford wrote:


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Ronald Wiplinger

Sent: Tuesday, July 26, 2005 4:03 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] ASTCC: different incriments


How can I fulfill that?

*Billing Increments*
Continental USA: six (6) second increments.
International: thirty (30) seconds minimum and six (6) 
seconds thereafter.

Mexico: sixty (60) seconds minimum and six (6) seconds thereafter.
   



The billing increment is set in the "brands" table. When you create
cards, this value is copied into the "inc" column in the "cards" table.
(I'll spare us the rant on normalization here...)
 

:-)  Increments should only come out of the brands table IMHO, but I'm 
not sure how to fix it without causing breakage.  Could be I just don't 
have time. :-)



The per call minimum is set in the "includedseconds" column, in the
"routes" table. This value, along with the value of the "connectcost"
column for a given record (route) is used to compute the cost of the
call.
 

In ASTPP, I have added support to have different rates depending on the 
brand.  It would not be that hard to port to ASTCC but I'm not sure how 
to do it without breaking existing installations.



So, in theory, you set all your cards for 6 second increments, and you
set your routes to 6, 30, or 60 "includedseconds". 


That's the theory, but the stock ASTCC code has a bug in the way it
makes this computation. Darren has reopened the bug report. 
 

On this subject, does anybody have feedback on the bug?  They want 
external testing feedback before doing anything with it.


http://bugs.digium.com/view.php?id=4479

Darren Wiebe
[EMAIL PROTECTED]


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] ASTCC: different incriments

2005-07-26 Thread Rusty Shackleford
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Ronald Wiplinger
> Sent: Tuesday, July 26, 2005 4:03 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [Asterisk-Users] ASTCC: different incriments
> 
> 
> How can I fulfill that?
> 
> *Billing Increments*
> Continental USA: six (6) second increments.
> International: thirty (30) seconds minimum and six (6) 
> seconds thereafter.
> Mexico: sixty (60) seconds minimum and six (6) seconds thereafter.

The billing increment is set in the "brands" table. When you create
cards, this value is copied into the "inc" column in the "cards" table.
(I'll spare us the rant on normalization here...)

The per call minimum is set in the "includedseconds" column, in the
"routes" table. This value, along with the value of the "connectcost"
column for a given record (route) is used to compute the cost of the
call.

So, in theory, you set all your cards for 6 second increments, and you
set your routes to 6, 30, or 60 "includedseconds". 

That's the theory, but the stock ASTCC code has a bug in the way it
makes this computation. Darren has reopened the bug report. 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 07/25/2005
 

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users