Page 1 of 1

Author:  rock1979 [ Wed Sep 05, 2012 1:41 pm ]
Post subject:  a2billing.php

I am using A2B 1.9.4 and Asterisk

Here is my dialplan that i use in 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


Author:  rock1979 [ Fri Sep 07, 2012 6:07 am ]
Post subject:  Re: a2billing.php

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."

Author:  jroper [ Sat Sep 08, 2012 9:55 am ]
Post subject:  Re: a2billing.php


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


Author:  creym [ Wed Jun 11, 2014 2:43 am ]
Post subject:  Re: a2billing.php

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

Author:  rohi [ Tue Apr 14, 2015 12:02 pm ]
Post subject:  Re: a2billing.php

Thank you so worked

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group