Not sure if a2billing can be shared here, but ill give a shot If the credit < min_credit the IVR play: sorry you have 0 credit and hangup, I want it to FW me to the IVR to add voucher, please let me know: here is log:
[18/10/2010 07:01:12]:[file:a2billing.php - line:75]:[CallerID:]:[CN:]:[IDCONFIG : 1] [18/10/2010 07:01:12]:[file:a2billing.php - line:76]:[CallerID:]:[CN:]:[MODE : standard] [18/10/2010 07:01:12]:[file:Class.A2Billing.php - line:601]:[CallerID:10001]:[CN:]:[ get_agi_request_parameter = 10001 ; SIP/10001-0005d08b ; 1287374472.907170 ; 9971524976 ; 00] [18/10/2010 07:01:12]:[file:a2billing.php - line:138]:[CallerID:10001]:[CN:]:[[ANSWER CALL]] [18/10/2010 07:01:12]:[file:Class.A2Billing.php - line:1653]:[CallerID:10001]:[CN:]:[ - Account code - 9971524976] [18/10/2010 07:01:12]:[file:Class.A2Billing.php - line:1668]:[CallerID:10001]:[CN:9971524976]:[SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='9971524976'] [18/10/2010 07:01:12]:[file:Class.A2Billing.php - line:1742]:[CallerID:10001]:[CN:9971524976]:[[SET LANGUAGE() en]] [18/10/2010 07:01:12]:[file:Class.A2Billing.php - line:1745]:[CallerID:10001]:[CN:9971524976]:[[credit=0.00000 :: tariff=1 :: active=t :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit=5 :: language=en]] [18/10/2010 07:01:12]:[file:Class.A2Billing.php - line:1777]:[CallerID:10001]:[CN:9971524976]:[[ERROR CHECK CARD : prepaid-zero-balance (cardnumber:9971524976)]] [18/10/2010 07:01:14]:[file:a2billing.php - line:155]:[CallerID:10001]:[CN:9971524976]:[[TRY : callingcard_ivr_authenticate]] [18/10/2010 07:01:14]:[file:a2billing.php - line:316]:[CallerID:10001]:[CN:9971524976]:[[AUTHENTICATION FAILED (cia_res:-2)]] [18/10/2010 07:01:14]:[CallerID:10001]:[CN:9971524976]:[[exit]] -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
