From Reliable Parrot, 2 Years ago, written in Plain Text.
- view diff
Embed
  1. +OK log level  [7]
  2. 2021-12-07 09:46:56.749177 99.37% [NOTICE] switch_channel.c:1123 New Channel sofia/external_sip/6974108809@voips.modulus.gr [21f5beb3-844a-4180-9731-d3af52e7d905]
  3. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_NEW (Cur 1 Tot 115)
  4. 2021-12-07 09:46:56.749177 99.37% [INFO] sofia.c:10462 sofia/external_sip/6974108809@voips.modulus.gr receiving invite from 185.73.43.250:5060 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 2822914237ad8eb46a437e0662731d66@voips.modulus.gr
  5. 2021-12-07 09:46:56.749177 99.37% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 185.73.43.250:0.
  6. 2021-12-07 09:46:56.749177 99.37% [DEBUG] sofia.c:7499 Channel sofia/external_sip/6974108809@voips.modulus.gr entering state [received][100]
  7. 2021-12-07 09:46:56.749177 99.37% [DEBUG] sofia.c:7509 Remote SDP:
  8. v=0
  9. o=root 2035229577 2035229577 IN IP4 185.73.43.252
  10. s=modCOM v2 Media Gateway
  11. c=IN IP4 185.73.43.252
  12. t=0 0
  13. m=audio 34798 RTP/AVP 8 9 0 18 101
  14. a=rtpmap:8 PCMA/8000
  15. a=rtpmap:9 G722/8000
  16. a=rtpmap:0 PCMU/8000
  17. a=rtpmap:18 G729/8000
  18. a=fmtp:18 annexb=no
  19. a=rtpmap:101 telephone-event/8000
  20. a=fmtp:101 0-16
  21. a=rtcp:34799
  22. a=ptime:20
  23.  
  24. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  25. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  26. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  27. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  28. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  29. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  30. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  31. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  32. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  33. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  34. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  35. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:3870 Set Codec sofia/external_sip/6974108809@voips.modulus.gr PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  36. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_codec.c:111 sofia/external_sip/6974108809@voips.modulus.gr Original read codec set to PCMA:8
  37. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  38. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_media.c:5973 sofia/external_sip/6974108809@voips.modulus.gr Set 2833 dtmf send payload to 101 recv payload to 101
  39. 2021-12-07 09:46:56.749177 99.37% [DEBUG] sofia.c:7933 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_NEW -> CS_INIT
  40. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:600 (sofia/external_sip/6974108809@voips.modulus.gr) State NEW
  41. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_INIT (Cur 1 Tot 115)
  42. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:624 (sofia/external_sip/6974108809@voips.modulus.gr) State INIT
  43. 2021-12-07 09:46:56.749177 99.37% [DEBUG] mod_sofia.c:97 sofia/external_sip/6974108809@voips.modulus.gr SOFIA INIT
  44. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:40 sofia/external_sip/6974108809@voips.modulus.gr Standard INIT
  45. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:48 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_INIT -> CS_ROUTING
  46. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:624 (sofia/external_sip/6974108809@voips.modulus.gr) State INIT going to sleep
  47. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_ROUTING (Cur 1 Tot 115)
  48. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_channel.c:2380 (sofia/external_sip/6974108809@voips.modulus.gr) Callstate Change DOWN -> RINGING
  49. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING
  50. 2021-12-07 09:46:56.749177 99.37% [DEBUG] mod_sofia.c:158 sofia/external_sip/6974108809@voips.modulus.gr SOFIA ROUTING
  51. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_core_state_machine.c:230 sofia/external_sip/6974108809@voips.modulus.gr Standard ROUTING
  52. 2021-12-07 09:46:56.749177 99.37% [INFO] mod_dialplan_xml.c:639 Processing 6974108809 <6974108809>->2102202732 in context default
  53. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  54. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  55. 2021-12-07 09:46:56.749177 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 2102202732
  56. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '2102202732' AND status=0 limit 1
  57. 2021-12-07 09:46:56.749177 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 6974108809 / 6974108809
  58. 2021-12-07 09:46:56.749177 99.37% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="2102202732" LIMIT 1
  59. 2021-12-07 09:46:56.749177 99.37% [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 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="2102202732" limit 1
  60. 2021-12-07 09:46:56.749177 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  61. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("185.73.43.250") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "2102202732"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  62. 2021-12-07 09:46:56.749177 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 2976257734]
  63. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "2976257734" AND deleted = 0 limit 1
  64. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^2102202732.*' OR blocked_patterns = '^210220273.*' OR blocked_patterns = '^21022027.*' OR blocked_patterns = '^2102202.*' OR blocked_patterns = '^210220.*' OR blocked_patterns = '^21022.*' OR blocked_patterns = '^2102.*' OR blocked_patterns = '^210.*' OR blocked_patterns = '^21.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 9 limit 1
  65. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="2102202732" AND (accountid = 0 OR status = 1) LIMIT 1
  66. 2021-12-07 09:46:56.749177 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] Localization Id: 1
  67. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  68. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....2102202732
  69. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....2102202732
  70. 2021-12-07 09:46:56.749177 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 2102202732
  71. 2021-12-07 09:46:56.749177 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 302102202732
  72. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  73. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  74. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  75. 2021-12-07 09:46:56.749177 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  76. 2021-12-07 09:46:56.749177 99.37% [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 (patterns = '^302102202732.*' OR patterns = '^30210220273.*' OR patterns = '^3021022027.*' OR patterns = '^302102202.*' OR patterns = '^30210220.*' OR patterns = '^3021022.*' OR patterns = '^302102.*' OR patterns = '^30210.*' OR patterns = '^3021.*' OR patterns = '^302.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 9 ORDER BY LENGTH(PKGPTR.patterns) DESC
  77. 2021-12-07 09:46:56.769178 99.37% [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 ="302102202732" AND A.accountid = '9' limit 1
  78. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 302102202732
  79. 2021-12-07 09:46:56.769178 99.37% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302102202732" LIMIT 1
  80. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  81. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '302102202732' OR number = '30210220273' OR number = '3021022027' OR number = '302102202' OR number = '30210220' OR number = '3021022' OR number = '302102' OR number = '30210' OR number = '3021' OR number = '302' OR number = '30' OR number = '3' OR number ='--') OR (number = '302102202732*' OR number = '30210220273*' OR number = '3021022027*' OR number = '302102202*' OR number = '30210220*' OR number = '3021022*' OR number = '302102*' OR number = '30210*' OR number = '3021*' OR number = '302*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '6974108809' OR number = '697410880' OR number = '69741088' OR number = '6974108' OR number = '697410' OR number = '69741' OR number = '6974' OR number = '697' OR number = '69' OR number = '6' OR number ='--') OR (number = '6974108809*' OR number = '697410880*' OR number = '69741088*' OR number = '6974108*' OR number = '697410*' OR number = '69741*' OR number = '6974*' OR number = '697*' OR number = '69*' OR number = '6*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  82. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  83. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '302102202732' OR routing_prefix = '30210220273' OR routing_prefix = '3021022027' OR routing_prefix = '302102202' OR routing_prefix = '30210220' OR routing_prefix = '3021022' OR routing_prefix = '302102' OR routing_prefix = '30210' OR routing_prefix = '3021' OR routing_prefix = '302' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  84. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  85. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 9
  86. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 2976257734
  87. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10000
  88. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  89. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  90. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  91. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  92. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  93. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  94. 2021-12-07 09:46:56.769178 99.37% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302102202732" LIMIT 1
  95. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  96. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  97. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  98. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  99. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  100. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  101. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 302102202732
  102. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 75
  103. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 9
  104. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  105. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 9 !!!
  106. 2021-12-07 09:46:56.769178 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  107. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 9
  108. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.00000
  109. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  110. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 0
  111. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 0
  112. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  113. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  114. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  115. 2021-12-07 09:46:56.769178 99.37% [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 = 9 AND status=0 LIMIT 1
  116. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "11" AND deleted = 0 limit 1
  117. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:9
  118. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:9
  119. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 9
  120. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  121. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  122. 2021-12-07 09:46:56.769178 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  123. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  124. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  125. 2021-12-07 09:46:56.769178 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 6974108809
  126. 2021-12-07 09:46:56.769178 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 306974108809
  127. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....306974108809
  128. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  129. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  130. 2021-12-07 09:46:56.769178 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 6974108809
  131. 2021-12-07 09:46:56.769178 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 306974108809
  132. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....306974108809
  133. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 11  and status = 0 limit 1
  134. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_4
  135. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  136. <document type="freeswitch/xml">
  137. <section name="dialplan" description="ASTPP Dialplan">
  138. <context name="default">
  139. <extension name="302102202732">
  140. <condition field="destination_number" expression="2102202732">
  141. <action application="set" data="effective_destination_number=302102202732"/>
  142. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  143. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  144. <action application="set" data="nibble_account=9"/>
  145. <action application="set" data="nibble_rate=0.00000"/>
  146. <action application="set" data="nibble_increment=0"/>
  147. <action application="set" data="nibble_minimum=0.00000"/>
  148. <action application="nibblebill" data="heartbeat 30"/>
  149. <action application="set" data="callstart=2021-12-07 09:46:56"/>
  150. <action application="set" data="hangup_after_bridge=true"/>
  151. <action application="set" data="continue_on_fail=TRUE"/>
  152. <action application="set" data="account_id=9"/>
  153. <action application="set" data="parent_id=0"/>
  154. <action application="set" data="entity_id=3"/>
  155. <action application="set" data="call_processed=internal"/>
  156. <action application="set" data="call_direction=inbound"/>
  157. <action application="set" data="accountname=ModulusIncoming"/>
  158. <action application="set" data="origination_rates_did=ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11"/>
  159. <action application="set" data="origination_rates=0"/>
  160. <action application="set" data="original_caller_id_name=6974108809"/>
  161. <action application="set" data="original_caller_id_number=6974108809"/>
  162. <action application="limit" data="db 2976257734 user_2976257734 60 "/>
  163. <action application="limit" data="db 11 user_11 2 "/>
  164. <action application="set" data="effective_caller_id_name=306974108809"/>
  165. <action application="set" data="effective_caller_id_number=306974108809"/>
  166. <action application="set" data="receiver_accid=11"/>
  167. <action application="export" data="domain_name="/>
  168. <action application="export" data="sip_to_host="/>
  169. <action application="limit" data="db 302102202732 did_302102202732 2 "/>
  170. <action application="export" data="presence_data=x|||Martha(7772615170)|||||||||DID|||185.73.43.250"/>
  171. <action application="export" data="call_type=4"/>
  172. <action application="set" data="calltype=STANDARD"/>
  173. <action application="set" data="accountcode=7772615170"/>
  174. <action application="set" data="caller_did_account_id=9"/>
  175. <action application="set" data="did_number=302102202732"/>
  176. <action application="set" data="did_init_inc=0"/>
  177. <action application="set" data="did_inc=0"/>
  178. <action application="set" data="did_cost=0.00000"/>
  179. <action application="set" data="did_connectcost=0.00000"/>
  180. <action application="set" data="origination_rates_did=0"/>
  181. <action application="transfer" data="306974485168 XML default"/>
  182. </condition>
  183. </extension>
  184. </context>
  185. </section>
  186. </document>
  187. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr parsing [default->302102202732] continue=false
  188. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Regex (PASS) [302102202732] destination_number(2102202732) =~ /2102202732/ break=on-false
  189. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_destination_number=302102202732)
  190. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_app=sched_hangup)
  191. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  192. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_account=9)
  193. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_rate=0.00000)
  194. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_increment=0)
  195. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_minimum=0.00000)
  196. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action nibblebill(heartbeat 30)
  197. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(callstart=2021-12-07 09:46:56)
  198. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(hangup_after_bridge=true)
  199. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(continue_on_fail=TRUE)
  200. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(account_id=9)
  201. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(parent_id=0)
  202. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(entity_id=3)
  203. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_processed=internal)
  204. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_direction=inbound)
  205. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(accountname=ModulusIncoming)
  206. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates_did=ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11)
  207. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates=0)
  208. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_name=6974108809)
  209. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_number=6974108809)
  210. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action limit(db 2976257734 user_2976257734 60 )
  211. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action limit(db 11 user_11 2 )
  212. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_name=306974108809)
  213. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_number=306974108809)
  214. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(receiver_accid=11)
  215. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(domain_name=)
  216. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(sip_to_host=)
  217. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action limit(db 302102202732 did_302102202732 2 )
  218. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_data=x|||Martha(7772615170)|||||||||DID|||185.73.43.250)
  219. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(call_type=4)
  220. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(calltype=STANDARD)
  221. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(accountcode=7772615170)
  222. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(caller_did_account_id=9)
  223. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_number=302102202732)
  224. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_init_inc=0)
  225. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_inc=0)
  226. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_cost=0.00000)
  227. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_connectcost=0.00000)
  228. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates_did=0)
  229. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action transfer(306974485168 XML default)
  230. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_core_state_machine.c:281 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_ROUTING -> CS_EXECUTE
  231. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING going to sleep
  232. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_EXECUTE (Cur 1 Tot 115)
  233. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE
  234. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_sofia.c:213 sofia/external_sip/6974108809@voips.modulus.gr SOFIA EXECUTE
  235. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_core_state_machine.c:323 sofia/external_sip/6974108809@voips.modulus.gr Standard EXECUTE
  236. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_destination_number=302102202732)
  237. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_destination_number]=[302102202732]
  238. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_app=sched_hangup)
  239. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_app]=[sched_hangup]
  240. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  241. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  242. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_account=9)
  243. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_account]=[9]
  244. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_rate=0.00000)
  245. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_rate]=[0.00000]
  246. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_increment=0)
  247. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_increment]=[0]
  248. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_minimum=0.00000)
  249. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_minimum]=[0.00000]
  250. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr nibblebill(heartbeat 30)
  251. 2021-12-07 09:46:56.769178 99.37% [WARNING] switch_core_session.c:1693 sofia/external_sip/6974108809@voips.modulus.gr using scheduler due to bypass media or media is not established.
  252. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_scheduler.c:263 Added task 144 switch_core_session_sched_heartbeat (21f5beb3-844a-4180-9731-d3af52e7d905) to run at 1638870446
  253. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(callstart=2021-12-07 09:46:56)
  254. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [callstart]=[2021-12-07 09:46:56]
  255. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(hangup_after_bridge=true)
  256. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [hangup_after_bridge]=[true]
  257. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(continue_on_fail=TRUE)
  258. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [continue_on_fail]=[TRUE]
  259. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(account_id=9)
  260. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [account_id]=[9]
  261. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(parent_id=0)
  262. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [parent_id]=[0]
  263. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(entity_id=3)
  264. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [entity_id]=[3]
  265. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_processed=internal)
  266. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_processed]=[internal]
  267. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_direction=inbound)
  268. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_direction]=[inbound]
  269. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(accountname=ModulusIncoming)
  270. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [accountname]=[ModulusIncoming]
  271. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates_did=ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11)
  272. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates_did]=[ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11]
  273. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates=0)
  274. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates]=[0]
  275. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_name=6974108809)
  276. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_name]=[6974108809]
  277. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_number=6974108809)
  278. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_number]=[6974108809]
  279. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr limit(db 2976257734 user_2976257734 60 )
  280. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_limit.c:124 incr called: 2976257734_user_2976257734 max:60, interval:0
  281. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_db.c:194 Usage for 2976257734_user_2976257734 is now 1/60
  282. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr limit(db 11 user_11 2 )
  283. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_limit.c:124 incr called: 11_user_11 max:2, interval:0
  284. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_db.c:194 Usage for 11_user_11 is now 1/2
  285. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_name=306974108809)
  286. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_name]=[306974108809]
  287. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_number=306974108809)
  288. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_number]=[306974108809]
  289. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(receiver_accid=11)
  290. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [receiver_accid]=[11]
  291. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(domain_name=)
  292. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[UNDEF]
  293. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(sip_to_host=)
  294. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[UNDEF]
  295. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr limit(db 302102202732 did_302102202732 2 )
  296. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_limit.c:124 incr called: 302102202732_did_302102202732 max:2, interval:0
  297. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_db.c:194 Usage for 302102202732_did_302102202732 is now 1/2
  298. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_data=x|||Martha(7772615170)|||||||||DID|||185.73.43.250)
  299. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Martha(7772615170)|||||||||DID|||185.73.43.250]
  300. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(call_type=4)
  301. 2021-12-07 09:46:56.769178 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[4]
  302. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(calltype=STANDARD)
  303. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [calltype]=[STANDARD]
  304. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(accountcode=7772615170)
  305. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [accountcode]=[7772615170]
  306. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(caller_did_account_id=9)
  307. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [caller_did_account_id]=[9]
  308. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_number=302102202732)
  309. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_number]=[302102202732]
  310. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_init_inc=0)
  311. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_init_inc]=[0]
  312. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_inc=0)
  313. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_inc]=[0]
  314. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_cost=0.00000)
  315. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_cost]=[0.00000]
  316. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_connectcost=0.00000)
  317. 2021-12-07 09:46:56.769178 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_connectcost]=[0.00000]
  318. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates_did=0)
  319. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates_did]=[0]
  320. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr transfer(306974485168 XML default)
  321. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_ivr.c:2289 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_EXECUTE -> CS_ROUTING
  322. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_ivr.c:2296 Transfer sofia/external_sip/6974108809@voips.modulus.gr to XML[306974485168@default]
  323. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE going to sleep
  324. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_ROUTING (Cur 1 Tot 115)
  325. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING
  326. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  327. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_sofia.c:158 sofia/external_sip/6974108809@voips.modulus.gr SOFIA ROUTING
  328. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.00000 per minute to account 9
  329. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:518 Not billing 9 - call is not in answered state
  330. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  331. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='9']
  332. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 9 (balance = 13.493480)
  333. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:523 Comparing 13.493480 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  334. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  335. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='9']
  336. 2021-12-07 09:46:56.789172 99.37% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 9 (balance = 13.493480)
  337. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_core_state_machine.c:230 sofia/external_sip/6974108809@voips.modulus.gr Standard ROUTING
  338. 2021-12-07 09:46:56.789172 99.37% [INFO] mod_dialplan_xml.c:639 Processing 6974108809 <6974108809>->306974485168 in context default
  339. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  340. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  341. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 2102202732
  342. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '21022027322102202732' AND status=0 limit 1
  343. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 306974108809 / 306974108809
  344. 2021-12-07 09:46:56.789172 99.37% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="21022027322102202732" LIMIT 1
  345. 2021-12-07 09:46:56.789172 99.37% [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 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="21022027322102202732" limit 1
  346. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  347. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 7772615170]
  348. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "7772615170" AND deleted = 0 limit 1
  349. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^21022027322102202732.*' OR blocked_patterns = '^2102202732210220273.*' OR blocked_patterns = '^210220273221022027.*' OR blocked_patterns = '^21022027322102202.*' OR blocked_patterns = '^2102202732210220.*' OR blocked_patterns = '^210220273221022.*' OR blocked_patterns = '^21022027322102.*' OR blocked_patterns = '^2102202732210.*' OR blocked_patterns = '^210220273221.*' OR blocked_patterns = '^21022027322.*' OR blocked_patterns = '^2102202732.*' OR blocked_patterns = '^210220273.*' OR blocked_patterns = '^21022027.*' OR blocked_patterns = '^2102202.*' OR blocked_patterns = '^210220.*' OR blocked_patterns = '^21022.*' OR blocked_patterns = '^2102.*' OR blocked_patterns = '^210.*' OR blocked_patterns = '^21.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 11 limit 1
  350. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="21022027322102202732" AND (accountid = 0 OR status = 1) LIMIT 1
  351. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] Localization Id: 1
  352. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  353. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....21022027322102202732
  354. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....21022027322102202732
  355. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 21022027322102202732
  356. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 3021022027322102202732
  357. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  358. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  359. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  360. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  361. 2021-12-07 09:46:56.789172 99.37% [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 (patterns = '^3021022027322102202732.*' OR patterns = '^302102202732210220273.*' OR patterns = '^30210220273221022027.*' OR patterns = '^3021022027322102202.*' OR patterns = '^302102202732210220.*' OR patterns = '^30210220273221022.*' OR patterns = '^3021022027322102.*' OR patterns = '^302102202732210.*' OR patterns = '^30210220273221.*' OR patterns = '^3021022027322.*' OR patterns = '^302102202732.*' OR patterns = '^30210220273.*' OR patterns = '^3021022027.*' OR patterns = '^302102202.*' OR patterns = '^30210220.*' OR patterns = '^3021022.*' OR patterns = '^302102.*' OR patterns = '^30210.*' OR patterns = '^3021.*' OR patterns = '^302.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 11 ORDER BY LENGTH(PKGPTR.patterns) DESC
  362. 2021-12-07 09:46:56.789172 99.37% [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 ="3021022027322102202732" AND A.accountid = '11' limit 1
  363. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 3021022027322102202732
  364. 2021-12-07 09:46:56.789172 99.37% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="3021022027322102202732" LIMIT 1
  365. 2021-12-07 09:46:56.789172 99.37% [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 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="3021022027322102202732" limit 1
  366. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  367. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '3021022027322102202732' OR number = '302102202732210220273' OR number = '30210220273221022027' OR number = '3021022027322102202' OR number = '302102202732210220' OR number = '30210220273221022' OR number = '3021022027322102' OR number = '302102202732210' OR number = '30210220273221' OR number = '3021022027322' OR number = '302102202732' OR number = '30210220273' OR number = '3021022027' OR number = '302102202' OR number = '30210220' OR number = '3021022' OR number = '302102' OR number = '30210' OR number = '3021' OR number = '302' OR number = '30' OR number = '3' OR number ='--') OR (number = '3021022027322102202732*' OR number = '302102202732210220273*' OR number = '30210220273221022027*' OR number = '3021022027322102202*' OR number = '302102202732210220*' OR number = '30210220273221022*' OR number = '3021022027322102*' OR number = '302102202732210*' OR number = '30210220273221*' OR number = '3021022027322*' OR number = '302102202732*' OR number = '30210220273*' OR number = '3021022027*' OR number = '302102202*' OR number = '30210220*' OR number = '3021022*' OR number = '302102*' OR number = '30210*' OR number = '3021*' OR number = '302*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '306974108809' OR number = '30697410880' OR number = '3069741088' OR number = '306974108' OR number = '30697410' OR number = '3069741' OR number = '306974' OR number = '30697' OR number = '3069' OR number = '306' OR number = '30' OR number = '3' OR number ='--') OR (number = '306974108809*' OR number = '30697410880*' OR number = '3069741088*' OR number = '306974108*' OR number = '30697410*' OR number = '3069741*' OR number = '306974*' OR number = '30697*' OR number = '3069*' OR number = '306*' OR number = '30*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  368. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  369. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '3021022027322102202732' OR routing_prefix = '302102202732210220273' OR routing_prefix = '30210220273221022027' OR routing_prefix = '3021022027322102202' OR routing_prefix = '302102202732210220' OR routing_prefix = '30210220273221022' OR routing_prefix = '3021022027322102' OR routing_prefix = '302102202732210' OR routing_prefix = '30210220273221' OR routing_prefix = '3021022027322' OR routing_prefix = '302102202732' OR routing_prefix = '30210220273' OR routing_prefix = '3021022027' OR routing_prefix = '302102202' OR routing_prefix = '30210220' OR routing_prefix = '3021022' OR routing_prefix = '302102' OR routing_prefix = '30210' OR routing_prefix = '3021' OR routing_prefix = '302' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 8 limit 1
  370. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  371. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 11
  372. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 7772615170
  373. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 6.83421
  374. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  375. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 3
  376. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  377. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  378. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  379. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  380. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  381. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  382. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  383. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  384. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  385. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  386. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  387. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  388. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  389. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  390. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
  391. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  392. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
  393. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3021022027322102202732.*' OR pattern = '^302102202732210220273.*' OR pattern = '^30210220273221022027.*' OR pattern = '^3021022027322102202.*' OR pattern = '^302102202732210220.*' OR pattern = '^30210220273221022.*' OR pattern = '^3021022027322102.*' OR pattern = '^302102202732210.*' OR pattern = '^30210220273221.*' OR pattern = '^3021022027322.*' OR pattern = '^302102202732.*' OR pattern = '^30210220273.*' OR pattern = '^3021022027.*' OR pattern = '^302102202.*' OR pattern = '^30210220.*' OR pattern = '^3021022.*' OR pattern = '^302102.*' OR pattern = '^30210.*' OR pattern = '^3021.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 3 OR accountid=11)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  394. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  395. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  396. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 132323
  397. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  398. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  399. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.01215
  400. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Greece
  401. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  402. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 11
  403. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 0
  404. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  405. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  406. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your6.83421 balance Accountid 11 !!!
  407. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  408. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 8
  409. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "8" AND deleted = 0 limit 1
  410. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^3021022027322102202732.*' OR blocked_patterns = '^302102202732210220273.*' OR blocked_patterns = '^30210220273221022027.*' OR blocked_patterns = '^3021022027322102202.*' OR blocked_patterns = '^302102202732210220.*' OR blocked_patterns = '^30210220273221022.*' OR blocked_patterns = '^3021022027322102.*' OR blocked_patterns = '^302102202732210.*' OR blocked_patterns = '^30210220273221.*' OR blocked_patterns = '^3021022027322.*' OR blocked_patterns = '^302102202732.*' OR blocked_patterns = '^30210220273.*' OR blocked_patterns = '^3021022027.*' OR blocked_patterns = '^302102202.*' OR blocked_patterns = '^30210220.*' OR blocked_patterns = '^3021022.*' OR blocked_patterns = '^302102.*' OR blocked_patterns = '^30210.*' OR blocked_patterns = '^3021.*' OR blocked_patterns = '^302.*' OR blocked_patterns = '^30.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 8 limit 1
  411. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  412. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 8
  413. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 1990008209
  414. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 709.07053
  415. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  416. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  417. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  418. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  419. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  420. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3021022027322102202732.*' OR pattern = '^302102202732210220273.*' OR pattern = '^30210220273221022027.*' OR pattern = '^3021022027322102202.*' OR pattern = '^302102202732210220.*' OR pattern = '^30210220273221022.*' OR pattern = '^3021022027322102.*' OR pattern = '^302102202732210.*' OR pattern = '^30210220273221.*' OR pattern = '^3021022027322.*' OR pattern = '^302102202732.*' OR pattern = '^30210220273.*' OR pattern = '^3021022027.*' OR pattern = '^302102202.*' OR pattern = '^30210220.*' OR pattern = '^3021022.*' OR pattern = '^302102.*' OR pattern = '^30210.*' OR pattern = '^3021.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 2 OR accountid=8)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  421. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  422. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  423. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 122936
  424. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  425. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  426. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00800
  427. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Greece
  428. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  429. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 8
  430. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 3
  431. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  432. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  433. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your709.07053 balance Accountid 8 !!!
  434. 2021-12-07 09:46:56.789172 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  435. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8
  436. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  437. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 1
  438. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 11
  439. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.01215
  440. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  441. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 1
  442. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 1
  443. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  444. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] User Rate ID : 132323
  445. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :3
  446. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [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 = '^3021022027322102202732.*' OR pattern = '^302102202732210220273.*' OR pattern = '^30210220273221022027.*' OR pattern = '^3021022027322102202.*' OR pattern = '^302102202732210220.*' OR pattern = '^30210220273221022.*' OR pattern = '^3021022027322102.*' OR pattern = '^302102202732210.*' OR pattern = '^30210220273221.*' OR pattern = '^3021022027322.*' OR pattern = '^302102202732.*' OR pattern = '^30210220273.*' OR pattern = '^3021022027.*' OR pattern = '^302102202.*' OR pattern = '^30210220.*' OR pattern = '^3021022.*' OR pattern = '^302102.*' OR pattern = '^30210.*' OR pattern = '^3021.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (3)  AND TR.effective_date <= UTC_TIMESTAMP() ORDER by FIELD(TR.trunk_id,3),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC,TR.effective_date DESC
  447. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  448. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 8862
  449. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^302.*
  450. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Greece
  451. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  452. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  453. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^302.*
  454. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  455. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 9991
  456. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 3
  457. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : ModulusOutgoing
  458. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  459. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  460. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 9
  461. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  462. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : ModulusOutgoing
  463. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  464. 2021-12-07 09:46:56.789172 99.37% [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 = 11 AND status=0 LIMIT 1
  465. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  466. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  467. 2021-12-07 09:46:56.789172 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  468. 2021-12-07 09:46:56.789172 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  469. 2021-12-07 09:46:56.809176 99.37% [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 = 3) AND status=0 limit 1
  470. 2021-12-07 09:46:56.809176 99.37% [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 = 9) AND status=0 limit 1
  471. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  472. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  473. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  474. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  475. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  476. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  477. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  478. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  479. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  480. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  481. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  482. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  483. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/9991.....3021022027322102202732
  484. 2021-12-07 09:46:56.809176 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 3021022027322102202732
  485. 2021-12-07 09:46:56.809176 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 99913021022027322102202732
  486. 2021-12-07 09:46:56.809176 99.37% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="2102202732" LIMIT 1
  487. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
  488. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  489. <document type="freeswitch/xml">
  490. <section name="dialplan" description="ASTPP Dialplan">
  491. <context name="default">
  492. <extension name="3021022027322102202732">
  493. <condition field="destination_number" expression="306974485168">
  494. <action application="set" data="effective_destination_number=3021022027322102202732"/>
  495. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  496. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  497. <action application="set" data="nibble_account=11"/>
  498. <action application="set" data="nibble_rate=0.01215"/>
  499. <action application="set" data="nibble_increment=1"/>
  500. <action application="set" data="nibble_minimum=0.00000"/>
  501. <action application="nibblebill" data="heartbeat 30"/>
  502. <action application="set" data="callstart=2021-12-07 09:46:56"/>
  503. <action application="set" data="hangup_after_bridge=true"/>
  504. <action application="set" data="continue_on_fail=TRUE"/>
  505. <action application="set" data="account_id=11"/>
  506. <action application="set" data="parent_id=8"/>
  507. <action application="set" data="entity_id=0"/>
  508. <action application="set" data="call_processed=internal"/>
  509. <action application="set" data="call_direction=outbound"/>
  510. <action application="set" data="accountname=default"/>
  511. <action application="set" data="origination_rates=ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8"/>
  512. <action application="set" data="original_caller_id_name=306974108809"/>
  513. <action application="set" data="original_caller_id_number=306974108809"/>
  514.  
  515. <action application="set" data="effective_caller_id_name=306974108809"/>
  516. <action application="set" data="effective_caller_id_number=306974108809"/>
  517. <action application="set" data="calltype=STANDARD"/>
  518. <action application="set" data="termination_rates=ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9"/>
  519. <action application="set" data="trunk_id=3"/>
  520. <action application="set" data="provider_id=9"/>
  521. <action application="set" data="rate_flag=0"/>
  522. <action application="set" data="force_trunk_flag=132323"/>
  523. <action application="export" data="presence_data=trunk_id=3"/>
  524. <action application="set" data="intcall=0"/>
  525. <action application="export" data="presence_id=3021022027322102202732"/>
  526. <action application="export" data="presence_data=x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece"/>
  527. <action application="bridge" data="[leg_timeout=0]sofia/gateway/ModulusOutgoing/99913021022027322102202732"/>
  528. </condition>
  529. </extension>
  530. </context>
  531. </section>
  532. </document>
  533. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr parsing [default->3021022027322102202732] continue=false
  534. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Regex (PASS) [3021022027322102202732] destination_number(306974485168) =~ /306974485168/ break=on-false
  535. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_destination_number=3021022027322102202732)
  536. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_app=sched_hangup)
  537. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  538. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_account=11)
  539. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_rate=0.01215)
  540. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_increment=1)
  541. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_minimum=0.00000)
  542. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action nibblebill(heartbeat 30)
  543. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(callstart=2021-12-07 09:46:56)
  544. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(hangup_after_bridge=true)
  545. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(continue_on_fail=TRUE)
  546. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(account_id=11)
  547. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(parent_id=8)
  548. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(entity_id=0)
  549. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_processed=internal)
  550. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_direction=outbound)
  551. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(accountname=default)
  552. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates=ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8)
  553. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_name=306974108809)
  554. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_number=306974108809)
  555. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_name=306974108809)
  556. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_number=306974108809)
  557. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(calltype=STANDARD)
  558. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(termination_rates=ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9)
  559. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(trunk_id=3)
  560. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(provider_id=9)
  561. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(rate_flag=0)
  562. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(force_trunk_flag=132323)
  563. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_data=trunk_id=3)
  564. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(intcall=0)
  565. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_id=3021022027322102202732)
  566. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_data=x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece)
  567. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action bridge([leg_timeout=0]sofia/gateway/ModulusOutgoing/99913021022027322102202732)
  568. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:281 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_ROUTING -> CS_EXECUTE
  569. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING going to sleep
  570. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_EXECUTE (Cur 1 Tot 115)
  571. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE
  572. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_sofia.c:213 sofia/external_sip/6974108809@voips.modulus.gr SOFIA EXECUTE
  573. 2021-12-07 09:46:56.809176 99.37% [WARNING] switch_core_session.c:1693 sofia/external_sip/6974108809@voips.modulus.gr using scheduler due to bypass media or media is not established.
  574. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_scheduler.c:263 Added task 145 switch_core_session_sched_heartbeat (21f5beb3-844a-4180-9731-d3af52e7d905) to run at 1638870446
  575. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:323 sofia/external_sip/6974108809@voips.modulus.gr Standard EXECUTE
  576. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_scheduler.c:147 Deleting task 144 switch_core_session_sched_heartbeat (21f5beb3-844a-4180-9731-d3af52e7d905)
  577. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_destination_number=3021022027322102202732)
  578. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_destination_number]=[3021022027322102202732]
  579. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_app=sched_hangup)
  580. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_app]=[sched_hangup]
  581. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  582. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  583. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_account=11)
  584. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_account]=[11]
  585. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_rate=0.01215)
  586. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_rate]=[0.01215]
  587. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_increment=1)
  588. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_increment]=[1]
  589. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_minimum=0.00000)
  590. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_minimum]=[0.00000]
  591. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr nibblebill(heartbeat 30)
  592. 2021-12-07 09:46:56.809176 99.37% [WARNING] switch_core_session.c:1693 sofia/external_sip/6974108809@voips.modulus.gr using scheduler due to bypass media or media is not established.
  593. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_scheduler.c:263 Added task 146 switch_core_session_sched_heartbeat (21f5beb3-844a-4180-9731-d3af52e7d905) to run at 1638870446
  594. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_scheduler.c:147 Deleting task 145 switch_core_session_sched_heartbeat (21f5beb3-844a-4180-9731-d3af52e7d905)
  595. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(callstart=2021-12-07 09:46:56)
  596. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [callstart]=[2021-12-07 09:46:56]
  597. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(hangup_after_bridge=true)
  598. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [hangup_after_bridge]=[true]
  599. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(continue_on_fail=TRUE)
  600. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [continue_on_fail]=[TRUE]
  601. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(account_id=11)
  602. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [account_id]=[11]
  603. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(parent_id=8)
  604. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [parent_id]=[8]
  605. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(entity_id=0)
  606. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [entity_id]=[0]
  607. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_processed=internal)
  608. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_processed]=[internal]
  609. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_direction=outbound)
  610. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_direction]=[outbound]
  611. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(accountname=default)
  612. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [accountname]=[default]
  613. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates=ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8)
  614. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates]=[ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8]
  615. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_name=306974108809)
  616. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_name]=[306974108809]
  617. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_number=306974108809)
  618. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_number]=[306974108809]
  619. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_name=306974108809)
  620. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_name]=[306974108809]
  621. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_number=306974108809)
  622. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_number]=[306974108809]
  623. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(calltype=STANDARD)
  624. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [calltype]=[STANDARD]
  625. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(termination_rates=ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9)
  626. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [termination_rates]=[ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9]
  627. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(trunk_id=3)
  628. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [trunk_id]=[3]
  629. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(provider_id=9)
  630. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [provider_id]=[9]
  631. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(rate_flag=0)
  632. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [rate_flag]=[0]
  633. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(force_trunk_flag=132323)
  634. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [force_trunk_flag]=[132323]
  635. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_data=trunk_id=3)
  636. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=3]
  637. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(intcall=0)
  638. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [intcall]=[0]
  639. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_id=3021022027322102202732)
  640. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[3021022027322102202732]
  641. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_data=x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece)
  642. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece]
  643. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr bridge([leg_timeout=0]sofia/gateway/ModulusOutgoing/99913021022027322102202732)
  644. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece] to event
  645. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [call_type]=[4] to event
  646. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece] to event
  647. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_id]=[3021022027322102202732] to event
  648. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece] to event
  649. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  650. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  651. 2021-12-07 09:46:56.809176 99.37% [NOTICE] switch_channel.c:1123 New Channel sofia/external_without_reg/99913021022027322102202732 [50ae5f68-ee34-4ece-801b-b3eb58eb7013]
  652. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_sofia.c:5121 (sofia/external_without_reg/99913021022027322102202732) State Change CS_NEW -> CS_INIT
  653. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_INIT (Cur 2 Tot 116)
  654. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:624 (sofia/external_without_reg/99913021022027322102202732) State INIT
  655. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_sofia.c:97 sofia/external_without_reg/99913021022027322102202732 SOFIA INIT
  656. 2021-12-07 09:46:56.809176 99.37% [DEBUG] sofia_glue.c:1620 sip:148.251.66.230:5060 Setting proxy route to sofia/external_without_reg/99913021022027322102202732
  657. 2021-12-07 09:46:56.809176 99.37% [INFO] sofia_glue.c:1651 sofia/external_without_reg/99913021022027322102202732 sending invite call-id: (null)
  658. 2021-12-07 09:46:56.809176 99.37% [DEBUG] sofia_glue.c:1654 sofia/external_without_reg/99913021022027322102202732 sending invite version: 1.10.7 -release-19-883d2cb662 64bit
  659. Local SDP:
  660. v=0
  661. o=FreeSWITCH 1638847886 1638847887 IN IP4 94.130.242.106
  662. s=FreeSWITCH
  663. c=IN IP4 94.130.242.106
  664. t=0 0
  665. m=audio 22530 RTP/AVP 8 101
  666. a=rtpmap:8 PCMA/8000
  667. a=rtpmap:101 telephone-event/8000
  668. a=fmtp:101 0-15
  669. a=ptime:20
  670. a=sendrecv
  671.  
  672. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:40 sofia/external_without_reg/99913021022027322102202732 Standard INIT
  673. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:48 (sofia/external_without_reg/99913021022027322102202732) State Change CS_INIT -> CS_ROUTING
  674. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:624 (sofia/external_without_reg/99913021022027322102202732) State INIT going to sleep
  675. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_ROUTING (Cur 2 Tot 116)
  676. 2021-12-07 09:46:56.809176 99.37% [DEBUG] sofia.c:7499 Channel sofia/external_without_reg/99913021022027322102202732 entering state [calling][0]
  677. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/external_without_reg/99913021022027322102202732) State ROUTING
  678. 2021-12-07 09:46:56.809176 99.37% [DEBUG] mod_sofia.c:158 sofia/external_without_reg/99913021022027322102202732 SOFIA ROUTING
  679. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_ivr_originate.c:67 (sofia/external_without_reg/99913021022027322102202732) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  680. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/external_without_reg/99913021022027322102202732) State ROUTING going to sleep
  681. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 116)
  682. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:659 (sofia/external_without_reg/99913021022027322102202732) State CONSUME_MEDIA
  683. 2021-12-07 09:46:56.809176 99.37% [DEBUG] switch_core_state_machine.c:659 (sofia/external_without_reg/99913021022027322102202732) State CONSUME_MEDIA going to sleep
  684. 2021-12-07 09:46:56.989180 99.17% [DEBUG] sofia.c:7499 Channel sofia/external_without_reg/99913021022027322102202732 entering state [terminated][503]
  685. 2021-12-07 09:46:56.989180 99.17% [NOTICE] sofia.c:8738 Hangup sofia/external_without_reg/99913021022027322102202732 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
  686. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_HANGUP (Cur 2 Tot 116)
  687. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:844 (sofia/external_without_reg/99913021022027322102202732) Callstate Change DOWN -> HANGUP
  688. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_without_reg/99913021022027322102202732) State HANGUP
  689. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_sofia.c:468 Channel sofia/external_without_reg/99913021022027322102202732 hanging up, cause: NORMAL_TEMPORARY_FAILURE
  690. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:59 sofia/external_without_reg/99913021022027322102202732 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE
  691. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_without_reg/99913021022027322102202732) State HANGUP going to sleep
  692. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:616 (sofia/external_without_reg/99913021022027322102202732) State Change CS_HANGUP -> CS_REPORTING
  693. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_REPORTING (Cur 2 Tot 116)
  694. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_without_reg/99913021022027322102202732) State REPORTING
  695. 2021-12-07 09:46:56.989180 99.17% [INFO] mod_json_cdr.c:271 Process [50ae5f68-ee34-4ece-801b-b3eb58eb7013.cdr.json]
  696. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:168 sofia/external_without_reg/99913021022027322102202732 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE
  697. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_without_reg/99913021022027322102202732) State REPORTING going to sleep
  698. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:607 (sofia/external_without_reg/99913021022027322102202732) State Change CS_REPORTING -> CS_DESTROY
  699. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_session.c:1753 Session 116 (sofia/external_without_reg/99913021022027322102202732) Locked, Waiting on external entities
  700. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]
  701. 2021-12-07 09:46:56.989180 99.17% [NOTICE] switch_core_session.c:1771 Session 116 (sofia/external_without_reg/99913021022027322102202732) Ended
  702. 2021-12-07 09:46:56.989180 99.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/external_without_reg/99913021022027322102202732 [CS_DESTROY]
  703. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:735 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_DESTROY (Cur 1 Tot 116)
  704. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_without_reg/99913021022027322102202732) State DESTROY
  705. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_sofia.c:379 sofia/external_without_reg/99913021022027322102202732 SOFIA DESTROY
  706. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:175 sofia/external_without_reg/99913021022027322102202732 Standard DESTROY
  707. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_without_reg/99913021022027322102202732) State DESTROY going to sleep
  708. 2021-12-07 09:46:56.989180 99.17% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: NORMAL_TEMPORARY_FAILURE
  709. 2021-12-07 09:46:56.989180 99.17% [NOTICE] switch_core_state_machine.c:382 sofia/external_sip/6974108809@voips.modulus.gr has executed the last dialplan instruction, hanging up.
  710. 2021-12-07 09:46:56.989180 99.17% [NOTICE] switch_core_state_machine.c:384 Hangup sofia/external_sip/6974108809@voips.modulus.gr [CS_EXECUTE] [NORMAL_CLEARING]
  711. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE going to sleep
  712. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_HANGUP (Cur 1 Tot 116)
  713. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:844 (sofia/external_sip/6974108809@voips.modulus.gr) Callstate Change RINGING -> HANGUP
  714. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_sip/6974108809@voips.modulus.gr) State HANGUP
  715. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_sofia.c:462 sofia/external_sip/6974108809@voips.modulus.gr Overriding SIP cause 480 with 503 from the other leg
  716. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_sofia.c:468 Channel sofia/external_sip/6974108809@voips.modulus.gr hanging up, cause: NORMAL_CLEARING
  717. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 503
  718. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.01215 per minute to account 11
  719. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:518 Not billing 11 - call is not in answered state
  720. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  721. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='11']
  722. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 11 (balance = 6.834210)
  723. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:523 Comparing 6.834210 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  724. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  725. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='11']
  726. 2021-12-07 09:46:56.989180 99.17% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 11 (balance = 6.834210)
  727. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:59 sofia/external_sip/6974108809@voips.modulus.gr Standard HANGUP, cause: NORMAL_CLEARING
  728. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_sip/6974108809@voips.modulus.gr) State HANGUP going to sleep
  729. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:616 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_HANGUP -> CS_REPORTING
  730. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_REPORTING (Cur 1 Tot 116)
  731. 2021-12-07 09:46:56.989180 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_sip/6974108809@voips.modulus.gr) State REPORTING
  732. 2021-12-07 09:46:56.989180 99.17% [INFO] mod_json_cdr.c:271 Process [21f5beb3-844a-4180-9731-d3af52e7d905.cdr.json]
  733. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:168 sofia/external_sip/6974108809@voips.modulus.gr Standard REPORTING, cause: NORMAL_CLEARING
  734. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_sip/6974108809@voips.modulus.gr) State REPORTING going to sleep
  735. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:607 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_REPORTING -> CS_DESTROY
  736. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_session.c:1753 Session 115 (sofia/external_sip/6974108809@voips.modulus.gr) Locked, Waiting on external entities
  737. 2021-12-07 09:46:57.029182 99.17% [NOTICE] switch_core_session.c:1771 Session 115 (sofia/external_sip/6974108809@voips.modulus.gr) Ended
  738. 2021-12-07 09:46:57.029182 99.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/external_sip/6974108809@voips.modulus.gr [CS_DESTROY]
  739. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:735 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_DESTROY (Cur 0 Tot 116)
  740. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_sip/6974108809@voips.modulus.gr) State DESTROY
  741. 2021-12-07 09:46:57.029182 99.17% [DEBUG] mod_sofia.c:379 sofia/external_sip/6974108809@voips.modulus.gr SOFIA DESTROY
  742. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:175 sofia/external_sip/6974108809@voips.modulus.gr Standard DESTROY
  743. 2021-12-07 09:46:57.029182 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_sip/6974108809@voips.modulus.gr) State DESTROY going to sleep
  744. 2021-12-07 09:46:57.309183 99.17% [DEBUG] switch_scheduler.c:147 Deleting task 146 switch_core_session_sched_heartbeat (21f5beb3-844a-4180-9731-d3af52e7d905)
  745. 2021-12-07 09:46:57.489181 99.17% [NOTICE] switch_channel.c:1123 New Channel sofia/external_sip/6974108809@voips.modulus.gr [e8369724-8f1c-4745-aa26-fb61a6695e9d]
  746. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_NEW (Cur 1 Tot 117)
  747. 2021-12-07 09:46:57.489181 99.17% [INFO] sofia.c:10462 sofia/external_sip/6974108809@voips.modulus.gr receiving invite from 185.73.43.250:5060 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 2788a1c34d17768c6d27b9df35d926cd@voips.modulus.gr
  748. 2021-12-07 09:46:57.489181 99.17% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 185.73.43.250:0.
  749. 2021-12-07 09:46:57.489181 99.17% [DEBUG] sofia.c:7499 Channel sofia/external_sip/6974108809@voips.modulus.gr entering state [received][100]
  750. 2021-12-07 09:46:57.489181 99.17% [DEBUG] sofia.c:7509 Remote SDP:
  751. v=0
  752. o=root 757362037 757362037 IN IP4 185.73.43.253
  753. s=modCOM v2 Media Gateway
  754. c=IN IP4 185.73.43.253
  755. t=0 0
  756. m=audio 25590 RTP/AVP 8 9 0 18 101
  757. a=rtpmap:8 PCMA/8000
  758. a=rtpmap:9 G722/8000
  759. a=rtpmap:0 PCMU/8000
  760. a=rtpmap:18 G729/8000
  761. a=fmtp:18 annexb=no
  762. a=rtpmap:101 telephone-event/8000
  763. a=fmtp:101 0-16
  764. a=rtcp:25591
  765. a=ptime:20
  766.  
  767. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  768. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  769. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  770. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  771. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  772. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  773. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  774. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  775. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  776. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  777. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  778. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:3870 Set Codec sofia/external_sip/6974108809@voips.modulus.gr PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  779. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_codec.c:111 sofia/external_sip/6974108809@voips.modulus.gr Original read codec set to PCMA:8
  780. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  781. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_media.c:5973 sofia/external_sip/6974108809@voips.modulus.gr Set 2833 dtmf send payload to 101 recv payload to 101
  782. 2021-12-07 09:46:57.489181 99.17% [DEBUG] sofia.c:7933 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_NEW -> CS_INIT
  783. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:600 (sofia/external_sip/6974108809@voips.modulus.gr) State NEW
  784. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_INIT (Cur 1 Tot 117)
  785. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:624 (sofia/external_sip/6974108809@voips.modulus.gr) State INIT
  786. 2021-12-07 09:46:57.489181 99.17% [DEBUG] mod_sofia.c:97 sofia/external_sip/6974108809@voips.modulus.gr SOFIA INIT
  787. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:40 sofia/external_sip/6974108809@voips.modulus.gr Standard INIT
  788. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:48 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_INIT -> CS_ROUTING
  789. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:624 (sofia/external_sip/6974108809@voips.modulus.gr) State INIT going to sleep
  790. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_ROUTING (Cur 1 Tot 117)
  791. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_channel.c:2380 (sofia/external_sip/6974108809@voips.modulus.gr) Callstate Change DOWN -> RINGING
  792. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING
  793. 2021-12-07 09:46:57.489181 99.17% [DEBUG] mod_sofia.c:158 sofia/external_sip/6974108809@voips.modulus.gr SOFIA ROUTING
  794. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_core_state_machine.c:230 sofia/external_sip/6974108809@voips.modulus.gr Standard ROUTING
  795. 2021-12-07 09:46:57.489181 99.17% [INFO] mod_dialplan_xml.c:639 Processing 6974108809 <6974108809>->2102202732 in context default
  796. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  797. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  798. 2021-12-07 09:46:57.489181 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 2102202732
  799. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '2102202732' AND status=0 limit 1
  800. 2021-12-07 09:46:57.489181 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 6974108809 / 6974108809
  801. 2021-12-07 09:46:57.489181 99.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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="2102202732" LIMIT 1
  802. 2021-12-07 09:46:57.489181 99.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 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="2102202732" limit 1
  803. 2021-12-07 09:46:57.489181 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  804. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("185.73.43.250") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "2102202732"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  805. 2021-12-07 09:46:57.489181 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 2976257734]
  806. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "2976257734" AND deleted = 0 limit 1
  807. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^2102202732.*' OR blocked_patterns = '^210220273.*' OR blocked_patterns = '^21022027.*' OR blocked_patterns = '^2102202.*' OR blocked_patterns = '^210220.*' OR blocked_patterns = '^21022.*' OR blocked_patterns = '^2102.*' OR blocked_patterns = '^210.*' OR blocked_patterns = '^21.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 9 limit 1
  808. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="2102202732" AND (accountid = 0 OR status = 1) LIMIT 1
  809. 2021-12-07 09:46:57.489181 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] Localization Id: 1
  810. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  811. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....2102202732
  812. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....2102202732
  813. 2021-12-07 09:46:57.489181 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 2102202732
  814. 2021-12-07 09:46:57.489181 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 302102202732
  815. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  816. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  817. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  818. 2021-12-07 09:46:57.489181 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....302102202732
  819. 2021-12-07 09:46:57.489181 99.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 (patterns = '^302102202732.*' OR patterns = '^30210220273.*' OR patterns = '^3021022027.*' OR patterns = '^302102202.*' OR patterns = '^30210220.*' OR patterns = '^3021022.*' OR patterns = '^302102.*' OR patterns = '^30210.*' OR patterns = '^3021.*' OR patterns = '^302.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 9 ORDER BY LENGTH(PKGPTR.patterns) DESC
  820. 2021-12-07 09:46:57.509180 99.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 ="302102202732" AND A.accountid = '9' limit 1
  821. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 302102202732
  822. 2021-12-07 09:46:57.509180 99.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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302102202732" LIMIT 1
  823. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  824. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '302102202732' OR number = '30210220273' OR number = '3021022027' OR number = '302102202' OR number = '30210220' OR number = '3021022' OR number = '302102' OR number = '30210' OR number = '3021' OR number = '302' OR number = '30' OR number = '3' OR number ='--') OR (number = '302102202732*' OR number = '30210220273*' OR number = '3021022027*' OR number = '302102202*' OR number = '30210220*' OR number = '3021022*' OR number = '302102*' OR number = '30210*' OR number = '3021*' OR number = '302*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '6974108809' OR number = '697410880' OR number = '69741088' OR number = '6974108' OR number = '697410' OR number = '69741' OR number = '6974' OR number = '697' OR number = '69' OR number = '6' OR number ='--') OR (number = '6974108809*' OR number = '697410880*' OR number = '69741088*' OR number = '6974108*' OR number = '697410*' OR number = '69741*' OR number = '6974*' OR number = '697*' OR number = '69*' OR number = '6*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  825. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  826. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '302102202732' OR routing_prefix = '30210220273' OR routing_prefix = '3021022027' OR routing_prefix = '302102202' OR routing_prefix = '30210220' OR routing_prefix = '3021022' OR routing_prefix = '302102' OR routing_prefix = '30210' OR routing_prefix = '3021' OR routing_prefix = '302' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  827. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  828. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 9
  829. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 2976257734
  830. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10000
  831. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  832. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  833. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  834. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  835. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  836. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  837. 2021-12-07 09:46:57.509180 99.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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302102202732" LIMIT 1
  838. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  839. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  840. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  841. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  842. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  843. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  844. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 302102202732
  845. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 75
  846. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 9
  847. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  848. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 9 !!!
  849. 2021-12-07 09:46:57.509180 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  850. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 9
  851. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.00000
  852. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  853. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 0
  854. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 0
  855. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  856. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  857. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  858. 2021-12-07 09:46:57.509180 99.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 = 9 AND status=0 LIMIT 1
  859. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "11" AND deleted = 0 limit 1
  860. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:9
  861. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:9
  862. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 9
  863. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  864. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  865. 2021-12-07 09:46:57.509180 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  866. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  867. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  868. 2021-12-07 09:46:57.509180 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 6974108809
  869. 2021-12-07 09:46:57.509180 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 306974108809
  870. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....306974108809
  871. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  872. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....6974108809
  873. 2021-12-07 09:46:57.509180 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 6974108809
  874. 2021-12-07 09:46:57.509180 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 306974108809
  875. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"2/302,6/306,00/*".....306974108809
  876. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 11  and status = 0 limit 1
  877. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_4
  878. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  879. <document type="freeswitch/xml">
  880. <section name="dialplan" description="ASTPP Dialplan">
  881. <context name="default">
  882. <extension name="302102202732">
  883. <condition field="destination_number" expression="2102202732">
  884. <action application="set" data="effective_destination_number=302102202732"/>
  885. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  886. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  887. <action application="set" data="nibble_account=9"/>
  888. <action application="set" data="nibble_rate=0.00000"/>
  889. <action application="set" data="nibble_increment=0"/>
  890. <action application="set" data="nibble_minimum=0.00000"/>
  891. <action application="nibblebill" data="heartbeat 30"/>
  892. <action application="set" data="callstart=2021-12-07 09:46:57"/>
  893. <action application="set" data="hangup_after_bridge=true"/>
  894. <action application="set" data="continue_on_fail=TRUE"/>
  895. <action application="set" data="account_id=9"/>
  896. <action application="set" data="parent_id=0"/>
  897. <action application="set" data="entity_id=3"/>
  898. <action application="set" data="call_processed=internal"/>
  899. <action application="set" data="call_direction=inbound"/>
  900. <action application="set" data="accountname=ModulusIncoming"/>
  901. <action application="set" data="origination_rates_did=ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11"/>
  902. <action application="set" data="origination_rates=0"/>
  903. <action application="set" data="original_caller_id_name=6974108809"/>
  904. <action application="set" data="original_caller_id_number=6974108809"/>
  905. <action application="limit" data="db 2976257734 user_2976257734 60 "/>
  906. <action application="limit" data="db 11 user_11 2 "/>
  907. <action application="set" data="effective_caller_id_name=306974108809"/>
  908. <action application="set" data="effective_caller_id_number=306974108809"/>
  909. <action application="set" data="receiver_accid=11"/>
  910. <action application="export" data="domain_name="/>
  911. <action application="export" data="sip_to_host="/>
  912. <action application="limit" data="db 302102202732 did_302102202732 2 "/>
  913. <action application="export" data="presence_data=x|||Martha(7772615170)|||||||||DID|||185.73.43.250"/>
  914. <action application="export" data="call_type=4"/>
  915. <action application="set" data="calltype=STANDARD"/>
  916. <action application="set" data="accountcode=7772615170"/>
  917. <action application="set" data="caller_did_account_id=9"/>
  918. <action application="set" data="did_number=302102202732"/>
  919. <action application="set" data="did_init_inc=0"/>
  920. <action application="set" data="did_inc=0"/>
  921. <action application="set" data="did_cost=0.00000"/>
  922. <action application="set" data="did_connectcost=0.00000"/>
  923. <action application="set" data="origination_rates_did=0"/>
  924. <action application="transfer" data="306974485168 XML default"/>
  925. </condition>
  926. </extension>
  927. </context>
  928. </section>
  929. </document>
  930. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr parsing [default->302102202732] continue=false
  931. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Regex (PASS) [302102202732] destination_number(2102202732) =~ /2102202732/ break=on-false
  932. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_destination_number=302102202732)
  933. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_app=sched_hangup)
  934. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  935. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_account=9)
  936. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_rate=0.00000)
  937. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_increment=0)
  938. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_minimum=0.00000)
  939. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action nibblebill(heartbeat 30)
  940. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(callstart=2021-12-07 09:46:57)
  941. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(hangup_after_bridge=true)
  942. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(continue_on_fail=TRUE)
  943. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(account_id=9)
  944. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(parent_id=0)
  945. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(entity_id=3)
  946. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_processed=internal)
  947. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_direction=inbound)
  948. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(accountname=ModulusIncoming)
  949. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates_did=ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11)
  950. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates=0)
  951. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_name=6974108809)
  952. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_number=6974108809)
  953. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action limit(db 2976257734 user_2976257734 60 )
  954. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action limit(db 11 user_11 2 )
  955. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_name=306974108809)
  956. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_number=306974108809)
  957. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(receiver_accid=11)
  958. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(domain_name=)
  959. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(sip_to_host=)
  960. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action limit(db 302102202732 did_302102202732 2 )
  961. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_data=x|||Martha(7772615170)|||||||||DID|||185.73.43.250)
  962. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(call_type=4)
  963. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(calltype=STANDARD)
  964. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(accountcode=7772615170)
  965. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(caller_did_account_id=9)
  966. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_number=302102202732)
  967. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_init_inc=0)
  968. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_inc=0)
  969. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_cost=0.00000)
  970. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(did_connectcost=0.00000)
  971. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates_did=0)
  972. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action transfer(306974485168 XML default)
  973. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:281 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_ROUTING -> CS_EXECUTE
  974. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING going to sleep
  975. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_EXECUTE (Cur 1 Tot 117)
  976. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE
  977. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_sofia.c:213 sofia/external_sip/6974108809@voips.modulus.gr SOFIA EXECUTE
  978. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:323 sofia/external_sip/6974108809@voips.modulus.gr Standard EXECUTE
  979. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_destination_number=302102202732)
  980. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_destination_number]=[302102202732]
  981. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_app=sched_hangup)
  982. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_app]=[sched_hangup]
  983. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  984. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  985. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_account=9)
  986. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_account]=[9]
  987. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_rate=0.00000)
  988. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_rate]=[0.00000]
  989. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_increment=0)
  990. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_increment]=[0]
  991. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_minimum=0.00000)
  992. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_minimum]=[0.00000]
  993. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr nibblebill(heartbeat 30)
  994. 2021-12-07 09:46:57.509180 99.17% [WARNING] switch_core_session.c:1693 sofia/external_sip/6974108809@voips.modulus.gr using scheduler due to bypass media or media is not established.
  995. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_scheduler.c:263 Added task 147 switch_core_session_sched_heartbeat (e8369724-8f1c-4745-aa26-fb61a6695e9d) to run at 1638870447
  996. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(callstart=2021-12-07 09:46:57)
  997. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [callstart]=[2021-12-07 09:46:57]
  998. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(hangup_after_bridge=true)
  999. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [hangup_after_bridge]=[true]
  1000. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(continue_on_fail=TRUE)
  1001. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [continue_on_fail]=[TRUE]
  1002. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(account_id=9)
  1003. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [account_id]=[9]
  1004. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(parent_id=0)
  1005. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [parent_id]=[0]
  1006. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(entity_id=3)
  1007. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [entity_id]=[3]
  1008. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_processed=internal)
  1009. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_processed]=[internal]
  1010. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_direction=inbound)
  1011. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_direction]=[inbound]
  1012. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(accountname=ModulusIncoming)
  1013. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [accountname]=[ModulusIncoming]
  1014. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates_did=ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11)
  1015. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates_did]=[ID:1|CODE:^302102202732.*|DESTINATION:302102202732|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:4|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:11]
  1016. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates=0)
  1017. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates]=[0]
  1018. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_name=6974108809)
  1019. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_name]=[6974108809]
  1020. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_number=6974108809)
  1021. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_number]=[6974108809]
  1022. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr limit(db 2976257734 user_2976257734 60 )
  1023. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_limit.c:124 incr called: 2976257734_user_2976257734 max:60, interval:0
  1024. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_db.c:194 Usage for 2976257734_user_2976257734 is now 1/60
  1025. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr limit(db 11 user_11 2 )
  1026. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_limit.c:124 incr called: 11_user_11 max:2, interval:0
  1027. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_db.c:194 Usage for 11_user_11 is now 1/2
  1028. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_name=306974108809)
  1029. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_name]=[306974108809]
  1030. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_number=306974108809)
  1031. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_number]=[306974108809]
  1032. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(receiver_accid=11)
  1033. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [receiver_accid]=[11]
  1034. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(domain_name=)
  1035. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[UNDEF]
  1036. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(sip_to_host=)
  1037. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[UNDEF]
  1038. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr limit(db 302102202732 did_302102202732 2 )
  1039. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_limit.c:124 incr called: 302102202732_did_302102202732 max:2, interval:0
  1040. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_db.c:194 Usage for 302102202732_did_302102202732 is now 1/2
  1041. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_data=x|||Martha(7772615170)|||||||||DID|||185.73.43.250)
  1042. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Martha(7772615170)|||||||||DID|||185.73.43.250]
  1043. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(call_type=4)
  1044. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[4]
  1045. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(calltype=STANDARD)
  1046. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [calltype]=[STANDARD]
  1047. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(accountcode=7772615170)
  1048. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [accountcode]=[7772615170]
  1049. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(caller_did_account_id=9)
  1050. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [caller_did_account_id]=[9]
  1051. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_number=302102202732)
  1052. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_number]=[302102202732]
  1053. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_init_inc=0)
  1054. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_init_inc]=[0]
  1055. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_inc=0)
  1056. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_inc]=[0]
  1057. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_cost=0.00000)
  1058. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_cost]=[0.00000]
  1059. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(did_connectcost=0.00000)
  1060. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [did_connectcost]=[0.00000]
  1061. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates_did=0)
  1062. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates_did]=[0]
  1063. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr transfer(306974485168 XML default)
  1064. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_ivr.c:2289 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_EXECUTE -> CS_ROUTING
  1065. 2021-12-07 09:46:57.509180 99.17% [NOTICE] switch_ivr.c:2296 Transfer sofia/external_sip/6974108809@voips.modulus.gr to XML[306974485168@default]
  1066. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE going to sleep
  1067. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_ROUTING (Cur 1 Tot 117)
  1068. 2021-12-07 09:46:57.509180 99.17% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING
  1069. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  1070. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_sofia.c:158 sofia/external_sip/6974108809@voips.modulus.gr SOFIA ROUTING
  1071. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.00000 per minute to account 9
  1072. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_nibblebill.c:518 Not billing 9 - call is not in answered state
  1073. 2021-12-07 09:46:57.509180 99.17% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  1074. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='9']
  1075. 2021-12-07 09:46:57.529176 99.17% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 9 (balance = 13.493480)
  1076. 2021-12-07 09:46:57.529176 99.17% [DEBUG] mod_nibblebill.c:523 Comparing 13.493480 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  1077. 2021-12-07 09:46:57.529176 99.17% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  1078. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='9']
  1079. 2021-12-07 09:46:57.529176 99.17% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 9 (balance = 13.493480)
  1080. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_core_state_machine.c:230 sofia/external_sip/6974108809@voips.modulus.gr Standard ROUTING
  1081. 2021-12-07 09:46:57.529176 99.17% [INFO] mod_dialplan_xml.c:639 Processing 6974108809 <6974108809>->306974485168 in context default
  1082. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  1083. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1084. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 2102202732
  1085. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '21022027322102202732' AND status=0 limit 1
  1086. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 306974108809 / 306974108809
  1087. 2021-12-07 09:46:57.529176 99.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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="21022027322102202732" LIMIT 1
  1088. 2021-12-07 09:46:57.529176 99.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 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="21022027322102202732" limit 1
  1089. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  1090. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 7772615170]
  1091. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "7772615170" AND deleted = 0 limit 1
  1092. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^21022027322102202732.*' OR blocked_patterns = '^2102202732210220273.*' OR blocked_patterns = '^210220273221022027.*' OR blocked_patterns = '^21022027322102202.*' OR blocked_patterns = '^2102202732210220.*' OR blocked_patterns = '^210220273221022.*' OR blocked_patterns = '^21022027322102.*' OR blocked_patterns = '^2102202732210.*' OR blocked_patterns = '^210220273221.*' OR blocked_patterns = '^21022027322.*' OR blocked_patterns = '^2102202732.*' OR blocked_patterns = '^210220273.*' OR blocked_patterns = '^21022027.*' OR blocked_patterns = '^2102202.*' OR blocked_patterns = '^210220.*' OR blocked_patterns = '^21022.*' OR blocked_patterns = '^2102.*' OR blocked_patterns = '^210.*' OR blocked_patterns = '^21.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 11 limit 1
  1093. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="21022027322102202732" AND (accountid = 0 OR status = 1) LIMIT 1
  1094. 2021-12-07 09:46:57.529176 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] Localization Id: 1
  1095. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  1096. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....21022027322102202732
  1097. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....21022027322102202732
  1098. 2021-12-07 09:46:57.529176 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 21022027322102202732
  1099. 2021-12-07 09:46:57.529176 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 3021022027322102202732
  1100. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1101. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1102. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1103. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1104. 2021-12-07 09:46:57.529176 99.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 (patterns = '^3021022027322102202732.*' OR patterns = '^302102202732210220273.*' OR patterns = '^30210220273221022027.*' OR patterns = '^3021022027322102202.*' OR patterns = '^302102202732210220.*' OR patterns = '^30210220273221022.*' OR patterns = '^3021022027322102.*' OR patterns = '^302102202732210.*' OR patterns = '^30210220273221.*' OR patterns = '^3021022027322.*' OR patterns = '^302102202732.*' OR patterns = '^30210220273.*' OR patterns = '^3021022027.*' OR patterns = '^302102202.*' OR patterns = '^30210220.*' OR patterns = '^3021022.*' OR patterns = '^302102.*' OR patterns = '^30210.*' OR patterns = '^3021.*' OR patterns = '^302.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 11 ORDER BY LENGTH(PKGPTR.patterns) DESC
  1105. 2021-12-07 09:46:57.529176 99.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 ="3021022027322102202732" AND A.accountid = '11' limit 1
  1106. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 3021022027322102202732
  1107. 2021-12-07 09:46:57.529176 99.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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="3021022027322102202732" LIMIT 1
  1108. 2021-12-07 09:46:57.529176 99.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 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="3021022027322102202732" limit 1
  1109. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  1110. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '3021022027322102202732' OR number = '302102202732210220273' OR number = '30210220273221022027' OR number = '3021022027322102202' OR number = '302102202732210220' OR number = '30210220273221022' OR number = '3021022027322102' OR number = '302102202732210' OR number = '30210220273221' OR number = '3021022027322' OR number = '302102202732' OR number = '30210220273' OR number = '3021022027' OR number = '302102202' OR number = '30210220' OR number = '3021022' OR number = '302102' OR number = '30210' OR number = '3021' OR number = '302' OR number = '30' OR number = '3' OR number ='--') OR (number = '3021022027322102202732*' OR number = '302102202732210220273*' OR number = '30210220273221022027*' OR number = '3021022027322102202*' OR number = '302102202732210220*' OR number = '30210220273221022*' OR number = '3021022027322102*' OR number = '302102202732210*' OR number = '30210220273221*' OR number = '3021022027322*' OR number = '302102202732*' OR number = '30210220273*' OR number = '3021022027*' OR number = '302102202*' OR number = '30210220*' OR number = '3021022*' OR number = '302102*' OR number = '30210*' OR number = '3021*' OR number = '302*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '306974108809' OR number = '30697410880' OR number = '3069741088' OR number = '306974108' OR number = '30697410' OR number = '3069741' OR number = '306974' OR number = '30697' OR number = '3069' OR number = '306' OR number = '30' OR number = '3' OR number ='--') OR (number = '306974108809*' OR number = '30697410880*' OR number = '3069741088*' OR number = '306974108*' OR number = '30697410*' OR number = '3069741*' OR number = '306974*' OR number = '30697*' OR number = '3069*' OR number = '306*' OR number = '30*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  1111. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  1112. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '3021022027322102202732' OR routing_prefix = '302102202732210220273' OR routing_prefix = '30210220273221022027' OR routing_prefix = '3021022027322102202' OR routing_prefix = '302102202732210220' OR routing_prefix = '30210220273221022' OR routing_prefix = '3021022027322102' OR routing_prefix = '302102202732210' OR routing_prefix = '30210220273221' OR routing_prefix = '3021022027322' OR routing_prefix = '302102202732' OR routing_prefix = '30210220273' OR routing_prefix = '3021022027' OR routing_prefix = '302102202' OR routing_prefix = '30210220' OR routing_prefix = '3021022' OR routing_prefix = '302102' OR routing_prefix = '30210' OR routing_prefix = '3021' OR routing_prefix = '302' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 8 limit 1
  1113. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  1114. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 11
  1115. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 7772615170
  1116. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 6.83421
  1117. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  1118. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 3
  1119. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  1120. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  1121. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1122. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1123. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1124. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1125. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1126. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1127. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1128. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1129. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1130. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1131. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1132. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1133. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
  1134. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  1135. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
  1136. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3021022027322102202732.*' OR pattern = '^302102202732210220273.*' OR pattern = '^30210220273221022027.*' OR pattern = '^3021022027322102202.*' OR pattern = '^302102202732210220.*' OR pattern = '^30210220273221022.*' OR pattern = '^3021022027322102.*' OR pattern = '^302102202732210.*' OR pattern = '^30210220273221.*' OR pattern = '^3021022027322.*' OR pattern = '^302102202732.*' OR pattern = '^30210220273.*' OR pattern = '^3021022027.*' OR pattern = '^302102202.*' OR pattern = '^30210220.*' OR pattern = '^3021022.*' OR pattern = '^302102.*' OR pattern = '^30210.*' OR pattern = '^3021.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 3 OR accountid=11)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  1137. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  1138. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  1139. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 132323
  1140. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  1141. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  1142. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.01215
  1143. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Greece
  1144. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  1145. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 11
  1146. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 0
  1147. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  1148. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  1149. 2021-12-07 09:46:57.529176 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your6.83421 balance Accountid 11 !!!
  1150. 2021-12-07 09:46:57.529176 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  1151. 2021-12-07 09:46:57.529176 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 8
  1152. 2021-12-07 09:46:57.529176 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "8" AND deleted = 0 limit 1
  1153. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^3021022027322102202732.*' OR blocked_patterns = '^302102202732210220273.*' OR blocked_patterns = '^30210220273221022027.*' OR blocked_patterns = '^3021022027322102202.*' OR blocked_patterns = '^302102202732210220.*' OR blocked_patterns = '^30210220273221022.*' OR blocked_patterns = '^3021022027322102.*' OR blocked_patterns = '^302102202732210.*' OR blocked_patterns = '^30210220273221.*' OR blocked_patterns = '^3021022027322.*' OR blocked_patterns = '^302102202732.*' OR blocked_patterns = '^30210220273.*' OR blocked_patterns = '^3021022027.*' OR blocked_patterns = '^302102202.*' OR blocked_patterns = '^30210220.*' OR blocked_patterns = '^3021022.*' OR blocked_patterns = '^302102.*' OR blocked_patterns = '^30210.*' OR blocked_patterns = '^3021.*' OR blocked_patterns = '^302.*' OR blocked_patterns = '^30.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 8 limit 1
  1154. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  1155. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 8
  1156. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 1990008209
  1157. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 709.07053
  1158. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  1159. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  1160. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  1161. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  1162. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  1163. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3021022027322102202732.*' OR pattern = '^302102202732210220273.*' OR pattern = '^30210220273221022027.*' OR pattern = '^3021022027322102202.*' OR pattern = '^302102202732210220.*' OR pattern = '^30210220273221022.*' OR pattern = '^3021022027322102.*' OR pattern = '^302102202732210.*' OR pattern = '^30210220273221.*' OR pattern = '^3021022027322.*' OR pattern = '^302102202732.*' OR pattern = '^30210220273.*' OR pattern = '^3021022027.*' OR pattern = '^302102202.*' OR pattern = '^30210220.*' OR pattern = '^3021022.*' OR pattern = '^302102.*' OR pattern = '^30210.*' OR pattern = '^3021.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 2 OR accountid=8)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  1164. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  1165. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  1166. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 122936
  1167. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  1168. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  1169. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00800
  1170. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Greece
  1171. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  1172. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 8
  1173. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 3
  1174. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  1175. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  1176. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your709.07053 balance Accountid 8 !!!
  1177. 2021-12-07 09:46:57.549183 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  1178. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8
  1179. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  1180. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 1
  1181. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 11
  1182. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.01215
  1183. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  1184. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 1
  1185. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 1
  1186. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  1187. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] User Rate ID : 132323
  1188. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :3
  1189. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [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 = '^3021022027322102202732.*' OR pattern = '^302102202732210220273.*' OR pattern = '^30210220273221022027.*' OR pattern = '^3021022027322102202.*' OR pattern = '^302102202732210220.*' OR pattern = '^30210220273221022.*' OR pattern = '^3021022027322102.*' OR pattern = '^302102202732210.*' OR pattern = '^30210220273221.*' OR pattern = '^3021022027322.*' OR pattern = '^302102202732.*' OR pattern = '^30210220273.*' OR pattern = '^3021022027.*' OR pattern = '^302102202.*' OR pattern = '^30210220.*' OR pattern = '^3021022.*' OR pattern = '^302102.*' OR pattern = '^30210.*' OR pattern = '^3021.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (3)  AND TR.effective_date <= UTC_TIMESTAMP() ORDER by FIELD(TR.trunk_id,3),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC,TR.effective_date DESC
  1190. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  1191. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 8862
  1192. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^302.*
  1193. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Greece
  1194. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  1195. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  1196. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^302.*
  1197. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  1198. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 9991
  1199. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 3
  1200. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : ModulusOutgoing
  1201. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  1202. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  1203. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 9
  1204. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  1205. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : ModulusOutgoing
  1206. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  1207. 2021-12-07 09:46:57.549183 99.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 = 11 AND status=0 LIMIT 1
  1208. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  1209. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1210. 2021-12-07 09:46:57.549183 99.17% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  1211. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  1212. 2021-12-07 09:46:57.549183 99.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 = 3) AND status=0 limit 1
  1213. 2021-12-07 09:46:57.549183 99.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 = 9) AND status=0 limit 1
  1214. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1215. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1216. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1217. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1218. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1219. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306".....306974108809
  1220. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1221. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1222. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1223. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1224. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1225. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"00/*,2/302,6/306,1/301,7/307,8/308".....3021022027322102202732
  1226. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/9991.....3021022027322102202732
  1227. 2021-12-07 09:46:57.549183 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 3021022027322102202732
  1228. 2021-12-07 09:46:57.549183 99.17% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 99913021022027322102202732
  1229. 2021-12-07 09:46:57.549183 99.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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="2102202732" LIMIT 1
  1230. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
  1231. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  1232. <document type="freeswitch/xml">
  1233. <section name="dialplan" description="ASTPP Dialplan">
  1234. <context name="default">
  1235. <extension name="3021022027322102202732">
  1236. <condition field="destination_number" expression="306974485168">
  1237. <action application="set" data="effective_destination_number=3021022027322102202732"/>
  1238. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  1239. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  1240. <action application="set" data="nibble_account=11"/>
  1241. <action application="set" data="nibble_rate=0.01215"/>
  1242. <action application="set" data="nibble_increment=1"/>
  1243. <action application="set" data="nibble_minimum=0.00000"/>
  1244. <action application="nibblebill" data="heartbeat 30"/>
  1245. <action application="set" data="callstart=2021-12-07 09:46:57"/>
  1246. <action application="set" data="hangup_after_bridge=true"/>
  1247. <action application="set" data="continue_on_fail=TRUE"/>
  1248. <action application="set" data="account_id=11"/>
  1249. <action application="set" data="parent_id=8"/>
  1250. <action application="set" data="entity_id=0"/>
  1251. <action application="set" data="call_processed=internal"/>
  1252. <action application="set" data="call_direction=outbound"/>
  1253. <action application="set" data="accountname=default"/>
  1254. <action application="set" data="origination_rates=ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8"/>
  1255. <action application="set" data="original_caller_id_name=306974108809"/>
  1256. <action application="set" data="original_caller_id_number=306974108809"/>
  1257.  
  1258. <action application="set" data="effective_caller_id_name=306974108809"/>
  1259. <action application="set" data="effective_caller_id_number=306974108809"/>
  1260. <action application="set" data="calltype=STANDARD"/>
  1261. <action application="set" data="termination_rates=ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9"/>
  1262. <action application="set" data="trunk_id=3"/>
  1263. <action application="set" data="provider_id=9"/>
  1264. <action application="set" data="rate_flag=0"/>
  1265. <action application="set" data="force_trunk_flag=132323"/>
  1266. <action application="export" data="presence_data=trunk_id=3"/>
  1267. <action application="set" data="intcall=0"/>
  1268. <action application="export" data="presence_id=3021022027322102202732"/>
  1269. <action application="export" data="presence_data=x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece"/>
  1270. <action application="bridge" data="[leg_timeout=0]sofia/gateway/ModulusOutgoing/99913021022027322102202732"/>
  1271. </condition>
  1272. </extension>
  1273. </context>
  1274. </section>
  1275. </document>
  1276. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr parsing [default->3021022027322102202732] continue=false
  1277. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Regex (PASS) [3021022027322102202732] destination_number(306974485168) =~ /306974485168/ break=on-false
  1278. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_destination_number=3021022027322102202732)
  1279. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_app=sched_hangup)
  1280. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1281. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_account=11)
  1282. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_rate=0.01215)
  1283. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_increment=1)
  1284. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(nibble_minimum=0.00000)
  1285. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action nibblebill(heartbeat 30)
  1286. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(callstart=2021-12-07 09:46:57)
  1287. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(hangup_after_bridge=true)
  1288. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(continue_on_fail=TRUE)
  1289. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(account_id=11)
  1290. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(parent_id=8)
  1291. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(entity_id=0)
  1292. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_processed=internal)
  1293. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(call_direction=outbound)
  1294. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(accountname=default)
  1295. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(origination_rates=ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8)
  1296. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_name=306974108809)
  1297. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(original_caller_id_number=306974108809)
  1298. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_name=306974108809)
  1299. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(effective_caller_id_number=306974108809)
  1300. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(calltype=STANDARD)
  1301. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(termination_rates=ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9)
  1302. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(trunk_id=3)
  1303. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(provider_id=9)
  1304. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(rate_flag=0)
  1305. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(force_trunk_flag=132323)
  1306. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_data=trunk_id=3)
  1307. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action set(intcall=0)
  1308. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_id=3021022027322102202732)
  1309. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action export(presence_data=x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece)
  1310. Dialplan: sofia/external_sip/6974108809@voips.modulus.gr Action bridge([leg_timeout=0]sofia/gateway/ModulusOutgoing/99913021022027322102202732)
  1311. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:281 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_ROUTING -> CS_EXECUTE
  1312. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:640 (sofia/external_sip/6974108809@voips.modulus.gr) State ROUTING going to sleep
  1313. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_EXECUTE (Cur 1 Tot 117)
  1314. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE
  1315. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_sofia.c:213 sofia/external_sip/6974108809@voips.modulus.gr SOFIA EXECUTE
  1316. 2021-12-07 09:46:57.549183 99.17% [WARNING] switch_core_session.c:1693 sofia/external_sip/6974108809@voips.modulus.gr using scheduler due to bypass media or media is not established.
  1317. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_scheduler.c:263 Added task 148 switch_core_session_sched_heartbeat (e8369724-8f1c-4745-aa26-fb61a6695e9d) to run at 1638870447
  1318. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:323 sofia/external_sip/6974108809@voips.modulus.gr Standard EXECUTE
  1319. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_scheduler.c:147 Deleting task 147 switch_core_session_sched_heartbeat (e8369724-8f1c-4745-aa26-fb61a6695e9d)
  1320. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_destination_number=3021022027322102202732)
  1321. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_destination_number]=[3021022027322102202732]
  1322. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_app=sched_hangup)
  1323. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_app]=[sched_hangup]
  1324. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1325. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  1326. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_account=11)
  1327. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_account]=[11]
  1328. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_rate=0.01215)
  1329. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_rate]=[0.01215]
  1330. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_increment=1)
  1331. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_increment]=[1]
  1332. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(nibble_minimum=0.00000)
  1333. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [nibble_minimum]=[0.00000]
  1334. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr nibblebill(heartbeat 30)
  1335. 2021-12-07 09:46:57.549183 99.17% [WARNING] switch_core_session.c:1693 sofia/external_sip/6974108809@voips.modulus.gr using scheduler due to bypass media or media is not established.
  1336. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_scheduler.c:263 Added task 149 switch_core_session_sched_heartbeat (e8369724-8f1c-4745-aa26-fb61a6695e9d) to run at 1638870447
  1337. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_scheduler.c:147 Deleting task 148 switch_core_session_sched_heartbeat (e8369724-8f1c-4745-aa26-fb61a6695e9d)
  1338. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(callstart=2021-12-07 09:46:57)
  1339. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [callstart]=[2021-12-07 09:46:57]
  1340. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(hangup_after_bridge=true)
  1341. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [hangup_after_bridge]=[true]
  1342. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(continue_on_fail=TRUE)
  1343. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [continue_on_fail]=[TRUE]
  1344. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(account_id=11)
  1345. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [account_id]=[11]
  1346. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(parent_id=8)
  1347. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [parent_id]=[8]
  1348. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(entity_id=0)
  1349. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [entity_id]=[0]
  1350. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_processed=internal)
  1351. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_processed]=[internal]
  1352. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(call_direction=outbound)
  1353. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [call_direction]=[outbound]
  1354. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(accountname=default)
  1355. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [accountname]=[default]
  1356. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(origination_rates=ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8)
  1357. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [origination_rates]=[ID:132323|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.01215|INC:1|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:11||ID:122936|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00800|INC:1|INITIALBLOCK:1|RATEGROUP:2|MARKUP:0|CI:0|ACCID:8]
  1358. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_name=306974108809)
  1359. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_name]=[306974108809]
  1360. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(original_caller_id_number=306974108809)
  1361. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [original_caller_id_number]=[306974108809]
  1362. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_name=306974108809)
  1363. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_name]=[306974108809]
  1364. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(effective_caller_id_number=306974108809)
  1365. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [effective_caller_id_number]=[306974108809]
  1366. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(calltype=STANDARD)
  1367. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [calltype]=[STANDARD]
  1368. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(termination_rates=ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9)
  1369. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [termination_rates]=[ID:8862|CODE:^302.*|DESTINATION:Greece|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00400|INC:1|INITIALBLOCK:1|TRUNK:3|PROVIDER:9]
  1370. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(trunk_id=3)
  1371. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [trunk_id]=[3]
  1372. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(provider_id=9)
  1373. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [provider_id]=[9]
  1374. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(rate_flag=0)
  1375. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [rate_flag]=[0]
  1376. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(force_trunk_flag=132323)
  1377. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [force_trunk_flag]=[132323]
  1378. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_data=trunk_id=3)
  1379. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=3]
  1380. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr set(intcall=0)
  1381. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_dptools.c:1685 SET sofia/external_sip/6974108809@voips.modulus.gr [intcall]=[0]
  1382. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_id=3021022027322102202732)
  1383. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[3021022027322102202732]
  1384. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr export(presence_data=x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece)
  1385. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece]
  1386. EXECUTE [depth=0] sofia/external_sip/6974108809@voips.modulus.gr bridge([leg_timeout=0]sofia/gateway/ModulusOutgoing/99913021022027322102202732)
  1387. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece] to event
  1388. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [call_type]=[4] to event
  1389. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece] to event
  1390. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_id]=[3021022027322102202732] to event
  1391. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_channel.c:1269 sofia/external_sip/6974108809@voips.modulus.gr EXPORTING[export_vars] [presence_data]=[x//8|||Martha(7772615170)|||^302.* // Greece // 0.01215 |||ModulusOutgoing // ^302.* // Greece // 0.00400 // trunk_id=3|||STD|||185.73.43.250|||0.00800 // ^302.* // Greece] to event
  1392. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  1393. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  1394. 2021-12-07 09:46:57.549183 99.17% [NOTICE] switch_channel.c:1123 New Channel sofia/external_without_reg/99913021022027322102202732 [4102ce90-ba86-49a1-baa6-068063f3eca8]
  1395. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_sofia.c:5121 (sofia/external_without_reg/99913021022027322102202732) State Change CS_NEW -> CS_INIT
  1396. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_INIT (Cur 2 Tot 118)
  1397. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:624 (sofia/external_without_reg/99913021022027322102202732) State INIT
  1398. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_sofia.c:97 sofia/external_without_reg/99913021022027322102202732 SOFIA INIT
  1399. 2021-12-07 09:46:57.549183 99.17% [DEBUG] sofia_glue.c:1620 sip:148.251.66.230:5060 Setting proxy route to sofia/external_without_reg/99913021022027322102202732
  1400. 2021-12-07 09:46:57.549183 99.17% [INFO] sofia_glue.c:1651 sofia/external_without_reg/99913021022027322102202732 sending invite call-id: (null)
  1401. 2021-12-07 09:46:57.549183 99.17% [DEBUG] sofia_glue.c:1654 sofia/external_without_reg/99913021022027322102202732 sending invite version: 1.10.7 -release-19-883d2cb662 64bit
  1402. Local SDP:
  1403. v=0
  1404. o=FreeSWITCH 1638842723 1638842724 IN IP4 94.130.242.106
  1405. s=FreeSWITCH
  1406. c=IN IP4 94.130.242.106
  1407. t=0 0
  1408. m=audio 27694 RTP/AVP 8 101
  1409. a=rtpmap:8 PCMA/8000
  1410. a=rtpmap:101 telephone-event/8000
  1411. a=fmtp:101 0-15
  1412. a=ptime:20
  1413. a=sendrecv
  1414.  
  1415. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:40 sofia/external_without_reg/99913021022027322102202732 Standard INIT
  1416. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:48 (sofia/external_without_reg/99913021022027322102202732) State Change CS_INIT -> CS_ROUTING
  1417. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:624 (sofia/external_without_reg/99913021022027322102202732) State INIT going to sleep
  1418. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_ROUTING (Cur 2 Tot 118)
  1419. 2021-12-07 09:46:57.549183 99.17% [DEBUG] sofia.c:7499 Channel sofia/external_without_reg/99913021022027322102202732 entering state [calling][0]
  1420. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:640 (sofia/external_without_reg/99913021022027322102202732) State ROUTING
  1421. 2021-12-07 09:46:57.549183 99.17% [DEBUG] mod_sofia.c:158 sofia/external_without_reg/99913021022027322102202732 SOFIA ROUTING
  1422. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_ivr_originate.c:67 (sofia/external_without_reg/99913021022027322102202732) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  1423. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:640 (sofia/external_without_reg/99913021022027322102202732) State ROUTING going to sleep
  1424. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 118)
  1425. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:659 (sofia/external_without_reg/99913021022027322102202732) State CONSUME_MEDIA
  1426. 2021-12-07 09:46:57.549183 99.17% [DEBUG] switch_core_state_machine.c:659 (sofia/external_without_reg/99913021022027322102202732) State CONSUME_MEDIA going to sleep
  1427. 2021-12-07 09:46:57.689180 99.17% [DEBUG] sofia.c:7499 Channel sofia/external_without_reg/99913021022027322102202732 entering state [terminated][503]
  1428. 2021-12-07 09:46:57.689180 99.17% [NOTICE] sofia.c:8738 Hangup sofia/external_without_reg/99913021022027322102202732 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
  1429. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_HANGUP (Cur 2 Tot 118)
  1430. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:844 (sofia/external_without_reg/99913021022027322102202732) Callstate Change DOWN -> HANGUP
  1431. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_without_reg/99913021022027322102202732) State HANGUP
  1432. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_sofia.c:468 Channel sofia/external_without_reg/99913021022027322102202732 hanging up, cause: NORMAL_TEMPORARY_FAILURE
  1433. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:59 sofia/external_without_reg/99913021022027322102202732 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE
  1434. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_without_reg/99913021022027322102202732) State HANGUP going to sleep
  1435. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:616 (sofia/external_without_reg/99913021022027322102202732) State Change CS_HANGUP -> CS_REPORTING
  1436. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_REPORTING (Cur 2 Tot 118)
  1437. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_without_reg/99913021022027322102202732) State REPORTING
  1438. 2021-12-07 09:46:57.689180 99.17% [INFO] mod_json_cdr.c:271 Process [4102ce90-ba86-49a1-baa6-068063f3eca8.cdr.json]
  1439. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:168 sofia/external_without_reg/99913021022027322102202732 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE
  1440. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_without_reg/99913021022027322102202732) State REPORTING going to sleep
  1441. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:607 (sofia/external_without_reg/99913021022027322102202732) State Change CS_REPORTING -> CS_DESTROY
  1442. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_session.c:1753 Session 118 (sofia/external_without_reg/99913021022027322102202732) Locked, Waiting on external entities
  1443. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]
  1444. 2021-12-07 09:46:57.689180 99.17% [NOTICE] switch_core_session.c:1771 Session 118 (sofia/external_without_reg/99913021022027322102202732) Ended
  1445. 2021-12-07 09:46:57.689180 99.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/external_without_reg/99913021022027322102202732 [CS_DESTROY]
  1446. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:735 (sofia/external_without_reg/99913021022027322102202732) Running State Change CS_DESTROY (Cur 1 Tot 118)
  1447. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_without_reg/99913021022027322102202732) State DESTROY
  1448. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_sofia.c:379 sofia/external_without_reg/99913021022027322102202732 SOFIA DESTROY
  1449. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:175 sofia/external_without_reg/99913021022027322102202732 Standard DESTROY
  1450. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_without_reg/99913021022027322102202732) State DESTROY going to sleep
  1451. 2021-12-07 09:46:57.689180 99.17% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: NORMAL_TEMPORARY_FAILURE
  1452. 2021-12-07 09:46:57.689180 99.17% [NOTICE] switch_core_state_machine.c:382 sofia/external_sip/6974108809@voips.modulus.gr has executed the last dialplan instruction, hanging up.
  1453. 2021-12-07 09:46:57.689180 99.17% [NOTICE] switch_core_state_machine.c:384 Hangup sofia/external_sip/6974108809@voips.modulus.gr [CS_EXECUTE] [NORMAL_CLEARING]
  1454. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:647 (sofia/external_sip/6974108809@voips.modulus.gr) State EXECUTE going to sleep
  1455. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_HANGUP (Cur 1 Tot 118)
  1456. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:844 (sofia/external_sip/6974108809@voips.modulus.gr) Callstate Change RINGING -> HANGUP
  1457. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_sip/6974108809@voips.modulus.gr) State HANGUP
  1458. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_sofia.c:462 sofia/external_sip/6974108809@voips.modulus.gr Overriding SIP cause 480 with 503 from the other leg
  1459. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_sofia.c:468 Channel sofia/external_sip/6974108809@voips.modulus.gr hanging up, cause: NORMAL_CLEARING
  1460. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 503
  1461. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.01215 per minute to account 11
  1462. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:518 Not billing 11 - call is not in answered state
  1463. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  1464. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='11']
  1465. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 11 (balance = 6.834210)
  1466. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:523 Comparing 6.834210 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  1467. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  1468. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='11']
  1469. 2021-12-07 09:46:57.689180 99.17% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 11 (balance = 6.834210)
  1470. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:59 sofia/external_sip/6974108809@voips.modulus.gr Standard HANGUP, cause: NORMAL_CLEARING
  1471. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:846 (sofia/external_sip/6974108809@voips.modulus.gr) State HANGUP going to sleep
  1472. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:616 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_HANGUP -> CS_REPORTING
  1473. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:581 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_REPORTING (Cur 1 Tot 118)
  1474. 2021-12-07 09:46:57.689180 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_sip/6974108809@voips.modulus.gr) State REPORTING
  1475. 2021-12-07 09:46:57.689180 99.17% [INFO] mod_json_cdr.c:271 Process [e8369724-8f1c-4745-aa26-fb61a6695e9d.cdr.json]
  1476. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:168 sofia/external_sip/6974108809@voips.modulus.gr Standard REPORTING, cause: NORMAL_CLEARING
  1477. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:932 (sofia/external_sip/6974108809@voips.modulus.gr) State REPORTING going to sleep
  1478. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:607 (sofia/external_sip/6974108809@voips.modulus.gr) State Change CS_REPORTING -> CS_DESTROY
  1479. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_session.c:1753 Session 117 (sofia/external_sip/6974108809@voips.modulus.gr) Locked, Waiting on external entities
  1480. 2021-12-07 09:46:57.729179 99.17% [NOTICE] switch_core_session.c:1771 Session 117 (sofia/external_sip/6974108809@voips.modulus.gr) Ended
  1481. 2021-12-07 09:46:57.729179 99.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/external_sip/6974108809@voips.modulus.gr [CS_DESTROY]
  1482. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:735 (sofia/external_sip/6974108809@voips.modulus.gr) Running State Change CS_DESTROY (Cur 0 Tot 118)
  1483. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_sip/6974108809@voips.modulus.gr) State DESTROY
  1484. 2021-12-07 09:46:57.729179 99.17% [DEBUG] mod_sofia.c:379 sofia/external_sip/6974108809@voips.modulus.gr SOFIA DESTROY
  1485. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:175 sofia/external_sip/6974108809@voips.modulus.gr Standard DESTROY
  1486. 2021-12-07 09:46:57.729179 99.17% [DEBUG] switch_core_state_machine.c:745 (sofia/external_sip/6974108809@voips.modulus.gr) State DESTROY going to sleep
  1487. 2021-12-07 09:46:58.049183 98.40% [DEBUG] switch_scheduler.c:147 Deleting task 149 switch_core_session_sched_heartbeat (e8369724-8f1c-4745-aa26-fb61a6695e9d)
  1488. 2021-12-07 09:47:01.549194 98.27% [DEBUG] sofia_reg.c:2665 Changing expire time to 117 by request of proxy sip:voips.modulus.gr:5060
  1489. freeswitch@billing>
  1490.  
  1491.