From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. [This app Best viewed at 160x60 or more..]
  2. +OK log level  [7]
  3. freeswitch@ip-172-31-14-218>
  4. freeswitch@ip-172-31-14-218>
  5. freeswitch@ip-172-31-14-218>
  6. freeswitch@ip-172-31-14-218>
  7. freeswitch@ip-172-31-14-218>
  8. 2022-04-28 13:02:10.394291 94.27% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9815051999@3.7.66.233] from ip 117.247.91.162
  9. 2022-04-28 13:02:10.434327 94.27% [WARNING] sofia_reg.c:3223 Can't find user [9815051999@3.7.66.233] from 117.247.91.162
  10. You must define a domain called '3.7.66.233' in your directory and add a user with the id="9815051999" attribute
  11. and you must configure your device to use the proper domain in its authentication credentials.
  12. 2022-04-28 13:02:10.434327 94.27% [WARNING] sofia_reg.c:1806 SIP auth failure (REGISTER) on sofia profile 'default' for [9815051999@3.7.66.233] from ip 117.247.91.162
  13. 2022-04-28 13:02:21.334319 94.17% [NOTICE] switch_channel.c:1123 New Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 [4e7f2176-5610-43ba-9110-0b742b4372c4]
  14. 2022-04-28 13:02:21.334319 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_NEW (Cur 1 Tot 22)
  15. 2022-04-28 13:02:21.334319 94.17% [INFO] sofia.c:10462 sofia/default/5450239527@w07version60.astppbilling.org:5074 receiving invite from 117.247.91.162:51071 version: 1.10.7 -release-19-883d2cb662 64bit call-id: YmQ2ZDUzNDIzOGY2MTVlZGQzZGE4NDY1ZTJiNzZjMDY.
  16. 2022-04-28 13:02:21.334319 94.17% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0.
  17. 2022-04-28 13:02:21.334319 94.17% [DEBUG] sofia.c:2419 detaching session 4e7f2176-5610-43ba-9110-0b742b4372c4
  18. 2022-04-28 13:02:21.334319 94.17% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [77054545454@w07version60.astppbilling.org] from ip 117.247.91.162
  19. 2022-04-28 13:02:21.334319 94.17% [DEBUG] switch_core_state_machine.c:600 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State NEW
  20. 2022-04-28 13:02:21.434326 94.17% [DEBUG] sofia.c:2532 Re-attaching to session 4e7f2176-5610-43ba-9110-0b742b4372c4
  21. 2022-04-28 13:02:21.454323 94.17% [INFO] sofia.c:10462 sofia/default/5450239527@w07version60.astppbilling.org:5074 receiving invite from 117.247.91.162:51071 version: 1.10.7 -release-19-883d2cb662 64bit call-id: YmQ2ZDUzNDIzOGY2MTVlZGQzZGE4NDY1ZTJiNzZjMDY.
  22. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0.
  23. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  24. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:7499 Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 entering state [received][100]
  25. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:7509 Remote SDP:
  26. v=0
  27. o=3cxVCE 27233070 341413320 IN IP4 192.168.1.13
  28. s=3cxVCE Audio Call
  29. c=IN IP4 192.168.1.13
  30. t=0 0
  31. m=audio 40012 RTP/AVP 0 8 3 101
  32. a=rtpmap:0 PCMU/8000
  33. a=rtpmap:8 PCMA/8000
  34. a=rtpmap:3 GSM/8000
  35. a=rtpmap:101 telephone-event/8000
  36. a=fmtp:101 0-15
  37. a=ptime:20
  38. m=video 40010 RTP/AVP 34
  39. c=IN IP4 192.168.1.13
  40. a=rtpmap:34 H263/90000
  41. a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1
  42.  
  43. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  44. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  45. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  46. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  47. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  48. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  49. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  50. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  51. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  52. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/5450239527@w07version60.astppbilling.org:5074 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  53. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_codec.c:111 sofia/default/5450239527@w07version60.astppbilling.org:5074 Original read codec set to PCMU:0
  54. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  55. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:5973 sofia/default/5450239527@w07version60.astppbilling.org:5074 Set 2833 dtmf send payload to 101 recv payload to 101
  56. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:6301 No matches with FTMP, fallback to ignoring FMTP
  57. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_media.c:6309 No matches with inherit_codec, fallback to ignoring PT
  58. 2022-04-28 13:02:21.454323 94.17% [DEBUG] sofia.c:7933 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_NEW -> CS_INIT
  59. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_INIT (Cur 1 Tot 22)
  60. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:624 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State INIT
  61. 2022-04-28 13:02:21.454323 94.17% [DEBUG] mod_sofia.c:97 sofia/default/5450239527@w07version60.astppbilling.org:5074 SOFIA INIT
  62. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:40 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard INIT
  63. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:48 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_INIT -> CS_ROUTING
  64. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:624 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State INIT going to sleep
  65. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_ROUTING (Cur 1 Tot 22)
  66. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_channel.c:2380 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Callstate Change DOWN -> RINGING
  67. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:640 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State ROUTING
  68. 2022-04-28 13:02:21.454323 94.17% [DEBUG] mod_sofia.c:158 sofia/default/5450239527@w07version60.astppbilling.org:5074 SOFIA ROUTING
  69. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_core_state_machine.c:230 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard ROUTING
  70. 2022-04-28 13:02:21.454323 94.17% [INFO] mod_dialplan_xml.c:639 Processing 5450239527 <5450239527>->77054545454 in context default
  71. 2022-04-28 13:02:21.454323 94.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')
  72. 2022-04-28 13:02:21.454323 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  73. 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 77054545454
  74. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '77054545454' AND status=0 limit 1
  75. 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER5450239527
  76. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  77. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '77054545454' limit 1
  78. 2022-04-28 13:02:21.474295 94.17% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  79. 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 5450239527 / 5450239527
  80. 2022-04-28 13:02:21.474295 94.17% [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 ="77054545454" LIMIT 1
  81. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  82. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="77054545454" limit 1
  83. 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  84. 2022-04-28 13:02:21.474295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9915055083]
  85. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9915055083" AND deleted = 0 limit 1
  86. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^77054545454.*' OR blocked_patterns = '^7705454545.*' OR blocked_patterns = '^770545454.*' OR blocked_patterns = '^77054545.*' OR blocked_patterns = '^7705454.*' OR blocked_patterns = '^770545.*' OR blocked_patterns = '^77054.*' OR blocked_patterns = '^7705.*' OR blocked_patterns = '^770.*' OR blocked_patterns = '^77.*' OR blocked_patterns = '^7.*' OR blocked_patterns ='--') AND accountid = 6 limit 1
  87. 2022-04-28 13:02:21.474295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="77054545454" AND (accountid = 0 OR status = 1) LIMIT 1
  88. 2022-04-28 13:02:21.474295 94.17% [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 = '^77054545454.*' OR patterns = '^7705454545.*' OR patterns = '^770545454.*' OR patterns = '^77054545.*' OR patterns = '^7705454.*' OR patterns = '^770545.*' OR patterns = '^77054.*' OR patterns = '^7705.*' OR patterns = '^770.*' OR patterns = '^77.*' OR patterns = '^7.*' OR patterns ='--') AND accountid = 6 ORDER BY LENGTH(PKGPTR.patterns) DESC
  89. 2022-04-28 13:02:21.474295 94.17% [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 ="77054545454" AND A.accountid = '6' limit 1
  90. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 77054545454
  91. 2022-04-28 13:02:21.494295 94.17% [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 ="77054545454" LIMIT 1
  92. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  93. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="77054545454" limit 1
  94. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  95. 2022-04-28 13:02:21.494295 94.17% [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 = '77054545454' OR number = '7705454545' OR number = '770545454' OR number = '77054545' OR number = '7705454' OR number = '770545' OR number = '77054' OR number = '7705' OR number = '770' OR number = '77' OR number = '7' OR number ='--') OR (number = '77054545454*' OR number = '7705454545*' OR number = '770545454*' OR number = '77054545*' OR number = '7705454*' OR number = '770545*' OR number = '77054*' OR number = '7705*' OR number = '770*' OR number = '77*' OR number = '7*' OR number ='--') OR (number = '5450239527' OR number = '545023952' OR number = '54502395' OR number = '5450239' OR number = '545023' OR number = '54502' OR number = '5450' OR number = '545' OR number = '54' OR number = '5' OR number ='--') OR (number = '5450239527*' OR number = '545023952*' OR number = '54502395*' OR number = '5450239*' OR number = '545023*' OR number = '54502*' OR number = '5450*' OR number = '545*' OR number = '54*' OR number = '5*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  96. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  97. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '77054545454' OR routing_prefix = '7705454545' OR routing_prefix = '770545454' OR routing_prefix = '77054545' OR routing_prefix = '7705454' OR routing_prefix = '770545' OR routing_prefix = '77054' OR routing_prefix = '7705' OR routing_prefix = '770' OR routing_prefix = '77' OR routing_prefix = '7' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  98. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  99. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 6
  100. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9915055083
  101. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 19941
  102. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  103. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  104. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  105. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  106. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  107. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  108. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  109. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') AND (caller_id_pattern = '^5450239527.*' OR caller_id_pattern = '^545023952.*' OR caller_id_pattern = '^54502395.*' OR caller_id_pattern = '^5450239.*' OR caller_id_pattern = '^545023.*' OR caller_id_pattern = '^54502.*' OR caller_id_pattern = '^5450.*' OR caller_id_pattern = '^545.*' OR caller_id_pattern = '^54.*' OR caller_id_pattern = '^5.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 1 OR accountid=6)  ORDER BY accountid DESC,LENGTH(pattern),LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  110. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  111. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  112. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 6
  113. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  114. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  115. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.30000
  116. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Bhopal
  117. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 23
  118. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 6
  119. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 1,3,4
  120. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type: 3
  121. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  122. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your19941 balance Accountid 6 !!!
  123. 2022-04-28 13:02:21.494295 94.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 1000 mins!
  124. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 1000 minutes
  125. 2022-04-28 13:02:21.494295 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] User Rate ID : 6
  126. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_COUNTER_INFO] Force Trunk Type Here :1
  127. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :1,3,4
  128. 2022-04-28 13:02:21.494295 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.sip_cid_type,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.leg_timeout,TK.maxchannels,TR.effective_date as effective_date,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select percentage from routing where routes_id=(select id from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1  ORDER BY LENGTH(pattern) DESC,cost DESC limit 1) AND trunk_id = TR.trunk_id limit 1) as percentage,(select call_count from routing where routes_id=(select id from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1  ORDER BY LENGTH(pattern) DESC,cost DESC limit 1) AND trunk_id = TR.trunk_id) as trunk_count,(select call_count from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1  ORDER BY LENGTH(pattern) DESC,cost DESC limit 1 ) as routes_count,100 * (select call_count from routing where routes_id=(select id from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1  ORDER BY LENGTH(pattern) DESC,cost DESC limit 1) AND trunk_id = TR.trunk_id) / (select call_count from routes where (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') and pricelist_id=1  ORDER BY LENGTH(pattern) DESC,cost DESC limit 1 ) AS percent_atual,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^77054545454.*' OR pattern = '^7705454545.*' OR pattern = '^770545454.*' OR pattern = '^77054545.*' OR pattern = '^7705454.*' OR pattern = '^770545.*' OR pattern = '^77054.*' OR pattern = '^7705.*' OR pattern = '^770.*' OR pattern = '^77.*' OR pattern = '^7.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (1,3,4)  AND TR.effective_date <= UTC_TIMESTAMP() ORDER by IF( percent_atual >= percentage, percentage, '' ) ASC , IF( percent_atual <= percentage, percentage, '' ) DESC,TR.effective_date DESC
  129. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  130. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 5
  131. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.*
  132. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Pk-Trucking
  133. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  134. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  135. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.*
  136. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  137. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
  138. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 4
  139. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : PkTrunkGateway
  140. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  141. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  142. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3
  143. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  144. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  145. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  146. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 4
  147. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.*
  148. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Test Trucking
  149. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  150. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  151. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.*
  152. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  153. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
  154. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 3
  155. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : TestTrunkGateway
  156. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  157. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  158. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3
  159. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  160. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  161. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  162. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  163. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^77.*
  164. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : QA Sender Your Trucking
  165. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  166. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  167. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^77.*
  168. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  169. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
  170. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 1
  171. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : YourProvider
  172. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  173. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  174. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 3
  175. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  176. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  177. 2022-04-28 13:02:21.514294 94.17% [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 = 6 AND status=0 LIMIT 1
  178. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 1000
  179. 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  180. 2022-04-28 13:02:21.514294 94.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  181. 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  182. 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1
  183. 2022-04-28 13:02:21.514294 94.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from trunks where id = 4) AND status=0 limit 1
  184. 2022-04-28 13:02:21.514294 94.17% [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:306: attempt to concatenate field 'trunk_name' (a nil value)
  185. stack traceback:
  186.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:306: in function 'freeswitch_xml_outbound'
  187.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:914: in main chunk
  188.         [C]: in function 'dofile'
  189.         /usr/share/freeswitch/scripts/astpp/astpp.lua:98: in main chunk
  190. 2022-04-28 13:02:21.514294 94.17% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  191. 2022-04-28 13:02:21.534294 94.17% [WARNING] mod_dialplan_xml.c:669 Context default not found
  192. 2022-04-28 13:02:21.534294 94.17% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  193. 2022-04-28 13:02:21.534294 94.17% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/5450239527@w07version60.astppbilling.org:5074 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  194. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:640 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State ROUTING going to sleep
  195. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_HANGUP (Cur 1 Tot 22)
  196. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Callstate Change RINGING -> HANGUP
  197. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State HANGUP
  198. 2022-04-28 13:02:21.534294 94.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 hanging up, cause: NO_ROUTE_DESTINATION
  199. 2022-04-28 13:02:21.534294 94.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  200. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  201. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State HANGUP going to sleep
  202. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_HANGUP -> CS_REPORTING
  203. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_REPORTING (Cur 1 Tot 22)
  204. 2022-04-28 13:02:21.534294 94.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State REPORTING
  205. 2022-04-28 13:02:21.534294 94.17% [INFO] mod_json_cdr.c:271 Process [4e7f2176-5610-43ba-9110-0b742b4372c4.cdr.json]
  206. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  207. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State REPORTING going to sleep
  208. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State Change CS_REPORTING -> CS_DESTROY
  209. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_session.c:1753 Session 22 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Locked, Waiting on external entities
  210. 2022-04-28 13:02:21.554312 94.17% [NOTICE] switch_core_session.c:1771 Session 22 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Ended
  211. 2022-04-28 13:02:21.554312 94.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/5450239527@w07version60.astppbilling.org:5074 [CS_DESTROY]
  212. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/5450239527@w07version60.astppbilling.org:5074) Running State Change CS_DESTROY (Cur 0 Tot 22)
  213. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State DESTROY
  214. 2022-04-28 13:02:21.554312 94.17% [DEBUG] mod_sofia.c:379 sofia/default/5450239527@w07version60.astppbilling.org:5074 SOFIA DESTROY
  215. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/5450239527@w07version60.astppbilling.org:5074 Standard DESTROY
  216. 2022-04-28 13:02:21.554312 94.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/5450239527@w07version60.astppbilling.org:5074) State DESTROY going to sleep
  217. 2022-04-28 13:02:32.534316 94.77% [WARNING] sofia_reg.c:3223 Can't find user [9815051999@3.7.66.233] from 117.247.91.162
  218. You must define a domain called '3.7.66.233' in your directory and add a user with the id="9815051999" attribute
  219. and you must configure your device to use the proper domain in its authentication credentials.
  220. 2022-04-28 13:02:32.534316 94.77% [WARNING] sofia_reg.c:1806 SIP auth failure (REGISTER) on sofia profile 'default' for [9815051999@3.7.66.233] from ip 117.247.91.162
  221. freeswitch@ip-172-31-14-218>
  222. freeswitch@ip-172-31-14-218>
  223. freeswitch@ip-172-31-14-218>
  224.