Ticket #752 (closed defect: wontfix)

Opened 2 years ago

Last modified 2 years ago

Inbound DID not Working in a2billing.php|1|DID

Reported by: bxboy Assigned to: areski
Priority: critical Milestone:
Component: AGI Version:
Keywords: DID Cc:

Description

Every time i try to call my DID on a2billing it fails. I have freepbx setup to a2billing DeadAGI custom-a2billing,_x.,1 and that context as exten => _x.,1,DeadAGI a2billing.php|1|DID, My DID's are setup in a2billing as well as the destination. The SIP sofphone that I use to call out threw a2billing works on outbound calls. But i still get incoming errors.. Can anyone really help, I have tried to dig up any info and spent almost 3 hours on google looking for solutions non could be found.

attached is the log CLI

[Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:1] Set("SIP/116592923-09fb7ba8", "FROM_DID=4164772848") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:2] Gosub("SIP/116592923-09fb7ba8", "app-blacklist-check|s|1") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:1] LookupBlacklist?("SIP/116592923-09fb7ba8", "") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:2] GotoIf?("SIP/116592923-09fb7ba8", "0?blacklisted") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:3] Set("SIP/116592923-09fb7ba8", "CALLED_BLACKLIST=1") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:4] Return("SIP/116592923-09fb7ba8", "") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:3] ExecIf?("SIP/116592923-09fb7ba8", "0 |Set|CALLERID(name)=4162382913") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:4] SetMusicOnHold?("SIP/116592923-09fb7ba8", "none") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:5] Set("SIP/116592923-09fb7ba8", "MOHCLASS=none") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:6] Set("SIP/116592923-09fb7ba8", "FAX_RX=disabled") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:7] Macro("SIP/116592923-09fb7ba8", "privacy-mgr|") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:1] Set("SIP/116592923-09fb7ba8", "KEEPCID=4162382913") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: Set [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:2] GotoIf?("SIP/116592923-09fb7ba8", "0?CIDTEST2:CIDTEST1") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Goto (macro-privacy-mgr,s,3) [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: GotoIf? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:3] Set("SIP/116592923-09fb7ba8", "TESTCID=4162382914.000000") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: Set [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:4] Goto("SIP/116592923-09fb7ba8", "TESTRESULT") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Goto (macro-privacy-mgr,s,6) [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: Goto [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:6] GotoIf?("SIP/116592923-09fb7ba8", "0?CLEARCID:PRIVMGR") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Goto (macro-privacy-mgr,s,8) [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: GotoIf? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:8] PrivacyManager?("SIP/116592923-09fb7ba8", "") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- CallerID Present: Skipping [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: PrivacyManager? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:9] GotoIf?("SIP/116592923-09fb7ba8", "0?fail") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: GotoIf? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:10] GosubIf?("SIP/116592923-09fb7ba8", "1?app-blacklist-check|s|1") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: GosubIf? [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Incrementing gosub_level [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:1] LookupBlacklist?("SIP/116592923-09fb7ba8", "") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: LookupBlacklist? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:2] GotoIf?("SIP/116592923-09fb7ba8", "0?blacklisted") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: GotoIf? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:3] Set("SIP/116592923-09fb7ba8", "CALLED_BLACKLIST=1") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: Set [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@app-blacklist-check:4] Return("SIP/116592923-09fb7ba8", "") in new stack [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: Return [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Decrementing gosub_level [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [s@macro-privacy-mgr:11] SetCallerPres?("SIP/116592923-09fb7ba8", "allowed_passed_screen") in new stack [Feb 24 22:27:18] NOTICE[14852] pbx_dundi.c: Max retries exceeded to host '216.207.245.34:4520' msg 0 on call 22051 [Feb 24 22:27:18] DEBUG[15809] app_macro.c: Executed application: SetCallerPres? [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [4164772848@from-trunk:8] Goto("SIP/116592923-09fb7ba8", "custom-a2billing-did|_X.|1") in new stack [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Goto (custom-a2billing-did,_X.,1) [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Executing [_X.@custom-a2billing-did:1] DeadAGI("SIP/116592923-09fb7ba8", "a2billing.php|1|did") in new stack [Feb 24 22:27:18] WARNING[15809] res_agi.c: Running DeadAGI on a live channel will cause problems, please use AGI [Feb 24 22:27:18] VERBOSE[15809] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: A2Billing AGI internal configuration: [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: Array [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [debug] => 3 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [asterisk_version] => 1_4 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [answer_call] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [play_audio] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [say_goodbye] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [play_menulanguage] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [force_language] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [min_credit_2call] => 0.00 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [min_duration_2bill] => 0 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [notenoughcredit_cardnumber] => 1 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [notenoughcredit_assign_newcardnumber_cid] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [use_dnid] => 1 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [switch_extension_for_dnid] => 1 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [no_auth_dnid] => Array [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [0] => 2400 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [1] => 2300 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [2] => 422 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [number_try] => 0 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [force_callplan_id] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [say_balance_after_auth] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [say_balance_after_call] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [say_rateinitial] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [say_timetocall] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [auto_setcallerid] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [force_callerid] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_sanitize] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_enable] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_askpincode_ifnot_callerid] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_assign_card_to_cid] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_create_card] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_create_card_len] => 10 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_create_card_typepaid] => PREPAY [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_create_card_credit] => 2.00 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_create_card_credit_limit] => 10 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [cid_auto_create_card_tariffgroup] => 6 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [callerid_authentication_over_cardnumber] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [sip_iax_friends] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [sip_iax_pstn_direct_call_prefix] => 555 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [sip_iax_pstn_direct_call] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [ivr_voucher] => [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [ivr_voucher_prefix] => 8 [Feb 24 22:27:18] VERBOSE[15809] logger.c: a2billing.php|1|did: [jump_voucher_if_min_credit] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [extracharge_did] => Array [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [0] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [extracharge_fee] => Array [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [0] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [switchdialcommand] => 1 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [failover_recursive_limit] => 10 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [maxtime_tocall_negatif_free_route] => 5400 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [send_reminder] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [record_call] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [monitor_formatfile] => gsm [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_force_currency] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [currency_association] => Array [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [0] => usd:dollars [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [1] => mxn:pesos [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [2] => eur:euros [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [3] => all:credit [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [file_conf_enter_destination] => prepaid-enter-dest [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [file_conf_enter_menulang] => prepaid-menulang2 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [callback_bill_1stleg_ifcall_notconnected] => 1 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [logger_enable] => 1 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [log_file] => /tmp/a2billing.log [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [currency_association_internal] => Array [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [usd] => dollars [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [mxn] => pesos [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [eur] => euros [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [all] => credit [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [ivr_voucher_prefixe] => 8 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:75 - IDCONFIG : 1 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:76 - MODE : did [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:88 - AGI Request: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:89 - Array [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ( [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_request] => a2billing.php [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_channel] => SIP/116592923-09fb7ba8 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_language] => en [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_type] => SIP [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_uniqueid] => 1267068438.43 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_callerid] => 4162382913 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_calleridname] => D WASHINGTON [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_callingpres] => 1 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_callingani2] => 0 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_callington] => 0 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_callingtns] => 0 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_dnid] => 4164772848 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_rdnis] => unknown [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_context] => custom-a2billing-did [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_extension] => _X. [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_priority] => 1 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_enhanced] => 0.0 [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [agi_accountcode] => [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: ) [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 4162382913 ; SIP/116592923-09fb7ba8 ; 1267068438.43 ; ; _X. [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:331 - [NO ANSWER CALL] [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:343 - [DID CALL - [CallerID=4162382913]:[DID=_X.] [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:351 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='_X.' 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') ORDER BY priority ASC [Feb 24 22:27:19] VERBOSE[15809] logger.c: a2billing.php|1|did: file:a2billing.php - line:353 - 0 [Feb 24 22:27:19] VERBOSE[15809] logger.c: -- AGI Script a2billing.php completed, returning 0

Change History

04/08/10 16:23:05 changed by areski

  • status changed from new to closed.
  • resolution set to wontfix.

please use the forum for question

Yours, Areski