|
You need to be careful limiting calls. There may be good business reasons for them.
Might I suggest setting account codes against each extension and look at the call patterns actually being produced by each user. Trixbox maintains call records in both database and individual CDR records, so you have a choice of how to examine them.
Simply letting users know that usage is being individually billed will have an effect.
After that you have a choice of routes depending on the results:-
1/ Change your call provider (or add one), either using a LCR provider or a VoIP provider. Different carriers provide different rates to the same destinations and is often the simplest and most cost effective solution.
You can route calls to the appropriate carrier using TrixBox's routing facilities.
2/ If call to mobiles are expensive in your area then you can install a Premier Cell and route accordingly.
3/ Set up passwords against particularly expensive calls. Again part of TrixBox own routing
4/ Blacklist expensive destinations e.g. premium rate numbers
So far everything suggested is built in to TrixBox. They are safe, simple to set up and require no meddling with the background code so compatibility is maintained with future updates.
Between them they will also save the most money.
If simple limiting call length is required try using the 's[seconds]' option in the dial string. The macro that currently initiates dialling in extensions.conf must be forced to a customised version in extensions-custom.conf or it will be overwritten during every update.
After that we are getting in to the land of rewriting TrixBox altogether by defining alternative outbound contexts for different extensions and/or destinations |