I have followed all the good postings on this (Thanks Good pple) but still no luck. Looks like AGI still thinks i'm dialing an extension. No idea why this is so, i will appreciate any help
Freepbx 2.7 Asterisk 1.6 A2B 1.6.2
-- Executing [420731137225@from-internal:1] Macro("SIP/5052-00000002", "user-callerid,SKIPTTL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/5052-00000002", "AMPUSER=5052") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/5052-00000002", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/5052-00000002", "1?Set(REALCALLERIDNUM=5052)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/5052-00000002", "AMPUSER=5052") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/5052-00000002", "AMPUSERCIDNAME=5052") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/5052-00000002", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/5052-00000002", "AMPUSERCID=5052") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/5052-00000002", "CALLERID(all)="5052" <5052>") in new stack -- Executing [s@macro-user-callerid:9] ExecIf("SIP/5052-00000002", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:10] GotoIf("SIP/5052-00000002", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] NoOp("SIP/5052-00000002", "Using CallerID "5052" <5052>") in new stack -- Executing [420731137225@from-internal:2] Set("SIP/5052-00000002", "_NODEST=") in new stack -- Executing [420731137225@from-internal:3] Macro("SIP/5052-00000002", "record-enable,5052,OUT,") in new stack -- Executing [s@macro-record-enable:1] GotoIf("SIP/5052-00000002", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] ExecIf("SIP/5052-00000002", "0?MacroExit()") in new stack -- Executing [s@macro-record-enable:5] GotoIf("SIP/5052-00000002", "0?Group:OUT") in new stack -- Goto (macro-record-enable,s,15) -- Executing [s@macro-record-enable:15] GotoIf("SIP/5052-00000002", "0?IN") in new stack -- Executing [s@macro-record-enable:16] ExecIf("SIP/5052-00000002", "1?MacroExit()") in new stack -- Executing [420731137225@from-internal:4] Macro("SIP/5052-00000002", "dialout-trunk,2,420731137225,,") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/5052-00000002", "DIAL_TRUNK=2") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/5052-00000002", "0?sub-pincheck,s,1") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/5052-00000002", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/5052-00000002", "DIAL_NUMBER=420731137225") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/5052-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/5052-00000002", "OUTBOUND_GROUP=OUT_2") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/5052-00000002", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/5052-00000002", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/5052-00000002", "DIAL_TRUNK_OPTIONS=") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/5052-00000002", "outbound-callerid,2") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/5052-00000002", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/5052-00000002", "0?Set(REALCALLERIDNUM=5052)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/5052-00000002", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/5052-00000002", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/5052-00000002", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/5052-00000002", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/5052-00000002", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,12) -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/5052-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/5052-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/5052-00000002", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/5052-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/5052-00000002", "0?AGI(fixlocalprefix)") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/5052-00000002", "OUTNUM=420731137225") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/5052-00000002", "custom=AMP") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/5052-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack -- Executing [s@macro-dialout-trunk:16] Macro("SIP/5052-00000002", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/5052-00000002", "1?custom-freepbx-a2billing,420731137225,1:2") in new stack -- Goto (custom-freepbx-a2billing,420731137225,1) == Channel 'SIP/5052-00000002' jumping out of macro 'dialout-trunk-predial-hook' == Channel 'SIP/5052-00000002' jumping out of macro 'dialout-trunk' -- Executing [420731137225@custom-freepbx-a2billing:1] DeadAGI("SIP/5052-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:599 - uniqueid: - A2Billing AGI internal configuration: a2billing.php,1: file:Class.A2Billing.php - line:600 - uniqueid: - Array a2billing.php,1: ( 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] => 1 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] => 1 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] => 0 a2billing.php,1: [failover_lc_prefix] => 0 a2billing.php,1: [cid_auto_assign_card_to_cid] => 0 a2billing.php,1: [callerid_authentication_over_cardnumber] => 0 a2billing.php,1: [sip_iax_friends] => 0 a2billing.php,1: [sip_iax_pstn_direct_call_prefix] => a2billing.php,1: [sip_iax_pstn_direct_call] => 1 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] => 1 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: [callerid_update] => 0 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: [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:102 - uniqueid: - IDCONFIG : 1 a2billing.php,1: file:a2billing.php - line:103 - uniqueid: - MODE : standard a2billing.php,1: file:a2billing.php - line:120 - uniqueid: - AGI Request: a2billing.php,1: Array a2billing.php,1: ( a2billing.php,1: [agi_request] => a2billing.php a2billing.php,1: [agi_channel] => SIP/5052-00000002 a2billing.php,1: [agi_language] => en a2billing.php,1: [agi_type] => SIP a2billing.php,1: [agi_uniqueid] => 1279055277.2 a2billing.php,1: [agi_version] => 1.6.2.6 a2billing.php,1: [agi_callerid] => 5052 a2billing.php,1: [agi_calleridname] => 5052 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] => 420731137225 a2billing.php,1: [agi_rdnis] => unknown a2billing.php,1: [agi_context] => custom-freepbx-a2billing > doing dnsmgr_lookup for 'sip2.gagaphone.com' a2billing.php,1: [agi_extension] => 420731137225 a2billing.php,1: [agi_priority] => 1 a2billing.php,1: [agi_enhanced] => 0.0 a2billing.php,1: [agi_accountcode] => 9734183606 a2billing.php,1: [agi_threadid] => -1219994736 a2billing.php,1: [agi_arg_1] => 1 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: file:a2billing.php - line:122 - uniqueid: - [INFO : A2Billing - Version 1.6.2 (Hickory)] a2billing.php,1: file:Class.A2Billing.php - line:713 - uniqueid:1279055277.2 - get_agi_request_parameter = 5052 ; SIP/5052-00000002 ; 1279055277.2 ; 9734183606 ; 420731137225 a2billing.php,1: file:a2billing.php - line:158 - uniqueid:1279055277.2 - [ANSWER CALL] a2billing.php,1: file:Class.A2Billing.php - line:2565 - uniqueid:1279055277.2 - - Account code ::> 9734183606 a2billing.php,1: file:Class.A2Billing.php - line:2582 - uniqueid:1279055277.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='9734183606' a2billing.php,1: file:Class.A2Billing.php - line:2652 - uniqueid:1279055277.2 - [SET CHANNEL(language) en] a2billing.php,1: file:Class.A2Billing.php - line:2656 - uniqueid:1279055277.2 - [credit=100.00000 :: tariff=2 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en] a2billing.php,1: file:Class.A2Billing.php - line:745 - uniqueid:1279055277.2 - [CARD STATUS UPDATE] a2billing.php,1: file:Class.A2Billing.php - line:754 - uniqueid:1279055277.2 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='9734183606'] a2billing.php,1: file:Class.A2Billing.php - line:2944 - uniqueid:1279055277.2 - [A2Billing] SAY BALANCE : 100.00000 a2billing.php,1: a2billing.php,1: file:Class.A2Billing.php - line:1791 - uniqueid:1279055277.2 - [CURRENCY : EUR] a2billing.php,1: file:Class.A2Billing.php - line:1798 - uniqueid:1279055277.2 - [BEFORE: 100 SPRINTF : 100.00] -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0) -- <SIP/5052-00000002> Playing 'digits/1.ulaw' (language 'en') -- <SIP/5052-00000002> Playing 'digits/hundred.ulaw' (language 'en') -- Playing 'euros' (escape_digits=#) (sample_offset 0) a2billing.php,1: file:a2billing.php - line:174 - uniqueid:1279055277.2 - [TRY : callingcard_ivr_authenticate] a2billing.php,1: file:Class.A2Billing.php - line:2251 - uniqueid:1279055277.2 - [AUTO SetCallerID] a2billing.php,1: file:Class.A2Billing.php - line:2257 - uniqueid:1279055277.2 - [REQUESTED SetCallerID : 5052] a2billing.php,1: file:Class.A2Billing.php - line:2269 - uniqueid:1279055277.2 - [EXEC SetCallerID : 5052] a2billing.php,1: file:a2billing.php - line:189 - uniqueid:1279055277.2 - [CHANNEL STATUS : 6 = Line is up] a2billing.php,1: [CREDIT : 100.00000][CREDIT MIN_CREDIT_2CALL : 0] a2billing.php,1: file:a2billing.php - line:391 - uniqueid:1279055277.2 - TARIFF ID -> 2 a2billing.php,1: file:a2billing.php - line:488 - uniqueid:1279055277.2 - CALL SIP_IAX_BUDDY a2billing.php,1: file:Class.A2Billing.php - line:3396 - uniqueid:1279055277.2 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '420731137225' WHERE username='9734183606']:[result: 1] a2billing.php,1: file:Class.A2Billing.php - line:1075 - uniqueid:1279055277.2 - SIP o IAX DESTINATION : 420731137225 a2billing.php,1: file:Class.A2Billing.php - line:1081 - uniqueid:1279055277.2 - a2billing.php,1: file:Class.A2Billing.php - line:1092 - uniqueid:1279055277.2 - RESULT : -- Playing 'prepaid-sipiax-num-nomatch' (escape_digits=#) (sample_offset 0) a2billing.php,1: file:Class.A2Billing.php - line:745 - uniqueid:1279055277.2 - [CARD STATUS UPDATE] a2billing.php,1: file:Class.A2Billing.php - line:754 - uniqueid:1279055277.2 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='9734183606'] -- <SIP/5052-00000002>AGI Script a2billing.php completed, returning -1
|