Here is the log off asterisk. I calling from test extension 100, with Outbound CID 599100, to 999999 (Custum trunk A2Billing) and the destination number is my mobile number. See the Bold line in log.
-- Executing [999999@from-internal:1] Macro("SIP/100-00000002", "user-callerid,SKIPTTL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/100-00000002", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/100-00000002", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/100-00000002", "1?Set(REALCALLERIDNUM=100)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/100-00000002", "AMPUSER=100") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/100-00000002", "AMPUSERCIDNAME=Romano on HGPBX-VPN") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/100-00000002", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/100-00000002", "AMPUSERCID=100") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/100-00000002", "CALLERID(all)="Romano on HGPBX-VPN" <100>") in new stack -- Executing [s@macro-user-callerid:9] ExecIf("SIP/100-00000002", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:10] GotoIf("SIP/100-00000002", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] Set("SIP/100-00000002", "CALLERID(number)=100") in new stack -- Executing [s@macro-user-callerid:20] Set("SIP/100-00000002", "CALLERID(name)=Romano on HGPBX-VPN") in new stack -- Executing [s@macro-user-callerid:21] NoOp("SIP/100-00000002", "Using CallerID "Romano on HGPBX-VPN" <100>") in new stack -- Executing [999999@from-internal:2] NoOp("SIP/100-00000002", "Calling Out Route: 00-A2Billing") in new stack -- Executing [999999@from-internal:3] Set("SIP/100-00000002", "MOHCLASS=default") in new stack -- Executing [999999@from-internal:4] Set("SIP/100-00000002", "_NODEST=") in new stack -- Executing [999999@from-internal:5] Macro("SIP/100-00000002", "record-enable,100,OUT,") in new stack -- Executing [s@macro-record-enable:1] GotoIf("SIP/100-00000002", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] ExecIf("SIP/100-00000002", "0?MacroExit()") in new stack -- Executing [s@macro-record-enable:5] GotoIf("SIP/100-00000002", "0?Group:OUT") in new stack -- Goto (macro-record-enable,s,15) -- Executing [s@macro-record-enable:15] GotoIf("SIP/100-00000002", "0?IN") in new stack -- Executing [s@macro-record-enable:16] ExecIf("SIP/100-00000002", "1?MacroExit()") in new stack -- Executing [999999@from-internal:6] Macro("SIP/100-00000002", "dialout-trunk,3,999999,") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/100-00000002", "DIAL_TRUNK=3") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/100-00000002", "0?sub-pincheck,s,1") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/100-00000002", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/100-00000002", "DIAL_NUMBER=999999") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/100-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/100-00000002", "OUTBOUND_GROUP=OUT_3") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/100-00000002", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/100-00000002", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/100-00000002", "DIAL_TRUNK_OPTIONS=") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/100-00000002", "outbound-callerid,3") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/100-00000002", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/100-00000002", "0?Set(REALCALLERIDNUM=100)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/100-00000002", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/100-00000002", "USEROUTCID="Romano Ramdas"<599100>") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/100-00000002", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/100-00000002", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/100-00000002", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,12) -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/100-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/100-00000002", "1?Set(CALLERID(all)="Romano Ramdas"<599100>)") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/100-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/100-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/100-00000002", "0?sub-flp-3,s,1") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/100-00000002", "OUTNUM=999999") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/100-00000002", "custom=AMP") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/100-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack -- Executing [s@macro-dialout-trunk:16] Macro("SIP/100-00000002", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/100-00000002", "1?custom-freepbx-a2billing,999999,1:2") in new stack -- Goto (custom-freepbx-a2billing,999999,1) == Channel 'SIP/100-00000002' jumping out of macro 'dialout-trunk-predial-hook' == Channel 'SIP/100-00000002' jumping out of macro 'dialout-trunk' -- Executing [999999@custom-freepbx-a2billing:1] DeadAGI("SIP/100-00000002", "a2billing.php,1") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php a2billing.php,1: file:Class.A2Billing.php - line:604 - uniqueid: - A2Billing AGI internal configuration: a2billing.php,1: file:Class.A2Billing.php - line:605 - uniqueid: - Array a2billing.php,1: ( a2billing.php,1: [callerid_update] => 0 a2billing.php,1: [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000) a2billing.php,1: [description] => agi-config a2billing.php,1: [asterisk_version] => 1_6 a2billing.php,1: [answer_call] => 1 a2billing.php,1: [play_audio] => 1 a2billing.php,1: [say_goodbye] => 0 a2billing.php,1: [play_menulanguage] => 0 a2billing.php,1: [force_language] => a2billing.php,1: [intro_prompt] => a2billing.php,1: [min_credit_2call] => 0 a2billing.php,1: [min_duration_2bill] => 0 a2billing.php,1: [notenoughcredit_cardnumber] => 0 a2billing.php,1: [notenoughcredit_assign_newcardnumber_cid] => 0 a2billing.php,1: [use_dnid] => 0 a2billing.php,1: [no_auth_dnid] => Array a2billing.php,1: ( a2billing.php,1: [0] => 2400 a2billing.php,1: [1] => 2300 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [number_try] => 3 a2billing.php,1: [force_callplan_id] => a2billing.php,1: [say_balance_after_auth] => 1 a2billing.php,1: [say_balance_after_call] => 0 a2billing.php,1: [say_rateinitial] => 0 a2billing.php,1: [say_timetocall] => 1 a2billing.php,1: [auto_setcallerid] => 1 a2billing.php,1: [force_callerid] => a2billing.php,1: [cid_sanitize] => 0 a2billing.php,1: [cid_enable] => 0 a2billing.php,1: [cid_askpincode_ifnot_callerid] => 1 a2billing.php,1: [failover_lc_prefix] => 0 a2billing.php,1: [cid_auto_assign_card_to_cid] => 1 a2billing.php,1: [callerid_authentication_over_cardnumber] => 0 a2billing.php,1: [sip_iax_friends] => 0 a2billing.php,1: [sip_iax_pstn_direct_call_prefix] => 555 a2billing.php,1: [sip_iax_pstn_direct_call] => 0 a2billing.php,1: [ivr_voucher] => 0 a2billing.php,1: [ivr_voucher_prefix] => 8 a2billing.php,1: [jump_voucher_if_min_credit] => 0 a2billing.php,1: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000) a2billing.php,1: [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000) a2billing.php,1: [switchdialcommand] => 0 a2billing.php,1: [failover_recursive_limit] => 2 a2billing.php,1: [maxtime_tocall_negatif_free_route] => 5400 a2billing.php,1: [send_reminder] => 0 a2billing.php,1: [record_call] => 0 a2billing.php,1: [monitor_formatfile] => gsm a2billing.php,1: [agi_force_currency] => a2billing.php,1: [currency_association] => Array a2billing.php,1: ( a2billing.php,1: [0] => usd:dollars a2billing.php,1: [1] => mxn:pesos a2billing.php,1: [2] => eur:euros a2billing.php,1: [3] => all:credit a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [local_dialing_addcountryprefix] => 0 a2billing.php,1: [max_call_call_2_did] => 3600 a2billing.php,1: [file_conf_enter_destination] => prepaid-enter-dest a2billing.php,1: [conf_order_menulang] => en:fr:es a2billing.php,1: [callback_bill_1stleg_ifcall_notconnected] => 1 a2billing.php,1: [international_prefixes] => Array a2billing.php,1: ( a2billing.php,1: [0] => 011 a2billing.php,1: [1] => 00 a2billing.php,1: [2] => 09 a2billing.php,1: [3] => 1 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [extracharge_did] => Array a2billing.php,1: ( a2billing.php,1: [0] => 1800 a2billing.php,1: [1] => 1900 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [extracharge_fee] => Array a2billing.php,1: ( a2billing.php,1: [0] => 0 a2billing.php,1: [1] => 0 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [extracharge_buyfee] => Array a2billing.php,1: ( a2billing.php,1: [0] => 0 a2billing.php,1: [1] => 0 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [maxtime_tounlimited_calls] => 5400 a2billing.php,1: [maxtime_tofree_calls] => 5400 a2billing.php,1: [callplan_deck_minute_threshold] => a2billing.php,1: [disable_announcement_seconds] => 0 a2billing.php,1: [verbosity_level] => 4 a2billing.php,1: [logging_level] => 4 a2billing.php,1: [dial_balance_reservation] => 0.25 a2billing.php,1: [cid_auto_create_card] => 0 a2billing.php,1: [cid_auto_create_card_len] => 10 a2billing.php,1: [cid_auto_create_card_typepaid] => PREPAID a2billing.php,1: [cid_auto_create_card_credit] => 0 a2billing.php,1: [cid_auto_create_card_credit_limit] => 0 a2billing.php,1: [cid_auto_create_card_tariffgroup] => 1 a2billing.php,1: [busy_timeout] => 1 a2billing.php,1: [callback_reduce_balance] => 1 a2billing.php,1: [ivr_enable_locking_option] => 0 a2billing.php,1: [ivr_enable_account_information] => 0 a2billing.php,1: [ivr_enable_ivr_speeddial] => 0 a2billing.php,1: [play_rate_cents_if_lower_one] => 0 a2billing.php,1: [callback_beep_to_enter_destination] => 0 a2billing.php,1: [cid_prompt_callback_confirm_phonenumber] => 0 a2billing.php,1: [logger_enable] => 1 a2billing.php,1: [log_file] => /var/log/a2billing/a2billing.log a2billing.php,1: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000) a2billing.php,1: [currency_association_internal] => Array a2billing.php,1: ( a2billing.php,1: [usd] => dollars a2billing.php,1: [mxn] => pesos a2billing.php,1: [eur] => euros a2billing.php,1: [all] => credit a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [file_conf_enter_menulang] => prepaid-menulang a2billing.php,1: [ivr_voucher_prefixe] => 8 a2billing.php,1: [cheat_on_announcement_time] => 0 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: file:a2billing.php - line:106 - uniqueid: - IDCONFIG : 1 a2billing.php,1: file:a2billing.php - line:107 - uniqueid: - MODE : standard a2billing.php,1: file:a2billing.php - line:124 - uniqueid: - AGI Request: a2billing.php,1: Array a2billing.php,1: ( a2billing.php,1: [agi_request] => a2billing.php a2billing.php,1: [agi_channel] => SIP/100-00000002 a2billing.php,1: [agi_language] => en a2billing.php,1: [agi_type] => SIP a2billing.php,1: [agi_uniqueid] => 1410119411.2 a2billing.php,1: [agi_version] => 11.11.0 a2billing.php,1: [agi_callerid] => 599100 a2billing.php,1: [agi_calleridname] => Romano Ramdas a2billing.php,1: [agi_callingpres] => 0 a2billing.php,1: [agi_callingani2] => 0 a2billing.php,1: [agi_callington] => 0 a2billing.php,1: [agi_callingtns] => 0 a2billing.php,1: [agi_dnid] => 999999 a2billing.php,1: [agi_rdnis] => unknown a2billing.php,1: [agi_context] => custom-freepbx-a2billing a2billing.php,1: [agi_extension] => 999999 a2billing.php,1: [agi_priority] => 1 a2billing.php,1: [agi_enhanced] => 0.0 a2billing.php,1: [agi_accountcode] => 4811283705 a2billing.php,1: [agi_threadid] => 47643570530624 a2billing.php,1: [agi_arg_1] => 1 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: file:a2billing.php - line:126 - uniqueid: - [INFO : A2Billing - Version 1.9.4 (Cuprum)] a2billing.php,1: file:Class.A2Billing.php - line:718 - uniqueid:1410119411.2 - get_agi_request_parameter = 599100 ; SIP/100-00000002 ; 1410119411.2 ; 4811283705 ; 999999 a2billing.php,1: file:a2billing.php - line:162 - uniqueid:1410119411.2 - [ANSWER CALL] a2billing.php,1: file:Class.A2Billing.php - line:2714 - uniqueid:1410119411.2 - - Account code ::> 4811283705 a2billing.php,1: file:Class.A2Billing.php - line:2731 - uniqueid:1410119411.2 - - Retrieve account info SQL ::> 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, status, voicemail_permitted, voicemail_activated, cc_card.restriction, cc_country.countryprefix FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id LEFT JOIN cc_country ON cc_card.country=cc_country.countrycode WHERE username='4811283705' a2billing.php,1: file:Class.A2Billing.php - line:2800 - uniqueid:1410119411.2 - [SET CHANNEL(language) en] a2billing.php,1: file:Class.A2Billing.php - line:2804 - uniqueid:1410119411.2 - [credit=9.45540 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=0 :: typepaid=0 :: creditlimit=0 :: language=en] a2billing.php,1: file:Class.A2Billing.php - line:750 - uniqueid:1410119411.2 - [CARD STATUS UPDATE] a2billing.php,1: file:Class.A2Billing.php - line:759 - uniqueid:1410119411.2 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='4811283705'] a2billing.php,1: file:Class.A2Billing.php - line:3092 - uniqueid:1410119411.2 - [A2Billing] SAY BALANCE : 9.45540 a2billing.php,1: a2billing.php,1: file:Class.A2Billing.php - line:1917 - uniqueid:1410119411.2 - [CURRENCY : USD] a2billing.php,1: file:Class.A2Billing.php - line:1924 - uniqueid:1410119411.2 - [BEFORE: 9.4554 SPRINTF : 9.46] -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0) -- <SIP/100-00000002> Playing 'digits/9.gsm' (language 'en') -- Playing 'dollars' (escape_digits=#) (sample_offset 0) -- Playing 'vm-and' (escape_digits=#) (sample_offset 0) -- <SIP/100-00000002> Playing 'digits/40.gsm' (language 'en') -- <SIP/100-00000002> Playing 'digits/6.gsm' (language 'en') -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0) a2billing.php,1: file:a2billing.php - line:178 - uniqueid:1410119411.2 - [TRY : callingcard_ivr_authenticate] a2billing.php,1: file:Class.A2Billing.php - line:2385 - uniqueid:1410119411.2 - [AUTO SetCallerID] a2billing.php,1: file:Class.A2Billing.php - line:2391 - uniqueid:1410119411.2 - [REQUESTED SetCallerID : 599100] a2billing.php,1: file:Class.A2Billing.php - line:2403 - uniqueid:1410119411.2 - [EXEC SetCallerID : 599100] a2billing.php,1: file:a2billing.php - line:193 - uniqueid:1410119411.2 - [CHANNEL STATUS : 6 = Line is up] a2billing.php,1: [CREDIT : 9.45540][CREDIT MIN_CREDIT_2CALL : 0] a2billing.php,1: file:a2billing.php - line:396 - uniqueid:1410119411.2 - TARIFF ID -> 1 a2billing.php,1: file:Class.A2Billing.php - line:808 - uniqueid:1410119411.2 - use_dnid:0 && (!in_array:) && len_dnid:(6 || len_exten:6 ) && (try_num:0) -- <SIP/100-00000002> Playing 'prepaid-enter-dest.gsm' (language 'en') a2billing.php,1: file:Class.A2Billing.php - line:825 - uniqueid:1410119411.2 - RES DTMF : 0031647833289 a2billing.php,1: file:Class.A2Billing.php - line:881 - uniqueid:1410119411.2 - [CALL 2 DID] a2billing.php,1: file:Class.A2Billing.php - line:890 - uniqueid:1410119411.2 - SELECT cc_did.id, iduser FROM cc_did, cc_card WHERE cc_card.status=1 and cc_card.id=iduser and cc_did.activated=1 and did='0031647833289' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') a2billing.php,1: file:Class.A2Billing.php - line:896 - uniqueid:1410119411.2 - DESTINATION ::> 0031647833289 a2billing.php,1: file:Class.A2Billing.php - line:903 - uniqueid:1410119411.2 - RULES APPLY ON DESTINATION ::> 0031647833289 a2billing.php,1: file:Class.A2Billing.php - line:3544 - uniqueid:1410119411.2 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '0031647833289' WHERE username='4811283705']:[result: 1] a2billing.php,1: file:Class.RateEngine.php - line:98 - uniqueid:1410119411.2 - [CC_asterisk_rate-engine: (1, 0031647833289)] a2billing.php,1: file:Class.RateEngine.php - line:120 - uniqueid:1410119411.2 - [CC_asterisk_rate-engine - CALLERID : 599100] a2billing.php,1: file:Class.RateEngine.php - line:182 - uniqueid:1410119411.2 - [rate-engine: Count Total result 2] a2billing.php,1: file:Class.RateEngine.php - line:270 - uniqueid:1410119411.2 - [CC_asterisk_rate-engine: Count Total result 1] a2billing.php,1: file:Class.RateEngine.php - line:271 - uniqueid:1410119411.2 - [CC_asterisk_rate-engine: number_trunk 1] a2billing.php,1: file:Class.A2Billing.php - line:1019 - uniqueid:1410119411.2 - OK - RESFINDRATE::> 1 a2billing.php,1: file:Class.RateEngine.php - line:285 - uniqueid:1410119411.2 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (9.45540)] a2billing.php,1: file:Class.RateEngine.php - line:291 - uniqueid:1410119411.2 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:2820] a2billing.php,1: file:Class.A2Billing.php - line:1031 - uniqueid:1410119411.2 - RES_ALL_CALCULTIMEOUT ::> 1 a2billing.php,1: file:Class.A2Billing.php - line:1847 - uniqueid:1410119411.2 - TIMEOUT::> 2820 : minutes=0 - seconds=0 -- Playing 'prepaid-no-enough-credit' (escape_digits=#) (sample_offset 0) a2billing.php,1: file:a2billing.php - line:572 - uniqueid:1410119411.2 - ANSWER fct callingcard_ivr authorize:> 1 a2billing.php,1: file:Class.RateEngine.php - line:1245 - uniqueid:1410119411.2 - app_callingcard: Dialing 'SIP/voip-01-rebvoice/0031647833289|60|HRrL(2820000:61000:30000)' with timeout of '2820'. a2billing.php,1: a2billing.php,1: file:Class.RateEngine.php - line:1265 - uniqueid:1410119411.2 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'. a2billing.php,1: file:Class.RateEngine.php - line:1157 - uniqueid:1410119411.2 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse+1 WHERE id_trunk='2'] -- AGI Script Executing Application: (DIAL) Options: (SIP/voip-01-rebvoice/0031647833289,60,HRrL(2820000:61000:30000)) == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/voip-01-rebvoice/0031647833289 -- SIP/voip-01-rebvoice-00000003 is making progress passing it to SIP/100-00000002 a2billing.php,1: file:Class.RateEngine.php - line:1274 - uniqueid:1410119411.2 - DIAL SIP/voip-01-rebvoice/0031647833289|60|HRrL(2820000:61000:30000) a2billing.php,1: file:Class.RateEngine.php - line:1157 - uniqueid:1410119411.2 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse-1 WHERE id_trunk='2'] a2billing.php,1: file:Class.RateEngine.php - line:1426 - uniqueid:1410119411.2 - [USEDRATECARD=0] a2billing.php,1: file:Class.RateEngine.php - line:959 - uniqueid:1410119411.2 - :[sessiontime:0 - id_cc_package_offer:-1 - package2apply:] a2billing.php,1: a2billing.php,1: a2billing.php,1: file:Class.RateEngine.php - line:1042 - uniqueid:1410119411.2 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=0 :: dialstatus=CANCEL :: buycost=0 :: cost= : signe_cc_call=-: signe=+)] a2billing.php,1: file:Class.RateEngine.php - line:1107 - uniqueid:1410119411.2 - [CC_asterisk_stop : SQL: DONE : result=1] a2billing.php,1: file:Class.RateEngine.php - line:1108 - uniqueid:1410119411.2 - [CC_asterisk_stop : SQL: INSERT INTO cc_call (uniqueid, sessionid, card_id, nasipaddress, starttime, sessiontime, real_sessiontime, calledstation, terminatecauseid, stoptime, sessionbill, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buycost, id_card_package_offer, dnid, destination) VALUES ('1410119411.2', 'SIP/100-00000002', '2', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 0 SECOND) , '0', '0', '0031647833289', 4, now() , '-0', '1', '1', '210', '2', '599100', '0', '0', NULL, '999999', '316')] a2billing.php,1: file:a2billing.php - line:588 - uniqueid:1410119411.2 - [a2billing account stop] a2billing.php,1: file:a2billing.php - line:193 - uniqueid:1410119411.2 - [CHANNEL STATUS : = Channel is down and available] a2billing.php,1: [CREDIT : 9.45540][CREDIT MIN_CREDIT_2CALL : 0] a2billing.php,1: file:Class.A2Billing.php - line:750 - uniqueid:1410119411.2 - [CARD STATUS UPDATE] a2billing.php,1: file:Class.A2Billing.php - line:759 - uniqueid:1410119411.2 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='4811283705'] -- <SIP/100-00000002>AGI Script a2billing.php completed, returning 4 == Spawn extension (custom-freepbx-a2billing, 999999, 1) exited non-zero on 'SIP/100-00000002'
|