Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 7:11 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Problem with "Add Rate"
PostPosted: Fri May 08, 2009 9:05 am 
Offline

Joined: Fri May 08, 2009 8:46 am
Posts: 4
Hello,
I'm novice in asterisk & a2billing.
But i have a problem with rates adding.
After filling all necessary forms and pressing the button "CONFIRM DATA", the message warning appears:
Image
Trunks, Call Plans, Rate Cards are added normally...


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Fri May 08, 2009 11:01 am 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
i am getting this same issue. also i am unable to generate multiple customers, can you generate them ?


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Fri May 08, 2009 11:37 am 
Offline

Joined: Fri May 08, 2009 8:46 am
Posts: 4
yes, i can, i tried to generate 10 customers and everything went OK

i think the problem is in permissions or owners
i tried to import rates from the file and after that they appears in rates-list, but i can't edit any rate or delete it.

Can anyone tell, what files a2b uses to store rates, or maybe it stores them in mysql base, but i don't see a table named "rates" or something similar in my a2b database in MySQL.


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Fri May 08, 2009 12:07 pm 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
which version of mysql are you using ?


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Fri May 08, 2009 12:49 pm 
Offline

Joined: Fri May 08, 2009 8:46 am
Posts: 4
mysql-5.0.45-7.el5.i386
i have a trixbox installed


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Fri May 08, 2009 1:24 pm 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
i have exactly the same version

mysql-5.0.45-7.el5
mysql-devel-5.0.45-7.el5
php-mysql-5.2.6-jason.1
mysql-5.0.45-7.el5
mysql-server-5.0.45-7.el5
mysql-devel-5.0.45-7.el5


you can find the rates in cc_ratecard table


cheers


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Sat May 09, 2009 7:38 pm 
Offline

Joined: Fri Jan 02, 2009 7:56 pm
Posts: 49
Location: Odessa, Ukraine
Same bug appeared after svn check
Checkout happened today, revision 1995

Btw
do we have any SVN browser, avaialble online ?


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Sat May 09, 2009 10:52 pm 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
swast wrote:
Btw
do we have any SVN browser, avaialble online ?


have u tried tortoise ?


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Sun May 10, 2009 9:07 am 
Offline

Joined: Fri Jan 02, 2009 7:56 pm
Posts: 49
Location: Odessa, Ukraine
I already found that we have web based source browser


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Sun May 10, 2009 10:39 am 
Offline
User avatar

Joined: Sat Mar 28, 2009 5:50 am
Posts: 96
swast, have you found out a solution for the add rate & generate customers problem ?


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Sun May 10, 2009 12:33 pm 
Offline

Joined: Fri Jan 02, 2009 7:56 pm
Posts: 49
Location: Odessa, Ukraine
Currently i am checking this very nice code

On my wholesale system i have a2b 1.4 of Apr, 26. It seems to work - i can give you a copy
Contact me skype:tremez


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Mon May 11, 2009 11:20 am 
Offline

Joined: Mon May 11, 2009 11:12 am
Posts: 20
Hello
I have the same problem with "add rate" in Admin UI.
The debug message appears to be a syntax error (mysql 5.0.77) :

mysql> INSERT INTO cc_ratecard LEFT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffplan = cc_ratecard.idtariffplan (idtariffplan, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement, rateinitial, initblock, billingblock, startdate, stopdate, starttime, endtime, id_trunk, id_outbound_cidgroup) values ('1', '355', '355', '0.05', '30', '1', '0.09', '30', '1', '2009-05-11 01:17:39', '2019-05-11 01:17:39', '0', '10079', '-1', '-1');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffplan = cc_ratecard.' at line 1


Same kind of problem occurs with the sql query when editing a rate :
mysql> SELECT idtariffplan, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement,rateinitial, initblock, billingblock, connectcharge, disconnectcharge,disconnectcharge_after, minimal_cost, startdate, stopdate, starttime, endtime, rounding_calltime, rounding_threshold, additional_block_charge, additional_block_charge_time,additional_grace, id_trunk, id_outbound_cidgroup, tag FROM cc_ratecard LEFT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffplan = cc_ratecard.idtariffplan WHERE id='5' LIMIT 0,1;
ERROR 1052 (23000): Column 'idtariffplan' in field list is ambiguous


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Mon May 11, 2009 11:44 am 
Offline

Joined: Fri Jan 02, 2009 7:56 pm
Posts: 49
Location: Odessa, Ukraine
Revision 1957 have working code
Lets wait, when guys will ix it


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Mon May 11, 2009 1:02 pm 
Offline

Joined: Mon May 11, 2009 11:12 am
Posts: 20
fixed in rev 1999 for "Add Rate"

the "Edit Rate" still bugs with this new error :

mysql> SELECT cc_ratecard.idtariffplan, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement, rateinitial, initblock, billingblock, connectcharge, disconnectcharge,disconnectcharge_after, minimal_cost, startdate, stopdate, starttime, endtime, rounding_calltime, rounding_threshold, additional_block_charge, additional_block_charge_time,additional_grace, id_trunk, id_outbound_cidgroup2, tag FROM cc_ratecard WHERE id='6' LIMIT 0,1;
ERROR 1054 (42S22): Unknown column 'id_outbound_cidgroup2' in 'field list'

commited too fast ?


Top
 Profile  
 
 Post subject: Re: Problem with "Add Rate"
PostPosted: Mon May 11, 2009 1:28 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
I just made few modifications in order to fix this.
rev 2000

Yours,
/Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group