Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
181 stars 175 forks source link

maxtime_tocall_negatif_free_route set incorrectly #136

Open powerpbx opened 8 years ago

powerpbx commented 8 years ago

In A2billing system settings agi-conf1 maxtime_tocall_negatif_free_route is set to 5400 by default. However, watching the call from Asterisk CLI, the indication is as follows

Executing [1XXXXXXXXXX@a2billing-sip:1] AGI("SIP/4458262381-00000010", "a2billing.php,1") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php -- AGI Script Executing Application: (DIAL) Options: (SIP/sip_out/1XXXXXXXXXX,60,S(5400000:61000:30000)) -- Setting call duration limit to 5400000.000 seconds.

If I change maxtime_tocall_negatif_free_route from 5400 to 5200 (for example) the call duration changes to 5200000.000 seconds.

Also, in the Settings comments in one location it says that 3600 = 1 hour and in another location it says that 3600000 =1 hour. So I am assuming the 3600000 comment is incorrect.