Hi,
Is there a way to limit the minutes for an account (59 minutes precisely ) ?
I tried : sys.Dial("${dst}@my-provider[al=59]
it does not work
--------------------------------------------------------------------------------------------------------------------------
my other question
is it possible , block call for Accounts (not exceed 99 different number) ?
if yes, what's the dial plan ?
thank you for your help
Is there a way to limit the minutes for an account ?
Re: Is there a way to limit the minutes for an account ?
- Attachments
-
- syntax.jpg (54.89 KiB) Viewed 21584 times
Re: Is there a way to limit the minutes for an account ?
There is no "al" option for the sys.Dial command. There is a dial string option "cd" which stand for "call duration" and allows you to limit the time in seconds for a single call.
For example to limit a call to 1 minute you could use cd=60 as shown below.
Apart from that there is a new billing system available for SIPSorcery Professional accounts where you can create account codes, bill calls and set credit limits. The billing system is brand new so should be considered to be Beta software. If you would like more information on it please email admin@sipsorcery.com.
As far as setting unique number or total number of call limits for individual SIP accounts you could do it by recording the numbers in the database using the sys.DBRead and sys.DBWrite commands. However it sounds like there would be a bit of logic involved in putting that dialplan together and I haven't heard of any examples of anyone doing a similar thing.
For example to limit a call to 1 minute you could use cd=60 as shown below.
Code: Select all
sys.Dial("1234@provider[cd=60]")
As far as setting unique number or total number of call limits for individual SIP accounts you could do it by recording the numbers in the database using the sys.DBRead and sys.DBWrite commands. However it sounds like there would be a bit of logic involved in putting that dialplan together and I haven't heard of any examples of anyone doing a similar thing.