Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Mon Nov 20, 2017 9:15 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: a2billing.php
PostPosted: Wed Sep 05, 2012 1:41 pm 
Offline

Joined: Sat Feb 19, 2011 6:19 am
Posts: 38
Hello
I am using A2B 1.9.4 and Asterisk 1.6.2.24.

Here is my dialplan that i use in a2billing.

[a2billing]
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,2)
exten => _X.,n,Hangup

exten => h,1,Deadagi(mycode.php)


Simply in mycode.php i am trying to get the CDR of the completed call , from mysql table cc_call

i wrote the query to get the CDR from database but what i have found that a2billing is updating cc_call table after executing mycode.php. And because of this i could not find related data in database

how can i achive to execute mycode.php after a2billing.php is completely completed



Regards


Top
 Profile  
 
 Post subject: Re: a2billing.php
PostPosted: Fri Sep 07, 2012 6:07 am 
Offline

Joined: Sat Feb 19, 2011 6:19 am
Posts: 38
Hello
i found the solution .

i added g option to dial command parameters in agi-conf.
Currently my setting is |60|HiRLg(%timeout%:61000:30000)

and it is working perfectly.

Here is is the explanation of g parameter from wiki

"g: When the called party hangs up, continue to execute commands in the current context at the next priority."


Top
 Profile  
 
 Post subject: Re: a2billing.php
PostPosted: Sat Sep 08, 2012 9:55 am 
Offline

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

There must have been a change to the asterisk code, this never used to work with deadAGI

Joe


Top
 Profile  
 
 Post subject: Re: a2billing.php
PostPosted: Wed Jun 11, 2014 2:43 am 
Offline

Joined: Fri Apr 11, 2014 5:14 am
Posts: 13
Just to confirm that the solution of adding g to the dial command works in Ansterisk 1.8 for updating the database after a2billing.php has finished.
Thanks rock1979
Carlos


Top
 Profile  
 
 Post subject: Re: a2billing.php
PostPosted: Tue Apr 14, 2015 12:02 pm 
Offline

Joined: Tue Apr 14, 2015 12:00 pm
Posts: 1
Thank you so much....it worked


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Predictive Dialer


All times are UTC


Who is online

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