Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 27, 2024 10:37 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: call limit
PostPosted: Tue Mar 11, 2008 2:40 am 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
Hi all
I am trying to put a limit on each call. example I have an account it has let say 10 dollars it is base on pre-paid. now I want to limit the minute of the calls for example every time he makes a call he cannot talk for more that 4 minutes he can make another call but cannot make a call longer than 4 minutes long. is it possible if yes how could I do that.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 4:02 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
you can create a specific agi-confx set in a2billing.conf and in that agi-confx, simply modify the dialcommand_param option and make it look like this:

Code:
dialcommand_param = "|60|HRgrL(240000:61000:00000)"


This will limit all calls to 4 minutes (240,000 milliseconds) and there will be an announcement 60 seconds before the call is disconnected.

Than use that agi-confx in the asterisk DeadAGI() when calling a2billing. You can also not create any new agi-confx and make this the default behavior of you a2billing calls all together.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 4:26 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
asiby wrote:
you can create a specific agi-confx set in a2billing.conf and in that agi-confx, simply modify the dialcommand_param option and make it look like this:

Code:
dialcommand_param = "|60|HRgrL(240000:61000:00000)"


This will limit all calls to 4 minutes (240,000 milliseconds) and there will be an announcement 60 seconds before the call is disconnected.

Than use that agi-confx in the asterisk DeadAGI() when calling a2billing. You can also not create any new agi-confx and make this the default behavior of you a2billing calls all together.


Thank you for your help. I tried your suggestion and it worked


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 25 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