From Small Duck, 5 Years ago, written in Plain Text.
- view diff
Embed
  1. 2019-11-13 11:44:40.206907 [INFO] mod_dialplan_xml.c:637 Processing V1131144390000758155 <0000000000>->601325327 in context default
  2. 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')
  3. 2019-11-13 11:44:40.226898 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  4. 2019-11-13 11:44:40.266883 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Dialed number : 601325327
  5. 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
  6. 2019-11-13 11:44:40.266883 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FAXER] in custom Caller ID
  7. 2019-11-13 11:44:40.266883 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Caller Id name / number  : 33541739382 / 33541739382
  8. 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
  9. 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
  10. 2019-11-13 11:44:40.286911 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Call direction : outbound
  11. 2019-11-13 11:44:40.286911 [INFO] switch_cpp.cpp:1443 [ASTPP] [Accountcode : 6963773482]
  12. 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
  13. 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
  14. 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
  15. 2019-11-13 11:44:40.286911 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 601325327
  16. 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
  17. 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
  18. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] New Call direction : outbound
  19. 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
  20. 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
  21. 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
  22. 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Call Barring Status : -1
  23. 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
  24. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] =============== Account Information ===================
  25. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] User id : 47
  26. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Account code : 6963773482
  27. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Balance : 714.1283
  28. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  29. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] Ratecard id : 12
  30. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] CID Pool : 0
  31. 2019-11-13 11:44:40.306909 [INFO] switch_cpp.cpp:1443 [ASTPP] ========================================================
  32. 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
  33. 2019-11-13 11:44:40.306909 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] call_direction :outbound
  34. 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
  35. 2019-11-13 11:44:40.326914 [INFO] switch_cpp.cpp:1443 [ASTPP] call_direction:::::: outbound
  36. 2019-11-13 11:44:40.326914 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FIND_MAXLENGTH] Rates not found!!!
  37. 2019-11-13 11:44:40.326914 [DEBUG] switch_cpp.cpp:1443 [ASTPP] post_cdrs:::0
  38. 2019-11-13 11:44:40.326914 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 47
  39. 2019-11-13 11:44:40.326914 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Generated XML:
  40. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  41. <document type="freeswitch/xml">
  42. <section name="dialplan" description="ASTPP Dialplan">
  43. <context name="default">
  44. <extension name="601325327">
  45. <condition field="destination_number" expression="601325327">
  46. <action application="log" data="WARNING Accountcode . Dialed number (601325327)  origination rates not found!!"/>
  47. <action application="set" data="original_caller_id_name=33541739382"/>
  48. <action application="set" data="original_caller_id_number=33541739382"/>
  49. <action application="set" data="error_cdr=1"/>
  50. <action application="set" data="callstart=2019-11-13 11:44:40"/>
  51. <action application="set" data="account_id=47"/>
  52. <action application="set" data="parent_id=0"/>
  53. <action application="set" data="call_direction=outbound"/>
  54. <action application="set" data="sip_ignore_remote_cause=true"/>
  55. <action application="set" data="call_processed=internal"/>
  56. <action application="set" data="effective_destination_number=601325327"/>
  57. <action application="set" data="last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND"/>
  58. <action application="hangup" data="ORIGNATION_RATE_NOT_FOUND"/>
  59. </condition>
  60. </extension>
  61. </context>
  62. </section>
  63. </document>
  64. Dialplan: sofia/default/9648747439@167.99.240.174:8954 parsing [default->601325327] continue=false
  65. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Regex (PASS) [601325327] destination_number(601325327) =~ /601325327/ break=on-false
  66. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action log(WARNING Accountcode . Dialed number (601325327)  origination rates not found!!)
  67. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(original_caller_id_name=33541739382)
  68. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(original_caller_id_number=33541739382)
  69. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(error_cdr=1)
  70. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(callstart=2019-11-13 11:44:40)
  71. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(account_id=47)
  72. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(parent_id=0)
  73. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(call_direction=outbound)
  74. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(sip_ignore_remote_cause=true)
  75. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(call_processed=internal)
  76. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(effective_destination_number=601325327)
  77. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND)
  78. Dialplan: sofia/default/9648747439@167.99.240.174:8954 Action hangup(ORIGNATION_RATE_NOT_FOUND)
  79. 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
  80. 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
  81. 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)
  82. 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:650 (sofia/default/9648747439@167.99.240.174:8954) State EXECUTE
  83. 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:209 sofia/default/9648747439@167.99.240.174:8954 SOFIA EXECUTE
  84. 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:328 sofia/default/9648747439@167.99.240.174:8954 Standard EXECUTE
  85. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 log(WARNING Accountcode . Dialed number (601325327)  origination rates not found!!)
  86. 2019-11-13 11:44:40.326914 [WARNING] mod_dptools.c:1809 Accountcode . Dialed number (601325327)  origination rates not found!!
  87. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(original_caller_id_name=33541739382)
  88. 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]
  89. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(original_caller_id_number=33541739382)
  90. 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]
  91. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(error_cdr=1)
  92. 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [error_cdr]=[1]
  93. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(callstart=2019-11-13 11:44:40)
  94. 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]
  95. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(account_id=47)
  96. 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [account_id]=[47]
  97. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(parent_id=0)
  98. 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [parent_id]=[0]
  99. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(call_direction=outbound)
  100. 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [call_direction]=[outbound]
  101. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(sip_ignore_remote_cause=true)
  102. 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]
  103. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(call_processed=internal)
  104. 2019-11-13 11:44:40.326914 [DEBUG] mod_dptools.c:1615 SET sofia/default/9648747439@167.99.240.174:8954 [call_processed]=[internal]
  105. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(effective_destination_number=601325327)
  106. 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]
  107. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND)
  108. 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]
  109. EXECUTE [depth=0] sofia/default/9648747439@167.99.240.174:8954 hangup(ORIGNATION_RATE_NOT_FOUND)
  110. 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]
  111. 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)
  112. 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
  113. 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)
  114. 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
  115. 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:849 (sofia/default/9648747439@167.99.240.174:8954) State HANGUP
  116. 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
  117. 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:600 Responding to INVITE with: 480
  118. 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
  119. 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
  120. 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
  121. 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)
  122. 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:935 (sofia/default/9648747439@167.99.240.174:8954) State REPORTING
  123. 2019-11-13 11:44:40.326914 [INFO] mod_json_cdr.c:271 Process [91a20423-010d-4a5e-8749-1c8b58942e8d.cdr.json]
  124. 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
  125. 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
  126. 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
  127. 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
  128. 2019-11-13 11:44:40.326914 [NOTICE] switch_core_session.c:1744 Session 3907860 (sofia/default/9648747439@167.99.240.174:8954) Ended
  129. 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]
  130. 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)
  131. 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:748 (sofia/default/9648747439@167.99.240.174:8954) State DESTROY
  132. 2019-11-13 11:44:40.326914 [DEBUG] mod_sofia.c:365 sofia/default/9648747439@167.99.240.174:8954 SOFIA DESTROY
  133. 2019-11-13 11:44:40.326914 [DEBUG] switch_core_state_machine.c:181 sofia/default/9648747439@167.99.240.174:8954 Standard DESTROY
  134. 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
  135.