From Palak, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: green; font-weight: bold;"> 2022-03-22 12:51:50.772260 [INFO] mod_dialplan_xml.c:637 Processing 3100554932 <3100554932>->0546322423 in context default
  2. 2022-03-22 12:51:50.772260 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f0c2c21e870 Connected.
  3. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  4. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  5. 2022-03-22 12:51:50.772260 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  6. 2022-03-22 12:51:50.772260 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0546322423
  7. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0546322423' limit 1
  8. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0546322423' AND status=0 limit 1
  9. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE domain = 'test1516.newsip.israelnumber.com' limit 1
  10. 2022-03-22 12:51:50.772260 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0546322423' and account_id = '1705' and status=0 LIMIT 1
  11. 2022-03-22 12:51:50.792161 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] in custom Caller ID
  12. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 3100554932 / 3100554932
  13. 2022-03-22 12:51:50.792161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] DID global translation id: 13
  14. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 13 AND status=0 limit 1
  15. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  16. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  17. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  18. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  19. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  20. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  21. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  22. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  23. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  24. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  25. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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.buy_minutes,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 ="0546322423" LIMIT 1
  26. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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="0546322423"  AND domains.domain="test1516.newsip.israelnumber.com" limit 1
  27. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  28. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 857718010283]
  29. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "857718010283" AND deleted = 0 limit 1
  30. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0546322423.*' OR blocked_patterns = '^054632242.*' OR blocked_patterns = '^05463224.*' OR blocked_patterns = '^0546322.*' OR blocked_patterns = '^054632.*' OR blocked_patterns = '^05463.*' OR blocked_patterns = '^0546.*' OR blocked_patterns = '^054.*' OR blocked_patterns = '^05.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 1705 limit 1
  31. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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 ="0546322423" AND A.accountid = '1705' limit 1
  32. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0546322423
  33. 2022-03-22 12:51:50.792161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] DID global translation id: 13
  34. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 13 AND status=0 limit 1
  35. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  36. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  37. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  38. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  39. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  40. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  41. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  42. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  43. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  44. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  45. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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.buy_minutes,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 ="0546322423" LIMIT 1
  46. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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="0546322423"  AND domains.domain="test1516.newsip.israelnumber.com" limit 1
  47. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call direction : outbound
  48. 2022-03-22 12:51:50.792161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] DID global translation id: 13
  49. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 13 AND status=0 limit 1
  50. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  51. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  52. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  53. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  54. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  55. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  56. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  57. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  58. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  59. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+/*,039/97239,073/97273,09/9729,037/97237,02/9722,04/9724,035/97235,036/97236,077/97277".....0546322423
  60. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0546322423" AND (accountid = 0 OR status = 1) LIMIT 1
  61. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [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 = '^0546322423.*' OR patterns = '^054632242.*' OR patterns = '^05463224.*' OR patterns = '^0546322.*' OR patterns = '^054632.*' OR patterns = '^05463.*' OR patterns = '^0546.*' OR patterns = '^054.*' OR patterns = '^05.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 1705 ORDER BY LENGTH(PKGPTR.patterns) DESC
  62. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0546322423' OR number = '054632242' OR number = '05463224' OR number = '0546322' OR number = '054632' OR number = '05463' OR number = '0546' OR number = '054' OR number = '05' OR number = '0' OR number ='--') OR (number = '0546322423*' OR number = '054632242*' OR number = '05463224*' OR number = '0546322*' OR number = '054632*' OR number = '05463*' OR number = '0546*' OR number = '054*' OR number = '05*' OR number = '0*' OR number ='--') OR (number = '3100554932' OR number = '310055493' OR number = '31005549' OR number = '3100554' OR number = '310055' OR number = '31005' OR number = '3100' OR number = '310' OR number = '31' OR number = '3' OR number ='--') OR (number = '3100554932*' OR number = '310055493*' OR number = '31005549*' OR number = '3100554*' OR number = '310055*' OR number = '31005*' OR number = '3100*' OR number = '310*' OR number = '31*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  63. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  64. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0546322423' OR routing_prefix = '054632242' OR routing_prefix = '05463224' OR routing_prefix = '0546322' OR routing_prefix = '054632' OR routing_prefix = '05463' OR routing_prefix = '0546' OR routing_prefix = '054' OR routing_prefix = '05' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  65. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  66. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 1705
  67. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 857718010283
  68. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10.85998
  69. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  70. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 29
  71. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  72. 2022-03-22 12:51:50.792161 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  73. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 29 AND status = 0
  74. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  75. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 29 AND status = 0
  76. 2022-03-22 12:51:50.792161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0546322423.*' OR pattern = '^054632242.*' OR pattern = '^05463224.*' OR pattern = '^0546322.*' OR pattern = '^054632.*' OR pattern = '^05463.*' OR pattern = '^0546.*' OR pattern = '^054.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 29 OR accountid=1705)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  77. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction:::::: outbound
  78. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  79. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 15570859
  80. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  81. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  82. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.04000
  83. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : Israel Mobile
  84. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  85. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 1705
  86. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID:
  87. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  88. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  89. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10.85998 balance Accountid 1705 !!!
  90. 2022-03-22 12:51:50.816596 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 180 mins!
  91. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE ID 1705
  92. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE RATE 0.04000
  93. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE PROVIDER 0
  94. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE CONNECT COST 0.00000
  95. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE INITIAL INC 30
  96. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] NIBBLE INC 10
  97. 2022-03-22 12:51:50.816596 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 180 minutes
  98. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id  :
  99. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=29 ORDER by id asc
  100. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^0546322423.*' OR pattern = '^054632242.*' OR pattern = '^05463224.*' OR pattern = '^0546322.*' OR pattern = '^054632.*' OR pattern = '^05463.*' OR pattern = '^0546.*' OR pattern = '^054.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (15) ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence
  101. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [HYBRID_ROUTING]LCR with Cost in 2nd stage
  102. 2022-03-22 12:51:50.816596 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Dialplan] No termination rates found...!!!
  103. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] post_cdrs:::0
  104. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 1705
  105. 2022-03-22 12:51:50.816596 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
  106. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  107. <document type="freeswitch/xml">
  108. <section name="dialplan" description="ASTPP Dialplan">
  109. <context name="default">
  110. <extension name="0546322423">
  111. <condition field="destination_number" expression="0546322423">
  112. <action application="log" data="WARNING Accountcode . Dialed number (0546322423) termination rates not found!!"/>
  113. <action application="set" data="original_caller_id_name=3100554932"/>
  114. <action application="set" data="original_caller_id_number=3100554932"/>
  115. <action application="set" data="error_cdr=1"/>
  116. <action application="set" data="callstart=2022-03-22 10:51:50"/>
  117. <action application="set" data="account_id=1705"/>
  118. <action application="set" data="parent_id=0"/>
  119. <action application="set" data="call_direction=outbound"/>
  120. <action application="set" data="sip_ignore_remote_cause=true"/>
  121. <action application="set" data="call_processed=internal"/>
  122. <action application="set" data="effective_destination_number=0546322423"/>
  123. <action application="set" data="last_bridge_hangup_cause=TERMINATION_RATE_NOT_FOUND"/>
  124. <action application="hangup" data="TERMINATION_RATE_NOT_FOUND"/>
  125. </condition>
  126. </extension>
  127. </context>
  128. </section>
  129. </document>
  130. 2022-03-22 12:51:50.816596 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f0c2c21e870 released.
  131. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com parsing [default->0546322423] continue=false
  132. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Regex (PASS) [0546322423] destination_number(0546322423) =~ /0546322423/ break=on-false
  133. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action log(WARNING Accountcode . Dialed number (0546322423) termination rates not found!!)
  134. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(original_caller_id_name=3100554932)
  135. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(original_caller_id_number=3100554932)
  136. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(error_cdr=1)
  137. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(callstart=2022-03-22 10:51:50)
  138. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(account_id=1705)
  139. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(parent_id=0)
  140. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(call_direction=outbound)
  141. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(sip_ignore_remote_cause=true)
  142. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(call_processed=internal)
  143. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(effective_destination_number=0546322423)
  144. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action set(last_bridge_hangup_cause=TERMINATION_RATE_NOT_FOUND)
  145. Dialplan: sofia/default/3100554932@test1516.newsip.israelnumber.com Action hangup(TERMINATION_RATE_NOT_FOUND)
  146. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:286 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State Change CS_ROUTING -> CS_EXECUTE
  147. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:643 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State ROUTING going to sleep
  148. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_EXECUTE (Cur 5 Tot 101711)
  149. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:650 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State EXECUTE
  150. 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:198 sofia/default/3100554932@test1516.newsip.israelnumber.com SOFIA EXECUTE
  151. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:328 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard EXECUTE
  152. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com log(WARNING Accountcode . Dialed number (0546322423) termination rates not found!!)
  153. 2022-03-22 12:51:50.816596 [WARNING] mod_dptools.c:1742 Accountcode . Dialed number (0546322423) termination rates not found!!
  154. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(original_caller_id_name=3100554932)
  155. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [original_caller_id_name]=[3100554932]
  156. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(original_caller_id_number=3100554932)
  157. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [original_caller_id_number]=[3100554932]
  158. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(error_cdr=1)
  159. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [error_cdr]=[1]
  160. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(callstart=2022-03-22 10:51:50)
  161. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [callstart]=[2022-03-22 10:51:50]
  162. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(account_id=1705)
  163. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [account_id]=[1705]
  164. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(parent_id=0)
  165. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [parent_id]=[0]
  166. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(call_direction=outbound)
  167. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [call_direction]=[outbound]
  168. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(sip_ignore_remote_cause=true)
  169. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [sip_ignore_remote_cause]=[true]
  170. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(call_processed=internal)
  171. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [call_processed]=[internal]
  172. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(effective_destination_number=0546322423)
  173. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [effective_destination_number]=[0546322423]
  174. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com set(last_bridge_hangup_cause=TERMINATION_RATE_NOT_FOUND)
  175. 2022-03-22 12:51:50.816596 [DEBUG] mod_dptools.c:1548 SET sofia/default/3100554932@test1516.newsip.israelnumber.com [last_bridge_hangup_cause]=[TERMINATION_RATE_NOT_FOUND]
  176. EXECUTE sofia/default/3100554932@test1516.newsip.israelnumber.com hangup(TERMINATION_RATE_NOT_FOUND)
  177. 2022-03-22 12:51:50.816596 [NOTICE] mod_dptools.c:1286 Hangup sofia/default/3100554932@test1516.newsip.israelnumber.com [CS_EXECUTE] [NORMAL_CLEARING]
  178. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_session.c:2815 sofia/default/3100554932@test1516.newsip.israelnumber.com skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  179. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:650 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State EXECUTE going to sleep
  180. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_HANGUP (Cur 5 Tot 101711)
  181. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:850 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Callstate Change RINGING -> HANGUP
  182. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State HANGUP
  183. 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:438 Channel sofia/default/3100554932@test1516.newsip.israelnumber.com hanging up, cause: NORMAL_CLEARING
  184. 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480
  185. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:60 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard HANGUP, cause: NORMAL_CLEARING
  186. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State HANGUP going to sleep
  187. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:619 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State Change CS_HANGUP -> CS_REPORTING
  188. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_REPORTING (Cur 5 Tot 101711)
  189. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State REPORTING
  190. 2022-03-22 12:51:50.816596 [INFO] mod_json_cdr.c:271 Process [1421492a-a9ce-11ec-84c4-a5a96182c7f9.cdr.json]
  191. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:174 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard REPORTING, cause: NORMAL_CLEARING
  192. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State REPORTING going to sleep
  193. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:610 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State Change CS_REPORTING -> CS_DESTROY
  194. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_session.c:1665 Session 101711 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Locked, Waiting on external entities
  195. 2022-03-22 12:51:50.816596 [NOTICE] switch_core_session.c:1683 Session 101711 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Ended
  196. 2022-03-22 12:51:50.816596 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/3100554932@test1516.newsip.israelnumber.com [CS_DESTROY]
  197. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:741 (sofia/default/3100554932@test1516.newsip.israelnumber.com) Running State Change CS_DESTROY (Cur 4 Tot 101711)
  198. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State DESTROY
  199. 2022-03-22 12:51:50.816596 [DEBUG] mod_sofia.c:343 sofia/default/3100554932@test1516.newsip.israelnumber.com SOFIA DESTROY
  200. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:181 sofia/default/3100554932@test1516.newsip.israelnumber.com Standard DESTROY
  201. 2022-03-22 12:51:50.816596 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3100554932@test1516.newsip.israelnumber.com) State DESTROY going to sleep
  202. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:695 Received request via SESSION_HEARTBEAT!
  203. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.00000 per minute to account 1853
  204. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:573 79 seconds passed since last bill time of 2022-03-22 12:50:34
  205. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:590 Billing $0.000000 to 1853 (Call: e6609f0e-a9cd-11ec-8468-a5a96182c7f9 / 0.000000 so far)
  206. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:395 Doing update query
  207. [UPDATE accounts SET balance=balance- 0.000000 WHERE id='1853']
  208. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:422 Doing lookup query
  209. [SELECT if(allow_negative_balance=0,negative_balance+balance,balance) AS nibble_balance FROM accounts WHERE id='1853']
  210. 2022-03-22 12:51:54.272170 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 1853 (balance = 5.000000)
  211. 2022-03-22 12:52:00.992182 [NOTICE] switch_channel.c:1104 New Channel sofia/default/33618853545@46.19.210.14 [1a396b94-a9ce-11ec-84d3-a5a96182c7f9]
  212. 2022-03-22 12:52:00.992182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/33618853545@46.19.210.14) Running State Change CS_NEW (Cur 5 Tot 101712)
  213. 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:9873 sofia/default/33618853545@46.19.210.14 receiving invite from 136.243.196.198:5060 version: 1.6.20  64bit
  214. 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:9989 IP 136.243.196.198 Approved by acl "default[]". Access Granted.
  215. 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:7084 Channel sofia/default/33618853545@46.19.210.14 entering state [received][100]
  216. 2022-03-22 12:52:00.992182 [DEBUG] sofia.c:7094 Remote SDP:
  217. v=0
  218. o=didww-sbc 31083 5365 IN IP4 46.19.210.39
  219. s=didww-sbc
  220. t=0 0
  221. m=audio 43844 RTP/AVP 0 8 18 4 101
  222. c=IN IP4 46.19.210.39
  223. a=rtpmap:0 PCMU/8000
  224. a=rtpmap:8 PCMA/8000
  225. a=rtpmap:18 G729/8000