From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@gibfibre>
  2. freeswitch@gibfibre>
  3. 2021-10-29 05:20:55.414820 [NOTICE] switch_channel.c:1118 New Channel sofia/default/0001653350@46.101.114.158:5060 [c5fa65f2-b537-4b01-a18d-cc022bc86212]
  4. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_NEW (Cur 1 Tot 1584)
  5. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:10280 sofia/default/0001653350@46.101.114.158:5060 receiving invite from 46.101.114.158:5060 version: 1.10.5 -release-17-25569c1631 64bit
  6. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 46.101.114.158:0.
  7. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:10403 IP 46.101.114.158 Approved by acl "default[]". Access Granted.
  8. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:7326 Channel sofia/default/0001653350@46.101.114.158:5060 entering state [received][100]
  9. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:7336 Remote SDP:
  10. v=0
  11. o=Z 0 0 IN IP4 117.247.91.162
  12. s=Z
  13. c=IN IP4 117.247.91.162
  14. t=0 0
  15. m=audio 8000 RTP/AVP 3 110 8 0 97 101
  16. a=rtpmap:110 speex/8000
  17. a=rtpmap:97 iLBC/8000
  18. a=fmtp:97 mode=30
  19. a=rtpmap:101 telephone-event/8000
  20. a=fmtp:101 0-16
  21.  
  22. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  23. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  24. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  25. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  26. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  27. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  28. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  29. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  30. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  31. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  32. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  33. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  34. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  35. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/0001653350@46.101.114.158:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  36. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_codec.c:111 sofia/default/0001653350@46.101.114.158:5060 Original read codec set to PCMA:8
  37. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  38. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_media.c:5911 sofia/default/0001653350@46.101.114.158:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  39. 2021-10-29 05:20:55.414820 [DEBUG] sofia.c:7760 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_NEW -> CS_INIT
  40. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:604 (sofia/default/0001653350@46.101.114.158:5060) State NEW
  41. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_INIT (Cur 1 Tot 1584)
  42. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:628 (sofia/default/0001653350@46.101.114.158:5060) State INIT
  43. 2021-10-29 05:20:55.414820 [DEBUG] mod_sofia.c:93 sofia/default/0001653350@46.101.114.158:5060 SOFIA INIT
  44. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:40 sofia/default/0001653350@46.101.114.158:5060 Standard INIT
  45. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_INIT -> CS_ROUTING
  46. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:628 (sofia/default/0001653350@46.101.114.158:5060) State INIT going to sleep
  47. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_ROUTING (Cur 1 Tot 1584)
  48. 2021-10-29 05:20:55.414820 [DEBUG] switch_channel.c:2332 (sofia/default/0001653350@46.101.114.158:5060) Callstate Change DOWN -> RINGING
  49. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:644 (sofia/default/0001653350@46.101.114.158:5060) State ROUTING
  50. 2021-10-29 05:20:55.414820 [DEBUG] mod_sofia.c:154 sofia/default/0001653350@46.101.114.158:5060 SOFIA ROUTING
  51. 2021-10-29 05:20:55.414820 [DEBUG] switch_core_state_machine.c:236 sofia/default/0001653350@46.101.114.158:5060 Standard ROUTING
  52. 2021-10-29 05:20:55.414820 [INFO] mod_dialplan_xml.c:637 Processing 0001653350 <0001653350>->+12120995959 in context default
  53. 2021-10-29 05:20:55.414820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  54. 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  55. 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : +12120995959
  56. 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '+12120995959' AND status=0 limit 1
  57. 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : Caller / 0001653350
  58. 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="+12120995959" LIMIT 1
  59. 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [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 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="+12120995959" limit 1
  60. 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound
  61. 2021-10-29 05:20:55.434820 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 0001653350]
  62. 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =+12120995959
  63. 2021-10-29 05:20:55.434820 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "0001653350" AND deleted = 0 limit 1
  64. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^+12120995959.*' OR blocked_patterns = '^+1212099595.*' OR blocked_patterns = '^+121209959.*' OR blocked_patterns = '^+12120995.*' OR blocked_patterns = '^+1212099.*' OR blocked_patterns = '^+121209.*' OR blocked_patterns = '^+12120.*' OR blocked_patterns = '^+1212.*' OR blocked_patterns = '^+121.*' OR blocked_patterns = '^+12.*' OR blocked_patterns = '^+1.*' OR blocked_patterns = '^+.*' OR blocked_patterns ='--') AND accountid = 462 limit 1
  65. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="+12120995959" AND (accountid = 0 OR status = 1) LIMIT 1
  66. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 41
  67. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 41 AND status=0 limit 1
  68. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"5507777/7777775555,6604444/888886666,7702222/999990000".....0001653350DBCLI+12120995959
  69. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before- Localization CLI/DST : 0001653350DBCLI+12120995959
  70. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After- Localization CLI/DST : 0001653350DBCLI+12120995959
  71. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"5507777/7777775555,6604444/888886666,7702222/999990000".....0001653350DBCLI+12120995959
  72. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before- Localization CLI/DST : 0001653350DBCLI+12120995959
  73. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After- Localization CLI/DST : 0001653350DBCLI+12120995959
  74. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"5507777/7777775555,6604444/888886666,7702222/999990000".....0001653350DBCLI+12120995959
  75. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before- Localization CLI/DST : 0001653350DBCLI+12120995959
  76. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After- Localization CLI/DST : 0001653350
  77. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/22,+1212/33,0/44".....+12120995959
  78. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : +12120995959
  79. 2021-10-29 05:20:55.594815 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 2212120995959
  80. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/22,+1212/33,0/44".....2212120995959
  81. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/22,+1212/33,0/44".....2212120995959
  82. 2021-10-29 05:20:55.594815 [DEBUG] switch_cpp.cpp:1447 [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 = '^2212120995959.*' OR patterns = '^221212099595.*' OR patterns = '^22121209959.*' OR patterns = '^2212120995.*' OR patterns = '^221212099.*' OR patterns = '^22121209.*' OR patterns = '^2212120.*' OR patterns = '^221212.*' OR patterns = '^22121.*' OR patterns = '^2212.*' OR patterns = '^221.*' OR patterns = '^22.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 462 ORDER BY LENGTH(PKGPTR.patterns) DESC
  83. 2021-10-29 05:20:55.614823 [DEBUG] switch_cpp.cpp:1447 [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 ="2212120995959" AND A.accountid = '462' limit 1
  84. 2021-10-29 05:20:55.614823 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 2212120995959
  85. 2021-10-29 05:20:55.614823 [DEBUG] switch_cpp.cpp:1447 [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="2212120995959" LIMIT 1
  86. 2021-10-29 05:20:55.614823 [DEBUG] switch_cpp.cpp:1447 [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 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="2212120995959" limit 1
  87. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : outbound
  88. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '2212120995959' OR number = '221212099595' OR number = '22121209959' OR number = '2212120995' OR number = '221212099' OR number = '22121209' OR number = '2212120' OR number = '221212' OR number = '22121' OR number = '2212' OR number = '221' OR number = '22' OR number = '2' OR number ='--') OR (number = '2212120995959*' OR number = '221212099595*' OR number = '22121209959*' OR number = '2212120995*' OR number = '221212099*' OR number = '22121209*' OR number = '2212120*' OR number = '221212*' OR number = '22121*' OR number = '2212*' OR number = '221*' OR number = '22*' OR number = '2*' OR number ='--') OR (number = '0001653350' OR number = '000165335' OR number = '00016533' OR number = '0001653' OR number = '000165' OR number = '00016' OR number = '0001' OR number = '000' OR number = '00' OR number = '0' OR number ='--') OR (number = '0001653350*' OR number = '000165335*' OR number = '00016533*' OR number = '0001653*' OR number = '000165*' OR number = '00016*' OR number = '0001*' OR number = '000*' OR number = '00*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  89. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  90. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '2212120995959' OR routing_prefix = '221212099595' OR routing_prefix = '22121209959' OR routing_prefix = '2212120995' OR routing_prefix = '221212099' OR routing_prefix = '22121209' OR routing_prefix = '2212120' OR routing_prefix = '221212' OR routing_prefix = '22121' OR routing_prefix = '2212' OR routing_prefix = '221' OR routing_prefix = '22' OR routing_prefix = '2' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  91. 2021-10-29 05:20:55.634819 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [PORTED_NUMBER] Get Destination Number (2212120995959)!!!!
  92. 2021-10-29 05:20:55.634819 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (2212120995959)!!!!
  93. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  94. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 462
  95. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 0001653350
  96. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 576.61
  97. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  98. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 144
  99. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  100. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  101. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 144 AND status = 0
  102. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound
  103. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 144 AND status = 0
  104. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^2212120995959.*' OR pattern = '^221212099595.*' OR pattern = '^22121209959.*' OR pattern = '^2212120995.*' OR pattern = '^221212099.*' OR pattern = '^22121209.*' OR pattern = '^2212120.*' OR pattern = '^221212.*' OR pattern = '^22121.*' OR pattern = '^2212.*' OR pattern = '^221.*' OR pattern = '^22.*' OR pattern = '^2.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 144 OR accountid=462)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  105. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : outbound
  106. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  107. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 259931
  108. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  109. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  110. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 3.00000
  111. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment :
  112. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0
  113. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 462
  114. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID:
  115. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type:
  116. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  117. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your576.61 balance Accountid 462 !!!
  118. 2021-10-29 05:20:55.634819 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 192.20333333333 minutes
  119. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :
  120. 2021-10-29 05:20:55.634819 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=144 ORDER by id asc
  121. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(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 = '^2212120995959.*' OR pattern = '^221212099595.*' OR pattern = '^22121209959.*' OR pattern = '^2212120995.*' OR pattern = '^221212099.*' OR pattern = '^22121209.*' OR pattern = '^2212120.*' OR pattern = '^221212.*' OR pattern = '^22121.*' OR pattern = '^2212.*' OR pattern = '^221.*' OR pattern = '^22.*' OR pattern = '^2.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (174) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC
  122. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information ===================
  123. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 2005
  124. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^22.*
  125. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination : RegNorm
  126. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  127. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0
  128. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^22.*
  129. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip :
  130. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend :
  131. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 174
  132. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : PK-Default-Gateway
  133. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable :
  134. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway :
  135. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3
  136. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0
  137. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : PK-Default-Trunk
  138. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES=======================
  139. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 462 AND status=0 LIMIT 1
  140. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 192.20333333333
  141. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  142. 2021-10-29 05:20:55.654822 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  143. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 144 AND status = 0
  144. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [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 = 174) AND status=0 limit 1
  145. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [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
  146. 2021-10-29 05:20:55.654822 [DEBUG] switch_cpp.cpp:1447 [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="+12120995959" LIMIT 1
  147. 2021-10-29 05:20:55.674818 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  148. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  149. <document type="freeswitch/xml">
  150. <section name="dialplan" description="ASTPP Dialplan">
  151. <context name="default">
  152. <extension name="2212120995959">
  153. <condition field="destination_number" expression="2212120995959">
  154. <action application="set" data="effective_destination_number=2212120995959"/>
  155. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  156. <action application="set" data="bridge_pre_execute_bleg_data=+11532.2 normal_clearing"/>
  157. <action application="set" data="callstart=2021-10-29 05:20:55"/>
  158. <action application="set" data="hangup_after_bridge=true"/>
  159. <action application="set" data="continue_on_fail=TRUE"/>
  160. <action application="set" data="account_id=462"/>
  161. <action application="set" data="parent_id=0"/>
  162. <action application="set" data="entity_id=0"/>
  163. <action application="set" data="call_processed=internal"/>
  164. <action application="set" data="call_direction=outbound"/>
  165. <action application="set" data="accountname=default"/>
  166. <action application="set" data="origination_rates=ID:259931|CODE:^22.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:1|INITIALBLOCK:1|RATEGROUP:144|MARKUP:0|CI:0|ACCID:462"/>
  167. <action application="set" data="original_caller_id_name=Caller"/>
  168. <action application="set" data="original_caller_id_number=0001653350"/>
  169.  
  170. <action application="set" data="effective_caller_id_name=Caller"/>
  171. <action application="set" data="effective_caller_id_number=0001653350"/>
  172. <action application="set" data="calltype=STANDARD"/>
  173. <action application="set" data="termination_rates=ID:2005|CODE:^22.*|DESTINATION:RegNorm|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:1.00000|INC:0|INITIALBLOCK:0|TRUNK:174|PROVIDER:3"/>
  174. <action application="set" data="trunk_id=174"/>
  175. <action application="set" data="provider_id=3"/>
  176. <action application="set" data="rate_flag=0"/>
  177. <action application="set" data="force_trunk_flag=0"/>
  178. <action application="export" data="presence_data=trunk_id=174"/>
  179. <action application="set" data="intcall=0"/>
  180. <action application="export" data="presence_id=2212120995959"/>
  181. <action application="export" data="presence_data=x|||Call(0001653350)|||^22.* //  // 3.00000 |||PK-Default-Trunk // ^22.* // RegNorm // 1.00000 // trunk_id=174|||STD|||117.247.91.162"/>
  182. <action application="bridge" data="[leg_timeout=0]sofia/gateway/PK-Default-Gateway/2212120995959;fs_path=sip:46.101.114.158:5060"/>
  183. </condition>
  184. </extension>
  185. </context>
  186. </section>
  187. </document>
  188. Dialplan: sofia/default/0001653350@46.101.114.158:5060 parsing [default->2212120995959] continue=false
  189. Dialplan: sofia/default/0001653350@46.101.114.158:5060 Regex (FAIL) [2212120995959] destination_number(+12120995959) =~ /2212120995959/ break=on-false
  190. 2021-10-29 05:20:55.674818 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  191. 2021-10-29 05:20:55.674818 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/0001653350@46.101.114.158:5060 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  192. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:644 (sofia/default/0001653350@46.101.114.158:5060) State ROUTING going to sleep
  193. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_HANGUP (Cur 1 Tot 1584)
  194. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:848 (sofia/default/0001653350@46.101.114.158:5060) Callstate Change RINGING -> HANGUP
  195. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0001653350@46.101.114.158:5060) State HANGUP
  196. 2021-10-29 05:20:55.674818 [DEBUG] mod_sofia.c:453 Channel sofia/default/0001653350@46.101.114.158:5060 hanging up, cause: NO_ROUTE_DESTINATION
  197. 2021-10-29 05:20:55.674818 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  198. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:60 sofia/default/0001653350@46.101.114.158:5060 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  199. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0001653350@46.101.114.158:5060) State HANGUP going to sleep
  200. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:620 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_HANGUP -> CS_REPORTING
  201. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:585 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_REPORTING (Cur 1 Tot 1584)
  202. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:936 (sofia/default/0001653350@46.101.114.158:5060) State REPORTING
  203. 2021-10-29 05:20:55.674818 [INFO] mod_json_cdr.c:271 Process [c5fa65f2-b537-4b01-a18d-cc022bc86212.cdr.json]
  204. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:174 sofia/default/0001653350@46.101.114.158:5060 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  205. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:936 (sofia/default/0001653350@46.101.114.158:5060) State REPORTING going to sleep
  206. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:611 (sofia/default/0001653350@46.101.114.158:5060) State Change CS_REPORTING -> CS_DESTROY
  207. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_session.c:1726 Session 1584 (sofia/default/0001653350@46.101.114.158:5060) Locked, Waiting on external entities
  208. 2021-10-29 05:20:55.674818 [NOTICE] switch_core_session.c:1744 Session 1584 (sofia/default/0001653350@46.101.114.158:5060) Ended
  209. 2021-10-29 05:20:55.674818 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/0001653350@46.101.114.158:5060 [CS_DESTROY]
  210. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:739 (sofia/default/0001653350@46.101.114.158:5060) Running State Change CS_DESTROY (Cur 0 Tot 1584)
  211. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:749 (sofia/default/0001653350@46.101.114.158:5060) State DESTROY
  212. 2021-10-29 05:20:55.674818 [DEBUG] mod_sofia.c:364 sofia/default/0001653350@46.101.114.158:5060 SOFIA DESTROY
  213. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:181 sofia/default/0001653350@46.101.114.158:5060 Standard DESTROY
  214. 2021-10-29 05:20:55.674818 [DEBUG] switch_core_state_machine.c:749 (sofia/default/0001653350@46.101.114.158:5060) State DESTROY going to sleep
  215. 2021-10-29 05:20:56.154828 [NOTICE] switch_channel.c:1118 New Channel sofia/default/100@46.101.114.158 [3a29af50-0a33-4555-8da8-bcaf855a1fe2]
  216. 2021-10-29 05:20:56.154828 [DEBUG] switch_core_state_machine.c:585 (sofia/default/100@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 1585)
  217. 2021-10-29 05:20:56.154828 [DEBUG] sofia.c:10280 sofia/default/100@46.101.114.158 receiving invite from 185.53.90.104:53403 version: 1.10.5 -release-17-25569c1631 64bit
  218. 2021-10-29 05:20:56.154828 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.53.90.104:0.
  219. 2021-10-29 05:20:56.154828 [DEBUG] sofia.c:2434 detaching session 3a29af50-0a33-4555-8da8-bcaf855a1fe2
  220. 2021-10-29 05:20:56.154828 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [26400441519471242@46.101.114.158] from ip 185.53.90.104
  221.