From Prashant Kumar, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2023-04-26 12:18:32.513345 86.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/4810338297@65.109.231.66 [997a1c3e-5a62-4f26-94bc-fcc9027f2673]
  2. 2023-04-26 12:18:32.513345 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_NEW (Cur 1 Tot 154)
  3. 2023-04-26 12:18:32.513345 86.77% [INFO] sofia.c:10462 sofia/default/4810338297@65.109.231.66 receiving invite from 65.109.231.66:5071 version: 1.10.7 -release 64bit call-id: 4d38a114-5ecf-123c-9988-960002079de3
  4. 2023-04-26 12:18:32.513345 86.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 65.109.231.66:0.
  5. 2023-04-26 12:18:32.513345 86.77% [DEBUG] sofia.c:10585 IP 65.109.231.66 Approved by acl "default[]". Access Granted.
  6. 2023-04-26 12:18:32.533326 86.77% [DEBUG] sofia.c:7499 Channel sofia/default/4810338297@65.109.231.66 entering state [received][100]
  7. 2023-04-26 12:18:32.533326 86.77% [DEBUG] sofia.c:7509 Remote SDP:
  8. v=0
  9. o=FreeSWITCH 1682493092 1682493093 IN IP4 65.109.231.66
  10. s=FreeSWITCH
  11. c=IN IP4 65.109.231.66
  12. t=0 0
  13. m=audio 18420 RTP/AVP 8 18 101
  14. a=rtpmap:8 PCMA/8000
  15. a=rtpmap:18 G729/8000
  16. a=rtpmap:101 telephone-event/8000
  17. a=fmtp:101 0-15
  18. a=ptime:20
  19.  
  20. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  21. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  22. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  23. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  24. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  25. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  26. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/4810338297@65.109.231.66 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  27. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_codec.c:111 sofia/default/4810338297@65.109.231.66 Original read codec set to PCMA:8
  28. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  29. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5973 sofia/default/4810338297@65.109.231.66 Set 2833 dtmf send payload to 101 recv payload to 101
  30. 2023-04-26 12:18:32.533326 86.77% [DEBUG] sofia.c:7933 (sofia/default/4810338297@65.109.231.66) State Change CS_NEW -> CS_INIT
  31. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:600 (sofia/default/4810338297@65.109.231.66) State NEW
  32. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_INIT (Cur 1 Tot 154)
  33. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/4810338297@65.109.231.66) State INIT
  34. 2023-04-26 12:18:32.533326 86.77% [DEBUG] mod_sofia.c:97 sofia/default/4810338297@65.109.231.66 SOFIA INIT
  35. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:40 sofia/default/4810338297@65.109.231.66 Standard INIT
  36. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:48 (sofia/default/4810338297@65.109.231.66) State Change CS_INIT -> CS_ROUTING
  37. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/4810338297@65.109.231.66) State INIT going to sleep
  38. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_ROUTING (Cur 1 Tot 154)
  39. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_channel.c:2380 (sofia/default/4810338297@65.109.231.66) Callstate Change DOWN -> RINGING
  40. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING
  41. 2023-04-26 12:18:32.533326 86.77% [DEBUG] mod_sofia.c:158 sofia/default/4810338297@65.109.231.66 SOFIA ROUTING
  42. 2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/4810338297@65.109.231.66 Standard ROUTING
  43. 2023-04-26 12:18:32.533326 86.77% [INFO] mod_dialplan_xml.c:639 Processing ASTPP <4810338297>->1070099 in context default
  44. 2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  45. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  46. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  47. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  48. 2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  49. 2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1070099
  50. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1070099' limit 1
  51. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  52. 2023-04-26 12:18:32.553317 86.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 = '1070099' and status=0 LIMIT 1
  53. 2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
  54. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  55. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '1070099' limit 1
  56. 2023-04-26 12:18:32.553317 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  57. 2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : ASTPP / 4810338297
  58. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 9
  59. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 107009 AND status=0 limit 1
  60. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  61. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  62. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  63. 2023-04-26 12:18:32.553317 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  64. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  65. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  66. 2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  67. 2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  68. 2023-04-26 12:18:32.553317 86.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("65.109.231.66") 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 "1070099"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  69. 2023-04-26 12:18:32.573343 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 900200]
  70. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "900200" AND deleted = 0 limit 1
  71. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  72. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  73. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
  74. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  75. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 90
  76. 2023-04-26 12:18:32.573343 86.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 = '^1070099.*' OR patterns = '^107009.*' OR patterns = '^10700.*' OR patterns = '^1070.*' OR patterns = '^107.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 90 ORDER BY LENGTH(PKGPTR.patterns) DESC
  77. 2023-04-26 12:18:32.573343 86.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 ="1070099" AND A.accountid = '91' limit 1
  78. 2023-04-26 12:18:32.573343 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1070099
  79. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  80. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  81. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  82. 2023-04-26 12:18:32.573343 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  83. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  84. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  85. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  86. 2023-04-26 12:18:32.573343 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  87. 2023-04-26 12:18:32.573343 86.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 = '1070099' OR number = '107009' OR number = '10700' OR number = '1070' OR number = '107' OR number = '10' OR number = '1' OR number ='--') OR (number = '1070099*' OR number = '107009*' OR number = '10700*' OR number = '1070*' OR number = '107*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '4810338297' OR number = '481033829' OR number = '48103382' OR number = '4810338' OR number = '481033' OR number = '48103' OR number = '4810' OR number = '481' OR number = '48' OR number = '4' OR number ='--') OR (number = '4810338297*' OR number = '481033829*' OR number = '48103382*' OR number = '4810338*' OR number = '481033*' OR number = '48103*' OR number = '4810*' OR number = '481*' OR number = '48*' OR number = '4*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  88. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  89. 2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1070099' OR routing_prefix = '107009' OR routing_prefix = '10700' OR routing_prefix = '1070' OR routing_prefix = '107' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  90. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  91. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 91
  92. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 900200
  93. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  94. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 36832.5646
  95. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  96. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 170
  97. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  98. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  99. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  100. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::170
  101. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  102. 2023-04-26 12:18:32.593335 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  103. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  104. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  105. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  106. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  107. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  108. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000
  109. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:170
  110. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '170' and status=0
  111. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000
  112. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  113. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 198
  114. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  115. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  116. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  117. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 1070099
  118. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  119. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 91
  120. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  121. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  122. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your36832.5646 balance Accountid 91 !!!
  123. 2023-04-26 12:18:32.593335 86.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  124. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  125. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  126. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  127. 2023-04-26 12:18:32.593335 86.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 = 91 AND status=0 LIMIT 1
  128. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "90" AND deleted = 0 limit 1
  129. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  130. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:91
  131. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:91
  132. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 91
  133. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
  134. 2023-04-26 12:18:32.593335 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : alpha3.astppbilling.org
  135. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 3
  136. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
  137. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"1020202000#","no_answer_call_type":"12"}]
  138. span style="color: green; font-weight: bold;"> 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"17-17","minute":"44-50","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"86","no_answer_call_type":"11","priority":"2"},{"hour":"17-17","minute":"30-45","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"83","no_answer_call_type":"11","priority":"1"}]
  139. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 2
  140. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "86" limit 1
  141. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
  142. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str :  time-of-day= "17:44-17:50"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"
  143. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1
  144. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "83" limit 1
  145. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
  146. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str :  time-of-day= "17:30-17:45"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"
  147. 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  148. 2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  149. 2023-04-26 12:18:32.613366 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  150. 2023-04-26 12:18:32.613366 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  151. 2023-04-26 12:18:32.613366 86.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 = "3" AND accounts.status = 0
  152. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
  153. 2023-04-26 12:18:32.613366 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : alpha3.astppbilling.org
  154. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11
  155. 2023-04-26 12:18:32.613366 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 3
  156. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
  157. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  158. <document type="freeswitch/xml">
  159. <section name="dialplan" description="ASTPP Dialplan">
  160. <context name="default">
  161. <extension name="PKKKTime" continue="true">
  162. <condition time-of-day= "00:01-23:59" break="never">
  163. <action application="set" data="office_status=open" inline="true"/>
  164. <action application="set" data="extensions=1020202000#" inline="true"/>
  165. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  166. <action application="set" data="no_answer_call_type=12" inline="true"/>
  167. </condition>
  168. </extension>
  169. <extension name="PKKKTime" continue="true">
  170. <condition break="never">
  171. <action application="set" data="timezone=Asia/Kolkata" inline="true"/>
  172. </condition>
  173. <condition  time-of-day= "17:44-17:50"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"  break="never">
  174. <action application="set" data="office_status=open" inline="true"/>
  175. <action application="set" data="extensions=453578" inline="true"/>
  176. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  177. <action application="set" data="no_answer_call_type=11" inline="true"/>
  178. </condition>
  179. </extension>
  180. <extension name="PKKKTime" continue="true">
  181. <condition break="never">
  182. <action application="set" data="timezone=Asia/Kolkata" inline="true"/>
  183. </condition>
  184. <condition  time-of-day= "17:30-17:45"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"  break="never">
  185. <action application="set" data="office_status=open" inline="true"/>
  186. <action application="set" data="extensions=900100" inline="true"/>
  187. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  188. <action application="set" data="no_answer_call_type=11" inline="true"/>
  189. </condition>
  190. </extension>
  191. <extension name="tod route, x1070099">
  192. <condition field="destination_number" expression="^(\+?)?(1070099)$">
  193. <action application="execute_extension" data="1070099_${office_status}"/>
  194. </condition>
  195. </extension>
  196. <extension name="office is open">
  197. <condition field="destination_number" expression="^(\+?)?(1070099_open)$">
  198. <action application="set" data="domain_name=alpha3.astppbilling.org"/>
  199. <action application="set" data="set_extensions=${extensions}"/>
  200. <action application="set" data="no_answer_flag=true"/>
  201. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  202. <action application="set" data="no_answer_call_type=${no_answer_call_type}"/>
  203. <action application="set" data="no_answer_number=${extensions}" />
  204. <action application="transfer" data="90 XML default"/>
  205. </condition>
  206. </extension>
  207. <extension name="1070099">
  208. <condition field="destination_number" expression="1070099">
  209. <action application="set" data="effective_destination_number=1070099"/>
  210. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  211. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  212. <action application="set" data="type=3"/>
  213. <action application="set" data="callstart=2023-04-26 12:18:32"/>
  214. <action application="set" data="hangup_after_bridge=true"/>
  215. <action application="set" data="continue_on_fail=TRUE"/>
  216. <action application="set" data="account_id=91"/>
  217. <action application="set" data="parent_id=0"/>
  218. <action application="set" data="entity_id=3"/>
  219. <action application="set" data="call_processed=internal"/>
  220. <action application="set" data="call_direction=inbound"/>
  221. <action application="set" data="accountname=BETA"/>
  222. <action application="export" data="t38_passthru=true"/>
  223. <action application="set" data="fax_enable_t38=true"/>
  224. <action application="set" data="fax_enable_t38_request=true"/>
  225. <action application="set" data="filename1=astpp.pbx.lua"/>
  226. <action application="set" data="origination_rates_did=ID:198|CODE:^1070099.*|DESTINATION:1070099|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:11|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:90"/>
  227. <action application="set" data="origination_rates=0"/>
  228. <action application="set" data="original_caller_id_name=ASTPP"/>
  229. <action application="set" data="original_caller_id_number=4810338297"/>
  230. <action application="set" data="effective_caller_id_name=ASTPP"/>
  231. <action application="set" data="effective_caller_id_number=4810338297"/>
  232. <action application="set" data="receiver_accid=90"/>
  233. <action application="set" data="did_id=198"/>
  234. <action application="set" data="transfer_call_type=4"/>
  235. <action application="set" data="transfer_extensions="/>
  236. <action application="set" data="busy_status=1"/>
  237. <action application="set" data="no_answer_status=1"/>
  238. <action application="set" data="always_status=1"/>
  239. <action application="set" data="transfer_status=1"/>
  240. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  241. <action application="set" data="variable_sip_network_ip=65.109.231.66"/>
  242. <action application="set" data="variable_sip_network_port=5071"/>
  243. <action application="export" data="domain_name=alpha3.astppbilling.org"/>
  244. <action application="export" data="sip_to_host=alpha3.astppbilling.org"/>
  245. <action application="export" data="presence_data=x|||QA PK Provider(900200)|||^1070099.* // 1070099 // 0.00000|||||||||DID|||65.109.231.66"/>
  246. <action application="export" data="call_type=11"/>
  247. </condition>
  248. </extension>
  249. </context>
  250. </section>
  251. </document>
  252. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
  253. Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
  254. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
  255. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(office_status=open)
  256. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
  257. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=1020202000#) INLINE
  258. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(extensions=1020202000#)
  259. span style="color: goldenrod; font-weight: bold;"> 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[1020202000#]
  260. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
  261. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
  262. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
  263. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=12) INLINE
  264. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=12)
  265. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[12]
  266. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
  267. Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
  268. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
  269. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
  270. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
  271. Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
  272. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
  273. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(office_status=open)
  274. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
  275. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=453578) INLINE
  276. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(extensions=453578)
  277. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[453578]
  278. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
  279. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
  280. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
  281. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=11) INLINE
  282. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=11)
  283. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[11]
  284. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
  285. Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
  286. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
  287. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
  288. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
  289. Dialplan: sofia/default/4810338297@65.109.231.66 Date/TimeMatch (FAIL) [PKKKTime] break=never
  290. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->tod route, x1070099] continue=false
  291. Dialplan: sofia/default/4810338297@65.109.231.66 Regex (PASS) [tod route, x1070099] destination_number(1070099) =~ /^(\+?)?(1070099)$/ break=on-false
  292. Dialplan: sofia/default/4810338297@65.109.231.66 Action execute_extension(1070099_${office_status})
  293. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:281 (sofia/default/4810338297@65.109.231.66) State Change CS_ROUTING -> CS_EXECUTE
  294. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING going to sleep
  295. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_EXECUTE (Cur 1 Tot 154)
  296. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE
  297. 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_sofia.c:213 sofia/default/4810338297@65.109.231.66 SOFIA EXECUTE
  298. 2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:323 sofia/default/4810338297@65.109.231.66 Standard EXECUTE
  299. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 execute_extension(1070099_open)
  300. 2023-04-26 12:18:32.613366 86.77% [INFO] mod_dialplan_xml.c:639 Processing ASTPP <4810338297>->1070099_open in context default
  301. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  302. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  303. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  304. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  305. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  306. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1070099
  307. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1070099' limit 1
  308. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  309. 2023-04-26 12:18:32.633339 86.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 = '1070099' and status=0 LIMIT 1
  310. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
  311. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  312. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '1070099' limit 1
  313. 2023-04-26 12:18:32.633339 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  314. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : ASTPP / 4810338297
  315. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 9
  316. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 107009 AND status=0 limit 1
  317. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  318. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  319. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  320. 2023-04-26 12:18:32.633339 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  321. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  322. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  323. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  324. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  325. 2023-04-26 12:18:32.633339 86.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("65.109.231.66") 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 "1070099"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  326. 2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 900200]
  327. 2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "900200" AND deleted = 0 limit 1
  328. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  329. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  330. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
  331. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  332. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 90
  333. 2023-04-26 12:18:32.653330 86.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 = '^1070099.*' OR patterns = '^107009.*' OR patterns = '^10700.*' OR patterns = '^1070.*' OR patterns = '^107.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 90 ORDER BY LENGTH(PKGPTR.patterns) DESC
  334. 2023-04-26 12:18:32.653330 86.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 ="1070099" AND A.accountid = '91' limit 1
  335. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1070099
  336. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  337. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  338. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  339. 2023-04-26 12:18:32.653330 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  340. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  341. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  342. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  343. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  344. 2023-04-26 12:18:32.653330 86.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 = '1070099' OR number = '107009' OR number = '10700' OR number = '1070' OR number = '107' OR number = '10' OR number = '1' OR number ='--') OR (number = '1070099*' OR number = '107009*' OR number = '10700*' OR number = '1070*' OR number = '107*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '4810338297' OR number = '481033829' OR number = '48103382' OR number = '4810338' OR number = '481033' OR number = '48103' OR number = '4810' OR number = '481' OR number = '48' OR number = '4' OR number ='--') OR (number = '4810338297*' OR number = '481033829*' OR number = '48103382*' OR number = '4810338*' OR number = '481033*' OR number = '48103*' OR number = '4810*' OR number = '481*' OR number = '48*' OR number = '4*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  345. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  346. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1070099' OR routing_prefix = '107009' OR routing_prefix = '10700' OR routing_prefix = '1070' OR routing_prefix = '107' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  347. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  348. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 91
  349. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 900200
  350. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  351. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 36832.5646
  352. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  353. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 170
  354. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  355. 2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  356. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  357. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::170
  358. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  359. 2023-04-26 12:18:32.653330 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  360. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  361. 2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  362. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  363. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  364. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  365. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000
  366. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:170
  367. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '170' and status=0
  368. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000
  369. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  370. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 198
  371. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  372. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  373. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  374. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 1070099
  375. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  376. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 91
  377. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  378. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  379. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your36832.5646 balance Accountid 91 !!!
  380. 2023-04-26 12:18:32.673321 86.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  381. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  382. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  383. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  384. 2023-04-26 12:18:32.673321 86.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 = 91 AND status=0 LIMIT 1
  385. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "90" AND deleted = 0 limit 1
  386. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
  387. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:91
  388. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:91
  389. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 91
  390. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
  391. 2023-04-26 12:18:32.673321 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : alpha3.astppbilling.org
  392. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 3
  393. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
  394. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"1020202000#","no_answer_call_type":"12"}]
  395. span style="color: green; font-weight: bold;"> 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"17-17","minute":"44-50","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"86","no_answer_call_type":"11","priority":"2"},{"hour":"17-17","minute":"30-45","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"83","no_answer_call_type":"11","priority":"1"}]
  396. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 2
  397. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "86" limit 1
  398. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
  399. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str :  time-of-day= "17:44-17:50"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"
  400. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1
  401. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "83" limit 1
  402. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
  403. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str :  time-of-day= "17:30-17:45"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"
  404. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  405. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  406. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  407. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  408. 2023-04-26 12:18:32.673321 86.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 = "3" AND accounts.status = 0
  409. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
  410. 2023-04-26 12:18:32.673321 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : alpha3.astppbilling.org
  411. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11
  412. 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 3
  413. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
  414. 2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  415. <document type="freeswitch/xml">
  416. <section name="dialplan" description="ASTPP Dialplan">
  417. <context name="default">
  418. <extension name="PKKKTime" continue="true">
  419. <condition time-of-day= "00:01-23:59" break="never">
  420. <action application="set" data="office_status=open" inline="true"/>
  421. <action application="set" data="extensions=1020202000#" inline="true"/>
  422. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  423. <action application="set" data="no_answer_call_type=12" inline="true"/>
  424. </condition>
  425. </extension>
  426. <extension name="PKKKTime" continue="true">
  427. <condition break="never">
  428. <action application="set" data="timezone=Asia/Kolkata" inline="true"/>
  429. </condition>
  430. <condition  time-of-day= "17:44-17:50"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"  break="never">
  431. <action application="set" data="office_status=open" inline="true"/>
  432. <action application="set" data="extensions=453578" inline="true"/>
  433. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  434. <action application="set" data="no_answer_call_type=11" inline="true"/>
  435. </condition>
  436. </extension>
  437. <extension name="PKKKTime" continue="true">
  438. <condition break="never">
  439. <action application="set" data="timezone=Asia/Kolkata" inline="true"/>
  440. </condition>
  441. <condition  time-of-day= "17:30-17:45"  wday= "4-4"  mday= "26-26"  mon= "4-4"  year= "2023-2023"  break="never">
  442. <action application="set" data="office_status=open" inline="true"/>
  443. <action application="set" data="extensions=900100" inline="true"/>
  444. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  445. <action application="set" data="no_answer_call_type=11" inline="true"/>
  446. </condition>
  447. </extension>
  448. <extension name="tod route, x1070099">
  449. <condition field="destination_number" expression="^(\+?)?(1070099)$">
  450. <action application="execute_extension" data="1070099_${office_status}"/>
  451. </condition>
  452. </extension>
  453. <extension name="office is open">
  454. <condition field="destination_number" expression="^(\+?)?(1070099_open)$">
  455. <action application="set" data="domain_name=alpha3.astppbilling.org"/>
  456. <action application="set" data="set_extensions=${extensions}"/>
  457. <action application="set" data="no_answer_flag=true"/>
  458. <action application="set" data="no_answer_did_number=1070099" inline="true"/>
  459. <action application="set" data="no_answer_call_type=${no_answer_call_type}"/>
  460. <action application="set" data="no_answer_number=${extensions}" />
  461. <action application="transfer" data="90 XML default"/>
  462. </condition>
  463. </extension>
  464. <extension name="1070099">
  465. <condition field="destination_number" expression="1070099">
  466. <action application="set" data="effective_destination_number=1070099"/>
  467. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  468. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  469. <action application="set" data="type=3"/>
  470. <action application="set" data="callstart=2023-04-26 12:18:32"/>
  471. <action application="set" data="hangup_after_bridge=true"/>
  472. <action application="set" data="continue_on_fail=TRUE"/>
  473. <action application="set" data="account_id=91"/>
  474. <action application="set" data="parent_id=0"/>
  475. <action application="set" data="entity_id=3"/>
  476. <action application="set" data="call_processed=internal"/>
  477. <action application="set" data="call_direction=inbound"/>
  478. <action application="set" data="accountname=BETA"/>
  479. <action application="export" data="t38_passthru=true"/>
  480. <action application="set" data="fax_enable_t38=true"/>
  481. <action application="set" data="fax_enable_t38_request=true"/>
  482. <action application="set" data="filename1=astpp.pbx.lua"/>
  483. <action application="set" data="origination_rates_did=ID:198|CODE:^1070099.*|DESTINATION:1070099|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:11|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:90"/>
  484. <action application="set" data="origination_rates=0"/>
  485. <action application="set" data="original_caller_id_name=ASTPP"/>
  486. <action application="set" data="original_caller_id_number=4810338297"/>
  487. <action application="set" data="effective_caller_id_name=ASTPP"/>
  488. <action application="set" data="effective_caller_id_number=4810338297"/>
  489. <action application="set" data="receiver_accid=90"/>
  490. <action application="set" data="did_id=198"/>
  491. <action application="set" data="transfer_call_type=4"/>
  492. <action application="set" data="transfer_extensions="/>
  493. <action application="set" data="busy_status=1"/>
  494. <action application="set" data="no_answer_status=1"/>
  495. <action application="set" data="always_status=1"/>
  496. <action application="set" data="transfer_status=1"/>
  497. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  498. <action application="set" data="variable_sip_network_ip=65.109.231.66"/>
  499. <action application="set" data="variable_sip_network_port=5071"/>
  500. <action application="export" data="domain_name=alpha3.astppbilling.org"/>
  501. <action application="export" data="sip_to_host=alpha3.astppbilling.org"/>
  502. <action application="export" data="presence_data=x|||QA PK Provider(900200)|||^1070099.* // 1070099 // 0.00000|||||||||DID|||65.109.231.66"/>
  503. <action application="export" data="call_type=11"/>
  504. </condition>
  505. </extension>
  506. </context>
  507. </section>
  508. </document>
  509. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
  510. Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
  511. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
  512. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(office_status=open)
  513. 2023-04-26 12:18:32.673321 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
  514. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=1020202000#) INLINE
  515. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(extensions=1020202000#)
  516. span style="color: goldenrod; font-weight: bold;"> 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[1020202000#]
  517. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
  518. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
  519. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
  520. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=12) INLINE
  521. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=12)
  522. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[12]
  523. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
  524. Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
  525. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
  526. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
  527. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
  528. Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
  529. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
  530. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(office_status=open)
  531. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
  532. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=453578) INLINE
  533. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(extensions=453578)
  534. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[453578]
  535. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
  536. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
  537. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
  538. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=11) INLINE
  539. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=11)
  540. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[11]
  541. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
  542. Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
  543. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
  544. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
  545. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
  546. Dialplan: sofia/default/4810338297@65.109.231.66 Date/TimeMatch (FAIL) [PKKKTime] break=never
  547. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->tod route, x1070099] continue=false
  548. Dialplan: sofia/default/4810338297@65.109.231.66 Regex (FAIL) [tod route, x1070099] destination_number(1070099_open) =~ /^(\+?)?(1070099)$/ break=on-false
  549. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->office is open] continue=false
  550. Dialplan: sofia/default/4810338297@65.109.231.66 Regex (PASS) [office is open] destination_number(1070099_open) =~ /^(\+?)?(1070099_open)$/ break=on-false
  551. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(domain_name=alpha3.astppbilling.org)
  552. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(set_extensions=${extensions})
  553. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_flag=true)
  554. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
  555. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
  556. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
  557. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=${no_answer_call_type})
  558. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_number=${extensions})
  559. Dialplan: sofia/default/4810338297@65.109.231.66 Action transfer(90 XML default)
  560. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(domain_name=alpha3.astppbilling.org)
  561. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(domain_name=alpha3.astppbilling.org)
  562. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [domain_name]=[alpha3.astppbilling.org]
  563. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(set_extensions=${extensions})
  564. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(set_extensions=453578)
  565. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [set_extensions]=[453578]
  566. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_flag=true)
  567. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_flag=true)
  568. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_flag]=[true]
  569. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_call_type=${no_answer_call_type})
  570. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=11)
  571. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[11]
  572. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_number=${extensions})
  573. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_number=453578)
  574. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_number]=[453578]
  575. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] transfer(90 XML default)
  576. EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 transfer(90 XML default)
  577. 2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_ivr.c:2289 (sofia/default/4810338297@65.109.231.66) State Change CS_EXECUTE -> CS_ROUTING
  578. 2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/4810338297@65.109.231.66 to XML[90@default]
  579. 2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE going to sleep
  580. 2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_ROUTING (Cur 1 Tot 154)
  581. 2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING
  582. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  583. 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_sofia.c:158 sofia/default/4810338297@65.109.231.66 SOFIA ROUTING
  584. 2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/4810338297@65.109.231.66 Standard ROUTING
  585. 2023-04-26 12:18:32.693314 86.77% [INFO] mod_dialplan_xml.c:639 Processing ASTPP <4810338297>->90 in context default
  586. 2023-04-26 12:18:32.713327 86.77% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
  587. 2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  588. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  589. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  590. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  591. 2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  592. 2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 90
  593. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '90' limit 1
  594. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  595. 2023-04-26 12:18:32.713327 86.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 = '90' and status=0 LIMIT 1
  596. 2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
  597. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  598. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '90' limit 1
  599. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '106' and username = '90' limit 1
  600. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL] Query :SELECT local_effective_caller_id_name,local_effective_caller_id_number FROM sip_devices WHERE username = 'FreeSWITCH' limit 1
  601. 2023-04-26 12:18:32.713327 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  602. 2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : ASTPP / 4810338297
  603. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number
  604. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 90 AND status=0 limit 1
  605. 2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  606. 2023-04-26 12:18:32.713327 86.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="90"  AND domains.domain="95.217.238.195" limit 1
  607. 2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  608. 2023-04-26 12:18:32.713327 86.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("65.109.231.66") 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 "90"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  609. 2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 900200]
  610. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "900200" AND deleted = 0 limit 1
  611. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^90.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 91 limit 1
  612. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  613. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] ringgroup_no_answer_forward _ no_answer_did_number :1070099
  614. 2023-04-26 12:18:32.733317 86.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,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
  615. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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 ="1070099" LIMIT 1
  616. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  617. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
  618. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] ringgroup_no_answer_forward _ accountid :90
  619. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "90" AND deleted = 0 limit 1
  620. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^90.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 90 limit 1
  621. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated RingGroup No Answer Forward :90
  622. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
  623. 2023-04-26 12:18:32.733317 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [ringgroup_no_answer_forward] User Domainalpha3.astppbilling.org
  624. 2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : 11
  625. 2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : Time Conditions
  626. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_extensions_forwarding] Query :select sip_devices.id,sip_device_routing.call_forwarding_flag,sip_device_routing.call_forwarding_destination from sip_devices JOIN sip_device_routing ON sip_devices.id = sip_device_routing.sip_device_id where sip_devices.username = "453578"
  627. 2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC5]
  628. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT 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="453578"  AND domains.domain="alpha3.astppbilling.org" limit 1
  629. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  630. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  631. 2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  632. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  633. <document type="freeswitch/xml">
  634. <section name="dialplan" description="ASTPP Dialplan">
  635. <context name="default">
  636. <extension name="90">
  637. <condition field="destination_number" expression="90">
  638. <action application="export" data="did_user_domain=95.217.238.195"/>
  639. <action application="set" data="continue_on_fail=TRUE"/>
  640. <action application="set" data="ignore_early_media=true"/>
  641. <action application="set" data="no_answer_flag=false"/>
  642. <action application="set" data="did_calltype=11"/>
  643. <action application="set" data="did_extensions=453578"/>
  644. <action application="set" data="daily_call_credit_limit=3385.32920"/>
  645. <action application="set" data="monthly_call_credit_limit=5077.99370"/>
  646. <action application="set" data="daily_call_used_limit=0.00000"/>
  647. <action application="set" data="monthly_call_used_limit=140.70400"/>
  648. <action application="set" data="sip_destination_number=453578"/>
  649. <action application="set" data="sip_to_host=alpha3.astppbilling.org"/>
  650. <action application="set" data="user_domain=alpha3.astppbilling.org"/>
  651. <action application="db" data="insert/pickup_any_group_${callgroup}/453578/${uuid}"/>
  652. <action application="set" data="dialed_extension=transfer_call"/>
  653. <action application="export" data="dialed_extension=transfer_call"/>
  654. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  655. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  656. <action application="export" data="ring_group_transfer=true"/>
  657. <action application="bridge" data="user/453578@alpha3.astppbilling.org"/>
  658. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  659. </condition>
  660. </extension>
  661. </context>
  662. </section>
  663. </document>
  664. Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->90] continue=false
  665. Dialplan: sofia/default/4810338297@65.109.231.66 Regex (PASS) [90] destination_number(90) =~ /90/ break=on-false
  666. Dialplan: sofia/default/4810338297@65.109.231.66 Action export(did_user_domain=95.217.238.195)
  667. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(continue_on_fail=TRUE)
  668. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(ignore_early_media=true)
  669. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_flag=false)
  670. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(did_calltype=11)
  671. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(did_extensions=453578)
  672. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(daily_call_credit_limit=3385.32920)
  673. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(monthly_call_credit_limit=5077.99370)
  674. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(daily_call_used_limit=0.00000)
  675. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(monthly_call_used_limit=140.70400)
  676. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(sip_destination_number=453578)
  677. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(sip_to_host=alpha3.astppbilling.org)
  678. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(user_domain=alpha3.astppbilling.org)
  679. Dialplan: sofia/default/4810338297@65.109.231.66 Action db(insert/pickup_any_group_${callgroup}/453578/${uuid})
  680. Dialplan: sofia/default/4810338297@65.109.231.66 Action set(dialed_extension=transfer_call)
  681. Dialplan: sofia/default/4810338297@65.109.231.66 Action export(dialed_extension=transfer_call)
  682. Dialplan: sofia/default/4810338297@65.109.231.66 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  683. Dialplan: sofia/default/4810338297@65.109.231.66 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  684. Dialplan: sofia/default/4810338297@65.109.231.66 Action export(ring_group_transfer=true)
  685. Dialplan: sofia/default/4810338297@65.109.231.66 Action bridge(user/453578@alpha3.astppbilling.org)
  686. Dialplan: sofia/default/4810338297@65.109.231.66 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  687. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:281 (sofia/default/4810338297@65.109.231.66) State Change CS_ROUTING -> CS_EXECUTE
  688. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING going to sleep
  689. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_EXECUTE (Cur 1 Tot 154)
  690. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE
  691. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:213 sofia/default/4810338297@65.109.231.66 SOFIA EXECUTE
  692. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:323 sofia/default/4810338297@65.109.231.66 Standard EXECUTE
  693. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 export(did_user_domain=95.217.238.195)
  694. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [did_user_domain]=[95.217.238.195]
  695. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(continue_on_fail=TRUE)
  696. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [continue_on_fail]=[TRUE]
  697. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(ignore_early_media=true)
  698. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [ignore_early_media]=[true]
  699. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_flag=false)
  700. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_flag]=[false]
  701. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(did_calltype=11)
  702. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [did_calltype]=[11]
  703. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(did_extensions=453578)
  704. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [did_extensions]=[453578]
  705. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(daily_call_credit_limit=3385.32920)
  706. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [daily_call_credit_limit]=[3385.32920]
  707. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(monthly_call_credit_limit=5077.99370)
  708. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [monthly_call_credit_limit]=[5077.99370]
  709. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(daily_call_used_limit=0.00000)
  710. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [daily_call_used_limit]=[0.00000]
  711. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(monthly_call_used_limit=140.70400)
  712. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [monthly_call_used_limit]=[140.70400]
  713. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(sip_destination_number=453578)
  714. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [sip_destination_number]=[453578]
  715. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(sip_to_host=alpha3.astppbilling.org)
  716. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [sip_to_host]=[alpha3.astppbilling.org]
  717. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(user_domain=alpha3.astppbilling.org)
  718. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [user_domain]=[alpha3.astppbilling.org]
  719. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 db(insert/pickup_any_group_/453578/997a1c3e-5a62-4f26-94bc-fcc9027f2673)
  720. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(dialed_extension=transfer_call)
  721. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [dialed_extension]=[transfer_call]
  722. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 export(dialed_extension=transfer_call)
  723. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  724. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  725. 2023-04-26 12:18:32.753338 86.77% [INFO] switch_ivr_async.c:4774 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  726. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  727. 2023-04-26 12:18:32.753338 86.77% [INFO] switch_ivr_async.c:4774 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  728. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 export(ring_group_transfer=true)
  729. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [ring_group_transfer]=[true]
  730. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 bridge(user/453578@alpha3.astppbilling.org)
  731. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [did_user_domain]=[95.217.238.195] to event
  732. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  733. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [ring_group_transfer]=[true] to event
  734. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  735. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [did_user_domain]=[95.217.238.195] to event
  736. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  737. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [ring_group_transfer]=[true] to event
  738. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  739. 2023-04-26 12:18:32.753338 86.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/453578@103.240.35.46:45685 [63ed2f2f-ca3f-40dd-ae2d-05e57660f8e8]
  740. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:5121 (sofia/default/453578@103.240.35.46:45685) State Change CS_NEW -> CS_INIT
  741. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_INIT (Cur 2 Tot 155)
  742. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/453578@103.240.35.46:45685) State INIT
  743. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:97 sofia/default/453578@103.240.35.46:45685 SOFIA INIT
  744. 2023-04-26 12:18:32.753338 86.77% [DEBUG] sofia_glue.c:1620 sip:453578@103.240.35.46:60412;rinstance=ab52ddfda677f2fb;transport=TCP Setting proxy route to sofia/default/453578@103.240.35.46:45685
  745. 2023-04-26 12:18:32.753338 86.77% [INFO] sofia_glue.c:1651 sofia/default/453578@103.240.35.46:45685 sending invite call-id: (null)
  746. 2023-04-26 12:18:32.753338 86.77% [DEBUG] sofia_glue.c:1654 sofia/default/453578@103.240.35.46:45685 sending invite version: 1.10.7 -release 64bit
  747. Local SDP:
  748. v=0
  749. o=FreeSWITCH 1682486352 1682486353 IN IP4 95.217.238.195
  750. s=FreeSWITCH
  751. c=IN IP4 95.217.238.195
  752. t=0 0
  753. m=audio 25160 RTP/AVP 8 101
  754. a=rtpmap:8 PCMA/8000
  755. a=rtpmap:101 telephone-event/8000
  756. a=fmtp:101 0-15
  757. a=ptime:20
  758. a=sendrecv
  759.  
  760. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:40 sofia/default/453578@103.240.35.46:45685 Standard INIT
  761. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:48 (sofia/default/453578@103.240.35.46:45685) State Change CS_INIT -> CS_ROUTING
  762. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/453578@103.240.35.46:45685) State INIT going to sleep
  763. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_ROUTING (Cur 2 Tot 155)
  764. 2023-04-26 12:18:32.753338 86.77% [DEBUG] sofia.c:7499 Channel sofia/default/453578@103.240.35.46:45685 entering state [calling][0]
  765. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/453578@103.240.35.46:45685) State ROUTING
  766. 2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:158 sofia/default/453578@103.240.35.46:45685 SOFIA ROUTING
  767. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_ivr_originate.c:67 (sofia/default/453578@103.240.35.46:45685) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  768. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/453578@103.240.35.46:45685) State ROUTING going to sleep
  769. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 155)
  770. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:659 (sofia/default/453578@103.240.35.46:45685) State CONSUME_MEDIA
  771. 2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:659 (sofia/default/453578@103.240.35.46:45685) State CONSUME_MEDIA going to sleep
  772. 2023-04-26 12:18:33.373357 86.70% [WARNING] sofia_reg.c:3223 Can't find user [4763591959@alpha5.astppbilling.org] from 103.240.35.46
  773. You must define a domain called 'alpha5.astppbilling.org' in your directory and add a user with the id="4763591959" attribute
  774. and you must configure your device to use the proper domain in its authentication credentials.
  775. 2023-04-26 12:18:33.613351 86.70% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
  776. 2023-04-26 12:18:34.013364 86.70% [DEBUG] sofia.c:7499 Channel sofia/default/453578@103.240.35.46:45685 entering state [proceeding][180]
  777. 2023-04-26 12:18:34.013364 86.70% [NOTICE] sofia.c:7610 Ring-Ready sofia/default/453578@103.240.35.46:45685!
  778. 2023-04-26 12:18:34.013364 86.70% [NOTICE] mod_sofia.c:2515 Ring-Ready sofia/default/4810338297@65.109.231.66!
  779. 2023-04-26 12:18:34.013364 86.70% [DEBUG] switch_channel.c:3494 (sofia/default/453578@103.240.35.46:45685) Callstate Change DOWN -> RINGING
  780. 2023-04-26 12:18:34.013364 86.70% [DEBUG] sofia.c:7499 Channel sofia/default/4810338297@65.109.231.66 entering state [early][180]
  781. 2023-04-26 12:18:34.013364 86.70% [NOTICE] switch_ivr_originate.c:565 Ring Ready sofia/default/4810338297@65.109.231.66!
  782. 2023-04-26 12:18:34.253367 86.63% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
  783. 2023-04-26 12:18:35.293342 86.97% [WARNING] sofia_reg.c:3223 Can't find user [4763591959@alpha5.astppbilling.org] from 103.240.35.46
  784. You must define a domain called 'alpha5.astppbilling.org' in your directory and add a user with the id="4763591959" attribute
  785. and you must configure your device to use the proper domain in its authentication credentials.
  786. 2023-04-26 12:18:35.593384 86.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
  787. 2023-04-26 12:18:36.513387 86.73% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4727985745@alpha.astppbilling.org] from ip 103.240.35.46
  788. 2023-04-26 12:18:36.853326 86.73% [WARNING] sofia_reg.c:3223 Can't find user [4727985745@alpha.astppbilling.org] from 103.240.35.46
  789. You must define a domain called 'alpha.astppbilling.org' in your directory and add a user with the id="4727985745" attribute
  790. and you must configure your device to use the proper domain in its authentication credentials.
  791. 2023-04-26 12:18:37.433337 86.57% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [192038@alpha.astppbilling.org] from ip 103.240.35.46
  792. 2023-04-26 12:18:38.133374 86.57% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [900100@alpha3.astppbilling.org] from ip 103.240.35.46
  793. 2023-04-26 12:18:38.475005 86.43% [WARNING] sofia_reg.c:3223 Can't find user [192038@alpha.astppbilling.org] from 103.240.35.46
  794. You must define a domain called 'alpha.astppbilling.org' in your directory and add a user with the id="192038" attribute
  795. and you must configure your device to use the proper domain in its authentication credentials.
  796. 2023-04-26 12:18:41.573426 87.17% [DEBUG] sofia.c:7499 Channel sofia/default/453578@103.240.35.46:45685 entering state [terminated][486]
  797. 2023-04-26 12:18:41.573426 87.17% [NOTICE] sofia.c:8738 Hangup sofia/default/453578@103.240.35.46:45685 [CS_CONSUME_MEDIA] [USER_BUSY]
  798. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_HANGUP (Cur 2 Tot 155)
  799. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/453578@103.240.35.46:45685) Callstate Change RINGING -> HANGUP
  800. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/453578@103.240.35.46:45685) State HANGUP
  801. 2023-04-26 12:18:41.573426 87.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/453578@103.240.35.46:45685 hanging up, cause: USER_BUSY
  802. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/453578@103.240.35.46:45685 Standard HANGUP, cause: USER_BUSY
  803. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/453578@103.240.35.46:45685) State HANGUP going to sleep
  804. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/453578@103.240.35.46:45685) State Change CS_HANGUP -> CS_REPORTING
  805. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_REPORTING (Cur 2 Tot 155)
  806. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/453578@103.240.35.46:45685) State REPORTING
  807. 2023-04-26 12:18:41.573426 87.17% [INFO] mod_json_cdr.c:271 Process [63ed2f2f-ca3f-40dd-ae2d-05e57660f8e8.cdr.json]
  808. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 17 [USER_BUSY]
  809. 2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_ivr_originate.c:3039 Cannot create outgoing channel of type [user] cause: [USER_BUSY]
  810. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 17 [USER_BUSY]
  811. 2023-04-26 12:18:41.573426 87.17% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: USER_BUSY
  812. EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  813. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  814. 2023-04-26 12:18:41.573426 87.17% [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')
  815. 2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_cpp.cpp:1465 [Astpp_SIP-Devices] This Is Last Dispositions USER_BUSY This Is SIP Number : 453578
  816. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  817. 2023-04-26 12:18:41.573426 87.17% [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')
  818. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/453578@103.240.35.46:45685 Standard REPORTING, cause: USER_BUSY
  819. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/453578@103.240.35.46:45685) State REPORTING going to sleep
  820. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/453578@103.240.35.46:45685) State Change CS_REPORTING -> CS_DESTROY
  821. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_session.c:1753 Session 155 (sofia/default/453578@103.240.35.46:45685) Locked, Waiting on external entities
  822. 2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_core_session.c:1771 Session 155 (sofia/default/453578@103.240.35.46:45685) Ended
  823. 2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/453578@103.240.35.46:45685 [CS_DESTROY]
  824. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_DESTROY (Cur 1 Tot 155)
  825. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/453578@103.240.35.46:45685) State DESTROY
  826. 2023-04-26 12:18:41.573426 87.17% [DEBUG] mod_sofia.c:379 sofia/default/453578@103.240.35.46:45685 SOFIA DESTROY
  827. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/453578@103.240.35.46:45685 Standard DESTROY
  828. 2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/453578@103.240.35.46:45685) State DESTROY going to sleep
  829. 2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_cpp.cpp:1465 [Astpp_SIP-Devices] dialed_user for voicemail::: 453578
  830. 2023-04-26 12:18:41.613319 87.17% [ERR] mod_lua.cpp:202 ...switch/scripts/astpp/lib/pbx/astpp-custom-voice-mail.lua:57: attempt to concatenate local 'userinfo_id' (a nil value)
  831. stack traceback:
  832.         ...switch/scripts/astpp/lib/pbx/astpp-custom-voice-mail.lua:57: in function 'custom_voicemail'
  833.         ...switch/scripts/astpp/lib/pbx/astpp-sipdevice-routing.lua:174: in main chunk
  834. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_cpp.cpp:1209 sofia/default/4810338297@65.109.231.66 destroy/unlink session from object
  835. 2023-04-26 12:18:41.613319 87.17% [NOTICE] switch_core_state_machine.c:382 sofia/default/4810338297@65.109.231.66 has executed the last dialplan instruction, hanging up.
  836. 2023-04-26 12:18:41.613319 87.17% [NOTICE] switch_core_state_machine.c:384 Hangup sofia/default/4810338297@65.109.231.66 [CS_EXECUTE] [NORMAL_CLEARING]
  837. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE going to sleep
  838. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_HANGUP (Cur 1 Tot 155)
  839. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/4810338297@65.109.231.66) Callstate Change RINGING -> HANGUP
  840. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/4810338297@65.109.231.66) State HANGUP
  841. 2023-04-26 12:18:41.613319 87.17% [DEBUG] mod_sofia.c:462 sofia/default/4810338297@65.109.231.66 Overriding SIP cause 480 with 486 from the other leg
  842. 2023-04-26 12:18:41.613319 87.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/4810338297@65.109.231.66 hanging up, cause: NORMAL_CLEARING
  843. 2023-04-26 12:18:41.613319 87.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 486
  844. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/4810338297@65.109.231.66 Standard HANGUP, cause: NORMAL_CLEARING
  845. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/4810338297@65.109.231.66) State HANGUP going to sleep
  846. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/4810338297@65.109.231.66) State Change CS_HANGUP -> CS_REPORTING
  847. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_REPORTING (Cur 1 Tot 155)
  848. 2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/4810338297@65.109.231.66) State REPORTING
  849. 2023-04-26 12:18:41.613319 87.17% [INFO] mod_json_cdr.c:271 Process [997a1c3e-5a62-4f26-94bc-fcc9027f2673.cdr.json]
  850. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/4810338297@65.109.231.66 Standard REPORTING, cause: NORMAL_CLEARING
  851. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/4810338297@65.109.231.66) State REPORTING going to sleep
  852. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/4810338297@65.109.231.66) State Change CS_REPORTING -> CS_DESTROY
  853. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_session.c:1753 Session 154 (sofia/default/4810338297@65.109.231.66) Locked, Waiting on external entities
  854. 2023-04-26 12:18:41.633336 87.17% [NOTICE] switch_core_session.c:1771 Session 154 (sofia/default/4810338297@65.109.231.66) Ended
  855. 2023-04-26 12:18:41.633336 87.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/4810338297@65.109.231.66 [CS_DESTROY]
  856. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/4810338297@65.109.231.66) Running State Change CS_DESTROY (Cur 0 Tot 155)
  857. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/4810338297@65.109.231.66) State DESTROY
  858. 2023-04-26 12:18:41.633336 87.17% [DEBUG] mod_sofia.c:379 sofia/default/4810338297@65.109.231.66 SOFIA DESTROY
  859. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/4810338297@65.109.231.66 Standard DESTROY
  860. 2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/4810338297@65.109.231.66) State DESTROY going to sleep
  861. 2023-04-26 12:18:59.413340 86.70% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [21@alpha.astppbilling.org] from ip 103.240.35.46