my cli as bellow, there is a rate for the other number in tarrif, and the call comes when i enter the number when it ask for the destination number
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [94112511511@a2billing-callback:1] DeadAGI("SIP/66.240.162.41-00003eb0", "a2billing.php,3,callback") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php a2billing.php,3,callback: file:Class.A2Billing.php - line:601 - uniqueid: - A2Billing AGI internal configuration: a2billing.php,3,callback: file:Class.A2Billing.php - line:602 - uniqueid: - Array a2billing.php,3,callback: ( a2billing.php,3,callback: [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000) a2billing.php,3,callback: [description] => agi-config a2billing.php,3,callback: [asterisk_version] => 1_4 a2billing.php,3,callback: [answer_call] => 1 a2billing.php,3,callback: [play_audio] => 1 a2billing.php,3,callback: [say_goodbye] => 0 a2billing.php,3,callback: [play_menulanguage] => 0 a2billing.php,3,callback: [force_language] => a2billing.php,3,callback: [intro_prompt] => a2billing.php,3,callback: [min_credit_2call] => 0 a2billing.php,3,callback: [min_duration_2bill] => 0 a2billing.php,3,callback: [notenoughcredit_cardnumber] => 0 a2billing.php,3,callback: [notenoughcredit_assign_newcardnumber_cid] => 0 a2billing.php,3,callback: [use_dnid] => 1 a2billing.php,3,callback: [no_auth_dnid] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [0] => 2400 a2billing.php,3,callback: [1] => 2300 a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [number_try] => 3 a2billing.php,3,callback: [force_callplan_id] => a2billing.php,3,callback: [say_balance_after_auth] => 1 a2billing.php,3,callback: [say_balance_after_call] => 0 a2billing.php,3,callback: [say_rateinitial] => 0 a2billing.php,3,callback: [say_timetocall] => 1 a2billing.php,3,callback: [auto_setcallerid] => 1 a2billing.php,3,callback: [force_callerid] => a2billing.php,3,callback: [cid_sanitize] => 0 a2billing.php,3,callback: [cid_enable] => 1 a2billing.php,3,callback: [cid_askpincode_ifnot_callerid] => 1 a2billing.php,3,callback: [failover_lc_prefix] => 0 a2billing.php,3,callback: [cid_auto_assign_card_to_cid] => 0 a2billing.php,3,callback: [callerid_authentication_over_cardnumber] => 0 a2billing.php,3,callback: [sip_iax_friends] => 0 a2billing.php,3,callback: [sip_iax_pstn_direct_call_prefix] => 555 a2billing.php,3,callback: [sip_iax_pstn_direct_call] => 0 a2billing.php,3,callback: [ivr_voucher] => 0 a2billing.php,3,callback: [ivr_voucher_prefix] => 8 a2billing.php,3,callback: [jump_voucher_if_min_credit] => 0 a2billing.php,3,callback: [dialcommand_param] => |60|HL(%timeout%:61000:30000) a2billing.php,3,callback: [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000) a2billing.php,3,callback: [switchdialcommand] => 0 a2billing.php,3,callback: [failover_recursive_limit] => 2 a2billing.php,3,callback: [maxtime_tocall_negatif_free_route] => 5400 a2billing.php,3,callback: [send_reminder] => 0 a2billing.php,3,callback: [record_call] => 0 a2billing.php,3,callback: [monitor_formatfile] => gsm a2billing.php,3,callback: [agi_force_currency] => a2billing.php,3,callback: [currency_association] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [0] => usd:dollars a2billing.php,3,callback: [1] => mxn:pesos a2billing.php,3,callback: [2] => eur:euros a2billing.php,3,callback: [3] => all:credit a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [local_dialing_addcountryprefix] => 0 a2billing.php,3,callback: [max_call_call_2_did] => 3600 a2billing.php,3,callback: [file_conf_enter_destination] => prepaid-enter-dest a2billing.php,3,callback: [conf_order_menulang] => en:fr:es a2billing.php,3,callback: [callback_bill_1stleg_ifcall_notconnected] => 1 a2billing.php,3,callback: [international_prefixes] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [0] => 011 a2billing.php,3,callback: [1] => 00 a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [extracharge_did] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [0] => 1800 a2billing.php,3,callback: [1] => 1900 a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [extracharge_fee] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [0] => 0 a2billing.php,3,callback: [1] => 0 a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [extracharge_buyfee] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [0] => 0 a2billing.php,3,callback: [1] => 0 a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [maxtime_tounlimited_calls] => 5400 a2billing.php,3,callback: [maxtime_tofree_calls] => 5400 a2billing.php,3,callback: [callplan_deck_minute_threshold] => a2billing.php,3,callback: [disable_announcement_seconds] => 0 a2billing.php,3,callback: [verbosity_level] => 4 a2billing.php,3,callback: [logging_level] => 3 a2billing.php,3,callback: [dial_balance_reservation] => 0 a2billing.php,3,callback: [callerid_update] => 0 a2billing.php,3,callback: [cid_auto_create_card] => 0 a2billing.php,3,callback: [cid_auto_create_card_len] => 10 a2billing.php,3,callback: [cid_auto_create_card_typepaid] => PREPAID a2billing.php,3,callback: [cid_auto_create_card_credit] => 0 a2billing.php,3,callback: [cid_auto_create_card_credit_limit] => 0 a2billing.php,3,callback: [cid_auto_create_card_tariffgroup] => 1 a2billing.php,3,callback: [busy_timeout] => 1 a2billing.php,3,callback: [callback_reduce_balance] => 1 a2billing.php,3,callback: [ivr_enable_locking_option] => 0 a2billing.php,3,callback: [ivr_enable_account_information] => 0 a2billing.php,3,callback: [ivr_enable_ivr_speeddial] => 0 a2billing.php,3,callback: [logger_enable] => 1 a2billing.php,3,callback: [log_file] => /var/log/a2billing/a2billing.log a2billing.php,3,callback: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000) a2billing.php,3,callback: [currency_association_internal] => Array a2billing.php,3,callback: ( a2billing.php,3,callback: [usd] => dollars a2billing.php,3,callback: [mxn] => pesos a2billing.php,3,callback: [eur] => euros a2billing.php,3,callback: [all] => credit a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: [file_conf_enter_menulang] => prepaid-menulang a2billing.php,3,callback: [ivr_voucher_prefixe] => 8 a2billing.php,3,callback: [cheat_on_announcement_time] => 0 a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: file:a2billing.php - line:109 - uniqueid: - IDCONFIG : 3 a2billing.php,3,callback: file:a2billing.php - line:110 - uniqueid: - MODE : callback a2billing.php,3,callback: file:a2billing.php - line:127 - uniqueid: - AGI Request: a2billing.php,3,callback: Array a2billing.php,3,callback: ( a2billing.php,3,callback: [agi_request] => a2billing.php a2billing.php,3,callback: [agi_channel] => SIP/66.240.162.41-00003eb0 a2billing.php,3,callback: [agi_language] => en a2billing.php,3,callback: [agi_type] => SIP a2billing.php,3,callback: [agi_uniqueid] => 1298664739.16048 a2billing.php,3,callback: [agi_version] => 1.6.2.13 a2billing.php,3,callback: [agi_callerid] => 123456 a2billing.php,3,callback: [agi_calleridname] => unknown a2billing.php,3,callback: [agi_callingpres] => 0 a2billing.php,3,callback: [agi_callingani2] => 0 a2billing.php,3,callback: [agi_callington] => 0 a2billing.php,3,callback: [agi_callingtns] => 0 a2billing.php,3,callback: [agi_dnid] => unknown a2billing.php,3,callback: [agi_rdnis] => unknown a2billing.php,3,callback: [agi_context] => a2billing-callback a2billing.php,3,callback: [agi_extension] => 94112511511 a2billing.php,3,callback: [agi_priority] => 1 a2billing.php,3,callback: [agi_enhanced] => 0.0 a2billing.php,3,callback: [agi_accountcode] => 4692284349 a2billing.php,3,callback: [agi_threadid] => 98241424 a2billing.php,3,callback: [agi_arg_1] => 3 a2billing.php,3,callback: [agi_arg_2] => callback a2billing.php,3,callback: ) a2billing.php,3,callback: a2billing.php,3,callback: file:a2billing.php - line:129 - uniqueid: - [INFO : A2Billing - Version 1.8.1 (Corylus)] a2billing.php,3,callback: file:Class.A2Billing.php - line:715 - uniqueid:1298664739.16048 - get_agi_request_parameter = 123456 ; SIP/66.240.162.41-00003eb0 ; 1298664739.16048 ; 4692284349 ; 94112511511 a2billing.php,3,callback: file:a2billing.php - line:1081 - uniqueid:1298664739.16048 - [CALLBACK]:[MODE : CALLBACK] a2billing.php,3,callback: file:a2billing.php - line:1094 - uniqueid:1298664739.16048 - [CALLBACK]:[NO ANSWER CALL] a2billing.php,3,callback: file:a2billing.php - line:1140 - uniqueid:1298664739.16048 - [CALLBACK]:[GET VARIABLE : CALLED=94777480646|CALLING=94112511511|CBID=56229-eb5a2cx|LEG=4692284349 | CALLING= | MODE= | TARIFF= | CBID= | LEG=] a2billing.php,3,callback: file:a2billing.php - line:1144 - uniqueid:1298664739.16048 - [CALLBACK : UPDATE CALLBACK AGI_RESULT : QUERY=UPDATE cc_callback_spool SET agi_result='AGI PROCESSING' WHERE uniqueid=''] a2billing.php,3,callback: file:a2billing.php - line:1148 - uniqueid:1298664739.16048 - [CALLBACK]:[TRY : callingcard_ivr_authenticate] a2billing.php,3,callback: file:Class.A2Billing.php - line:2591 - uniqueid:1298664739.16048 - - Account code ::> 4692284349 a2billing.php,3,callback: file:Class.A2Billing.php - line:2608 - uniqueid:1298664739.16048 - - 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='4692284349' a2billing.php,3,callback: file:Class.A2Billing.php - line:2677 - uniqueid:1298664739.16048 - [SET CHANNEL(language) en] a2billing.php,3,callback: file:Class.A2Billing.php - line:2681 - uniqueid:1298664739.16048 - [credit=44.16968 :: tariff=4 :: status=1 :: isused=2 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en] a2billing.php,3,callback: file:Class.A2Billing.php - line:747 - uniqueid:1298664739.16048 - [CARD STATUS UPDATE] a2billing.php,3,callback: file:Class.A2Billing.php - line:756 - uniqueid:1298664739.16048 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0 WHERE username='4692284349'] a2billing.php,3,callback: file:a2billing.php - line:1155 - uniqueid:1298664739.16048 - [CALLBACK]:[Start] a2billing.php,3,callback: file:Class.A2Billing.php - line:2264 - uniqueid:1298664739.16048 - [AUTO SetCallerID] a2billing.php,3,callback: file:Class.A2Billing.php - line:2270 - uniqueid:1298664739.16048 - [REQUESTED SetCallerID : 123456] a2billing.php,3,callback: file:Class.A2Billing.php - line:2282 - uniqueid:1298664739.16048 - [EXEC SetCallerID : 123456] a2billing.php,3,callback: file:a2billing.php - line:1173 - uniqueid:1298664739.16048 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=4]:[ORIG_CREDIT : 44.16968 - CUR_CREDIT - : 43.16968 - CREDIT MIN_CREDIT_2CALL : 0] a2billing.php,3,callback: file:Class.A2Billing.php - line:805 - uniqueid:1298664739.16048 - use_dnid:1 && (!in_array:) && len_dnid:(0 || len_exten:0 ) && (try_num:0) -- <SIP/66.240.162.41-00003eb0> Playing 'prepaid-enter-dest.gsm' (language 'en') elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> elastix*CLI> a2billing.php,3,callback: file:Class.A2Billing.php - line:822 - uniqueid:1298664739.16048 - RES DTMF : a2billing.php,3,callback: file:Class.A2Billing.php - line:893 - uniqueid:1298664739.16048 - DESTINATION ::> a2billing.php,3,callback: file:Class.A2Billing.php - line:900 - uniqueid:1298664739.16048 - RULES APPLY ON DESTINATION ::> a2billing.php,3,callback: file:Class.A2Billing.php - line:747 - uniqueid:1298664739.16048 - [CARD STATUS UPDATE] a2billing.php,3,callback: file:Class.A2Billing.php - line:756 - uniqueid:1298664739.16048 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0 WHERE username='4692284349'] a2billing.php,3,callback: file:a2billing.php - line:1572 - uniqueid:1298664739.16048 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=4692284349 a2billing.php,3,callback: file:a2billing.php - line:1573 - uniqueid:1298664739.16048 - [CALLBACK 1ST LEG]:[TRY : callingcard_ivr_authenticate] a2billing.php,3,callback: file:Class.A2Billing.php - line:2591 - uniqueid:1298664739.16048 - - Account code ::> 4692284349 a2billing.php,3,callback: file:Class.A2Billing.php - line:2608 - uniqueid:1298664739.16048 - - 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='4692284349' a2billing.php,3,callback: file:Class.A2Billing.php - line:2677 - uniqueid:1298664739.16048 - [SET CHANNEL(language) en] a2billing.php,3,callback: file:Class.A2Billing.php - line:2681 - uniqueid:1298664739.16048 - [credit=44.16968 :: tariff=4 :: status=1 :: isused=2 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en] a2billing.php,3,callback: file:Class.A2Billing.php - line:747 - uniqueid:1298664739.16048 - [CARD STATUS UPDATE] a2billing.php,3,callback: file:Class.A2Billing.php - line:756 - uniqueid:1298664739.16048 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0 WHERE username='4692284349'] a2billing.php,3,callback: file:a2billing.php - line:1585 - uniqueid:1298664739.16048 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:4;CALLED=94777480646|CALLING=94112511511|CBID=56229-eb5a2cx|LEG=4692284349] a2billing.php,3,callback: file:Class.RateEngine.php - line:100 - uniqueid:1298664739.16048 - [CC_asterisk_rate-engine: (4, 94777480646|CALLING=94112511511|CBID=56229-eb5a2cx|LEG=4692284349)] a2billing.php,3,callback: file:Class.RateEngine.php - line:122 - uniqueid:1298664739.16048 - [CC_asterisk_rate-engine - CALLERID : 123456] a2billing.php,3,callback: file:Class.RateEngine.php - line:185 - uniqueid:1298664739.16048 - [rate-engine: Count Total result 2] a2billing.php,3,callback: file:Class.RateEngine.php - line:270 - uniqueid:1298664739.16048 - [CC_asterisk_rate-engine: Count Total result 1] a2billing.php,3,callback: file:Class.RateEngine.php - line:271 - uniqueid:1298664739.16048 - [CC_asterisk_rate-engine: number_trunk 1] a2billing.php,3,callback: file:Class.RateEngine.php - line:285 - uniqueid:1298664739.16048 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (44.16968)] a2billing.php,3,callback: file:Class.RateEngine.php - line:291 - uniqueid:1298664739.16048 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:28620] a2billing.php,3,callback: file:a2billing.php - line:1601 - uniqueid:1298664739.16048 - [CALLBACK]:[RateEngine -> answeredtime=11] a2billing.php,3,callback: file:Class.RateEngine.php - line:956 - uniqueid:1298664739.16048 - :[sessiontime:11 - id_cc_package_offer:-1 - package2apply:] a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: a2billing.php,3,callback: file:Class.RateEngine.php - line:733 - uniqueid:1298664739.16048 - [CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:11 - freetimetocall_used=0] a2billing.php,3,callback: file:Class.RateEngine.php - line:811 - uniqueid:1298664739.16048 - [TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -0.0925]:[ (60/60) * 0.0925 ] a2billing.php,3,callback: file:Class.RateEngine.php - line:896 - uniqueid:1298664739.16048 - [CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST:-0.015583333333333 - SELLING COST:-0.0925] a2billing.php,3,callback: file:Class.RateEngine.php - line:1039 - uniqueid:1298664739.16048 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=11 :: dialstatus=ANSWERED :: buycost=0.015583333333333 :: cost=-0.0925 : signe_cc_call=+: signe=-)] a2billing.php,3,callback: file:Class.RateEngine.php - line:1104 - uniqueid:1298664739.16048 - [CC_asterisk_stop : SQL: DONE : result=1] a2billing.php,3,callback: file:Class.RateEngine.php - line:1105 - uniqueid:1298664739.16048 - [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 ('1298664739.16048', 'SIP/66.240.162.41-00003eb0', '4', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 11 SECOND) , '11', '11', '94777480646|CALLING=94112511511|CBID=56229-eb5a2cx|LEG=4692284349', 1, now() , '+0.0925', '4', '42', '290389', '', '123456', '4', '0.015583333333333', NULL, '94777480646|CALLING=94112511511|CBID=56229-eb5a2cx|LEG=4692284349', '9477')] a2billing.php,3,callback: file:Class.RateEngine.php - line:1129 - uniqueid:1298664739.16048 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.0925 , lastuse=now(), nbused=nbused+1 WHERE username='4692284349'] a2billing.php,3,callback: file:Class.RateEngine.php - line:1134 - uniqueid:1298664739.16048 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 11 WHERE id_trunk='' a2billing.php,3,callback: file:Class.RateEngine.php - line:1138 - uniqueid:1298664739.16048 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 11 WHERE id='42' a2billing.php,3,callback: file:Class.A2Billing.php - line:747 - uniqueid:1298664739.16048 - [CARD STATUS UPDATE] a2billing.php,3,callback: file:Class.A2Billing.php - line:756 - uniqueid:1298664739.16048 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0 WHERE username='4692284349'] a2billing.php,3,callback: file:a2billing.php - line:1661 - uniqueid:1298664739.16048 - [SCRIPT TERMINATED FULLY] -- <SIP/66.240.162.41-00003eb0>AGI Script a2billing.php completed, returning -1 elastix*CLI>
|