Good morning!
I am experimenting the following issue. When the credit is low, the call goes through but still 'prepaid-no-enough-credit' is played before the call, I wonder if there is a way to prevent this from happening. See the output from asterisk below.
Thanks in advance,
carlos
Code:
a2billing.php,1: file:Class.RateEngine.php - line:97 - uniqueid:1401955076.26 - [CC_asterisk_rate-engine: (1, 0769863633)]
a2billing.php,1: file:Class.RateEngine.php - line:118 - uniqueid:1401955076.26 - [CC_asterisk_rate-engine - CALLERID : asterisk]
a2billing.php,1: file:Class.RateEngine.php - line:179 - uniqueid:1401955076.26 - [rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:344 - uniqueid:1401955076.26 - [CC_asterisk_rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:345 - uniqueid:1401955076.26 - [CC_asterisk_rate-engine: number_trunk 1]
a2billing.php,1: file:Class.A2Billing.php - line:1041 - uniqueid:1401955076.26 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.RateEngine.php - line:358 - uniqueid:1401955076.26 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (0.05000)]
a2billing.php,1: file:Class.RateEngine.php - line:364 - uniqueid:1401955076.26 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:6]
a2billing.php,1: file:Class.A2Billing.php - line:1054 - uniqueid:1401955076.26 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:1987 - uniqueid:1401955076.26 - TIMEOUT::> 6 : minutes=0 - seconds=6
-- Playing 'prepaid-no-enough-credit' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:a2billing.php - line:562 - uniqueid:1401955076.26 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php,1: file:Class.RateEngine.php - line:1312 - uniqueid:1401955076.26 - app_callingcard: Dialing 'SIP/bitco_out/0769863633|60|HRrL(6000:61000:30000)' with timeout of '6'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1332 - uniqueid:1401955076.26 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php,1: file:Class.RateEngine.php - line:1228 - uniqueid:1401955076.26 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '2']
-- AGI Script Executing Application: (DIAL) Options: (SIP/bitco_out/0769863633,60,HRrL(6000:61000:30000))
> Limit Data for this call:
> timelimit = 6000 ms (6.000 s)
> play_warning = 1000 ms (1.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000 ms (30.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
== Using SIP RTP CoS mark 5
-- Called SIP/bitco_out/0769863633
-- SIP/bitco_out-0000001b is making progress passing it to SIP/6613813819-0000001a
-- SIP/bitco_out-0000001b is ringing