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