From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2022-01-25 13:33:57.999581 98.60% [NOTICE] switch_channel.c:1123 New Channel sofia/default/+1604785422@46.101.114.158 [c223baab-3a3a-4464-973e-1478baa3d00e]
  2. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 95)
  3. 2022-01-25 13:33:57.999581 98.60% [INFO] sofia.c:10462 sofia/default/+1604785422@46.101.114.158 receiving invite from 46.101.114.158:5077 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 4a1e687d-f886-123a-c3bf-ba05d31eb9f9
  4. 2022-01-25 13:33:57.999581 98.60% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 46.101.114.158:0.
  5. 2022-01-25 13:33:57.999581 98.60% [DEBUG] sofia.c:10585 IP 46.101.114.158 Approved by acl "default[]". Access Granted.
  6. 2022-01-25 13:33:57.999581 98.60% [DEBUG] sofia.c:7499 Channel sofia/default/+1604785422@46.101.114.158 entering state [received][100]
  7. 2022-01-25 13:33:57.999581 98.60% [DEBUG] sofia.c:7509 Remote SDP:
  8. v=0
  9. o=FreeSWITCH 1643084159 1643084160 IN IP4 46.101.114.158
  10. s=FreeSWITCH
  11. c=IN IP4 46.101.114.158
  12. t=0 0
  13. m=audio 33478 RTP/AVP 8 101
  14. a=rtpmap:8 PCMA/8000
  15. a=rtpmap:101 telephone-event/8000
  16. a=fmtp:101 0-16
  17. a=ptime:20
  18.  
  19. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  20. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  21. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  22. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  23. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/+1604785422@46.101.114.158 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  24. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_codec.c:111 sofia/default/+1604785422@46.101.114.158 Original read codec set to PCMA:8
  25. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  26. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_media.c:5973 sofia/default/+1604785422@46.101.114.158 Set 2833 dtmf send payload to 101 recv payload to 101
  27. 2022-01-25 13:33:57.999581 98.60% [DEBUG] sofia.c:7933 (sofia/default/+1604785422@46.101.114.158) State Change CS_NEW -> CS_INIT
  28. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:600 (sofia/default/+1604785422@46.101.114.158) State NEW
  29. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_INIT (Cur 1 Tot 95)
  30. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+1604785422@46.101.114.158) State INIT
  31. 2022-01-25 13:33:57.999581 98.60% [DEBUG] mod_sofia.c:97 sofia/default/+1604785422@46.101.114.158 SOFIA INIT
  32. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:40 sofia/default/+1604785422@46.101.114.158 Standard INIT
  33. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:48 (sofia/default/+1604785422@46.101.114.158) State Change CS_INIT -> CS_ROUTING
  34. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:624 (sofia/default/+1604785422@46.101.114.158) State INIT going to sleep
  35. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 95)
  36. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_channel.c:2380 (sofia/default/+1604785422@46.101.114.158) Callstate Change DOWN -> RINGING
  37. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING
  38. 2022-01-25 13:33:57.999581 98.60% [DEBUG] mod_sofia.c:158 sofia/default/+1604785422@46.101.114.158 SOFIA ROUTING
  39. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_core_state_machine.c:230 sofia/default/+1604785422@46.101.114.158 Standard ROUTING
  40. 2022-01-25 13:33:57.999581 98.60% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->1023 in context default
  41. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes')
  42. 2022-01-25 13:33:57.999581 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  43. 2022-01-25 13:33:58.019899 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  44. 2022-01-25 13:33:58.019899 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1023
  45. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1023' limit 1
  46. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '1023' AND status=0 limit 1
  47. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1023' and status=0 LIMIT 1
  48. 2022-01-25 13:33:58.019899 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway
  49. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  50. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '13.233.144.222' limit 1
  51. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '4' and username = '1023' limit 1
  52. 2022-01-25 13:33:58.019899 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 1604785422 / +1604785422
  53. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  54. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  55. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  56. 2022-01-25 13:33:58.019899 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  57. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("46.101.114.158") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "1023"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  58. 2022-01-25 13:33:58.019899 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  59. 2022-01-25 13:33:58.019899 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  60. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  61. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="1023" AND (accountid = 0 OR status = 1) LIMIT 1
  62. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  63. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 4
  64. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [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 = '^1023.*' OR patterns = '^102.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
  65. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [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 ="1023" AND A.accountid = '3' limit 1
  66. 2022-01-25 13:33:58.039556 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1023
  67. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  68. 2022-01-25 13:33:58.039556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  69. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  70. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  71. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '1023' OR number = '102' OR number = '10' OR number = '1' OR number ='--') OR (number = '1023*' OR number = '102*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '+1604785422' OR number = '+160478542' OR number = '+16047854' OR number = '+1604785' OR number = '+160478' OR number = '+16047' OR number = '+1604' OR number = '+160' OR number = '+16' OR number = '+1' OR number = '+' OR number ='--') OR (number = '+1604785422*' OR number = '+160478542*' OR number = '+16047854*' OR number = '+1604785*' OR number = '+160478*' OR number = '+16047*' OR number = '+1604*' OR number = '+160*' OR number = '+16*' OR number = '+1*' OR number = '+*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  72. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  73. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1023' OR routing_prefix = '102' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  74. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  75. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3
  76. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894
  77. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  78. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 4928.4
  79. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  80. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  81. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  82. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  83. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  84. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  85. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  86. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  87. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  88. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  89. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  90. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  91. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  92. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  93. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  94. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 1023
  95. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  96. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3
  97. 2022-01-25 13:33:58.059557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  98. 2022-01-25 13:33:58.059557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  99. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your4928.4 balance Accountid 3 !!!
  100. 2022-01-25 13:33:58.079557 98.60% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  101. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  102. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  103. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  104. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1
  105. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1
  106. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  107. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3
  108. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  109. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 4 limit 1
  110. 2022-01-25 13:33:58.079557 98.60% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : 13.233.144.222
  111. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 1
  112. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1
  113. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"100000333#","no_answer_call_type":"12"}]
  114. span style="color: green; font-weight: bold;"> 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"00-23","minute":"00-59","wday":"1-7","mday":"1-31","mon":"1-12","year":"2022-2022","extensions":"2","no_answer_call_type":"7","priority":"1"}]
  115. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1
  116. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
  117. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str :  time-of-day= "00:00-23:59"  wday= "1-7"  mday= "1-31"  mon= "1-12"  year= "2022-2022"
  118. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  119. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  120. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  121. 2022-01-25 13:33:58.079557 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  122. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "1" AND accounts.status = 0
  123. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 4 limit 1
  124. 2022-01-25 13:33:58.079557 98.60% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : 13.233.144.222
  125. 2022-01-25 13:33:58.079557 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 4  and status = 0 limit 1
  126. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11
  127. 2022-01-25 13:33:58.099552 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 1
  128. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1
  129. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  130. <document type="freeswitch/xml">
  131. <section name="dialplan" description="ASTPP Dialplan">
  132. <context name="default">
  133. <extension name="TimeCOnd" continue="true">
  134. <condition time-of-day= "00:01-23:59" break="never">
  135. <action application="set" data="office_status=open" inline="true"/>
  136. <action application="set" data="extensions=100000333#" inline="true"/>
  137. <action application="set" data="no_answer_did_number=1023" inline="true"/>
  138. <action application="set" data="no_answer_call_type=12" inline="true"/>
  139. </condition>
  140. </extension>
  141. <extension name="TimeCOnd" continue="true">
  142. <condition break="never">
  143. <action application="set" data="timezone=Asia/Kolkata" inline="true"/>
  144. </condition>
  145. <condition  time-of-day= "00:00-23:59"  wday= "1-7"  mday= "1-31"  mon= "1-12"  year= "2022-2022"  break="never">
  146. <action application="set" data="office_status=open" inline="true"/>
  147. <action application="set" data="extensions=2" inline="true"/>
  148. <action application="set" data="no_answer_did_number=1023" inline="true"/>
  149. <action application="set" data="no_answer_call_type=7" inline="true"/>
  150. </condition>
  151. </extension>
  152. <extension name="tod route, x1023">
  153. <condition field="destination_number" expression="^(\+?)?(1023)$">
  154. <action application="execute_extension" data="1023_${office_status}"/>
  155. </condition>
  156. </extension>
  157. <extension name="office is open">
  158. <condition field="destination_number" expression="^(\+?)?(1023_open)$">
  159. <action application="set" data="domain_name=13.233.144.222"/>
  160. <action application="set" data="set_extensions=${extensions}"/>
  161. <action application="set" data="no_answer_flag=true"/>
  162. <action application="set" data="no_answer_did_number=1023" inline="true"/>
  163. <action application="set" data="no_answer_call_type=${no_answer_call_type}"/>
  164. <action application="set" data="no_answer_number=${extensions}" />
  165. <action application="transfer" data="4 XML default"/>
  166. </condition>
  167. </extension>
  168. <extension name="1023">
  169. <condition field="destination_number" expression="1023">
  170. <action application="set" data="effective_destination_number=1023"/>
  171. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  172. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  173. <action application="set" data="callstart=2022-01-25 13:33:57"/>
  174. <action application="set" data="hangup_after_bridge=true"/>
  175. <action application="set" data="continue_on_fail=TRUE"/>
  176. <action application="set" data="account_id=3"/>
  177. <action application="set" data="parent_id=0"/>
  178. <action application="set" data="entity_id=3"/>
  179. <action application="set" data="call_processed=internal"/>
  180. <action application="set" data="call_direction=inbound"/>
  181. <action application="set" data="accountname=Entdemo"/>
  182. <action application="set" data="origination_rates_did=ID:1|CODE:^1023.*|DESTINATION:1023|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:11|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4"/>
  183. <action application="set" data="origination_rates=0"/>
  184. <action application="set" data="original_caller_id_name=1604785422"/>
  185. <action application="set" data="original_caller_id_number=+1604785422"/>
  186. <action application="export" data="is_recording=1"/>
  187. <action application="export" data="media_bug_answer_req=true"/>
  188. <action application="export" data="RECORD_STEREO=true"/>
  189. <action application="export" data="record_sample_rate=8000"/>
  190. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  191. <action application="set" data="effective_caller_id_name=1604785422"/>
  192. <action application="set" data="effective_caller_id_number=+1604785422"/>
  193. <action application="set" data="receiver_accid=4"/>
  194. <action application="set" data="did_id=1"/>
  195. <action application="set" data="transfer_call_type=5"/>
  196. <action application="set" data="transfer_extensions=7142994535"/>
  197. <action application="set" data="busy_status=1"/>
  198. <action application="set" data="no_answer_status=0"/>
  199. <action application="set" data="always_status=1"/>
  200. <action application="set" data="transfer_status=0"/>
  201. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  202. <action application="export" data="domain_name=13.233.144.222"/>
  203. <action application="export" data="sip_to_host=13.233.144.222"/>
  204. <action application="export" data="presence_data=x|||Admins(9975111115)|||||||||DID|||46.101.114.158"/>
  205. <action application="export" data="call_type=11"/>
  206. </condition>
  207. </extension>
  208. </context>
  209. </section>
  210. </document>
  211. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->TimeCOnd] continue=true
  212. Dialplan: sofia/default/+1604785422@46.101.114.158 Date/Time Match (PASS) [TimeCOnd] break=never
  213. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(office_status=open) INLINE
  214. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(office_status=open)
  215. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [office_status]=[open]
  216. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(extensions=100000333#) INLINE
  217. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(extensions=100000333#)
  218. span style="color: goldenrod; font-weight: bold;"> 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [extensions]=[100000333#]
  219. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=1023) INLINE
  220. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=1023)
  221. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[1023]
  222. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=12) INLINE
  223. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=12)
  224. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[12]
  225. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->TimeCOnd] continue=true
  226. Dialplan: sofia/default/+1604785422@46.101.114.158 Absolute Condition [TimeCOnd]
  227. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(timezone=Asia/Kolkata) INLINE
  228. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(timezone=Asia/Kolkata)
  229. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [timezone]=[Asia/Kolkata]
  230. Dialplan: sofia/default/+1604785422@46.101.114.158 Date/Time Match (PASS) [TimeCOnd] break=never
  231. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(office_status=open) INLINE
  232. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(office_status=open)
  233. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [office_status]=[open]
  234. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(extensions=2) INLINE
  235. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(extensions=2)
  236. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [extensions]=[2]
  237. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=1023) INLINE
  238. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=1023)
  239. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[1023]
  240. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=7) INLINE
  241. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=7)
  242. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[7]
  243. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->tod route, x1023] continue=false
  244. Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (PASS) [tod route, x1023] destination_number(1023) =~ /^(\+?)?(1023)$/ break=on-false
  245. Dialplan: sofia/default/+1604785422@46.101.114.158 Action execute_extension(1023_${office_status})
  246. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_core_state_machine.c:281 (sofia/default/+1604785422@46.101.114.158) State Change CS_ROUTING -> CS_EXECUTE
  247. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING going to sleep
  248. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_EXECUTE (Cur 1 Tot 95)
  249. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_core_state_machine.c:647 (sofia/default/+1604785422@46.101.114.158) State EXECUTE
  250. 2022-01-25 13:33:58.099552 98.60% [DEBUG] mod_sofia.c:213 sofia/default/+1604785422@46.101.114.158 SOFIA EXECUTE
  251. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_core_state_machine.c:323 sofia/default/+1604785422@46.101.114.158 Standard EXECUTE
  252. EXECUTE [depth=0] sofia/default/+1604785422@46.101.114.158 execute_extension(1023_open)
  253. 2022-01-25 13:33:58.099552 98.60% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->1023_open in context default
  254. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes')
  255. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  256. 2022-01-25 13:33:58.099552 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  257. 2022-01-25 13:33:58.099552 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1023
  258. 2022-01-25 13:33:58.099552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1023' limit 1
  259. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '1023' AND status=0 limit 1
  260. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1023' and status=0 LIMIT 1
  261. 2022-01-25 13:33:58.119555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway
  262. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  263. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '13.233.144.222' limit 1
  264. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '4' and username = '1023' limit 1
  265. 2022-01-25 13:33:58.119555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 1604785422 / +1604785422
  266. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  267. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  268. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  269. 2022-01-25 13:33:58.119555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  270. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("46.101.114.158") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "1023"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  271. 2022-01-25 13:33:58.119555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  272. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  273. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  274. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="1023" AND (accountid = 0 OR status = 1) LIMIT 1
  275. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  276. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 4
  277. 2022-01-25 13:33:58.119555 98.60% [DEBUG] switch_cpp.cpp:1465 [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 = '^1023.*' OR patterns = '^102.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
  278. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [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 ="1023" AND A.accountid = '3' limit 1
  279. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1023
  280. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  281. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  282. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  283. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  284. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '1023' OR number = '102' OR number = '10' OR number = '1' OR number ='--') OR (number = '1023*' OR number = '102*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '+1604785422' OR number = '+160478542' OR number = '+16047854' OR number = '+1604785' OR number = '+160478' OR number = '+16047' OR number = '+1604' OR number = '+160' OR number = '+16' OR number = '+1' OR number = '+' OR number ='--') OR (number = '+1604785422*' OR number = '+160478542*' OR number = '+16047854*' OR number = '+1604785*' OR number = '+160478*' OR number = '+16047*' OR number = '+1604*' OR number = '+160*' OR number = '+16*' OR number = '+1*' OR number = '+*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  285. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  286. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1023' OR routing_prefix = '102' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  287. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  288. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 3
  289. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 3673942894
  290. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  291. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 4928.4
  292. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  293. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  294. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  295. 2022-01-25 13:33:58.139558 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  296. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  297. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  298. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  299. 2022-01-25 13:33:58.139558 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  300. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  301. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  302. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  303. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  304. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  305. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  306. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  307. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 1023
  308. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  309. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 3
  310. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  311. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT balance FROM accounts WHERE id =4
  312. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your4928.4 balance Accountid 3 !!!
  313. 2022-01-25 13:33:58.159555 98.60% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  314. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  315. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  316. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  317. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1
  318. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1
  319. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  320. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:3
  321. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  322. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 4 limit 1
  323. 2022-01-25 13:33:58.159555 98.60% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : 13.233.144.222
  324. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 1
  325. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1
  326. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"100000333#","no_answer_call_type":"12"}]
  327. span style="color: green; font-weight: bold;"> 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"00-23","minute":"00-59","wday":"1-7","mday":"1-31","mon":"1-12","year":"2022-2022","extensions":"2","no_answer_call_type":"7","priority":"1"}]
  328. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1
  329. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
  330. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str :  time-of-day= "00:00-23:59"  wday= "1-7"  mday= "1-31"  mon= "1-12"  year= "2022-2022"
  331. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  332. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  333. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  334. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  335. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "1" AND accounts.status = 0
  336. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 4 limit 1
  337. 2022-01-25 13:33:58.159555 98.60% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : 13.233.144.222
  338. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 4  and status = 0 limit 1
  339. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11
  340. 2022-01-25 13:33:58.159555 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 1
  341. 2022-01-25 13:33:58.159555 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status =0 LIMIT 1
  342. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  343. <document type="freeswitch/xml">
  344. <section name="dialplan" description="ASTPP Dialplan">
  345. <context name="default">
  346. <extension name="TimeCOnd" continue="true">
  347. <condition time-of-day= "00:01-23:59" break="never">
  348. <action application="set" data="office_status=open" inline="true"/>
  349. <action application="set" data="extensions=100000333#" inline="true"/>
  350. <action application="set" data="no_answer_did_number=1023" inline="true"/>
  351. <action application="set" data="no_answer_call_type=12" inline="true"/>
  352. </condition>
  353. </extension>
  354. <extension name="TimeCOnd" continue="true">
  355. <condition break="never">
  356. <action application="set" data="timezone=Asia/Kolkata" inline="true"/>
  357. </condition>
  358. <condition  time-of-day= "00:00-23:59"  wday= "1-7"  mday= "1-31"  mon= "1-12"  year= "2022-2022"  break="never">
  359. <action application="set" data="office_status=open" inline="true"/>
  360. <action application="set" data="extensions=2" inline="true"/>
  361. <action application="set" data="no_answer_did_number=1023" inline="true"/>
  362. <action application="set" data="no_answer_call_type=7" inline="true"/>
  363. </condition>
  364. </extension>
  365. <extension name="tod route, x1023">
  366. <condition field="destination_number" expression="^(\+?)?(1023)$">
  367. <action application="execute_extension" data="1023_${office_status}"/>
  368. </condition>
  369. </extension>
  370. <extension name="office is open">
  371. <condition field="destination_number" expression="^(\+?)?(1023_open)$">
  372. <action application="set" data="domain_name=13.233.144.222"/>
  373. <action application="set" data="set_extensions=${extensions}"/>
  374. <action application="set" data="no_answer_flag=true"/>
  375. <action application="set" data="no_answer_did_number=1023" inline="true"/>
  376. <action application="set" data="no_answer_call_type=${no_answer_call_type}"/>
  377. <action application="set" data="no_answer_number=${extensions}" />
  378. <action application="transfer" data="4 XML default"/>
  379. </condition>
  380. </extension>
  381. <extension name="1023">
  382. <condition field="destination_number" expression="1023">
  383. <action application="set" data="effective_destination_number=1023"/>
  384. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  385. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  386. <action application="set" data="callstart=2022-01-25 13:33:58"/>
  387. <action application="set" data="hangup_after_bridge=true"/>
  388. <action application="set" data="continue_on_fail=TRUE"/>
  389. <action application="set" data="account_id=3"/>
  390. <action application="set" data="parent_id=0"/>
  391. <action application="set" data="entity_id=3"/>
  392. <action application="set" data="call_processed=internal"/>
  393. <action application="set" data="call_direction=inbound"/>
  394. <action application="set" data="accountname=Entdemo"/>
  395. <action application="set" data="origination_rates_did=ID:1|CODE:^1023.*|DESTINATION:1023|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:11|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:4"/>
  396. <action application="set" data="origination_rates=0"/>
  397. <action application="set" data="original_caller_id_name=1604785422"/>
  398. <action application="set" data="original_caller_id_number=+1604785422"/>
  399. <action application="export" data="is_recording=1"/>
  400. <action application="export" data="media_bug_answer_req=true"/>
  401. <action application="export" data="RECORD_STEREO=true"/>
  402. <action application="export" data="record_sample_rate=8000"/>
  403. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  404. <action application="set" data="effective_caller_id_name=1604785422"/>
  405. <action application="set" data="effective_caller_id_number=+1604785422"/>
  406. <action application="set" data="receiver_accid=4"/>
  407. <action application="set" data="did_id=1"/>
  408. <action application="set" data="transfer_call_type=5"/>
  409. <action application="set" data="transfer_extensions=7142994535"/>
  410. <action application="set" data="busy_status=1"/>
  411. <action application="set" data="no_answer_status=0"/>
  412. <action application="set" data="always_status=1"/>
  413. <action application="set" data="transfer_status=0"/>
  414. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  415. <action application="export" data="domain_name=13.233.144.222"/>
  416. <action application="export" data="sip_to_host=13.233.144.222"/>
  417. <action application="export" data="presence_data=x|||Admins(9975111115)|||||||||DID|||46.101.114.158"/>
  418. <action application="export" data="call_type=11"/>
  419. </condition>
  420. </extension>
  421. </context>
  422. </section>
  423. </document>
  424. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->TimeCOnd] continue=true
  425. Dialplan: sofia/default/+1604785422@46.101.114.158 Date/Time Match (PASS) [TimeCOnd] break=never
  426. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(office_status=open) INLINE
  427. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(office_status=open)
  428. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [office_status]=[open]
  429. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(extensions=100000333#) INLINE
  430. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(extensions=100000333#)
  431. span style="color: goldenrod; font-weight: bold;"> 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [extensions]=[100000333#]
  432. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=1023) INLINE
  433. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=1023)
  434. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[1023]
  435. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=12) INLINE
  436. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=12)
  437. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[12]
  438. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->TimeCOnd] continue=true
  439. Dialplan: sofia/default/+1604785422@46.101.114.158 Absolute Condition [TimeCOnd]
  440. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(timezone=Asia/Kolkata) INLINE
  441. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(timezone=Asia/Kolkata)
  442. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [timezone]=[Asia/Kolkata]
  443. Dialplan: sofia/default/+1604785422@46.101.114.158 Date/Time Match (PASS) [TimeCOnd] break=never
  444. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(office_status=open) INLINE
  445. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(office_status=open)
  446. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [office_status]=[open]
  447. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(extensions=2) INLINE
  448. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(extensions=2)
  449. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [extensions]=[2]
  450. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=1023) INLINE
  451. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=1023)
  452. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[1023]
  453. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=7) INLINE
  454. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=7)
  455. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[7]
  456. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->tod route, x1023] continue=false
  457. Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (FAIL) [tod route, x1023] destination_number(1023_open) =~ /^(\+?)?(1023)$/ break=on-false
  458. Dialplan: sofia/default/+1604785422@46.101.114.158 parsing [default->office is open] continue=false
  459. Dialplan: sofia/default/+1604785422@46.101.114.158 Regex (PASS) [office is open] destination_number(1023_open) =~ /^(\+?)?(1023_open)$/ break=on-false
  460. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(domain_name=13.233.144.222)
  461. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(set_extensions=${extensions})
  462. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_flag=true)
  463. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_did_number=1023) INLINE
  464. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_did_number=1023)
  465. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_did_number]=[1023]
  466. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_call_type=${no_answer_call_type})
  467. Dialplan: sofia/default/+1604785422@46.101.114.158 Action set(no_answer_number=${extensions})
  468. Dialplan: sofia/default/+1604785422@46.101.114.158 Action transfer(4 XML default)
  469. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(domain_name=13.233.144.222)
  470. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(domain_name=13.233.144.222)
  471. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [domain_name]=[13.233.144.222]
  472. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(set_extensions=${extensions})
  473. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(set_extensions=2)
  474. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [set_extensions]=[2]
  475. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_flag=true)
  476. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_flag=true)
  477. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_flag]=[true]
  478. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_call_type=${no_answer_call_type})
  479. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_call_type=7)
  480. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_call_type]=[7]
  481. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_number=${extensions})
  482. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 set(no_answer_number=2)
  483. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_dptools.c:1685 SET sofia/default/+1604785422@46.101.114.158 [no_answer_number]=[2]
  484. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_core_session.c:3095 Execute [depth=1] transfer(4 XML default)
  485. EXECUTE [depth=1] sofia/default/+1604785422@46.101.114.158 transfer(4 XML default)
  486. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_ivr.c:2289 (sofia/default/+1604785422@46.101.114.158) State Change CS_EXECUTE -> CS_ROUTING
  487. 2022-01-25 13:33:58.179556 98.60% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/+1604785422@46.101.114.158 to XML[4@default]
  488. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_core_state_machine.c:647 (sofia/default/+1604785422@46.101.114.158) State EXECUTE going to sleep
  489. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 95)
  490. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING
  491. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  492. 2022-01-25 13:33:58.179556 98.60% [DEBUG] mod_sofia.c:158 sofia/default/+1604785422@46.101.114.158 SOFIA ROUTING
  493. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_core_state_machine.c:230 sofia/default/+1604785422@46.101.114.158 Standard ROUTING
  494. 2022-01-25 13:33:58.179556 98.60% [INFO] mod_dialplan_xml.c:639 Processing 1604785422 <+1604785422>->4 in context default
  495. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes')
  496. 2022-01-25 13:33:58.179556 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  497. 2022-01-25 13:33:58.199551 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  498. 2022-01-25 13:33:58.199551 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 4
  499. 2022-01-25 13:33:58.199551 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '4' limit 1
  500. 2022-01-25 13:33:58.199551 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '4' AND status=0 limit 1
  501. 2022-01-25 13:33:58.199551 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '4' and status=0 LIMIT 1
  502. 2022-01-25 13:33:58.199551 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PK-Default-Gateway
  503. 2022-01-25 13:33:58.199551 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  504. 2022-01-25 13:33:58.199551 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '13.233.144.222' limit 1
  505. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '4' and username = '4' limit 1
  506. 2022-01-25 13:33:58.219553 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 1604785422 / +1604785422
  507. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="4" LIMIT 1
  508. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="4" LIMIT 1
  509. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  510. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [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,sip_devices.codec as sip_codec 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="4"  AND domains.domain="13.233.144.222" limit 1
  511. 2022-01-25 13:33:58.219553 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  512. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("46.101.114.158") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "4"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  513. 2022-01-25 13:33:58.219553 98.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  514. 2022-01-25 13:33:58.219553 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  515. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^4.*' OR blocked_patterns ='--') AND accountid = 3 limit 1
  516. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="4" AND (accountid = 0 OR status = 1) LIMIT 1
  517. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] ringgroup_no_answer_forward _ no_answer_did_number :1023
  518. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  519. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1023" LIMIT 1
  520. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  521. 2022-01-25 13:33:58.239552 98.60% [ERR] mod_lua.cpp:202 .../share/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1610: attempt to concatenate field 'accountid' (a nil value)
  522. stack traceback:
  523.         .../share/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:1610: in function 'ringgroup_no_answer_forward'
  524.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:301: in main chunk
  525.         [C]: in function 'dofile'
  526.         /usr/share/freeswitch/scripts/astpp/astpp.lua:94: in main chunk
  527. 2022-01-25 13:33:58.239552 98.60% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  528. 2022-01-25 13:33:58.239552 98.60% [WARNING] mod_dialplan_xml.c:669 Context default not found
  529. 2022-01-25 13:33:58.239552 98.60% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  530. 2022-01-25 13:33:58.239552 98.60% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/+1604785422@46.101.114.158 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  531. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:640 (sofia/default/+1604785422@46.101.114.158) State ROUTING going to sleep
  532. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_HANGUP (Cur 1 Tot 95)
  533. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:844 (sofia/default/+1604785422@46.101.114.158) Callstate Change RINGING -> HANGUP
  534. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+1604785422@46.101.114.158) State HANGUP
  535. 2022-01-25 13:33:58.239552 98.60% [DEBUG] mod_sofia.c:468 Channel sofia/default/+1604785422@46.101.114.158 hanging up, cause: NO_ROUTE_DESTINATION
  536. 2022-01-25 13:33:58.239552 98.60% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  537. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:59 sofia/default/+1604785422@46.101.114.158 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  538. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:846 (sofia/default/+1604785422@46.101.114.158) State HANGUP going to sleep
  539. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:616 (sofia/default/+1604785422@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING
  540. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_REPORTING (Cur 1 Tot 95)
  541. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+1604785422@46.101.114.158) State REPORTING
  542. 2022-01-25 13:33:58.239552 98.60% [INFO] mod_json_cdr.c:271 Process [c223baab-3a3a-4464-973e-1478baa3d00e.cdr.json]
  543. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:168 sofia/default/+1604785422@46.101.114.158 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  544. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:932 (sofia/default/+1604785422@46.101.114.158) State REPORTING going to sleep
  545. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:607 (sofia/default/+1604785422@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY
  546. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_session.c:1753 Session 95 (sofia/default/+1604785422@46.101.114.158) Locked, Waiting on external entities
  547. 2022-01-25 13:33:58.239552 98.60% [NOTICE] switch_core_session.c:1771 Session 95 (sofia/default/+1604785422@46.101.114.158) Ended
  548. 2022-01-25 13:33:58.239552 98.60% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/+1604785422@46.101.114.158 [CS_DESTROY]
  549. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:735 (sofia/default/+1604785422@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 95)
  550. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+1604785422@46.101.114.158) State DESTROY
  551. 2022-01-25 13:33:58.239552 98.60% [DEBUG] mod_sofia.c:379 sofia/default/+1604785422@46.101.114.158 SOFIA DESTROY
  552. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:175 sofia/default/+1604785422@46.101.114.158 Standard DESTROY
  553. 2022-01-25 13:33:58.239552 98.60% [DEBUG] switch_core_state_machine.c:745 (sofia/default/+1604785422@46.101.114.158) State DESTROY going to sleep
  554. freeswitch@ip-172-31-15-133>
  555.