2019-11-13 11:44:40.206907 [INFO] mod_dialplan_xml.c:637 Processing V1131144390000758155 <0000000000>->601325327 in context default 2019-11-13 11:44:40.206907 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2019-11-13 11:44:40.226898 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2019-11-13 11:44:40.266883 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Dialed number : 601325327 2019-11-13 11:44:40.266883 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '601325327' AND status=0 limit 1 2019-11-13 11:44:40.266883 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FAXER] in custom Caller ID 2019-11-13 11:44:40.266883 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Caller Id name / number : 33541739382 / 33541739382 2019-11-13 11:44:40.266883 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="601325327" LIMIT 1 2019-11-13 11:44:40.286911 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="601325327" limit 1 2019-11-13 11:44:40.286911 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Call direction : outbound 2019-11-13 11:44:40.286911 [INFO] switch_cpp.cpp:1443 [ASTPP] [Accountcode : 6963773482] 2019-11-13 11:44:40.286911 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "6963773482" AND deleted = 0 limit 1 2019-11-13 11:44:40.286911 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^601325327.*' OR blocked_patterns = '^60132532.*' OR blocked_patterns = '^6013253.*' OR blocked_patterns = '^601325.*' OR blocked_patterns = '^60132.*' OR blocked_patterns = '^6013.*' OR blocked_patterns = '^601.*' OR blocked_patterns = '^60.*' OR blocked_patterns = '^6.*' OR blocked_patterns ='--') AND accountid = 47 limit 1 2019-11-13 11:44:40.286911 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="601325327" AND A.accountid = '47' limit 1 2019-11-13 11:44:40.286911 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 601325327 2019-11-13 11:44:40.286911 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="601325327" LIMIT 1 2019-11-13 11:44:40.286911 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="601325327" limit 1 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] New Call direction : outbound 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="601325327" AND (accountid = 0 OR status = 1) LIMIT 1 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^601325327.*' OR patterns = '^60132532.*' OR patterns = '^6013253.*' OR patterns = '^601325.*' OR patterns = '^60132.*' OR patterns = '^6013.*' OR patterns = '^601.*' OR patterns = '^60.*' OR patterns = '^6.*' OR patterns ='--') AND accountid = 47 ORDER BY LENGTH(PKGPTR.patterns) DESC 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '601325327' OR number = '60132532' OR number = '6013253' OR number = '601325' OR number = '60132' OR number = '6013' OR number = '601' OR number = '60' OR number = '6' OR number ='--') OR (number = '601325327*' OR number = '60132532*' OR number = '6013253*' OR number = '601325*' OR number = '60132*' OR number = '6013*' OR number = '601*' OR number = '60*' OR number = '6*' OR number ='--') OR (number = '33541739382' OR number = '3354173938' OR number = '335417393' OR number = '33541739' OR number = '3354173' OR number = '335417' OR number = '33541' OR number = '3354' OR number = '335' OR number = '33' OR number = '3' OR number ='--') OR (number = '33541739382*' OR number = '3354173938*' OR number = '335417393*' OR number = '33541739*' OR number = '3354173*' OR number = '335417*' OR number = '33541*' OR number = '3354*' OR number = '335*' OR number = '33*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Call Barring Status : -1 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '601325327' OR routing_prefix = '60132532' OR routing_prefix = '6013253' OR routing_prefix = '601325' OR routing_prefix = '60132' OR routing_prefix = '6013' OR routing_prefix = '601' OR routing_prefix = '60' OR routing_prefix = '6' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] =============== Account Information =================== 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] User id : 47 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Account code : 6963773482 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Balance : 714.1283 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Ratecard id : 12 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] CID Pool : 0 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] ======================================================== 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 12 AND status = 0 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] call_direction :outbound 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^601325327.*' OR pattern = '^60132532.*' OR pattern = '^6013253.*' OR pattern = '^601325.*' OR pattern = '^60132.*' OR pattern = '^6013.*' OR pattern = '^601.*' OR pattern = '^60.*' OR pattern = '^6.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 12 OR accountid=47) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2019-11-13 11:44:40.326914 [INFO] switch_cpp.cpp:1443 [ASTPP] call_direction:::::: outbound 2019-11-13 11:44:40.326914 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FIND_MAXLENGTH] Rates not found!!! 2019-11-13 11:44:40.326914 [DEBUG] switch_cpp.cpp:1443 [ASTPP] post_cdrs:::0 2019-11-13 11:44:40.326914 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 47 2019-11-13 11:44:40.326914 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Generated XML:
Dialplan: sofia/default/9648747439@167.99.240.174:8954 parsing [default->601325327] continue=false Dialplan: sofia/default/9648747439@167.99.240.174:8954 Regex (PASS) [601325327] destination_number(601325327) =~ /601325327/ break=on-false Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action log(WARNING Accountcode . Dialed number (601325327) origination rates not found!!) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(original_caller_id_name=33541739382) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(original_caller_id_number=33541739382) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(error_cdr=1) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(callstart=2019-11-13 11:44:40) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(account_id=47) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(parent_id=0) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(call_direction=outbound) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(sip_ignore_remote_cause=true) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(call_processed=internal) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(effective_destination_number=601325327) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND) Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action hangup(ORIGNATION_RATE_NOT_FOUND) 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:286 (sofia/default/9648747439@167.99.240.174:8954) State Change CS_ROUTING -> CS_EXECUTE 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:643 (sofia/default/9648747439@167.99.240.174:8954) State ROUTING going to sleep 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9648747439@167.99.240.174:8954) Running State Change CS_EXECUTE (Cur 24 Tot 3907860) 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:650 (sofia/default/9648747439@167.99.240.174:8954) State EXECUTE 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:209 sofia/default/9648747439@167.99.240.174:8954 SOFIA EXECUTE 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:328 sofia/default/9648747439@167.99.240.174:8954 Standard EXECUTE EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 log(WARNING Accountcode . Dialed number (601325327) origination rates not found!!) 2019-11-13 11:44:40.326914 [WARNING] mod_dptools.c:1809 Accountcode . Dialed number (601325327) origination rates not found!! EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(original_caller_id_name=33541739382) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [original_caller_id_name]=[33541739382] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(original_caller_id_number=33541739382) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [original_caller_id_number]=[33541739382] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(error_cdr=1) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [error_cdr]=[1] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(callstart=2019-11-13 11:44:40) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [callstart]=[2019-11-13 11:44:40] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(account_id=47) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [account_id]=[47] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(parent_id=0) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [parent_id]=[0] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(call_direction=outbound) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [call_direction]=[outbound] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(sip_ignore_remote_cause=true) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [sip_ignore_remote_cause]=[true] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(call_processed=internal) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [call_processed]=[internal] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(effective_destination_number=601325327) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [effective_destination_number]=[601325327] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND) 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [last_bridge_hangup_cause]=[ORIGNATION_RATE_NOT_FOUND] EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 hangup(ORIGNATION_RATE_NOT_FOUND) 2019-11-13 11:44:40.326914 [NOTICE] mod_dptools.c:1351 Hangup sofia/default/9648747439@167.99.240.174:8954 [CS_EXECUTE] [NORMAL_CLEARING] 2019-11-13 11:44:40.326914 [DEBUG] switch_core_session.c:2905 sofia/default/9648747439@167.99.240.174:8954 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:650 (sofia/default/9648747439@167.99.240.174:8954) State EXECUTE going to sleep 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9648747439@167.99.240.174:8954) Running State Change CS_HANGUP (Cur 24 Tot 3907860) 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:847 (sofia/default/9648747439@167.99.240.174:8954) Callstate Change RINGING -> HANGUP 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:849 (sofia/default/9648747439@167.99.240.174:8954) State HANGUP 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:460 Channel sofia/default/9648747439@167.99.240.174:8954 hanging up, cause: NORMAL_CLEARING 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:600 Responding to INVITE with: 480 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:60 sofia/default/9648747439@167.99.240.174:8954 Standard HANGUP, cause: NORMAL_CLEARING 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:849 (sofia/default/9648747439@167.99.240.174:8954) State HANGUP going to sleep 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:619 (sofia/default/9648747439@167.99.240.174:8954) State Change CS_HANGUP -> CS_REPORTING 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9648747439@167.99.240.174:8954) Running State Change CS_REPORTING (Cur 24 Tot 3907860) 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:935 (sofia/default/9648747439@167.99.240.174:8954) State REPORTING 2019-11-13 11:44:40.326914 [INFO] mod_json_cdr.c:271 Process [91a20423-010d-4a5e-8749-1c8b58942e8d.cdr.json] 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:174 sofia/default/9648747439@167.99.240.174:8954 Standard REPORTING, cause: NORMAL_CLEARING 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:935 (sofia/default/9648747439@167.99.240.174:8954) State REPORTING going to sleep 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:610 (sofia/default/9648747439@167.99.240.174:8954) State Change CS_REPORTING -> CS_DESTROY 2019-11-13 11:44:40.326914 [DEBUG] switch_core_session.c:1726 Session 3907860 (sofia/default/9648747439@167.99.240.174:8954) Locked, Waiting on external entities 2019-11-13 11:44:40.326914 [NOTICE] switch_core_session.c:1744 Session 3907860 (sofia/default/9648747439@167.99.240.174:8954) Ended 2019-11-13 11:44:40.326914 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/9648747439@167.99.240.174:8954 [CS_DESTROY] 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:738 (sofia/default/9648747439@167.99.240.174:8954) Running State Change CS_DESTROY (Cur 23 Tot 3907860) 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:748 (sofia/default/9648747439@167.99.240.174:8954) State DESTROY 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:365 sofia/default/9648747439@167.99.240.174:8954 SOFIA DESTROY 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:181 sofia/default/9648747439@167.99.240.174:8954 Standard DESTROY 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:748 (sofia/default/9648747439@167.99.240.174:8954) State DESTROY going to sleep