$svkdialplan.preauthorizecall
Meaning:
The preauthorizecall function will pre authorizr a call by evaluating the callers account number and destination number using the RadiusCat's Billing Call-Authorization logic. This functin will return 'true' or 'false' indicating whether or not the caller has been authorized for the call.
Dial Plan Syntax:
Matching Pattern
----------------
$request=^INVITE
$svkdialplan.preauthorizecall=true
Deploy Pattern
--------------
$auth=false
To=sip:2226@localhost:15060
Purpose:
The preauthorizecall function allows you to provide a better user experience to your customers.
For example:
When a customer makes a call to a long distance number but does not have enough money in his/her accouunt, the customers will hear a fast bussy tone (or some other tone), indicating to the custoner that something is wrong with the call. At this point the customer does not know exaclty what is wrong with the call and will have to email or call customer service to enquire on the account.
The preauthorizecall function will alow you to pre authorize calls to specific destinations and play a special message to a caller that does not have enough credits to make the call, like the following "I am sorry, you do not have enough credits in your account to make this call. Please add more credits to you account".
In the Dial Plan Syntax above the caller is redirected to the Brekeke PBX extension '2226' which plays the pre-recorded message to the caller then hangs up.
http://www.svkwiki.com/wiki/$svkdialplan-preauthorizecall

