Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 12:16 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Use a2billing to control employees phone use
PostPosted: Thu Dec 20, 2007 7:27 pm 
Offline

Joined: Mon Jul 17, 2006 1:54 pm
Posts: 12
Sorry for my english, i want to implement a2billing to control and reduce the phone bill, the idea is to give each employee its own pin number and asign a fix amount to call heach month, i think it is doable and according to the tests ive done i have 90% of it done.

My problem is that i just cant figure out how to bill my domestic calls since they have no prefix, domestic numbers are 7 digits long and can start with any number from 1-9.

national and international are 01 and 001, cell are 044 & 045, toll free 01800, but have no idea of how to solve the domestics

examples 7170570, 7170400, 1450170, 2119554. i also have problem with the numbers my provider offers as services like 030 to hear the hour, 060, for emergency and policy reports etc.

Thanks for your help


Top
 Profile  
 
 Post subject: Re: Use a2billing to control employees phone use
PostPosted: Thu Dec 20, 2007 7:37 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
What is preventing you from adding entries like '71705', '71704' and '21195' to your ratecard?

Quote:
i also have problem with the numbers my provider offers as services like 030 to hear the hour, 060, for emergency and policy reports etc.
What is the problem?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 20, 2007 11:22 pm 
Offline

Joined: Mon Jul 17, 2006 1:54 pm
Posts: 12
the problem is that the numbers for domestic calls can be any between 1000000 & 7999999, ive tried adding that as the prefix but for some reason the rate is not added and i only got a blank page, i need to deny some users access to long distance, only allow local or domestic calls but if y use defaulprefix they can call everywhere.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 20, 2007 11:43 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I'm not too surprised the query to add rates '1000000-7999999' failed. That's a very large number of rates.
As all your other destinations seem to begin with 0 you could add rates like '1','2','3','4','5','6','7' to match your domestic destinations.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2007 12:22 am 
Offline

Joined: Mon Jul 17, 2006 1:54 pm
Posts: 12
thanks stavros thats exactly what i did, now i have another problem, when i hang up the call is not tarified,only when the called party hangs, i have php-pcntl installed but i get warnings like

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pcntl.so' - /usr/lib/php/modules/pcntl.so: cannot open shared object file: No such file or directory in Unknown on line 0

so i supposed it is not working, unfortunately im unable to find a matching version for my php, and im using asterisk 1.4 do you have any suggestion, thankyou very much, im already downloading asterisk 1.2, but im still stuck with the php-pcntl.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2007 12:38 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
It's to solve the problem blackgecko were having that I once thought that it would be a good idea to have a way to enter prefixes looking like asterisk extension patterns (_X. or stuff like that). It will help keep the database lighter than it currently is. I still think that it will be a great addition to a2billing.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2007 1:01 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
You're correct in suggesting that the pcntl extension is not working. You'll likely get exactly the same results with Asterisk v1.2.x until you install a working pctnl extension.

Seeing as the problem is 'file not found' you should try symlinking the file the pctnl package installed to the location PHP is looking for it. I can't help you with finding the path the package installed to; you'll need to consult your package manager's documentation for that. Let's assume it installed it to '/opt/lib/php/modules/pcntl.so', to create the symlink:
Code:
ln -s /opt/lib/php/modules/pcntl.so /usr/lib/php/modules/pcntl.so


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 28, 2007 4:12 am 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
pcntl may be built-in at compile time so no .so will exist (dependind on distro). I would suggest a linux re-install. Fedora now has asterisk as a package.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group