From Prashant Kumar, 1 Year ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and Quality audio error in astpp.function.lua file
  1.  
  2. [This app Best viewed at 160x60 or more..]
  3. +OK log level  [7]
  4. freeswitch@BetaQA>
  5. freeswitch@BetaQA>
  6. freeswitch@BetaQA>
  7. freeswitch@BetaQA>
  8. 2023-02-28 10:37:42.535961 94.23% [NOTICE] switch_channel.c:1123 New Channel sofia/default/990004@astppqa603.astppbilling.org:5076 [7d0afad2-9ecf-499a-9055-66e778edef79]
  9. 2023-02-28 10:37:42.535961 94.23% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_NEW (Cur 1 Tot 13)
  10. 2023-02-28 10:37:42.535961 94.23% [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: OTZiMGMyNzEzZjM0OWJiNWRhOGFiYThmOGY1NzBmMmM.
  11. 2023-02-28 10:37:42.535961 94.23% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  12. 2023-02-28 10:37:42.535961 94.23% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [103030303@astppqa603.astppbilling.org] from ip 103.240.35.46
  13. 2023-02-28 10:37:42.535961 94.23% [DEBUG] switch_core_state_machine.c:600 (sofia/default/990004@astppqa603.astppbilling.org:5076) State NEW
  14. 2023-02-28 10:37:42.535961 94.23% [DEBUG] sofia.c:2419 detaching session 7d0afad2-9ecf-499a-9055-66e778edef79
  15. 2023-02-28 10:37:42.875960 94.23% [DEBUG] sofia.c:2532 Re-attaching to session 7d0afad2-9ecf-499a-9055-66e778edef79
  16. 2023-02-28 10:37:42.875960 94.23% [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: OTZiMGMyNzEzZjM0OWJiNWRhOGFiYThmOGY1NzBmMmM.
  17. 2023-02-28 10:37:42.875960 94.23% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  18. 2023-02-28 10:37:42.895946 94.23% [DEBUG] sofia.c:7499 Channel sofia/default/990004@astppqa603.astppbilling.org:5076 entering state [received][100]
  19. 2023-02-28 10:37:42.895946 94.23% [DEBUG] sofia.c:7509 Remote SDP:
  20. v=0
  21. o=Z 0 0 IN IP4 103.240.35.46
  22. s=Z
  23. c=IN IP4 103.240.35.46
  24. t=0 0
  25. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  26. a=rtpmap:110 speex/8000
  27. a=rtpmap:98 iLBC/8000
  28. a=fmtp:98 mode=20
  29. a=rtpmap:101 telephone-event/8000
  30. a=fmtp:101 0-15
  31.  
  32. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  33. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  34. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  35. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  36. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  37. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  38. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  39. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  40. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  41. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  42. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  43. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  44. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  45. 2023-02-28 10:37:42.895946 94.23% [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
  46. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_codec.c:111 sofia/default/990004@astppqa603.astppbilling.org:5076 Original read codec set to PCMA:8
  47. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  48. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_media.c:5973 sofia/default/990004@astppqa603.astppbilling.org:5076 Set 2833 dtmf send payload to 101 recv payload to 101
  49. 2023-02-28 10:37:42.895946 94.23% [DEBUG] sofia.c:7933 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_NEW -> CS_INIT
  50. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_INIT (Cur 1 Tot 13)
  51. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:624 (sofia/default/990004@astppqa603.astppbilling.org:5076) State INIT
  52. 2023-02-28 10:37:42.895946 94.23% [DEBUG] mod_sofia.c:97 sofia/default/990004@astppqa603.astppbilling.org:5076 SOFIA INIT
  53. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:40 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard INIT
  54. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:48 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_INIT -> CS_ROUTING
  55. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:624 (sofia/default/990004@astppqa603.astppbilling.org:5076) State INIT going to sleep
  56. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_ROUTING (Cur 1 Tot 13)
  57. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_channel.c:2380 (sofia/default/990004@astppqa603.astppbilling.org:5076) Callstate Change DOWN -> RINGING
  58. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:640 (sofia/default/990004@astppqa603.astppbilling.org:5076) State ROUTING
  59. 2023-02-28 10:37:42.895946 94.23% [DEBUG] mod_sofia.c:158 sofia/default/990004@astppqa603.astppbilling.org:5076 SOFIA ROUTING
  60. 2023-02-28 10:37:42.895946 94.23% [DEBUG] switch_core_state_machine.c:230 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard ROUTING
  61. 2023-02-28 10:37:42.895946 94.23% [INFO] mod_dialplan_xml.c:639 Processing 990004 <990004>->103030303 in context default
  62. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  63. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  64. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  65. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  66. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  67. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 103030303
  68. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '103030303' limit 1
  69. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  70. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '103030303' and status=0 LIMIT 1
  71. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER990004
  72. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  73. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '103030303' limit 1
  74. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 990004 / 990004
  75. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 303
  76. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 103030 AND status=0 limit 1
  77. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  78. 2023-02-28 10:37:42.915948 94.23% [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="103030303"  AND domains.domain="astppqa603.astppbilling.org" limit 1
  79. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  80. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 990004]
  81. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "990004" AND deleted = 0 limit 1
  82. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^103030303.*' OR blocked_patterns = '^10303030.*' OR blocked_patterns = '^1030303.*' OR blocked_patterns = '^103030.*' OR blocked_patterns = '^10303.*' OR blocked_patterns = '^1030.*' OR blocked_patterns = '^103.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 63 limit 1
  83. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  84. 2023-02-28 10:37:42.915948 94.23% [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 = '^103030303.*' OR patterns = '^10303030.*' OR patterns = '^1030303.*' OR patterns = '^103030.*' OR patterns = '^10303.*' OR patterns = '^1030.*' OR patterns = '^103.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 63 ORDER BY LENGTH(PKGPTR.patterns) DESC
  85. 2023-02-28 10:37:42.915948 94.23% [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 ="103030303" AND A.accountid = '63' limit 1
  86. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 103030303
  87. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  88. 2023-02-28 10:37:42.915948 94.23% [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="103030303"  AND domains.domain="astppqa603.astppbilling.org" limit 1
  89. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  90. 2023-02-28 10:37:42.915948 94.23% [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 = '103030303' OR number = '10303030' OR number = '1030303' OR number = '103030' OR number = '10303' OR number = '1030' OR number = '103' OR number = '10' OR number = '1' OR number ='--') OR (number = '103030303*' OR number = '10303030*' OR number = '1030303*' OR number = '103030*' OR number = '10303*' 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
  91. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Number: 990004 : Type: 1 (0 for CLI, 1 for DST))
  92. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Number::::****
  93. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  94. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '103030303' OR routing_prefix = '10303030' OR routing_prefix = '1030303' OR routing_prefix = '103030' OR routing_prefix = '10303' 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
  95. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  96. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 63
  97. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 990004
  98. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 1029435.75
  99. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  100. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 138
  101. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  102. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  103. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  104. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::138
  105. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  106. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  107. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::138
  108. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^103030303.*' OR pattern = '^10303030.*' OR pattern = '^1030303.*' OR pattern = '^103030.*' OR pattern = '^10303.*' 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
  109. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  110. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  111. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3
  112. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  113. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  114. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.99000
  115. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Washington
  116. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 201
  117. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 63
  118. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  119. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  120. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  121. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your1029435.75 balance Accountid 63 !!!
  122. 2023-02-28 10:37:42.915948 94.23% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  123. 2023-02-28 10:37:42.915948 94.23% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 61
  124. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "61" AND deleted = 0 limit 1
  125. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^103030303.*' OR blocked_patterns = '^10303030.*' OR blocked_patterns = '^1030303.*' OR blocked_patterns = '^103030.*' OR blocked_patterns = '^10303.*' OR blocked_patterns = '^1030.*' OR blocked_patterns = '^103.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 61 limit 1
  126. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  127. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 61
  128. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 990003
  129. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 19417.95
  130. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  131. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 137
  132. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  133. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::137
  134. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  135. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  136. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::137
  137. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^103030303.*' OR pattern = '^10303030.*' OR pattern = '^1030303.*' OR pattern = '^103030.*' OR pattern = '^10303.*' 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
  138. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  139. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  140. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  141. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  142. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  143. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.60000
  144. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : QA-PKK
  145. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 157
  146. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 61
  147. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  148. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  149. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  150. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your19417.95 balance Accountid 61 !!!
  151. 2023-02-28 10:37:42.915948 94.23% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  152. 2023-02-28 10:37:42.915948 94.23% [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
  153. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  154. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 0
  155. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  156. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
  157. 2023-02-28 10:37:42.915948 94.23% [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
  158. 2023-02-28 10:37:42.915948 94.23% [ERR] switch_core_sqldb.c:1310 ERR: [SELECT * from quality_based_routing where id =1]
  159. [STATE: 42S02 CODE 1146 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.32]Table 'astpp.quality_based_routing' doesn't exist
  160. ]
  161. 2023-02-28 10:37:42.915948 94.23% [ERR] mod_lua.cpp:202 ./astpp/lib/astpp.functions.lua:1486: assertion failed!
  162. stack traceback:
  163.         [C]: in function 'assert'
  164.         ./astpp/lib/astpp.functions.lua:1486: in function 'get_quality_audio'
  165.         ./astpp/lib/astpp.functions.lua:1446: in function 'get_carrier_rates'
  166.         ./astpp/scripts/astpp.dialplan.lua:891: in main chunk
  167.         [C]: in function 'dofile'
  168.         ./astpp/astpp_deb9.lua:138: in main chunk
  169. 2023-02-28 10:37:42.915948 94.23% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  170. 2023-02-28 10:37:42.915948 94.23% [WARNING] mod_dialplan_xml.c:669 Context default not found
  171. 2023-02-28 10:37:42.915948 94.23% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  172. 2023-02-28 10:37:42.915948 94.23% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/990004@astppqa603.astppbilling.org:5076 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  173. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:640 (sofia/default/990004@astppqa603.astppbilling.org:5076) State ROUTING going to sleep
  174. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_HANGUP (Cur 1 Tot 13)
  175. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:844 (sofia/default/990004@astppqa603.astppbilling.org:5076) Callstate Change RINGING -> HANGUP
  176. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:846 (sofia/default/990004@astppqa603.astppbilling.org:5076) State HANGUP
  177. 2023-02-28 10:37:42.915948 94.23% [DEBUG] mod_sofia.c:468 Channel sofia/default/990004@astppqa603.astppbilling.org:5076 hanging up, cause: NO_ROUTE_DESTINATION
  178. 2023-02-28 10:37:42.915948 94.23% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  179. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:59 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  180. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:846 (sofia/default/990004@astppqa603.astppbilling.org:5076) State HANGUP going to sleep
  181. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:616 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_HANGUP -> CS_REPORTING
  182. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_REPORTING (Cur 1 Tot 13)
  183. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:932 (sofia/default/990004@astppqa603.astppbilling.org:5076) State REPORTING
  184. 2023-02-28 10:37:42.915948 94.23% [INFO] mod_json_cdr.c:271 Process [7d0afad2-9ecf-499a-9055-66e778edef79.cdr.json]
  185. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:168 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  186. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:932 (sofia/default/990004@astppqa603.astppbilling.org:5076) State REPORTING going to sleep
  187. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:607 (sofia/default/990004@astppqa603.astppbilling.org:5076) State Change CS_REPORTING -> CS_DESTROY
  188. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_session.c:1753 Session 13 (sofia/default/990004@astppqa603.astppbilling.org:5076) Locked, Waiting on external entities
  189. 2023-02-28 10:37:42.915948 94.23% [NOTICE] switch_core_session.c:1771 Session 13 (sofia/default/990004@astppqa603.astppbilling.org:5076) Ended
  190. 2023-02-28 10:37:42.915948 94.23% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/990004@astppqa603.astppbilling.org:5076 [CS_DESTROY]
  191. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:735 (sofia/default/990004@astppqa603.astppbilling.org:5076) Running State Change CS_DESTROY (Cur 0 Tot 13)
  192. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:745 (sofia/default/990004@astppqa603.astppbilling.org:5076) State DESTROY
  193. 2023-02-28 10:37:42.915948 94.23% [DEBUG] mod_sofia.c:379 sofia/default/990004@astppqa603.astppbilling.org:5076 SOFIA DESTROY
  194. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:175 sofia/default/990004@astppqa603.astppbilling.org:5076 Standard DESTROY
  195. 2023-02-28 10:37:42.915948 94.23% [DEBUG] switch_core_state_machine.c:745 (sofia/default/990004@astppqa603.astppbilling.org:5076) State DESTROY going to sleep
  196. 2023-02-28 10:38:11.535997 93.67% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4097138735@astppqa601.astppbilling.org] from ip 103.240.35.46