From Prashant Kumar, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@BetaQA>
  2. 2023-02-28 10:45:43.075951 91.70% [NOTICE] switch_channel.c:1123 New Channel sofia/default/990004@astppqa603.astppbilling.org:5076 [2a010d96-e994-4011-80d4-a7f2abf8bd5f]
  3. 2023-02-28 10:45:43.075951 91.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_NEW (Cur 1 Tot 14)
  4. 2023-02-28 10:45:43.075951 91.70% [INFO] sofia.c:10462 sofia/default/990004@astppqa603.astppbilling.org:5076 receiving invite from 103.240.35.46:33183 version: 1.10.7 -release 64bit call-id: NTAwNzM4YTFkZjIwNGZhNjQyNmM0NzQzMGI0MmJjZDk.
  5. 2023-02-28 10:45:43.075951 91.70% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  6. 2023-02-28 10:45:43.075951 91.70% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [1030404004@astppqa603.astppbilling.org] from ip 103.240.35.46
  7. 2023-02-28 10:45:43.075951 91.70% [DEBUG] switch_core_state_machine.c:600 (sofia/default/990004@astppqa603.astppbilling.org:5076) State NEW
  8. 2023-02-28 10:45:43.075951 91.70% [DEBUG] sofia.c:2419 detaching session 2a010d96-e994-4011-80d4-a7f2abf8bd5f
  9. 2023-02-28 10:45:43.655946 92.60% [DEBUG] sofia.c:2532 Re-attaching to session 2a010d96-e994-4011-80d4-a7f2abf8bd5f
  10. 2023-02-28 10:45:43.675959 92.60% [INFO] sofia.c:10462 sofia/default/990004@astppqa603.astppbilling.org:5076 receiving invite from 103.240.35.46:33183 version: 1.10.7 -release 64bit call-id: NTAwNzM4YTFkZjIwNGZhNjQyNmM0NzQzMGI0MmJjZDk.
  11. 2023-02-28 10:45:43.675959 92.60% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  12. 2023-02-28 10:45:43.675959 92.60% [DEBUG] sofia.c:7499 Channel sofia/default/990004@astppqa603.astppbilling.org:5076 entering state [received][100]
  13. 2023-02-28 10:45:43.675959 92.60% [DEBUG] sofia.c:7509 Remote SDP:
  14. v=0
  15. o=Z 0 0 IN IP4 103.240.35.46
  16. s=Z
  17. c=IN IP4 103.240.35.46
  18. t=0 0
  19. m=audio 3576 RTP/AVP 3 110 8 0 98 101
  20. a=rtpmap:110 speex/8000
  21. a=rtpmap:98 iLBC/8000
  22. a=fmtp:98 mode=20
  23. a=rtpmap:101 telephone-event/8000
  24. a=fmtp:101 0-15
  25.  
  26. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  27. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  28. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  29. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  30. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  31. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  32. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  33. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  34. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  35. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  36. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  37. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  38. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  39. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/990004@astppqa603.astppbilling.org:5076 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  40. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_codec.c:111 sofia/default/990004@astppqa603.astppbilling.org:5076 Original read codec set to PCMA:8
  41. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  42. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_media.c:5973 sofia/default/990004@astppqa603.astppbilling.org:5076 Set 2833 dtmf send payload to 101 recv payload to 101
  43. 2023-02-28 10:45:43.675959 92.60% [DEBUG] sofia.c:7933 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_NEW -> CS_INIT
  44. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_INIT (Cur 1 Tot 14)
  45. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:624 (sofia/default/990004@astppqa603.astppbilling.org:5076) State INIT
  46. 2023-02-28 10:45:43.675959 92.60% [DEBUG] mod_sofia.c:97 sofia/default/990004@astppqa603.astppbilling.org:5076 SOFIA INIT
  47. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:40 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard INIT
  48. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:48 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_INIT -> CS_ROUTING
  49. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:624 (sofia/default/990004@astppqa603.astppbilling.org:5076) State INIT going to sleep
  50. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_ROUTING (Cur 1 Tot 14)
  51. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_channel.c:2380 (sofia/default/990004@astppqa603.astppbilling.org:5076) Callstate Change DOWN -> RINGING
  52. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:640 (sofia/default/990004@astppqa603.astppbilling.org:5076) State ROUTING
  53. 2023-02-28 10:45:43.675959 92.60% [DEBUG] mod_sofia.c:158 sofia/default/990004@astppqa603.astppbilling.org:5076 SOFIA ROUTING
  54. 2023-02-28 10:45:43.675959 92.60% [DEBUG] switch_core_state_machine.c:230 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard ROUTING
  55. 2023-02-28 10:45:43.675959 92.60% [INFO] mod_dialplan_xml.c:639 Processing 990004 <990004>->1030404004 in context default
  56. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  57. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  58. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  59. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  60. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  61. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1030404004
  62. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1030404004' limit 1
  63. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  64. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1030404004' and status=0 LIMIT 1
  65. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER990004
  66. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  67. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '1030404004' limit 1
  68. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 990004 / 990004
  69. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 4004
  70. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 103040 AND status=0 limit 1
  71. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  72. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="1030404004"  AND domains.domain="astppqa603.astppbilling.org" limit 1
  73. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  74. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 990004]
  75. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "990004" AND deleted = 0 limit 1
  76. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^1030404004.*' OR blocked_patterns = '^103040400.*' OR blocked_patterns = '^10304040.*' OR blocked_patterns = '^1030404.*' OR blocked_patterns = '^103040.*' OR blocked_patterns = '^10304.*' OR blocked_patterns = '^1030.*' OR blocked_patterns = '^103.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 63 limit 1
  77. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  78. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^1030404004.*' OR patterns = '^103040400.*' OR patterns = '^10304040.*' OR patterns = '^1030404.*' OR patterns = '^103040.*' OR patterns = '^10304.*' OR patterns = '^1030.*' OR patterns = '^103.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 63 ORDER BY LENGTH(PKGPTR.patterns) DESC
  79. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="1030404004" AND A.accountid = '63' limit 1
  80. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1030404004
  81. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  82. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="1030404004"  AND domains.domain="astppqa603.astppbilling.org" limit 1
  83. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  84. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '1030404004' OR number = '103040400' OR number = '10304040' OR number = '1030404' OR number = '103040' OR number = '10304' OR number = '1030' OR number = '103' OR number = '10' OR number = '1' OR number ='--') OR (number = '1030404004*' OR number = '103040400*' OR number = '10304040*' OR number = '1030404*' OR number = '103040*' OR number = '10304*' OR number = '1030*' OR number = '103*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '990004' OR number = '99000' OR number = '9900' OR number = '990' OR number = '99' OR number = '9' OR number ='--') OR (number = '990004*' OR number = '99000*' OR number = '9900*' OR number = '990*' OR number = '99*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  85. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Number: 990004 : Type: 1 (0 for CLI, 1 for DST))
  86. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Number::::****
  87. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  88. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1030404004' OR routing_prefix = '103040400' OR routing_prefix = '10304040' OR routing_prefix = '1030404' OR routing_prefix = '103040' OR routing_prefix = '10304' OR routing_prefix = '1030' OR routing_prefix = '103' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 61 limit 1
  89. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  90. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 63
  91. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 990004
  92. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 1029435.75
  93. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  94. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 138
  95. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  96. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  97. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  98. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::138
  99. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  100. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  101. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::138
  102. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^1030404004.*' OR pattern = '^103040400.*' OR pattern = '^10304040.*' OR pattern = '^1030404.*' OR pattern = '^103040.*' OR pattern = '^10304.*' OR pattern = '^1030.*' OR pattern = '^103.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^990004.*' OR caller_id_pattern = '^99000.*' OR caller_id_pattern = '^9900.*' OR caller_id_pattern = '^990.*' OR caller_id_pattern = '^99.*' OR caller_id_pattern = '^9.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 138 OR accountid=63)  ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  103. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  104. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  105. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3
  106. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  107. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  108. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.99000
  109. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Washington
  110. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 201
  111. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 63
  112. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  113. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  114. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  115. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your1029435.75 balance Accountid 63 !!!
  116. 2023-02-28 10:45:43.695954 92.60% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  117. 2023-02-28 10:45:43.695954 92.60% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 61
  118. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "61" AND deleted = 0 limit 1
  119. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^1030404004.*' OR blocked_patterns = '^103040400.*' OR blocked_patterns = '^10304040.*' OR blocked_patterns = '^1030404.*' OR blocked_patterns = '^103040.*' OR blocked_patterns = '^10304.*' OR blocked_patterns = '^1030.*' OR blocked_patterns = '^103.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 61 limit 1
  120. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  121. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 61
  122. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 990003
  123. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 19417.95
  124. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  125. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 137
  126. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  127. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::137
  128. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  129. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  130. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::137
  131. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^1030404004.*' OR pattern = '^103040400.*' OR pattern = '^10304040.*' OR pattern = '^1030404.*' OR pattern = '^103040.*' OR pattern = '^10304.*' OR pattern = '^1030.*' OR pattern = '^103.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^990004.*' OR caller_id_pattern = '^99000.*' OR caller_id_pattern = '^9900.*' OR caller_id_pattern = '^990.*' OR caller_id_pattern = '^99.*' OR caller_id_pattern = '^9.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 137 OR accountid=61)  ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  132. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  133. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  134. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  135. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  136. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  137. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.60000
  138. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : QA-PKK
  139. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 157
  140. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 61
  141. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  142. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  143. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  144. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your19417.95 balance Accountid 61 !!!
  145. 2023-02-28 10:45:43.695954 92.60% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  146. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:3|CODE:^1.*|DESTINATION:Washington|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.99000|INC:60|INITIALBLOCK:60|RATEGROUP:138|MARKUP:0|CI:201|ACCID:63||ID:2|CODE:^1.*|DESTINATION:QA-PKK|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.60000|INC:60|INITIALBLOCK:60|RATEGROUP:137|MARKUP:0|CI:157|ACCID:61
  147. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  148. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 0
  149. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  150. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
  151. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=137 ORDER by id asc
  152. 2023-02-28 10:45:43.695954 92.60% [ERR] mod_lua.cpp:202 ./astpp/lib/astpp.functions.lua:1447: attempt to index global 'quality_routing_type' (a nil value)
  153. stack traceback:
  154.         ./astpp/lib/astpp.functions.lua:1447: in function 'get_carrier_rates'
  155.         ./astpp/scripts/astpp.dialplan.lua:891: in main chunk
  156.         [C]: in function 'dofile'
  157.         ./astpp/astpp_deb9.lua:138: in main chunk
  158. 2023-02-28 10:45:43.695954 92.60% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  159. 2023-02-28 10:45:43.695954 92.60% [WARNING] mod_dialplan_xml.c:669 Context default not found
  160. 2023-02-28 10:45:43.695954 92.60% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  161. 2023-02-28 10:45:43.695954 92.60% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/990004@astppqa603.astppbilling.org:5076 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  162. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_core_state_machine.c:640 (sofia/default/990004@astppqa603.astppbilling.org:5076) State ROUTING going to sleep
  163. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_HANGUP (Cur 1 Tot 14)
  164. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_core_state_machine.c:844 (sofia/default/990004@astppqa603.astppbilling.org:5076) Callstate Change RINGING -> HANGUP
  165. 2023-02-28 10:45:43.695954 92.60% [DEBUG] switch_core_state_machine.c:846 (sofia/default/990004@astppqa603.astppbilling.org:5076) State HANGUP
  166. 2023-02-28 10:45:43.695954 92.60% [DEBUG] mod_sofia.c:468 Channel sofia/default/990004@astppqa603.astppbilling.org:5076 hanging up, cause: NO_ROUTE_DESTINATION
  167. 2023-02-28 10:45:43.735927 92.60% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  168. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:59 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  169. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:846 (sofia/default/990004@astppqa603.astppbilling.org:5076) State HANGUP going to sleep
  170. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:616 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_HANGUP -> CS_REPORTING
  171. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_REPORTING (Cur 1 Tot 14)
  172. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:932 (sofia/default/990004@astppqa603.astppbilling.org:5076) State REPORTING
  173. 2023-02-28 10:45:43.735927 92.60% [INFO] mod_json_cdr.c:271 Process [2a010d96-e994-4011-80d4-a7f2abf8bd5f.cdr.json]
  174. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:168 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  175. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:932 (sofia/default/990004@astppqa603.astppbilling.org:5076) State REPORTING going to sleep
  176. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:607 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_REPORTING -> CS_DESTROY
  177. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_session.c:1753 Session 14 (sofia/default/990004@astppqa603.astppbilling.org:5076) Locked, Waiting on external entities
  178. 2023-02-28 10:45:43.735927 92.60% [NOTICE] switch_core_session.c:1771 Session 14 (sofia/default/990004@astppqa603.astppbilling.org:5076) Ended
  179. 2023-02-28 10:45:43.735927 92.60% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/990004@astppqa603.astppbilling.org:5076 [CS_DESTROY]
  180. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:735 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_DESTROY (Cur 0 Tot 14)
  181. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:745 (sofia/default/990004@astppqa603.astppbilling.org:5076) State DESTROY
  182. 2023-02-28 10:45:43.735927 92.60% [DEBUG] mod_sofia.c:379 sofia/default/990004@astppqa603.astppbilling.org:5076 SOFIA DESTROY
  183. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:175 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard DESTROY
  184. 2023-02-28 10:45:43.735927 92.60% [DEBUG] switch_core_state_machine.c:745 (sofia/default/990004@astppqa603.astppbilling.org:5076) State DESTROY going to sleep
  185. freeswitch@BetaQA>