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