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