Is there a way to limit the minutes for an account ?

Catalog of dial plans
sam
Posts: 6
Joined: Sat Mar 23, 2013 1:40 pm

Re: Is there a way to limit the minutes for an account ?

Post by sam » Sun Mar 24, 2013 3:29 pm

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
Attachments
syntax.jpg
syntax.jpg (54.89 KiB) Viewed 19858 times

User avatar
Aaron
Site Admin
Posts: 4552
Joined: Thu Jul 12, 2007 12:13 am

Re: Is there a way to limit the minutes for an account ?

Post by Aaron » Mon Mar 25, 2013 10:52 am

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.

Code: Select all

sys.Dial("1234@provider[cd=60]")
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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest