Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 11:47 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Minor bug fix: Dial string is too short in DID destination.
PostPosted: Wed Feb 08, 2012 7:39 pm 
Offline

Joined: Thu Jun 05, 2008 5:35 pm
Posts: 37
Since we implemented A2Billing here, we've run into a minor issue for which there is an easy fix.

The issue we had was that some of our existing customers had many SIP phones (our most important customer has 12 phones), and a single DID dialled them all. Asterisk has no trouble dialling very long dial strings in the Dial() command, but PHP and MySQL requires a limit on the length of this string. I increased the length of the allowable dial string from 100 chars to 300, both in the HTML and the MySQL database. I see no reason why future versions of A2Billing can't have this too, so here's the diff:

in admin/Public/form_data/FG_var_did_destination.inc
111c115
< "size=50 maxlength=120",
---
> "size=80 maxlength=300",

In MySQL you can execute the following code to make the change:

Code:
> ALTER TABLE cc_did_destination MODIFY destination varchar(301);


In the MySQL table definitions file DataBase/mysql-5.x/a2billing-schema-v1.4.0.sql the size of the destination field is *far* too small at 50 chars. It should look like this:

Code:
CREATE TABLE IF NOT EXISTS `cc_did_destination` (
  `id` bigint(20) NOT NULL auto_increment,
  `destination` varchar(301) NOT NULL,
  `priority` int(11) NOT NULL default '0',
  `id_cc_card` bigint(20) NOT NULL,
  `id_cc_did` bigint(20) NOT NULL,
  `creationdate` timestamp NOT NULL default CURRENT_TIMESTAMP,
  `activated` int(11) NOT NULL default '1',
  `secondusedreal` int(11) default '0',
  `voip_call` int(11) default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;


Top
 Profile  
 
 Post subject: Re: Minor bug fix: Dial string is too short in DID destination.
PostPosted: Sat Mar 10, 2012 2:55 am 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
If you use Freepbx, the group dial feature could be used to achieve this.


Top
 Profile  
 
 Post subject: Re: Minor bug fix: Dial string is too short in DID destination.
PostPosted: Thu Mar 15, 2012 3:39 pm 
Offline

Joined: Thu Jun 05, 2008 5:35 pm
Posts: 37
Perhaps, but then the technician working with the customer would either have to then go into FreePBX to find out what dialling group it is, or they'd be thoroughly confused about where it really goes, since they might not even think to look.

Expanding the dial string in A2Billing simplifies things greatly. Working around the problem with FreePBX is, well, a workaround to a bug that shouldn't exist in the first place.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 23 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