asterisk2billing.org http://forum.asterisk2billing.org/ |
|
A2billing 2.0.16 balance negative, credit reached 0 http://forum.asterisk2billing.org/viewtopic.php?f=33&t=11086 |
Page 1 of 1 |
Author: | johnny2000 [ Wed Dec 24, 2014 7:20 pm ] |
Post subject: | A2billing 2.0.16 balance negative, credit reached 0 |
I just installed a2billing 2.0.16 and I noticed that the balanced goes to negative, and the calls continued even if the balance reaches 0 dollar. I browse the forum and everyone is saying to look into the dialcommand_param. Below is my configuration on the three areas where there is a dialcommand_param under the Global_list: dialcommand_param_call_2did - |60|HiL(%timeout%:61000:30000); dialcommand_param - |60|HRrL(%timeout%:61000:30000); dialcommand_param_sipiax_friend - |60|HiL(%timeout%:61000:30000); I debug the call flow and the computation of the %timeout% is correct, but for some reason it doesn't hangup the call even if the balance of the credit reaches 0: AGI Script Executing Application: (DIAL) Options: (IAX2/SIPGATE_211/15142942365,60,HRrL(60000:61000:30000)) > Limit Data for this call: > timelimit = 60000 ms (60.000 s) > play_warning = 31000 ms (31.000 s) > play_to_caller = yes > play_to_callee = no > warning_freq = 30000 ms (30.000 s) > start_sound = > warning_sound = timeleft > end_sound = Is there anything that I need to look at and check on my configuration? Thank you. PS. I am using PIAF with Freepbx 2.11. |
Author: | johnny2000 [ Thu Dec 25, 2014 5:35 pm ] |
Post subject: | Re: A2billing 2.0.16 balance negative, credit reached 0 |
I did some testing by removing the 2 parameters of the timeout and the call stops as soon as the credit balance reaches 0: This is the call flow if I put the L(x:y:z): -- AGI Script Executing Application: (DIAL) Options: (IAX2/SIPGATE_211/15147879327,60,HRgrL(60000:45000:30000)) > Limit Data for this call: > timelimit = 60000 ms (60.000 s) > play_warning = 45000 ms (45.000 s) > play_to_caller = yes > play_to_callee = no > warning_freq = 30000 ms (30.000 s) > start_sound = > warning_sound = timeleft > end_sound = -- Called IAX2/SIPGATE_211/15147879327 And this is the call flow when I only use L(x) -- AGI Script Executing Application: (DIAL) Options: (IAX2/SIPGATE_211/15147879327,60,HRgrL(60000)) -- Setting call duration limit to 60.000 seconds. -- Called IAX2/SIPGATE_211/15147879327 -- Call accepted by 192.168.15.40 (format ulaw) -- Format for call is (ulaw) -- Channel 'IAX2/5143162872-1972' unable to transfer -- IAX2/SIPGATE_211-16597 answered IAX2/5143162872-1972 I am not sure if the one with the (y:z) options breaks the flow of the call that's why the call doesn't stop even if the credit balance reaches zero dollar. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |