Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 3:43 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Implementing auto-recharge: timeout of dialcommand_param
PostPosted: Thu Nov 12, 2009 10:58 pm 
Offline

Joined: Sat Sep 27, 2008 8:06 pm
Posts: 23
Hello - I'm working on implementing an auto-recharge feature (for prepaid customers) that gets triggered when the balance is $1.00 (or any other specified amount). This while the customer is conducting a call.

Is there a way to extend the timeout on the dialcommand_param (S or L option) once the call has been established?

Any other thoughts on how to implement? I'm thinking perhaps setting a longer timeout for those customers with auto-recharge feature turned on? Then, how to trigger the recharge while the call is still active?

Thanks!


Top
 Profile  
 
 Post subject: Re: Implementing auto-recharge: timeout of dialcommand_param
PostPosted: Fri Nov 13, 2009 3:48 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

The mechanism of A2Billing is that it works out the total possible duration of the call, then sends a dial to asterisk saying keep this call alive for x number of minutes, then forcibly disconnect.

I do not think it is going to be possible to extend "L" in mid call.

Joe


Top
 Profile  
 
 Post subject: Re: Implementing auto-recharge: timeout of dialcommand_param
PostPosted: Fri Nov 13, 2009 7:53 pm 
Offline

Joined: Sat Sep 27, 2008 8:06 pm
Posts: 23
Thanks very much Joe! I inferred this from an older post you had on the forum, but now you have confirmed.

I will work on this for the next few days and post my work once it all works. I am going with the option of adding extra time beyond that provided by the existing balance for those accounts with auto-recharge enabled and active. The balance will go negative in this scenario and at that point the auto-recharge will be triggered.

In fact, I have all this almost figured out with a few lines of code, but having trouble with a web service (for the actual credit card recharge) I'm trying to run out of the a2billing.php (& includes) file. My guess is this is due to the STD OUT configuration for AGI. I'll keep working on it and post again in the next few days.

blusky


Top
 Profile  
 
 Post subject: Re: Implementing auto-recharge: timeout of dialcommand_param
PostPosted: Tue Mar 19, 2013 1:57 am 
Offline

Joined: Thu Apr 21, 2011 5:22 pm
Posts: 106
Did you succeed? I am also interested in doing the auto-recharge feature.


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group