From Aydin, 4 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and Untitled
  1. span style="color: goldenrod; font-weight: bold;"> 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  2. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  3. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] blind_flag: 0
  4. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Dialed number : 0046650553727
  5. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0046650553727' limit 1
  6. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0046650553727' AND status=0 limit 1
  7. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0046650553727' and status=0 LIMIT 1
  8. 2020-03-04 13:51:07.157708 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FAXER] in custom Caller ID
  9. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Caller Id name / number  : test1 / 100
  10. 2020-03-04 13:51:07.157708 [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 ="0046650553727" LIMIT 1
  11. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="0046650553727"  AND domains.domain="51.81.232.34" limit 1
  12. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Call direction : outbound
  13. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Accountcode : 5240977847]
  14. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "5240977847" AND deleted = 0 limit 1
  15. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0046650553727.*' OR blocked_patterns = '^004665055372.*' OR blocked_patterns = '^00466505537.*' OR blocked_patterns = '^0046650553.*' OR blocked_patterns = '^004665055.*' OR blocked_patterns = '^00466505.*' OR blocked_patterns = '^0046650.*' OR blocked_patterns = '^004665.*' OR blocked_patterns = '^00466.*' OR blocked_patterns = '^0046.*' OR blocked_patterns = '^004.*' OR blocked_patterns = '^00.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 4 limit 1
  16. 2020-03-04 13:51:07.157708 [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 ="0046650553727" AND A.accountid = '4' limit 1
  17. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0046650553727
  18. 2020-03-04 13:51:07.157708 [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 ="0046650553727" LIMIT 1
  19. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="0046650553727"  AND domains.domain="51.81.232.34" limit 1
  20. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] New Call direction : outbound
  21. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0046650553727" AND (accountid = 0 OR status = 1) LIMIT 1
  22. 2020-03-04 13:51:07.157708 [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 = '^0046650553727.*' OR patterns = '^004665055372.*' OR patterns = '^00466505537.*' OR patterns = '^0046650553.*' OR patterns = '^004665055.*' OR patterns = '^00466505.*' OR patterns = '^0046650.*' OR patterns = '^004665.*' OR patterns = '^00466.*' OR patterns = '^0046.*' OR patterns = '^004.*' OR patterns = '^00.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
  23. 2020-03-04 13:51:07.157708 [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 = '0046650553727' OR number = '004665055372' OR number = '00466505537' OR number = '0046650553' OR number = '004665055' OR number = '00466505' OR number = '0046650' OR number = '004665' OR number = '00466' OR number = '0046' OR number = '004' OR number = '00' OR number = '0' OR number ='--') OR (number = '0046650553727*' OR number = '004665055372*' OR number = '00466505537*' OR number = '0046650553*' OR number = '004665055*' OR number = '00466505*' OR number = '0046650*' OR number = '004665*' OR number = '00466*' OR number = '0046*' OR number = '004*' OR number = '00*' OR number = '0*' OR number ='--') OR (number = '100' OR number = '10' OR number = '1' OR number ='--') OR (number = '100*' OR number = '10*' OR number = '1*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  24. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Call Barring Status : -1
  25. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0046650553727' OR routing_prefix = '004665055372' OR routing_prefix = '00466505537' OR routing_prefix = '0046650553' OR routing_prefix = '004665055' OR routing_prefix = '00466505' OR routing_prefix = '0046650' OR routing_prefix = '004665' OR routing_prefix = '00466' OR routing_prefix = '0046' OR routing_prefix = '004' OR routing_prefix = '00' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  26. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] =============== Account Information ===================
  27. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] User id : 4
  28. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Account code : 5240977847
  29. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Balance : 97
  30. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  31. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] Ratecard id : 1
  32. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] CID Pool : 0
  33. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] ========================================================
  34. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  35. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] call_direction :outbound
  36. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0046650553727.*' OR pattern = '^004665055372.*' OR pattern = '^00466505537.*' OR pattern = '^0046650553.*' OR pattern = '^004665055.*' OR pattern = '^00466505.*' OR pattern = '^0046650.*' OR pattern = '^004665.*' OR pattern = '^00466.*' OR pattern = '^0046.*' OR pattern = '^004.*' OR pattern = '^00.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=4)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  37. 2020-03-04 13:51:07.157708 [INFO] switch_cpp.cpp:1443 [ASTPP] call_direction:::::: outbound
  38. 2020-03-04 13:51:07.157708 [WARNING] switch_cpp.cpp:1443 [ASTPP] [FIND_MAXLENGTH] Rates not found!!!
  39. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] post_cdrs:::0
  40. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 4
  41. 2020-03-04 13:51:07.157708 [DEBUG] switch_cpp.cpp:1443 [ASTPP] Generated XML:
  42. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  43. <document type="freeswitch/xml">
  44. <section name="dialplan" description="ASTPP Dialplan">
  45. <context name="default">
  46. <extension name="0046650553727">
  47. <condition field="destination_number" expression="0046650553727">
  48. <action application="log" data="WARNING Accountcode . Dialed number (0046650553727)  origination rates not found!!"/>
  49. <action application="set" data="original_caller_id_name=test1"/>
  50. <action application="set" data="original_caller_id_number=test1"/>
  51. <action application="set" data="error_cdr=1"/>
  52. <action application="set" data="callstart=2020-03-04 21:51:07"/>
  53. <action application="set" data="account_id=4"/>
  54. <action application="set" data="parent_id=0"/>
  55. <action application="set" data="call_direction=outbound"/>
  56. <action application="set" data="sip_ignore_remote_cause=true"/>
  57. <action application="set" data="call_processed=internal"/>
  58. <action application="set" data="effective_destination_number=0046650553727"/>
  59. <action application="set" data="last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND"/>
  60. <action application="hangup" data="ORIGNATION_RATE_NOT_FOUND"/>
  61. </condition>
  62. </extension>
  63. </context>
  64. </section>
  65. </document>
  66. Dialplan: sofia/default/100@51.81.232.34 parsing [default->0046650553727] continue=false
  67. Dialplan: sofia/default/100@51.81.232.34 Regex (PASS) [0046650553727] destination_number(0046650553727) =~ /0046650553727/ break=on-false
  68. Dialplan: sofia/default/100@51.81.232.34 Action log(WARNING Accountcode . Dialed number (0046650553727)  origination rates not found!!)
  69. Dialplan: sofia/default/100@51.81.232.34 Action set(original_caller_id_name=test1)
  70. Dialplan: sofia/default/100@51.81.232.34 Action set(original_caller_id_number=test1)
  71. Dialplan: sofia/default/100@51.81.232.34 Action set(error_cdr=1)
  72. Dialplan: sofia/default/100@51.81.232.34 Action set(callstart=2020-03-04 21:51:07)
  73. Dialplan: sofia/default/100@51.81.232.34 Action set(account_id=4)
  74. Dialplan: sofia/default/100@51.81.232.34 Action set(parent_id=0)
  75. Dialplan: sofia/default/100@51.81.232.34 Action set(call_direction=outbound)
  76. Dialplan: sofia/default/100@51.81.232.34 Action set(sip_ignore_remote_cause=true)
  77. Dialplan: sofia/default/100@51.81.232.34 Action set(call_processed=internal)
  78. Dialplan: sofia/default/100@51.81.232.34 Action set(effective_destination_number=0046650553727)
  79. Dialplan: sofia/default/100@51.81.232.34 Action set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND)
  80. Dialplan: sofia/default/100@51.81.232.34 Action hangup(ORIGNATION_RATE_NOT_FOUND)
  81. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:287 (sofia/default/100@51.81.232.34) State Change CS_ROUTING -> CS_EXECUTE
  82. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:644 (sofia/default/100@51.81.232.34) State ROUTING going to sleep
  83. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@51.81.232.34) Running State Change CS_EXECUTE (Cur 1 Tot 868)
  84. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:651 (sofia/default/100@51.81.232.34) State EXECUTE
  85. 2020-03-04 13:51:07.157708 [DEBUG] mod_sofia.c:209 sofia/default/100@51.81.232.34 SOFIA EXECUTE
  86. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:329 sofia/default/100@51.81.232.34 Standard EXECUTE
  87. EXECUTE [depth=0] sofia/default/100@51.81.232.34 log(WARNING Accountcode . Dialed number (0046650553727)  origination rates not found!!)
  88. 2020-03-04 13:51:07.157708 [WARNING] mod_dptools.c:1866 Accountcode . Dialed number (0046650553727)  origination rates not found!!
  89. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(original_caller_id_name=test1)
  90. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [original_caller_id_name]=[test1]
  91. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(original_caller_id_number=test1)
  92. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [original_caller_id_number]=[test1]
  93. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(error_cdr=1)
  94. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [error_cdr]=[1]
  95. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(callstart=2020-03-04 21:51:07)
  96. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [callstart]=[2020-03-04 21:51:07]
  97. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(account_id=4)
  98. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [account_id]=[4]
  99. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(parent_id=0)
  100. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [parent_id]=[0]
  101. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(call_direction=outbound)
  102. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [call_direction]=[outbound]
  103. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(sip_ignore_remote_cause=true)
  104. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [sip_ignore_remote_cause]=[true]
  105. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(call_processed=internal)
  106. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [call_processed]=[internal]
  107. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(effective_destination_number=0046650553727)
  108. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [effective_destination_number]=[0046650553727]
  109. EXECUTE [depth=0] sofia/default/100@51.81.232.34 set(last_bridge_hangup_cause=ORIGNATION_RATE_NOT_FOUND)
  110. 2020-03-04 13:51:07.157708 [DEBUG] mod_dptools.c:1672 SET sofia/default/100@51.81.232.34 [last_bridge_hangup_cause]=[ORIGNATION_RATE_NOT_FOUND]
  111. EXECUTE [depth=0] sofia/default/100@51.81.232.34 hangup(ORIGNATION_RATE_NOT_FOUND)
  112. 2020-03-04 13:51:07.157708 [NOTICE] mod_dptools.c:1380 Hangup sofia/default/100@51.81.232.34 [CS_EXECUTE] [NORMAL_CLEARING]
  113. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_session.c:2905 sofia/default/100@51.81.232.34 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  114. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:651 (sofia/default/100@51.81.232.34) State EXECUTE going to sleep
  115. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@51.81.232.34) Running State Change CS_HANGUP (Cur 1 Tot 868)
  116. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:848 (sofia/default/100@51.81.232.34) Callstate Change RINGING -> HANGUP
  117. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:850 (sofia/default/100@51.81.232.34) State HANGUP
  118. 2020-03-04 13:51:07.157708 [DEBUG] mod_sofia.c:453 Channel sofia/default/100@51.81.232.34 hanging up, cause: NORMAL_CLEARING
  119. 2020-03-04 13:51:07.157708 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 480
  120. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:60 sofia/default/100@51.81.232.34 Standard HANGUP, cause: NORMAL_CLEARING
  121. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:850 (sofia/default/100@51.81.232.34) State HANGUP going to sleep
  122. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:620 (sofia/default/100@51.81.232.34) State Change CS_HANGUP -> CS_REPORTING
  123. 2020-03-04 13:51:07.157708 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@51.81.232.34) Running State Change CS_REPORTING (Cur 1 Tot 868)
  124.