Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 2:05 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: timeout in a2billing
PostPosted: Fri Oct 17, 2008 2:01 pm 
Offline

Joined: Thu Oct 16, 2008 7:47 am
Posts: 3
I need known where can change the timeout in a2billing.conf
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2008 7:58 am 
Offline

Joined: Fri Jan 18, 2008 9:54 pm
Posts: 135
Hi,

in /etc/asterisk/a2billing.conf there is one timeout option (in sec.) for the callback to be considered as failed..

To go a little bit deeper, callback happens when A2B callback daemon asks asterisk to initiate the call using the (originate) command..

one of the parameters to be passed to this command is the timeout (in mili sec.)... A2B always passes the value 30,000. you can see this in the Admin UI-->> callback list --> edit ..

To change this value, edit the file /var/lib/asterisk/agi-bin/a2billing.php

Code:
if ($A2B->config["database"]['dbtype'] != "postgres"){
                  // MYSQL
                  $QUERY = " INSERT INTO cc_callback_spool (uniqueid, status, server_ip, num_attempt, channel, exten, context, priority, variable, id_server_group, callback_time, account, callerid, timeout ) VALUES ('$uniqueid', '$status', '$server_ip', '$num_attempt', '$channel', '$exten', '$context', '$priority', '$variable', '$id_server_group', ADDDATE( CURRENT_TIMESTAMP, INTERVAL $sec_wait_before_callback SECOND ), '$account', '$callerid', '30000')";
               }else{
                  // POSTGRESQL
                  $QUERY = " INSERT INTO cc_callback_spool (uniqueid, status, server_ip, num_attempt, channel, exten, context, priority, variable, id_server_group, callback_time, account, callerid, timeout ) VALUES ('$uniqueid', '$status', '$server_ip', '$num_attempt', '$channel', '$exten', '$context', '$priority', '$variable', '$id_server_group',  (CURRENT_TIMESTAMP + INTERVAL '$sec_wait_before_callback SECOND'), '$account', '$callerid', '30000')";
               }



Please make sure to backup the file before you make any change!

Regards,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


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