From sahil, 3 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2021-12-17 08:46:26.156404 [NOTICE] switch_channel.c:1118 New Channel sofia/default/2007@costaspbx.wifiber.gr [72130798-ca98-4e4c-8342-ca9cfd252413]
  2. 2021-12-17 08:46:26.156404 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_NEW (Cur 2 Tot 4687)
  3. 2021-12-17 08:46:26.156404 [DEBUG] sofia.c:10280 sofia/default/2007@costaspbx.wifiber.gr receiving invite from 117.247.91.162:46248 version: 1.10.5 -release-17-25569c1631 64bit
  4. 2021-12-17 08:46:26.156404 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  5. 2021-12-17 08:46:26.156404 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [302332041999@costaspbx.wifiber.gr] from ip 117.247.91.162
  6. 2021-12-17 08:46:26.156404 [DEBUG] switch_core_state_machine.c:604 (sofia/default/2007@costaspbx.wifiber.gr) State NEW
  7. 2021-12-17 08:46:26.156404 [DEBUG] sofia.c:2434 detaching session 72130798-ca98-4e4c-8342-ca9cfd252413
  8. 2021-12-17 08:46:26.776390 [DEBUG] sofia.c:2544 Re-attaching to session 72130798-ca98-4e4c-8342-ca9cfd252413
  9. 2021-12-17 08:46:26.796403 [DEBUG] sofia.c:10280 sofia/default/2007@costaspbx.wifiber.gr receiving invite from 117.247.91.162:46248 version: 1.10.5 -release-17-25569c1631 64bit
  10. 2021-12-17 08:46:26.796403 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  11. 2021-12-17 08:46:26.796403 [DEBUG] sofia.c:11477 Setting NAT mode based on via received
  12. 2021-12-17 08:46:26.796403 [DEBUG] sofia.c:7326 Channel sofia/default/2007@costaspbx.wifiber.gr entering state [received][100]
  13. 2021-12-17 08:46:26.796403 [DEBUG] sofia.c:7336 Remote SDP:
  14. v=0
  15. o=Z 0 0 IN IP4 117.247.91.162
  16. s=Z
  17. c=IN IP4 117.247.91.162
  18. t=0 0
  19. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  20. a=rtpmap:110 speex/8000
  21. a=rtpmap:98 iLBC/8000
  22. a=fmtp:98 mode=20
  23. a=rtpmap:101 telephone-event/8000
  24. a=fmtp:101 0-15
  25.  
  26. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  27. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  28. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  29. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  30. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  31. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  32. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  33. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  34. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  35. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  36. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  37. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  38. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  39. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/2007@costaspbx.wifiber.gr PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  40. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_codec.c:111 sofia/default/2007@costaspbx.wifiber.gr Original read codec set to PCMA:8
  41. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  42. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_media.c:5911 sofia/default/2007@costaspbx.wifiber.gr Set 2833 dtmf send payload to 101 recv payload to 101
  43. 2021-12-17 08:46:26.796403 [DEBUG] sofia.c:7760 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_NEW -> CS_INIT
  44. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_INIT (Cur 2 Tot 4687)
  45. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:628 (sofia/default/2007@costaspbx.wifiber.gr) State INIT
  46. 2021-12-17 08:46:26.796403 [DEBUG] mod_sofia.c:93 sofia/default/2007@costaspbx.wifiber.gr SOFIA INIT
  47. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:40 sofia/default/2007@costaspbx.wifiber.gr Standard INIT
  48. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:48 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_INIT -> CS_ROUTING
  49. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:628 (sofia/default/2007@costaspbx.wifiber.gr) State INIT going to sleep
  50. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_ROUTING (Cur 2 Tot 4687)
  51. 2021-12-17 08:46:26.796403 [DEBUG] switch_channel.c:2332 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change DOWN -> RINGING
  52. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:644 (sofia/default/2007@costaspbx.wifiber.gr) State ROUTING
  53. 2021-12-17 08:46:26.796403 [DEBUG] mod_sofia.c:154 sofia/default/2007@costaspbx.wifiber.gr SOFIA ROUTING
  54. 2021-12-17 08:46:26.796403 [DEBUG] switch_core_state_machine.c:236 sofia/default/2007@costaspbx.wifiber.gr Standard ROUTING
  55. 2021-12-17 08:46:26.796403 [INFO] mod_dialplan_xml.c:637 Processing 2007 <2007>->302332041999 in context default
  56. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  57. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  59. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 302332041999
  60. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :302332041999
  61. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '302332041999' limit 1
  62. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '302332041999' AND status=0 limit 1
  63. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '302332041999' and status=0 LIMIT 1
  64. 2021-12-17 08:46:26.796403 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  65. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  :  / 2332041999
  66. 2021-12-17 08:46:26.796403 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  67. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  68. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  69. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  70. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  71. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  72. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  73. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302332041999" LIMIT 1
  74. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound
  75. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 3726104889]
  76. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =302332041999
  77. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3726104889" AND deleted = 0 limit 1
  78. 2021-12-17 08:46:26.796403 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id : 1
  79. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  80. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  81. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  82. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  83. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  84. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  85. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="302332041999" AND (accountid = 0 OR status = 1) LIMIT 1
  86. 2021-12-17 08:46:26.796403 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  87. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  88. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  89. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7
  90. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^302332041999.*' OR patterns = '^30233204199.*' OR patterns = '^3023320419.*' OR patterns = '^302332041.*' OR patterns = '^30233204.*' OR patterns = '^3023320.*' OR patterns = '^302332.*' OR patterns = '^30233.*' OR patterns = '^3023.*' OR patterns = '^302.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  91. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="302332041999" AND A.accountid = '7' limit 1
  92. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 302332041999
  93. 2021-12-17 08:46:26.796403 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  94. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  95. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  96. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  97. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  98. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  99. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  100. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302332041999" LIMIT 1
  101. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : inbound
  102. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '302332041999' OR number = '30233204199' OR number = '3023320419' OR number = '302332041' OR number = '30233204' OR number = '3023320' OR number = '302332' OR number = '30233' OR number = '3023' OR number = '302' OR number = '30' OR number = '3' OR number ='--') OR (number = '302332041999*' OR number = '30233204199*' OR number = '3023320419*' OR number = '302332041*' OR number = '30233204*' OR number = '3023320*' OR number = '302332*' OR number = '30233*' OR number = '3023*' OR number = '302*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '2332041999' OR number = '233204199' OR number = '23320419' OR number = '2332041' OR number = '233204' OR number = '23320' OR number = '2332' OR number = '233' OR number = '23' OR number = '2' OR number ='--') OR (number = '2332041999*' OR number = '233204199*' OR number = '23320419*' OR number = '2332041*' OR number = '233204*' OR number = '23320*' OR number = '2332*' OR number = '233*' OR number = '23*' OR number = '2*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  103. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  104. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '302332041999' OR routing_prefix = '30233204199' OR routing_prefix = '3023320419' OR routing_prefix = '302332041' OR routing_prefix = '30233204' OR routing_prefix = '3023320' OR routing_prefix = '302332' OR routing_prefix = '30233' OR routing_prefix = '3023' OR routing_prefix = '302' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  105. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  106. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7
  107. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 3726104889
  108. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 49.3109
  109. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  110. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  111. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  112. 2021-12-17 08:46:26.796403 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  113. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  114. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound
  115. 2021-12-17 08:46:26.796403 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  116. 2021-12-17 08:46:26.796403 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  117. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  118. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  119. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  120. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  121. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....302332041999
  122. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="302332041999" LIMIT 1
  123. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : inbound
  124. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  125. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 23
  126. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  127. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  128. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.00000
  129. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment : NAOYSA IMATHIA
  130. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 75
  131. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 7
  132. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  133. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your49.3109 balance Accountid 7 !!!
  134. 2021-12-17 08:46:26.836392 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 200
  135. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 200 minutes
  136. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE
  137. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:1
  138. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1
  139. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  140. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML:7
  141. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Userinfo XML:7
  142. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML : 7
  143. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  144. 2021-12-17 08:46:26.836392 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] User Domain : costaspbx.wifiber.gr
  145. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 200
  146. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  147. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  148. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : inbound
  149. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "11" AND accounts.status = 0
  150. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  151. 2021-12-17 08:46:26.836392 [WARNING] switch_cpp.cpp:1447 [ASTPP] [XML] User Domain : costaspbx.wifiber.gr
  152. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7  and status = 0 limit 1
  153. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [XML] Custom Function Name :: custom_inbound_10
  154. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Type : 10
  155. 2021-12-17 08:46:26.836392 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Type : IVR
  156. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_IVR_INFO] Query :SELECT * from pbx_ivr_specification WHERE id = 11 and status=0 LIMIT 1
  157. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '' LIMIT 1
  158. 2021-12-17 08:46:26.836392 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  159. <document type="freeswitch/xml">
  160. <section name="dialplan" description="ASTPP Dialplan">
  161. <context name="default">
  162. <extension name="302332041999">
  163. <condition field="destination_number" expression="302332041999">
  164. <action application="set" data="effective_destination_number=302332041999"/>
  165. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  166. <action application="set" data="bridge_pre_execute_bleg_data=+12000 normal_clearing"/>
  167. <action application="set" data="callstart=2021-12-17 06:46:25"/>
  168. <action application="set" data="hangup_after_bridge=true"/>
  169. <action application="set" data="continue_on_fail=TRUE"/>
  170. <action application="set" data="account_id=7"/>
  171. <action application="set" data="parent_id=0"/>
  172. <action application="set" data="entity_id=0"/>
  173. <action application="set" data="call_processed=internal"/>
  174. <action application="set" data="call_direction=inbound"/>
  175. <action application="set" data="accountname=default"/>
  176. <action application="set" data="filename1=astpp.pbx.lua"/>
  177. <action application="set" data="origination_rates_did=ID:23|CODE:^302332041999.*|DESTINATION:NAOYSA IMATHIA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:7"/>
  178. <action application="set" data="origination_rates=0"/>
  179. <action application="set" data="original_caller_id_number=2332041999"/>
  180. <action application="set" data="effective_caller_id_number=2332041999"/>
  181. <action application="set" data="receiver_accid=7"/>
  182. <action application="export" data="domain_name=costaspbx.wifiber.gr"/>
  183. <action application="export" data="sip_to_host=costaspbx.wifiber.gr"/>
  184. <action application="export" data="presence_data=x|||Costas(3726104889)|||||||||DID|||117.247.91.162"/>
  185. <action application="export" data="call_type=10"/>
  186. <action application="set" data="did_calltype=10"/>
  187. <action application="set" data="did_extensions=11"/>
  188. <action application="set" data="ringback="/>
  189. <action application="set" data="module_name=pbx"/>
  190. <action application="set" data="sip_h_P-call_type=custom_forward"/>
  191. <action application="set" data="sip_h_P-Accountcode=7"/>
  192. <action application="set" data="variable_sip_to_host=costaspbx.wifiber.gr"/>
  193. <action application="set" data="userinfo_id=7"/>
  194. <action application="set" data="variable_sip_to_host=costaspbx.wifiber.gr"/>
  195. <action application="set" data="original_did_number=302332041999"/>
  196.     <action application="answer"/>
  197. <action application="ivr" data="OFFICE KOPANOS0"/>
  198. <action application="lua" data="astpp/lib/pbx/astpp-failover_ivr_destination.lua"/>
  199. </condition>
  200. </extension>
  201. </context>
  202. </section>
  203. </document>
  204. Dialplan: sofia/default/2007@costaspbx.wifiber.gr parsing [default->302332041999] continue=false
  205. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Regex (PASS) [302332041999] destination_number(302332041999) =~ /302332041999/ break=on-false
  206. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(effective_destination_number=302332041999)
  207. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(bridge_pre_execute_bleg_app=sched_hangup)
  208. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(bridge_pre_execute_bleg_data=+12000 normal_clearing)
  209. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(callstart=2021-12-17 06:46:25)
  210. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(hangup_after_bridge=true)
  211. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(continue_on_fail=TRUE)
  212. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(account_id=7)
  213. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(parent_id=0)
  214. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(entity_id=0)
  215. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(call_processed=internal)
  216. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(call_direction=inbound)
  217. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(accountname=default)
  218. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(filename1=astpp.pbx.lua)
  219. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(origination_rates_did=ID:23|CODE:^302332041999.*|DESTINATION:NAOYSA IMATHIA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:7)
  220. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(origination_rates=0)
  221. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(original_caller_id_number=2332041999)
  222. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(effective_caller_id_number=2332041999)
  223. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(receiver_accid=7)
  224. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(domain_name=costaspbx.wifiber.gr)
  225. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(sip_to_host=costaspbx.wifiber.gr)
  226. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(presence_data=x|||Costas(3726104889)|||||||||DID|||117.247.91.162)
  227. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(call_type=10)
  228. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(did_calltype=10)
  229. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(did_extensions=11)
  230. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(ringback=)
  231. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(module_name=pbx)
  232. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(sip_h_P-call_type=custom_forward)
  233. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(sip_h_P-Accountcode=7)
  234. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(variable_sip_to_host=costaspbx.wifiber.gr)
  235. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(userinfo_id=7)
  236. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(variable_sip_to_host=costaspbx.wifiber.gr)
  237. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(original_did_number=302332041999)
  238. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action answer()
  239. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action ivr(OFFICE KOPANOS0)
  240. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action lua(astpp/lib/pbx/astpp-failover_ivr_destination.lua)
  241. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_state_machine.c:287 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_ROUTING -> CS_EXECUTE
  242. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_state_machine.c:644 (sofia/default/2007@costaspbx.wifiber.gr) State ROUTING going to sleep
  243. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_EXECUTE (Cur 2 Tot 4687)
  244. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_state_machine.c:651 (sofia/default/2007@costaspbx.wifiber.gr) State EXECUTE
  245. 2021-12-17 08:46:26.836392 [DEBUG] mod_sofia.c:209 sofia/default/2007@costaspbx.wifiber.gr SOFIA EXECUTE
  246. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_state_machine.c:329 sofia/default/2007@costaspbx.wifiber.gr Standard EXECUTE
  247. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(effective_destination_number=302332041999)
  248. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [effective_destination_number]=[302332041999]
  249. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(bridge_pre_execute_bleg_app=sched_hangup)
  250. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [bridge_pre_execute_bleg_app]=[sched_hangup]
  251. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(bridge_pre_execute_bleg_data=+12000 normal_clearing)
  252. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [bridge_pre_execute_bleg_data]=[+12000 normal_clearing]
  253. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(callstart=2021-12-17 06:46:25)
  254. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [callstart]=[2021-12-17 06:46:25]
  255. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(hangup_after_bridge=true)
  256. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [hangup_after_bridge]=[true]
  257. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(continue_on_fail=TRUE)
  258. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [continue_on_fail]=[TRUE]
  259. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(account_id=7)
  260. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [account_id]=[7]
  261. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(parent_id=0)
  262. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [parent_id]=[0]
  263. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(entity_id=0)
  264. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [entity_id]=[0]
  265. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(call_processed=internal)
  266. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [call_processed]=[internal]
  267. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(call_direction=inbound)
  268. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [call_direction]=[inbound]
  269. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(accountname=default)
  270. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [accountname]=[default]
  271. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(filename1=astpp.pbx.lua)
  272. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [filename1]=[astpp.pbx.lua]
  273. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(origination_rates_did=ID:23|CODE:^302332041999.*|DESTINATION:NAOYSA IMATHIA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:7)
  274. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [origination_rates_did]=[ID:23|CODE:^302332041999.*|DESTINATION:NAOYSA IMATHIA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:75|ACCID:7]
  275. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(origination_rates=0)
  276. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [origination_rates]=[0]
  277. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(original_caller_id_number=2332041999)
  278. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [original_caller_id_number]=[2332041999]
  279. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(effective_caller_id_number=2332041999)
  280. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [effective_caller_id_number]=[2332041999]
  281. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(receiver_accid=7)
  282. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [receiver_accid]=[7]
  283. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(domain_name=costaspbx.wifiber.gr)
  284. 2021-12-17 08:46:26.836392 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[costaspbx.wifiber.gr]
  285. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(sip_to_host=costaspbx.wifiber.gr)
  286. 2021-12-17 08:46:26.836392 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[costaspbx.wifiber.gr]
  287. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(presence_data=x|||Costas(3726104889)|||||||||DID|||117.247.91.162)
  288. 2021-12-17 08:46:26.836392 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||Costas(3726104889)|||||||||DID|||117.247.91.162]
  289. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(call_type=10)
  290. 2021-12-17 08:46:26.836392 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[10]
  291. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(did_calltype=10)
  292. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [did_calltype]=[10]
  293. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(did_extensions=11)
  294. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [did_extensions]=[11]
  295. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(ringback=)
  296. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [ringback]=[UNDEF]
  297. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(module_name=pbx)
  298. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [module_name]=[pbx]
  299. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(sip_h_P-call_type=custom_forward)
  300. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [sip_h_P-call_type]=[custom_forward]
  301. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(sip_h_P-Accountcode=7)
  302. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [sip_h_P-Accountcode]=[7]
  303. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(variable_sip_to_host=costaspbx.wifiber.gr)
  304. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [variable_sip_to_host]=[costaspbx.wifiber.gr]
  305. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(userinfo_id=7)
  306. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [userinfo_id]=[7]
  307. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(variable_sip_to_host=costaspbx.wifiber.gr)
  308. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [variable_sip_to_host]=[costaspbx.wifiber.gr]
  309. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(original_did_number=302332041999)
  310. 2021-12-17 08:46:26.836392 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [original_did_number]=[302332041999]
  311. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr answer()
  312. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/2007@costaspbx.wifiber.gr] 10.151.10.3 port 22914 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  313. 2021-12-17 08:46:26.836392 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  314. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_media.c:8977 sofia/default/2007@costaspbx.wifiber.gr Set 2833 dtmf send payload to 101
  315. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_media.c:8984 sofia/default/2007@costaspbx.wifiber.gr Set 2833 dtmf receive payload to 101
  316. 2021-12-17 08:46:26.836392 [DEBUG] switch_core_media.c:9007 sofia/default/2007@costaspbx.wifiber.gr Set rtp dtmf delay to 40
  317. 2021-12-17 08:46:26.836392 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/2007@costaspbx.wifiber.gr:
  318. v=0
  319. o=FreeSWITCH 1639700672 1639700673 IN IP4 78.108.44.190
  320. s=FreeSWITCH
  321. c=IN IP4 78.108.44.190
  322. t=0 0
  323. m=audio 22914 RTP/AVP 8 101
  324. a=rtpmap:8 PCMA/8000
  325. a=rtpmap:101 telephone-event/8000
  326. a=fmtp:101 0-16
  327. a=ptime:20
  328. a=sendrecv
  329.  
  330. 2021-12-17 08:46:26.836392 [NOTICE] mod_dptools.c:1406 Channel [sofia/default/2007@costaspbx.wifiber.gr] has been answered
  331. 2021-12-17 08:46:26.836392 [DEBUG] switch_channel.c:3865 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change RINGING -> ACTIVE
  332. 2021-12-17 08:46:26.836392 [DEBUG] sofia.c:7326 Channel sofia/default/2007@costaspbx.wifiber.gr entering state [completed][200]
  333. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr ivr(OFFICE KOPANOS0)
  334. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-exit'
  335. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-sub'
  336. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-exec-app'
  337. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-play-sound'
  338. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-back'
  339. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-top'
  340. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:883 building menu 'OFFICE KOPANOS0'
  341. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '1'
  342. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '2'
  343. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '3'
  344. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '4'
  345. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '5'
  346. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '6'
  347. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '7'
  348. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '8'
  349. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '9'
  350. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '0'
  351. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '/^(\d{2,20})$/'
  352. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_menu.c:486 Executing IVR menu OFFICE KOPANOS0
  353. 2021-12-17 08:46:26.876357 [DEBUG] switch_core_file.c:405 File /var/www/html/astpp/upload/pbx/WIFIBER_180721060546.wav sample rate 44100 doesn't match requested rate 8000
  354. 2021-12-17 08:46:26.876357 [DEBUG] switch_ivr_play_say.c:1488 Codec Activated L16@8000hz 1 channels 20ms
  355. 2021-12-17 08:46:27.156392 [DEBUG] sofia.c:7326 Channel sofia/default/2007@costaspbx.wifiber.gr entering state [ready][200]
  356. 2021-12-17 08:46:27.396366 [INFO] switch_rtp.c:7719 Auto Changing audio port from 117.247.91.162:8000 to 117.247.91.162:1489
  357. 2021-12-17 08:46:28.276400 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF 1:680
  358. 2021-12-17 08:46:28.276400 [INFO] switch_channel.c:522 RECV DTMF 1:680
  359. 2021-12-17 08:46:28.276400 [DEBUG] switch_ivr_play_say.c:1933 done playing file /var/www/html/astpp/upload/pbx/GiatrasMainMenu_111021073934.wav
  360. 2021-12-17 08:46:28.276400 [DEBUG] switch_ivr_menu.c:378 waiting for 3/4 digits t/o 2000
  361. 2021-12-17 08:46:29.296389 [DEBUG] switch_ivr_menu.c:425 digits '1'
  362. 2021-12-17 08:46:29.296389 [DEBUG] switch_ivr_menu.c:580 IVR action on menu 'GIATRAS VASILEIOS0' matched '1' param 'transfer 3001 XML ${domain_name}'
  363. 2021-12-17 08:46:29.296389 [DEBUG] switch_ivr_menu.c:584 switch_ivr_menu_execute todo=[2]
  364. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 transfer(3001 XML giatrasvas.pbx.wifiber.gr)
  365. 2021-12-17 08:46:29.296389 [DEBUG] switch_ivr.c:2243 (sofia/default/+302331051709@172.17.12.2) State Change CS_EXECUTE -> CS_ROUTING
  366. 2021-12-17 08:46:29.296389 [NOTICE] switch_ivr.c:2250 Transfer sofia/default/+302331051709@172.17.12.2 to XML[3001@giatrasvas.pbx.wifiber.gr]
  367. 2021-12-17 08:46:29.296389 [DEBUG] switch_ivr_menu.c:676 exit-sound '(null)'
  368. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:651 (sofia/default/+302331051709@172.17.12.2) State EXECUTE going to sleep
  369. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:585 (sofia/default/+302331051709@172.17.12.2) Running State Change CS_ROUTING (Cur 2 Tot 4687)
  370. 2021-12-17 08:46:29.296389 [DEBUG] switch_channel.c:2332 (sofia/default/+302331051709@172.17.12.2) Callstate Change ACTIVE -> RINGING
  371. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:644 (sofia/default/+302331051709@172.17.12.2) State ROUTING
  372. 2021-12-17 08:46:29.296389 [DEBUG] mod_sofia.c:154 sofia/default/+302331051709@172.17.12.2 SOFIA ROUTING
  373. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:236 sofia/default/+302331051709@172.17.12.2 Standard ROUTING
  374. 2021-12-17 08:46:29.296389 [INFO] mod_dialplan_xml.c:637 Processing +302331051709 <+302331051709>->3001 in context giatrasvas.pbx.wifiber.gr
  375. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  376. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  377. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  378. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 3001
  379. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :3001
  380. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '3001' limit 1
  381. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '3001' AND status=0 limit 1
  382. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '3001' and status=0 LIMIT 1
  383. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  384. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : +302331051709 / +302331051709
  385. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 39 limit 1
  386. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaingiatrasvas.pbx.wifiber.gr
  387. 2021-12-17 08:46:29.296389 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  388. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  389. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  390. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  391. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  392. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  393. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  394. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="3001" LIMIT 1
  395. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="3001"  AND domains.domain="giatrasvas.pbx.wifiber.gr" limit 1
  396. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  397. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 39]
  398. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =3001
  399. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "39" AND deleted = 0 limit 1
  400. 2021-12-17 08:46:29.296389 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id : 1
  401. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  402. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  403. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  404. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  405. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  406. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  407. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="3001" AND (accountid = 0 OR status = 1) LIMIT 1
  408. 2021-12-17 08:46:29.296389 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  409. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  410. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^3001.*' OR patterns = '^300.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 39 ORDER BY LENGTH(PKGPTR.patterns) DESC
  411. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="3001" AND A.accountid = '39' limit 1
  412. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 3001
  413. 2021-12-17 08:46:29.296389 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  414. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  415. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  416. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  417. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  418. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  419. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3001
  420. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="3001" LIMIT 1
  421. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="3001"  AND domains.domain="giatrasvas.pbx.wifiber.gr" limit 1
  422. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : local
  423. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '3001' OR number = '300' OR number = '30' OR number = '3' OR number ='--') OR (number = '3001*' OR number = '300*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '+302331051709' OR number = '+30233105170' OR number = '+3023310517' OR number = '+302331051' OR number = '+30233105' OR number = '+3023310' OR number = '+302331' OR number = '+30233' OR number = '+3023' OR number = '+302' OR number = '+30' OR number = '+3' OR number = '+' OR number ='--') OR (number = '+302331051709*' OR number = '+30233105170*' OR number = '+3023310517*' OR number = '+302331051*' OR number = '+30233105*' OR number = '+3023310*' OR number = '+302331*' OR number = '+30233*' OR number = '+3023*' OR number = '+302*' OR number = '+30*' OR number = '+3*' OR number = '+*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  424. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  425. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '3001' OR routing_prefix = '300' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  426. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  427. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 39
  428. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 6925542601
  429. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  430. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  431. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  432. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  433. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  434. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  435. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Free Inbound : 1
  436. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Charge Per Min : 0
  437. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 39 !!!
  438. 2021-12-17 08:46:29.296389 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 200
  439. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 200 minutes
  440. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="3001"  AND domains.domain="giatrasvas.pbx.wifiber.gr" limit 1
  441. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 39 AND status=0 LIMIT 1
  442. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 200
  443. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  444. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  445. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : local
  446. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 39 limit 1
  447. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 64 limit 1
  448. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [PBX] User Domaingiatrasvas.pbx.wifiber.gr
  449. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [LOCAL CALL] Recording Flag :0
  450. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FSXMLLOCAL] Caller ID Translation Starts
  451. 2021-12-17 08:46:29.296389 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FSXMLLOCAL] Caller ID Translation Ends
  452. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  453. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 64
  454. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 64 limit 1
  455. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :call_transfer_attended
  456. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  457. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :call_transfer
  458. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  459. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_PICKUP_GROUP] Query :SELECT id,name from pickup_group where id IN (2) AND status = 0
  460. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] Call Forwarding Flag : 1
  461. 2021-12-17 08:46:29.296389 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP Call Forwarding Disable
  462. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  463. 2021-12-17 08:46:29.296389 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  464. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  465. <document type="freeswitch/xml">
  466. <section name="dialplan" description="ASTPP Dialplan">
  467. <context name="giatrasvas.pbx.wifiber.gr">
  468. <extension name="3001">
  469. <condition field="destination_number" expression="3001">
  470. <action application="set" data="effective_destination_number=3001"/>
  471. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  472. <action application="set" data="bridge_pre_execute_bleg_data=+12000 normal_clearing"/>
  473. <action application="set" data="callstart=2021-12-17 06:46:28"/>
  474. <action application="set" data="hangup_after_bridge=true"/>
  475. <action application="set" data="continue_on_fail=TRUE"/>
  476. <action application="set" data="account_id=39"/>
  477. <action application="set" data="parent_id=0"/>
  478. <action application="set" data="entity_id=0"/>
  479. <action application="set" data="call_processed=internal"/>
  480. <action application="set" data="call_direction=local"/>
  481. <action application="set" data="accountname=default"/>
  482. <action application="set" data="filename1=astpp.pbx.lua"/>
  483. <action application="set" data="origination_rates=ID:0|CODE:^3001.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:39"/>
  484. <action application="set" data="original_caller_id_name=+302331051709"/>
  485. <action application="set" data="original_caller_id_number=+302331051709"/>
  486. <action application="export" data="presence_data=||||||||||||LOCAL|||172.17.12.2"/>
  487. <action application="export" data="is_recording=1"/>
  488. <action application="export" data="media_bug_answer_req=true"/>
  489. <action application="export" data="RECORD_STEREO=true"/>
  490. <action application="export" data="record_sample_rate=8000"/>
  491. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  492. <action application="set" data="effective_caller_id_name=+302331051709"/>
  493. <action application="set" data="effective_caller_id_number=+302331051709"/>
  494. <action application="set" data="calltype=LOCAL"/>
  495. <action application="set" data="receiver_accid=39"/>
  496. <action application="db" data="insert/pickup_any_group_${callgroup}/3001/${uuid}"/>
  497. <action application="set" data="dialed_extension=transfer_call"/>
  498. <action application="export" data="dialed_extension=transfer_call"/>
  499. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  500. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  501. <action application="set" data="transfer_ringback=$${hold_music}"/>
  502. <action application="set" data="hangup_after_bridge=true"/>
  503. <action application="bridge" data="{sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=39}[leg_timeout=200 ] user/3001@giatrasvas.pbx.wifiber.gr,pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001"/>
  504. <action application="set" data="on_busy_flag=0"/>
  505. <action application="set" data="on_busy_destination=3002"/>
  506. <action application="set" data="no_answer_flag=1"/>
  507. <action application="set" data="no_answer_destination=3002"/>
  508. <action application="set" data="not_register_flag=0"/>
  509. <action application="set" data="not_register_destination=3002"/>
  510. <action application="set" data="opensips_flag=1"/>
  511. <action application="set" data="variable_sip_to_host=giatrasvas.pbx.wifiber.gr"/>
  512. <action application="set" data="opensips_domain=127.0.0.1"/>
  513. <action application="set" data="leg_timeout=200"/>
  514. <action application="set" data="userinfo_id=39"/>
  515. <action application="set" data="sip_destination_number=3001"/>
  516. <action application="set" data="did_number=3001"/>
  517. <action application="set" data="user_domain=giatrasvas.pbx.wifiber.gr"/>
  518. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  519. <condition field="${cond(${user_data 3001@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  520. <action application="answer"/>
  521. <action application="export" data="voicemail_alternate_greet_id=3001"/>
  522. <action application="voicemail" data="default $${domain_name} 3001"/>
  523. <anti-action application="hangup" data="${originate_disposition}"/>
  524. </condition>
  525. </condition>
  526. </extension>
  527. </context>
  528. </section>
  529. </document>
  530. Dialplan: sofia/default/+302331051709@172.17.12.2 parsing [giatrasvas.pbx.wifiber.gr->3001] continue=false
  531. Dialplan: sofia/default/+302331051709@172.17.12.2 Regex (PASS) [3001] destination_number(3001) =~ /3001/ break=on-false
  532. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(effective_destination_number=3001)
  533. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  534. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(bridge_pre_execute_bleg_data=+12000 normal_clearing)
  535. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(callstart=2021-12-17 06:46:28)
  536. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(hangup_after_bridge=true)
  537. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(continue_on_fail=TRUE)
  538. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(account_id=39)
  539. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(parent_id=0)
  540. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(entity_id=0)
  541. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(call_processed=internal)
  542. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(call_direction=local)
  543. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(accountname=default)
  544. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(filename1=astpp.pbx.lua)
  545. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(origination_rates=ID:0|CODE:^3001.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:39)
  546. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(original_caller_id_name=+302331051709)
  547. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(original_caller_id_number=+302331051709)
  548. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(presence_data=||||||||||||LOCAL|||172.17.12.2)
  549. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(is_recording=1)
  550. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(media_bug_answer_req=true)
  551. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(RECORD_STEREO=true)
  552. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(record_sample_rate=8000)
  553. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.wav)
  554. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(effective_caller_id_name=+302331051709)
  555. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(effective_caller_id_number=+302331051709)
  556. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(calltype=LOCAL)
  557. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(receiver_accid=39)
  558. Dialplan: sofia/default/+302331051709@172.17.12.2 Action db(insert/pickup_any_group_${callgroup}/3001/${uuid})
  559. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(dialed_extension=transfer_call)
  560. Dialplan: sofia/default/+302331051709@172.17.12.2 Action export(dialed_extension=transfer_call)
  561. Dialplan: sofia/default/+302331051709@172.17.12.2 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  562. Dialplan: sofia/default/+302331051709@172.17.12.2 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  563. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(transfer_ringback=$${hold_music})
  564. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(hangup_after_bridge=true)
  565. Dialplan: sofia/default/+302331051709@172.17.12.2 Action bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=39}[leg_timeout=200 ] user/3001@giatrasvas.pbx.wifiber.gr,pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001)
  566. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(on_busy_flag=0)
  567. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(on_busy_destination=3002)
  568. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(no_answer_flag=1)
  569. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(no_answer_destination=3002)
  570. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(not_register_flag=0)
  571. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(not_register_destination=3002)
  572. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(opensips_flag=1)
  573. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(variable_sip_to_host=giatrasvas.pbx.wifiber.gr)
  574. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(opensips_domain=127.0.0.1)
  575. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(leg_timeout=200)
  576. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(userinfo_id=39)
  577. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(sip_destination_number=3001)
  578. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(did_number=3001)
  579. Dialplan: sofia/default/+302331051709@172.17.12.2 Action set(user_domain=giatrasvas.pbx.wifiber.gr)
  580. Dialplan: sofia/default/+302331051709@172.17.12.2 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  581. |--- Dialplan: Processing recursive conditions level:1 [3001_recur_1] require-nested=TRUE
  582. |--- Dialplan: sofia/default/+302331051709@172.17.12.2 Regex (FAIL) [3001_recur_1] ${cond(${user_data 3001@${domain_name} param vm-enabled} == true ? YES : NO)}(NO) =~ /^YES$/ break=on-false
  583. |--- Dialplan: sofia/default/+302331051709@172.17.12.2 ANTI-Action hangup(${originate_disposition})
  584. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:287 (sofia/default/+302331051709@172.17.12.2) State Change CS_ROUTING -> CS_EXECUTE
  585. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:644 (sofia/default/+302331051709@172.17.12.2) State ROUTING going to sleep
  586. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:585 (sofia/default/+302331051709@172.17.12.2) Running State Change CS_EXECUTE (Cur 2 Tot 4687)
  587. 2021-12-17 08:46:29.296389 [DEBUG] switch_channel.c:2334 (sofia/default/+302331051709@172.17.12.2) Callstate Change RINGING -> ACTIVE
  588. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:651 (sofia/default/+302331051709@172.17.12.2) State EXECUTE
  589. 2021-12-17 08:46:29.296389 [DEBUG] mod_sofia.c:209 sofia/default/+302331051709@172.17.12.2 SOFIA EXECUTE
  590. 2021-12-17 08:46:29.296389 [DEBUG] switch_core_state_machine.c:329 sofia/default/+302331051709@172.17.12.2 Standard EXECUTE
  591. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(effective_destination_number=3001)
  592. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [effective_destination_number]=[3001]
  593. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(bridge_pre_execute_bleg_app=sched_hangup)
  594. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [bridge_pre_execute_bleg_app]=[sched_hangup]
  595. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(bridge_pre_execute_bleg_data=+12000 normal_clearing)
  596. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [bridge_pre_execute_bleg_data]=[+12000 normal_clearing]
  597. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(callstart=2021-12-17 06:46:28)
  598. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [callstart]=[2021-12-17 06:46:28]
  599. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(hangup_after_bridge=true)
  600. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [hangup_after_bridge]=[true]
  601. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(continue_on_fail=TRUE)
  602. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [continue_on_fail]=[TRUE]
  603. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(account_id=39)
  604. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [account_id]=[39]
  605. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(parent_id=0)
  606. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [parent_id]=[0]
  607. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(entity_id=0)
  608. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [entity_id]=[0]
  609. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(call_processed=internal)
  610. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [call_processed]=[internal]
  611. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(call_direction=local)
  612. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [call_direction]=[local]
  613. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(accountname=default)
  614. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [accountname]=[default]
  615. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(filename1=astpp.pbx.lua)
  616. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [filename1]=[astpp.pbx.lua]
  617. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(origination_rates=ID:0|CODE:^3001.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:39)
  618. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [origination_rates]=[ID:0|CODE:^3001.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:39]
  619. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(original_caller_id_name=+302331051709)
  620. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [original_caller_id_name]=[+302331051709]
  621. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(original_caller_id_number=+302331051709)
  622. 2021-12-17 08:46:29.296389 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [original_caller_id_number]=[+302331051709]
  623. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(presence_data=||||||||||||LOCAL|||172.17.12.2)
  624. 2021-12-17 08:46:29.296389 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[||||||||||||LOCAL|||172.17.12.2]
  625. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(is_recording=1)
  626. 2021-12-17 08:46:29.296389 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [is_recording]=[1]
  627. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(media_bug_answer_req=true)
  628. 2021-12-17 08:46:29.296389 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [media_bug_answer_req]=[true]
  629. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(RECORD_STEREO=true)
  630. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [RECORD_STEREO]=[true]
  631. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(record_sample_rate=8000)
  632. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [record_sample_rate]=[8000]
  633. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/9f395804-7d80-4d5d-bed2-f9c76e29f4c0.wav)
  634. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/9f395804-7d80-4d5d-bed2-f9c76e29f4c0.wav]
  635. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(effective_caller_id_name=+302331051709)
  636. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [effective_caller_id_name]=[+302331051709]
  637. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(effective_caller_id_number=+302331051709)
  638. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [effective_caller_id_number]=[+302331051709]
  639. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(calltype=LOCAL)
  640. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [calltype]=[LOCAL]
  641. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(receiver_accid=39)
  642. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [receiver_accid]=[39]
  643. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 db(insert/pickup_any_group_/3001/9f395804-7d80-4d5d-bed2-f9c76e29f4c0)
  644. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(dialed_extension=transfer_call)
  645. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [dialed_extension]=[transfer_call]
  646. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 export(dialed_extension=transfer_call)
  647. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  648. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  649. 2021-12-17 08:46:29.336354 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  650. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  651. 2021-12-17 08:46:29.336354 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  652. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(transfer_ringback=local_stream://moh)
  653. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [transfer_ringback]=[local_stream://moh]
  654. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 set(hangup_after_bridge=true)
  655. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:1672 SET sofia/default/+302331051709@172.17.12.2 [hangup_after_bridge]=[true]
  656. EXECUTE [depth=0] sofia/default/+302331051709@172.17.12.2 bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=39}[leg_timeout=200 ] user/3001@giatrasvas.pbx.wifiber.gr,pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001)
  657. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1906 (sofia/default/+302331051709@172.17.12.2) Callstate Change ACTIVE -> RING_WAIT
  658. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [domain_name]=[giatrasvas.pbx.wifiber.gr] to event
  659. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [sip_to_host]=[giatrasvas.pbx.wifiber.gr] to event
  660. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [presence_data]=[||||||||||||LOCAL|||172.17.12.2] to event
  661. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [call_type]=[10] to event
  662. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [no_answer_number]=[64] to event
  663. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [presence_data]=[||||||||||||LOCAL|||172.17.12.2] to event
  664. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [is_recording]=[1] to event
  665. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  666. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event
  667. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  668. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/9f395804-7d80-4d5d-bed2-f9c76e29f4c0.wav] to event
  669. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  670. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  671. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  672. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [domain_name]=[giatrasvas.pbx.wifiber.gr] to event
  673. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [sip_to_host]=[giatrasvas.pbx.wifiber.gr] to event
  674. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [presence_data]=[||||||||||||LOCAL|||172.17.12.2] to event
  675. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [call_type]=[10] to event
  676. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [no_answer_number]=[64] to event
  677. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [presence_data]=[||||||||||||LOCAL|||172.17.12.2] to event
  678. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [is_recording]=[1] to event
  679. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  680. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event
  681. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  682. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/9f395804-7d80-4d5d-bed2-f9c76e29f4c0.wav] to event
  683. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:1264 sofia/default/+302331051709@172.17.12.2 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  684. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  685. 2021-12-17 08:46:29.336354 [NOTICE] switch_channel.c:1118 New Channel sofia/default/3001@10.100.17.104:5138 [48dd8ec5-59bb-4f74-9ac7-37c0aafd5343]
  686. 2021-12-17 08:46:29.336354 [DEBUG] mod_sofia.c:5089 (sofia/default/3001@10.100.17.104:5138) State Change CS_NEW -> CS_INIT
  687. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:3111 sofia/default/3001@10.100.17.104:5138 Setting leg timeout to 200
  688. 2021-12-17 08:46:29.336354 [DEBUG] switch_channel.c:2130 (sofia/default/+302331051709@172.17.12.2) Callstate Change RING_WAIT -> ACTIVE
  689. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:3111 sofia/default/3001@10.100.17.104:5138 Setting leg timeout to 200
  690. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3001@10.100.17.104:5138) Running State Change CS_INIT (Cur 3 Tot 4688)
  691. 2021-12-17 08:46:29.336354 [DEBUG] mod_dptools.c:4071 () State Change CS_NEW -> CS_ROUTING
  692. 2021-12-17 08:46:29.336354 [NOTICE] switch_channel.c:1118 New Channel pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001 [c26a4397-7947-4821-830c-d8c43121d490]
  693. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:628 (sofia/default/3001@10.100.17.104:5138) State INIT
  694. 2021-12-17 08:46:29.336354 [DEBUG] mod_sofia.c:93 sofia/default/3001@10.100.17.104:5138 SOFIA INIT
  695. 2021-12-17 08:46:29.336354 [DEBUG] sofia_glue.c:1587 sip:3001@10.100.17.104:5138 Setting proxy route to sofia/default/3001@10.100.17.104:5138
  696. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:585 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Running State Change CS_ROUTING (Cur 4 Tot 4689)
  697. 2021-12-17 08:46:29.336354 [DEBUG] sofia_glue.c:1618 sofia/default/3001@10.100.17.104:5138 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  698. Local SDP:
  699. v=0
  700. o=FreeSWITCH 1639693563 1639693564 IN IP4 78.108.44.190
  701. s=FreeSWITCH
  702. c=IN IP4 78.108.44.190
  703. t=0 0
  704. m=audio 30026 RTP/AVP 8 101
  705. a=rtpmap:8 PCMA/8000
  706. a=rtpmap:101 telephone-event/8000
  707. a=fmtp:101 0-16
  708. a=ptime:20
  709. a=sendrecv
  710.  
  711. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:40 sofia/default/3001@10.100.17.104:5138 Standard INIT
  712. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:48 (sofia/default/3001@10.100.17.104:5138) State Change CS_INIT -> CS_ROUTING
  713. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:628 (sofia/default/3001@10.100.17.104:5138) State INIT going to sleep
  714. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:644 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State ROUTING
  715. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:67 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  716. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:644 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State ROUTING going to sleep
  717. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:585 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Running State Change CS_CONSUME_MEDIA (Cur 4 Tot 4689)
  718. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:663 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State CONSUME_MEDIA
  719. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:663 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State CONSUME_MEDIA going to sleep
  720. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3001@10.100.17.104:5138) Running State Change CS_ROUTING (Cur 4 Tot 4689)
  721. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:644 (sofia/default/3001@10.100.17.104:5138) State ROUTING
  722. 2021-12-17 08:46:29.336354 [DEBUG] mod_sofia.c:154 sofia/default/3001@10.100.17.104:5138 SOFIA ROUTING
  723. 2021-12-17 08:46:29.336354 [DEBUG] switch_ivr_originate.c:67 (sofia/default/3001@10.100.17.104:5138) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  724. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:644 (sofia/default/3001@10.100.17.104:5138) State ROUTING going to sleep
  725. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3001@10.100.17.104:5138) Running State Change CS_CONSUME_MEDIA (Cur 4 Tot 4689)
  726. 2021-12-17 08:46:29.336354 [DEBUG] sofia.c:7326 Channel sofia/default/3001@10.100.17.104:5138 entering state [calling][0]
  727. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:663 (sofia/default/3001@10.100.17.104:5138) State CONSUME_MEDIA
  728. 2021-12-17 08:46:29.336354 [DEBUG] switch_core_state_machine.c:663 (sofia/default/3001@10.100.17.104:5138) State CONSUME_MEDIA going to sleep
  729. 2021-12-17 08:46:29.636388 [DEBUG] sofia.c:7326 Channel sofia/default/3001@10.100.17.104:5138 entering state [proceeding][180]
  730. 2021-12-17 08:46:29.636388 [NOTICE] sofia.c:7437 Ring-Ready sofia/default/3001@10.100.17.104:5138!
  731. 2021-12-17 08:46:29.636388 [DEBUG] switch_channel.c:3437 (sofia/default/3001@10.100.17.104:5138) Callstate Change DOWN -> RINGING
  732. 2021-12-17 08:46:29.696363 [DEBUG] switch_ivr_originate.c:1333 Raw Codec Activation Success L16@8000hz 1 channel 20ms
  733. 2021-12-17 08:46:29.696363 [DEBUG] switch_core_codec.c:223 sofia/default/+302331051709@172.17.12.2 Push codec L16:100
  734. 2021-12-17 08:46:29.696363 [DEBUG] switch_ivr_originate.c:1365 Play Ringback File [local_stream://moh]
  735. 2021-12-17 08:46:29.696363 [DEBUG] mod_local_stream.c:909 Opening Stream [moh/8000] 8000hz
  736. 2021-12-17 08:46:32.516388 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF 4:960
  737. 2021-12-17 08:46:32.516388 [INFO] switch_channel.c:522 RECV DTMF 4:960
  738. 2021-12-17 08:46:32.516388 [DEBUG] switch_ivr_play_say.c:1933 done playing file /var/www/html/astpp/upload/pbx/WIFIBER_180721060546.wav
  739. 2021-12-17 08:46:32.516388 [DEBUG] switch_ivr_menu.c:378 waiting for 19/20 digits t/o 2000
  740. 2021-12-17 08:46:33.536362 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF #:960
  741. span style="color: green; font-weight: bold;"> 2021-12-17 08:46:33.536362 [INFO] switch_channel.c:522 RECV DTMF #:960
  742. span style="color: goldenrod; font-weight: bold;"> 2021-12-17 08:46:33.536362 [DEBUG] switch_ivr_menu.c:425 digits '4'
  743. 2021-12-17 08:46:33.536362 [DEBUG] switch_ivr_menu.c:580 IVR action on menu 'OFFICE KOPANOS0' matched '4' param 'transfer 2003 XML ${domain_name}'
  744. 2021-12-17 08:46:33.536362 [DEBUG] switch_ivr_menu.c:584 switch_ivr_menu_execute todo=[2]
  745. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr transfer(2003 XML costaspbx.wifiber.gr)
  746. 2021-12-17 08:46:33.536362 [DEBUG] switch_ivr.c:2243 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_EXECUTE -> CS_ROUTING
  747. 2021-12-17 08:46:33.536362 [NOTICE] switch_ivr.c:2250 Transfer sofia/default/2007@costaspbx.wifiber.gr to XML[2003@costaspbx.wifiber.gr]
  748. 2021-12-17 08:46:33.536362 [DEBUG] switch_ivr_menu.c:562 action regex [4] [/^(\d{2,20})$/] [0]
  749. 2021-12-17 08:46:33.536362 [DEBUG] switch_ivr_menu.c:676 exit-sound '(null)'
  750. 2021-12-17 08:46:33.536362 [DEBUG] switch_core_state_machine.c:651 (sofia/default/2007@costaspbx.wifiber.gr) State EXECUTE going to sleep
  751. 2021-12-17 08:46:33.536362 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_ROUTING (Cur 4 Tot 4689)
  752. 2021-12-17 08:46:33.536362 [DEBUG] switch_channel.c:2332 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change ACTIVE -> RINGING
  753. 2021-12-17 08:46:33.536362 [DEBUG] switch_core_state_machine.c:644 (sofia/default/2007@costaspbx.wifiber.gr) State ROUTING
  754. 2021-12-17 08:46:33.536362 [DEBUG] mod_sofia.c:154 sofia/default/2007@costaspbx.wifiber.gr SOFIA ROUTING
  755. 2021-12-17 08:46:33.536362 [DEBUG] switch_core_state_machine.c:236 sofia/default/2007@costaspbx.wifiber.gr Standard ROUTING
  756. 2021-12-17 08:46:33.536362 [INFO] mod_dialplan_xml.c:637 Processing 2007 <2007>->2003 in context costaspbx.wifiber.gr
  757. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  758. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  759. 2021-12-17 08:46:33.556368 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  760. 2021-12-17 08:46:33.556368 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 2003
  761. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :2003
  762. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '2003' limit 1
  763. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '2003' AND status=0 limit 1
  764. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '2003' and status=0 LIMIT 1
  765. 2021-12-17 08:46:33.556368 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  766. 2021-12-17 08:46:33.556368 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  :  / 2332041999
  767. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  768. 2021-12-17 08:46:33.556368 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaincostaspbx.wifiber.gr
  769. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  770. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  771. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  772. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  773. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  774. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 2003
  775. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 00302003
  776. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....00302003
  777. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....00302003
  778. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="00302003" LIMIT 1
  779. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="2003"  AND domains.domain="costaspbx.wifiber.gr" limit 1
  780. 2021-12-17 08:46:33.556368 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  781. 2021-12-17 08:46:33.556368 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 7]
  782. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =2003
  783. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  784. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id : 1
  785. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  786. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  787. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  788. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  789. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 2003
  790. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 00302003
  791. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....00302003
  792. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....00302003
  793. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="00302003" AND (accountid = 0 OR status = 1) LIMIT 1
  794. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  795. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  796. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^2003.*' OR patterns = '^200.*' OR patterns = '^20.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  797. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="2003" AND A.accountid = '7' limit 1
  798. 2021-12-17 08:46:33.556368 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 2003
  799. 2021-12-17 08:46:33.556368 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  800. 2021-12-17 08:46:33.556368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  801. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  802. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  803. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....2003
  804. 2021-12-17 08:46:33.576355 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 2003
  805. 2021-12-17 08:46:33.576355 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 00302003
  806. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....00302003
  807. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....00302003
  808. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="00302003" LIMIT 1
  809. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="2003"  AND domains.domain="costaspbx.wifiber.gr" limit 1
  810. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : local
  811. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '2003' OR number = '200' OR number = '20' OR number = '2' OR number ='--') OR (number = '2003*' OR number = '200*' OR number = '20*' OR number = '2*' OR number ='--') OR (number = '2332041999' OR number = '233204199' OR number = '23320419' OR number = '2332041' OR number = '233204' OR number = '23320' OR number = '2332' OR number = '233' OR number = '23' OR number = '2' OR number ='--') OR (number = '2332041999*' OR number = '233204199*' OR number = '23320419*' OR number = '2332041*' OR number = '233204*' OR number = '23320*' OR number = '2332*' OR number = '233*' OR number = '23*' OR number = '2*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  812. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  813. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '2003' OR routing_prefix = '200' OR routing_prefix = '20' OR routing_prefix = '2' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  814. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  815. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7
  816. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 3726104889
  817. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  818. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  819. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  820. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  821. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  822. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  823. 2021-12-17 08:46:33.576355 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Free Inbound : 1
  824. 2021-12-17 08:46:33.576355 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Charge Per Min : 0
  825. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 7 !!!
  826. 2021-12-17 08:46:33.576355 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 200
  827. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 200 minutes
  828. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="2003"  AND domains.domain="costaspbx.wifiber.gr" limit 1
  829. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1
  830. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 200
  831. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  832. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  833. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : local
  834. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  835. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 34 limit 1
  836. 2021-12-17 08:46:33.576355 [WARNING] switch_cpp.cpp:1447 [ASTPP] [PBX] User Domaincostaspbx.wifiber.gr
  837. 2021-12-17 08:46:33.576355 [WARNING] switch_cpp.cpp:1447 [ASTPP] [LOCAL CALL] Recording Flag :1
  838. 2021-12-17 08:46:33.576355 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FSXMLLOCAL] Caller ID Translation Starts
  839. 2021-12-17 08:46:33.576355 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FSXMLLOCAL] Caller ID Translation Ends
  840. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  841. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 34
  842. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 34 limit 1
  843. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :call_transfer_attended
  844. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  845. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :call_transfer
  846. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  847. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] Call Forwarding Flag : 0
  848. 2021-12-17 08:46:33.576355 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP Call Forwarding Enable
  849. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  850. 2021-12-17 08:46:33.576355 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  851. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  852. <document type="freeswitch/xml">
  853. <section name="dialplan" description="ASTPP Dialplan">
  854. <context name="costaspbx.wifiber.gr">
  855. <extension name="2003">
  856. <condition field="destination_number" expression="2003">
  857. <action application="set" data="effective_destination_number=2003"/>
  858. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  859. <action application="set" data="bridge_pre_execute_bleg_data=+12000 normal_clearing"/>
  860. <action application="set" data="callstart=2021-12-17 06:46:32"/>
  861. <action application="set" data="hangup_after_bridge=true"/>
  862. <action application="set" data="continue_on_fail=TRUE"/>
  863. <action application="set" data="account_id=7"/>
  864. <action application="set" data="parent_id=0"/>
  865. <action application="set" data="entity_id=0"/>
  866. <action application="set" data="call_processed=internal"/>
  867. <action application="set" data="call_direction=local"/>
  868. <action application="set" data="accountname=default"/>
  869. <action application="set" data="filename1=astpp.pbx.lua"/>
  870. <action application="set" data="origination_rates=ID:0|CODE:^2003.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7"/>
  871. <action application="set" data="original_caller_id_number=2332041999"/>
  872. <action application="limit" data="hash inbound 2003 1 !USER_BUSY" />
  873. <action application="export" data="presence_data=||||||||||||LOCAL|||117.247.91.162"/>
  874. <action application="set" data="effective_caller_id_number=2332041999"/>
  875. <action application="set" data="calltype=LOCAL"/>
  876. <action application="set" data="receiver_accid=7"/>
  877. <action application="db" data="insert/pickup_any_group_${callgroup}/6980388888#/${uuid}"/>
  878. <action application="set" data="dialed_extension=transfer_call"/>
  879. <action application="export" data="dialed_extension=transfer_call"/>
  880. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  881. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  882. <action application="set" data="hangup_after_bridge=true"/>
  883. <action application="export" data="sip_to_host=costaspbx.wifiber.gr"/>
  884. <action application="export" data="domain_name=costaspbx.wifiber.gr"/>
  885. <action application="transfer" data="6980388888 XML default"/>
  886. <action application="set" data="on_busy_flag=1"/>
  887. <action application="set" data="on_busy_destination=0"/>
  888. <action application="set" data="no_answer_flag=1"/>
  889. <action application="set" data="no_answer_destination=0"/>
  890. <action application="set" data="not_register_flag=1"/>
  891. <action application="set" data="not_register_destination=0"/>
  892. <action application="set" data="opensips_flag=1"/>
  893. <action application="set" data="variable_sip_to_host=costaspbx.wifiber.gr"/>
  894. <action application="set" data="opensips_domain=127.0.0.1"/>
  895. <action application="set" data="leg_timeout=200"/>
  896. <action application="set" data="userinfo_id=7"/>
  897. <action application="set" data="sip_destination_number=6980388888#"/>
  898. <action application="set" data="did_number=6980388888#"/>
  899. <action application="set" data="user_domain=costaspbx.wifiber.gr"/>
  900. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  901. <condition field="${cond(${user_data 6980388888#@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  902. <action application="answer"/>
  903. <action application="export" data="voicemail_alternate_greet_id=6980388888#"/>
  904. <action application="voicemail" data="default $${domain_name} 6980388888#"/>
  905. <anti-action application="hangup" data="${originate_disposition}"/>
  906. </condition>
  907. </condition>
  908. </extension>
  909. </context>
  910. </section>
  911. </document>
  912. Dialplan: sofia/default/2007@costaspbx.wifiber.gr parsing [costaspbx.wifiber.gr->2003] continue=false
  913. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Regex (PASS) [2003] destination_number(2003) =~ /2003/ break=on-false
  914. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(effective_destination_number=2003)
  915. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(bridge_pre_execute_bleg_app=sched_hangup)
  916. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(bridge_pre_execute_bleg_data=+12000 normal_clearing)
  917. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(callstart=2021-12-17 06:46:32)
  918. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(hangup_after_bridge=true)
  919. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(continue_on_fail=TRUE)
  920. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(account_id=7)
  921. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(parent_id=0)
  922. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(entity_id=0)
  923. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(call_processed=internal)
  924. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(call_direction=local)
  925. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(accountname=default)
  926. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(filename1=astpp.pbx.lua)
  927. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(origination_rates=ID:0|CODE:^2003.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7)
  928. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(original_caller_id_number=2332041999)
  929. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action limit(hash inbound 2003 1 !USER_BUSY)
  930. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(presence_data=||||||||||||LOCAL|||117.247.91.162)
  931. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(effective_caller_id_number=2332041999)
  932. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(calltype=LOCAL)
  933. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(receiver_accid=7)
  934. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action db(insert/pickup_any_group_${callgroup}/6980388888#/${uuid})
  935. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(dialed_extension=transfer_call)
  936. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(dialed_extension=transfer_call)
  937. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  938. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  939. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(hangup_after_bridge=true)
  940. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(sip_to_host=costaspbx.wifiber.gr)
  941. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action export(domain_name=costaspbx.wifiber.gr)
  942. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action transfer(6980388888 XML default)
  943. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(on_busy_flag=1)
  944. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(on_busy_destination=0)
  945. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(no_answer_flag=1)
  946. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(no_answer_destination=0)
  947. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(not_register_flag=1)
  948. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(not_register_destination=0)
  949. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(opensips_flag=1)
  950. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(variable_sip_to_host=costaspbx.wifiber.gr)
  951. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(opensips_domain=127.0.0.1)
  952. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(leg_timeout=200)
  953. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(userinfo_id=7)
  954. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(sip_destination_number=6980388888#)
  955. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(did_number=6980388888#)
  956. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(user_domain=costaspbx.wifiber.gr)
  957. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  958. |--- Dialplan: Processing recursive conditions level:1 [2003_recur_1] require-nested=TRUE
  959. |--- Dialplan: sofia/default/2007@costaspbx.wifiber.gr Regex (FAIL) [2003_recur_1] ${cond(${user_data 6980388888#@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  960. |--- Dialplan: sofia/default/2007@costaspbx.wifiber.gr ANTI-Action hangup(${originate_disposition})
  961. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:287 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_ROUTING -> CS_EXECUTE
  962. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:644 (sofia/default/2007@costaspbx.wifiber.gr) State ROUTING going to sleep
  963. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_EXECUTE (Cur 4 Tot 4689)
  964. 2021-12-17 08:46:33.596363 [DEBUG] switch_channel.c:2334 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change RINGING -> ACTIVE
  965. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:651 (sofia/default/2007@costaspbx.wifiber.gr) State EXECUTE
  966. 2021-12-17 08:46:33.596363 [DEBUG] mod_sofia.c:209 sofia/default/2007@costaspbx.wifiber.gr SOFIA EXECUTE
  967. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:329 sofia/default/2007@costaspbx.wifiber.gr Standard EXECUTE
  968. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(effective_destination_number=2003)
  969. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [effective_destination_number]=[2003]
  970. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(bridge_pre_execute_bleg_app=sched_hangup)
  971. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [bridge_pre_execute_bleg_app]=[sched_hangup]
  972. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(bridge_pre_execute_bleg_data=+12000 normal_clearing)
  973. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [bridge_pre_execute_bleg_data]=[+12000 normal_clearing]
  974. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(callstart=2021-12-17 06:46:32)
  975. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [callstart]=[2021-12-17 06:46:32]
  976. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(hangup_after_bridge=true)
  977. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [hangup_after_bridge]=[true]
  978. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(continue_on_fail=TRUE)
  979. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [continue_on_fail]=[TRUE]
  980. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(account_id=7)
  981. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [account_id]=[7]
  982. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(parent_id=0)
  983. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [parent_id]=[0]
  984. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(entity_id=0)
  985. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [entity_id]=[0]
  986. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(call_processed=internal)
  987. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [call_processed]=[internal]
  988. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(call_direction=local)
  989. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [call_direction]=[local]
  990. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(accountname=default)
  991. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [accountname]=[default]
  992. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(filename1=astpp.pbx.lua)
  993. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [filename1]=[astpp.pbx.lua]
  994. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(origination_rates=ID:0|CODE:^2003.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7)
  995. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [origination_rates]=[ID:0|CODE:^2003.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7]
  996. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(original_caller_id_number=2332041999)
  997. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [original_caller_id_number]=[2332041999]
  998. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr limit(hash inbound 2003 1 !USER_BUSY)
  999. 2021-12-17 08:46:33.596363 [DEBUG] switch_limit.c:124 incr called: inbound_2003 max:1, interval:0
  1000. 2021-12-17 08:46:33.596363 [DEBUG] mod_hash.c:196 Usage for inbound_2003 is now 1/1
  1001. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(presence_data=||||||||||||LOCAL|||117.247.91.162)
  1002. 2021-12-17 08:46:33.596363 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[||||||||||||LOCAL|||117.247.91.162]
  1003. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(effective_caller_id_number=2332041999)
  1004. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [effective_caller_id_number]=[2332041999]
  1005. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(calltype=LOCAL)
  1006. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [calltype]=[LOCAL]
  1007. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(receiver_accid=7)
  1008. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [receiver_accid]=[7]
  1009. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr db(insert/pickup_any_group_/6980388888#/72130798-ca98-4e4c-8342-ca9cfd252413)
  1010. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(dialed_extension=transfer_call)
  1011. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [dialed_extension]=[transfer_call]
  1012. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(dialed_extension=transfer_call)
  1013. 2021-12-17 08:46:33.596363 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  1014. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  1015. 2021-12-17 08:46:33.596363 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  1016. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  1017. 2021-12-17 08:46:33.596363 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  1018. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(hangup_after_bridge=true)
  1019. 2021-12-17 08:46:33.596363 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [hangup_after_bridge]=[true]
  1020. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(sip_to_host=costaspbx.wifiber.gr)
  1021. 2021-12-17 08:46:33.596363 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[costaspbx.wifiber.gr]
  1022. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr export(domain_name=costaspbx.wifiber.gr)
  1023. 2021-12-17 08:46:33.596363 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[costaspbx.wifiber.gr]
  1024. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr transfer(6980388888 XML default)
  1025. 2021-12-17 08:46:33.596363 [DEBUG] switch_ivr.c:2243 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_EXECUTE -> CS_ROUTING
  1026. 2021-12-17 08:46:33.596363 [DEBUG] mod_hash.c:296 Usage for inbound_2003 is now 0
  1027. 2021-12-17 08:46:33.596363 [NOTICE] switch_ivr.c:2250 Transfer sofia/default/2007@costaspbx.wifiber.gr to XML[6980388888@default]
  1028. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:651 (sofia/default/2007@costaspbx.wifiber.gr) State EXECUTE going to sleep
  1029. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_ROUTING (Cur 4 Tot 4689)
  1030. 2021-12-17 08:46:33.596363 [DEBUG] switch_channel.c:2332 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change ACTIVE -> RINGING
  1031. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:644 (sofia/default/2007@costaspbx.wifiber.gr) State ROUTING
  1032. 2021-12-17 08:46:33.596363 [DEBUG] mod_sofia.c:154 sofia/default/2007@costaspbx.wifiber.gr SOFIA ROUTING
  1033. 2021-12-17 08:46:33.596363 [DEBUG] switch_core_state_machine.c:236 sofia/default/2007@costaspbx.wifiber.gr Standard ROUTING
  1034. 2021-12-17 08:46:33.596363 [INFO] mod_dialplan_xml.c:637 Processing 2007 <2007>->6980388888 in context default
  1035. 2021-12-17 08:46:33.596363 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  1036. 2021-12-17 08:46:33.596363 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1037. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  1038. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Hunt Destination Number: 6980388888
  1039. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :call_transfer_attended
  1040. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  1041. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :call_transfer
  1042. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  1043. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Feature Code Transfer Blind Value :*2
  1044. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 6980388888
  1045. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] test123 :3023320419996980388888
  1046. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '3023320419996980388888' limit 1
  1047. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '3023320419996980388888' AND status=0 limit 1
  1048. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '3023320419996980388888' and status=0 LIMIT 1
  1049. 2021-12-17 08:46:33.616349 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  1050. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  :  / 2332041999
  1051. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  1052. 2021-12-17 08:46:33.616349 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaincostaspbx.wifiber.gr
  1053. 2021-12-17 08:46:33.616349 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  1054. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  1055. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1056. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1057. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1058. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1059. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1060. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="3023320419996980388888" LIMIT 1
  1061. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="3023320419996980388888"  AND domains.domain="costaspbx.wifiber.gr" limit 1
  1062. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound
  1063. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 7]
  1064. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =3023320419996980388888
  1065. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  1066. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^3023320419996980388888.*' OR blocked_patterns = '^302332041999698038888.*' OR blocked_patterns = '^30233204199969803888.*' OR blocked_patterns = '^3023320419996980388.*' OR blocked_patterns = '^302332041999698038.*' OR blocked_patterns = '^30233204199969803.*' OR blocked_patterns = '^3023320419996980.*' OR blocked_patterns = '^302332041999698.*' OR blocked_patterns = '^30233204199969.*' OR blocked_patterns = '^3023320419996.*' OR blocked_patterns = '^302332041999.*' OR blocked_patterns = '^30233204199.*' OR blocked_patterns = '^3023320419.*' OR blocked_patterns = '^302332041.*' OR blocked_patterns = '^30233204.*' OR blocked_patterns = '^3023320.*' OR blocked_patterns = '^302332.*' OR blocked_patterns = '^30233.*' OR blocked_patterns = '^3023.*' OR blocked_patterns = '^302.*' OR blocked_patterns = '^30.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 7 limit 1
  1067. 2021-12-17 08:46:33.616349 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id : 1
  1068. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  1069. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1070. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1071. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1072. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1073. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1074. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="3023320419996980388888" AND (accountid = 0 OR status = 1) LIMIT 1
  1075. 2021-12-17 08:46:33.616349 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  1076. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  1077. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1078. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1079. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1080. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1081. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1082. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^3023320419996980388888.*' OR patterns = '^302332041999698038888.*' OR patterns = '^30233204199969803888.*' OR patterns = '^3023320419996980388.*' OR patterns = '^302332041999698038.*' OR patterns = '^30233204199969803.*' OR patterns = '^3023320419996980.*' OR patterns = '^302332041999698.*' OR patterns = '^30233204199969.*' OR patterns = '^3023320419996.*' OR patterns = '^302332041999.*' OR patterns = '^30233204199.*' OR patterns = '^3023320419.*' OR patterns = '^302332041.*' OR patterns = '^30233204.*' OR patterns = '^3023320.*' OR patterns = '^302332.*' OR patterns = '^30233.*' OR patterns = '^3023.*' OR patterns = '^302.*' OR patterns = '^30.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  1083. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="3023320419996980388888" AND A.accountid = '7' limit 1
  1084. 2021-12-17 08:46:33.616349 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 3023320419996980388888
  1085. 2021-12-17 08:46:33.616349 [NOTICE] switch_cpp.cpp:1447 [ASTPP] DID Global Translation Id: 1
  1086. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  1087. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1088. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1089. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1090. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1091. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"+/00,1/00301,2/00302,6/00306,8/00308".....3023320419996980388888
  1092. 2021-12-17 08:46:33.616349 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="3023320419996980388888" LIMIT 1
  1093. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,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 ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="3023320419996980388888"  AND domains.domain="costaspbx.wifiber.gr" limit 1
  1094. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : outbound
  1095. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '3023320419996980388888' OR number = '302332041999698038888' OR number = '30233204199969803888' OR number = '3023320419996980388' OR number = '302332041999698038' OR number = '30233204199969803' OR number = '3023320419996980' OR number = '302332041999698' OR number = '30233204199969' OR number = '3023320419996' OR number = '302332041999' OR number = '30233204199' OR number = '3023320419' OR number = '302332041' OR number = '30233204' OR number = '3023320' OR number = '302332' OR number = '30233' OR number = '3023' OR number = '302' OR number = '30' OR number = '3' OR number ='--') OR (number = '3023320419996980388888*' OR number = '302332041999698038888*' OR number = '30233204199969803888*' OR number = '3023320419996980388*' OR number = '302332041999698038*' OR number = '30233204199969803*' OR number = '3023320419996980*' OR number = '302332041999698*' OR number = '30233204199969*' OR number = '3023320419996*' OR number = '302332041999*' OR number = '30233204199*' OR number = '3023320419*' OR number = '302332041*' OR number = '30233204*' OR number = '3023320*' OR number = '302332*' OR number = '30233*' OR number = '3023*' OR number = '302*' OR number = '30*' OR number = '3*' OR number ='--') OR (number = '2332041999' OR number = '233204199' OR number = '23320419' OR number = '2332041' OR number = '233204' OR number = '23320' OR number = '2332' OR number = '233' OR number = '23' OR number = '2' OR number ='--') OR (number = '2332041999*' OR number = '233204199*' OR number = '23320419*' OR number = '2332041*' OR number = '233204*' OR number = '23320*' OR number = '2332*' OR number = '233*' OR number = '23*' OR number = '2*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  1096. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  1097. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '3023320419996980388888' OR routing_prefix = '302332041999698038888' OR routing_prefix = '30233204199969803888' OR routing_prefix = '3023320419996980388' OR routing_prefix = '302332041999698038' OR routing_prefix = '30233204199969803' OR routing_prefix = '3023320419996980' OR routing_prefix = '302332041999698' OR routing_prefix = '30233204199969' OR routing_prefix = '3023320419996' OR routing_prefix = '302332041999' OR routing_prefix = '30233204199' OR routing_prefix = '3023320419' OR routing_prefix = '302332041' OR routing_prefix = '30233204' OR routing_prefix = '3023320' OR routing_prefix = '302332' OR routing_prefix = '30233' OR routing_prefix = '3023' OR routing_prefix = '302' OR routing_prefix = '30' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  1098. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  1099. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7
  1100. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 3726104889
  1101. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 49.3109
  1102. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  1103. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  1104. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  1105. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  1106. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  1107. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound
  1108. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  1109. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3023320419996980388888.*' OR pattern = '^302332041999698038888.*' OR pattern = '^30233204199969803888.*' OR pattern = '^3023320419996980388.*' OR pattern = '^302332041999698038.*' OR pattern = '^30233204199969803.*' OR pattern = '^3023320419996980.*' OR pattern = '^302332041999698.*' OR pattern = '^30233204199969.*' OR pattern = '^3023320419996.*' OR pattern = '^302332041999.*' OR pattern = '^30233204199.*' OR pattern = '^3023320419.*' OR pattern = '^302332041.*' OR pattern = '^30233204.*' OR pattern = '^3023320.*' OR pattern = '^302332.*' OR pattern = '^30233.*' OR pattern = '^3023.*' OR pattern = '^302.*' OR pattern = '^30.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 1 OR accountid=7)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  1110. 2021-12-17 08:46:33.636368 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : outbound
  1111. 2021-12-17 08:46:33.636368 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Rates Not Found :
  1112. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP]  Post Cdrs : 0
  1113. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 7
  1114. 2021-12-17 08:46:33.636368 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Generated XML:
  1115. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  1116. <document type="freeswitch/xml">
  1117. <section name="dialplan" description="ASTPP Dialplan">
  1118. <context name="default">
  1119. <extension name="6980388888">
  1120. <condition field="destination_number" expression="6980388888">
  1121. <action application="log" data="WARNING Accountcode 3726104889. Dialed number (3023320419996980388888)  origination rates not found!!"/>
  1122. <action application="playback" data="/usr/share/freeswitch/sounds/en/us/callie/astpp-badphone.wav"/>
  1123. <action application="set" data="original_caller_id_number="/>
  1124. <action application="set" data="error_cdr=1"/>
  1125. <action application="set" data="callstart=2021-12-17 06:46:32"/>
  1126. <action application="set" data="account_id=7"/>
  1127. <action application="set" data="parent_id=0"/>
  1128. <action application="set" data="call_direction=outbound"/>
  1129. <action application="set" data="sip_ignore_remote_cause=true"/>
  1130. <action application="set" data="call_processed=internal"/>
  1131. <action application="set" data="effective_destination_number=3023320419996980388888"/>
  1132. <action application="set" data="last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND"/>
  1133. <action application="hangup" data="ORIGINATION_RATE_NOT_FOUND"/>
  1134. </condition>
  1135. </extension>
  1136. </context>
  1137. </section>
  1138. </document>
  1139. Dialplan: sofia/default/2007@costaspbx.wifiber.gr parsing [default->6980388888] continue=false
  1140. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Regex (PASS) [6980388888] destination_number(6980388888) =~ /6980388888/ break=on-false
  1141. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action log(WARNING Accountcode 3726104889. Dialed number (3023320419996980388888)  origination rates not found!!)
  1142. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action playback(/usr/share/freeswitch/sounds/en/us/callie/astpp-badphone.wav)
  1143. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(original_caller_id_number=)
  1144. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(error_cdr=1)
  1145. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(callstart=2021-12-17 06:46:32)
  1146. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(account_id=7)
  1147. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(parent_id=0)
  1148. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(call_direction=outbound)
  1149. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(sip_ignore_remote_cause=true)
  1150. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(call_processed=internal)
  1151. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(effective_destination_number=3023320419996980388888)
  1152. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  1153. Dialplan: sofia/default/2007@costaspbx.wifiber.gr Action hangup(ORIGINATION_RATE_NOT_FOUND)
  1154. 2021-12-17 08:46:33.636368 [DEBUG] switch_core_state_machine.c:287 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_ROUTING -> CS_EXECUTE
  1155. 2021-12-17 08:46:33.636368 [DEBUG] switch_core_state_machine.c:644 (sofia/default/2007@costaspbx.wifiber.gr) State ROUTING going to sleep
  1156. 2021-12-17 08:46:33.636368 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_EXECUTE (Cur 4 Tot 4689)
  1157. 2021-12-17 08:46:33.636368 [DEBUG] switch_channel.c:2334 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change RINGING -> ACTIVE
  1158. 2021-12-17 08:46:33.636368 [DEBUG] switch_core_state_machine.c:651 (sofia/default/2007@costaspbx.wifiber.gr) State EXECUTE
  1159. 2021-12-17 08:46:33.636368 [DEBUG] mod_sofia.c:209 sofia/default/2007@costaspbx.wifiber.gr SOFIA EXECUTE
  1160. 2021-12-17 08:46:33.636368 [DEBUG] switch_core_state_machine.c:329 sofia/default/2007@costaspbx.wifiber.gr Standard EXECUTE
  1161. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr log(WARNING Accountcode 3726104889. Dialed number (3023320419996980388888)  origination rates not found!!)
  1162. 2021-12-17 08:46:33.636368 [WARNING] mod_dptools.c:1866 Accountcode 3726104889. Dialed number (3023320419996980388888)  origination rates not found!!
  1163. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr playback(/usr/share/freeswitch/sounds/en/us/callie/astpp-badphone.wav)
  1164. 2021-12-17 08:46:33.636368 [DEBUG] switch_core_file.c:405 File /usr/share/freeswitch/sounds/en/us/callie/astpp-badphone.wav sample rate 16000 doesn't match requested rate 8000
  1165. 2021-12-17 08:46:33.636368 [DEBUG] switch_ivr_play_say.c:1488 Codec Activated L16@8000hz 1 channels 20ms
  1166. 2021-12-17 08:46:34.916397 [DEBUG] sofia.c:7326 Channel sofia/default/3001@10.100.17.104:5138 entering state [completing][200]
  1167. 2021-12-17 08:46:34.916397 [DEBUG] sofia.c:7336 Remote SDP:
  1168. v=0
  1169. o=3001 113764011 1096718174 IN IP4 10.100.17.104
  1170. s=A conversation
  1171. c=IN IP4 10.100.17.104
  1172. t=0 0
  1173. m=audio 10068 RTP/AVP 8 101
  1174. a=rtpmap:8 PCMA/8000
  1175. a=rtpmap:101 telephone-event/8000
  1176. a=fmtp:101 0-15
  1177.  
  1178. 2021-12-17 08:46:34.916397 [DEBUG] sofia.c:7326 Channel sofia/default/3001@10.100.17.104:5138 entering state [ready][200]
  1179. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1180. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  1181. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  1182. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/3001@10.100.17.104:5138 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  1183. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_codec.c:111 sofia/default/3001@10.100.17.104:5138 Original read codec set to PCMA:8
  1184. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  1185. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:5911 sofia/default/3001@10.100.17.104:5138 Set 2833 dtmf send payload to 101 recv payload to 101
  1186. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/3001@10.100.17.104:5138] 10.151.10.3 port 30026 -> 10.100.17.104 port 10068 codec: 8 ms: 20
  1187. 2021-12-17 08:46:34.916397 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  1188. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:8977 sofia/default/3001@10.100.17.104:5138 Set 2833 dtmf send payload to 101
  1189. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:8984 sofia/default/3001@10.100.17.104:5138 Set 2833 dtmf receive payload to 101
  1190. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media.c:9007 sofia/default/3001@10.100.17.104:5138 Set rtp dtmf delay to 40
  1191. 2021-12-17 08:46:34.916397 [NOTICE] sofia.c:8504 Channel [sofia/default/3001@10.100.17.104:5138] has been answered
  1192. EXECUTE [depth=1] sofia/default/3001@10.100.17.104:5138 record_session(/var/lib/freeswitch/recordings/9f395804-7d80-4d5d-bed2-f9c76e29f4c0.wav)
  1193. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_codec.c:248 sofia/default/+302331051709@172.17.12.2 Restore previous codec PCMA:8.
  1194. 2021-12-17 08:46:34.916397 [NOTICE] switch_ivr_originate.c:3759 Hangup pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001 [CS_CONSUME_MEDIA] [LOSE_RACE]
  1195. 2021-12-17 08:46:34.916397 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/3001@10.100.17.104:5138]
  1196. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:585 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Running State Change CS_HANGUP (Cur 4 Tot 4689)
  1197. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:848 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Callstate Change DOWN -> HANGUP
  1198. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:850 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State HANGUP
  1199. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:60 pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001 Standard HANGUP, cause: LOSE_RACE
  1200. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:850 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State HANGUP going to sleep
  1201. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:620 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State Change CS_HANGUP -> CS_REPORTING
  1202. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:585 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Running State Change CS_REPORTING (Cur 4 Tot 4689)
  1203. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:936 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State REPORTING
  1204. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:936 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State REPORTING going to sleep
  1205. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:611 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State Change CS_REPORTING -> CS_DESTROY
  1206. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_session.c:1726 Session 4689 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Locked, Waiting on external entities
  1207. 2021-12-17 08:46:34.916397 [NOTICE] switch_core_session.c:1744 Session 4689 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Ended
  1208. 2021-12-17 08:46:34.916397 [NOTICE] switch_core_session.c:1748 Close Channel pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001 [CS_DESTROY]
  1209. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:739 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) Running State Change CS_DESTROY (Cur 3 Tot 4689)
  1210. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:749 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State DESTROY
  1211. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:181 pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001 Standard DESTROY
  1212. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:749 (pickup/ΓΙΑΤΡΑΣ ΒΑΣΙΛΕΙΟΣ_3001) State DESTROY going to sleep
  1213. 2021-12-17 08:46:34.916397 [DEBUG] switch_ivr_async.c:1351 Record session sample rate: 8000 -> 8000
  1214. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_media_bug.c:970 Attaching BUG to sofia/default/3001@10.100.17.104:5138
  1215. 2021-12-17 08:46:34.916397 [DEBUG] switch_channel.c:3865 (sofia/default/3001@10.100.17.104:5138) Callstate Change RINGING -> ACTIVE
  1216. 2021-12-17 08:46:34.916397 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/3001@10.100.17.104:5138) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  1217. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3001@10.100.17.104:5138) Running State Change CS_EXCHANGE_MEDIA (Cur 3 Tot 4689)
  1218. 2021-12-17 08:46:34.916397 [DEBUG] switch_core_state_machine.c:654 (sofia/default/3001@10.100.17.104:5138) State EXCHANGE_MEDIA
  1219. 2021-12-17 08:46:34.916397 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  1220. 2021-12-17 08:46:34.916397 [DEBUG] switch_ivr_async.c:1640 No silence detection configured; assuming start of speech
  1221. 2021-12-17 08:46:35.036371 [DEBUG] switch_ivr_play_say.c:1933 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-badphone.wav
  1222. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(original_caller_id_number=)
  1223. 2021-12-17 08:46:35.036371 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [original_caller_id_number]=[UNDEF]
  1224. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(error_cdr=1)
  1225. 2021-12-17 08:46:35.036371 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [error_cdr]=[1]
  1226. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(callstart=2021-12-17 06:46:32)
  1227. 2021-12-17 08:46:35.036371 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [callstart]=[2021-12-17 06:46:32]
  1228. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(account_id=7)
  1229. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [account_id]=[7]
  1230. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(parent_id=0)
  1231. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [parent_id]=[0]
  1232. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(call_direction=outbound)
  1233. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [call_direction]=[outbound]
  1234. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(sip_ignore_remote_cause=true)
  1235. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [sip_ignore_remote_cause]=[true]
  1236. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(call_processed=internal)
  1237. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [call_processed]=[internal]
  1238. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(effective_destination_number=3023320419996980388888)
  1239. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [effective_destination_number]=[3023320419996980388888]
  1240. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  1241. 2021-12-17 08:46:35.056375 [DEBUG] mod_dptools.c:1672 SET sofia/default/2007@costaspbx.wifiber.gr [last_bridge_hangup_cause]=[ORIGINATION_RATE_NOT_FOUND]
  1242. EXECUTE [depth=0] sofia/default/2007@costaspbx.wifiber.gr hangup(ORIGINATION_RATE_NOT_FOUND)
  1243. 2021-12-17 08:46:35.056375 [NOTICE] mod_dptools.c:1380 Hangup sofia/default/2007@costaspbx.wifiber.gr [CS_EXECUTE] [NORMAL_CLEARING]
  1244. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_session.c:2905 sofia/default/2007@costaspbx.wifiber.gr skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  1245. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:651 (sofia/default/2007@costaspbx.wifiber.gr) State EXECUTE going to sleep
  1246. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_HANGUP (Cur 3 Tot 4689)
  1247. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:848 (sofia/default/2007@costaspbx.wifiber.gr) Callstate Change ACTIVE -> HANGUP
  1248. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:850 (sofia/default/2007@costaspbx.wifiber.gr) State HANGUP
  1249. 2021-12-17 08:46:35.056375 [DEBUG] mod_sofia.c:453 Channel sofia/default/2007@costaspbx.wifiber.gr hanging up, cause: NORMAL_CLEARING
  1250. 2021-12-17 08:46:35.056375 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/2007@costaspbx.wifiber.gr
  1251. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:60 sofia/default/2007@costaspbx.wifiber.gr Standard HANGUP, cause: NORMAL_CLEARING
  1252. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:850 (sofia/default/2007@costaspbx.wifiber.gr) State HANGUP going to sleep
  1253. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:620 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_HANGUP -> CS_REPORTING
  1254. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:585 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_REPORTING (Cur 3 Tot 4689)
  1255. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:936 (sofia/default/2007@costaspbx.wifiber.gr) State REPORTING
  1256. 2021-12-17 08:46:35.056375 [INFO] mod_json_cdr.c:271 Process [72130798-ca98-4e4c-8342-ca9cfd252413.cdr.json]
  1257. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:174 sofia/default/2007@costaspbx.wifiber.gr Standard REPORTING, cause: NORMAL_CLEARING
  1258. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:936 (sofia/default/2007@costaspbx.wifiber.gr) State REPORTING going to sleep
  1259. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:611 (sofia/default/2007@costaspbx.wifiber.gr) State Change CS_REPORTING -> CS_DESTROY
  1260. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_session.c:1726 Session 4687 (sofia/default/2007@costaspbx.wifiber.gr) Locked, Waiting on external entities
  1261. 2021-12-17 08:46:35.056375 [NOTICE] switch_core_session.c:1744 Session 4687 (sofia/default/2007@costaspbx.wifiber.gr) Ended
  1262. 2021-12-17 08:46:35.056375 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/2007@costaspbx.wifiber.gr [CS_DESTROY]
  1263. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:739 (sofia/default/2007@costaspbx.wifiber.gr) Running State Change CS_DESTROY (Cur 2 Tot 4689)
  1264. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:749 (sofia/default/2007@costaspbx.wifiber.gr) State DESTROY
  1265. 2021-12-17 08:46:35.056375 [DEBUG] mod_sofia.c:364 sofia/default/2007@costaspbx.wifiber.gr SOFIA DESTROY
  1266. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:181 sofia/default/2007@costaspbx.wifiber.gr Standard DESTROY
  1267. 2021-12-17 08:46:35.056375 [DEBUG] switch_core_state_machine.c:749 (sofia/default/2007@costaspbx.wifiber.gr) State DESTROY going to sleep
  1268. 2021-12-17 08:46:35.116368 [DEBUG] switch_ivr_bridge.c:655 sofia/default/3001@10.100.17.104:5138 Bridge execute app sched_hangup(+12000 normal_clearing)
  1269. 2021-12-17 08:46:35.136351 [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMA:8
  1270. 2021-12-17 08:46:35.136351 [DEBUG] switch_ivr.c:632 sofia/default/3001@10.100.17.104:5138 Command Execute [depth=0] sched_hangup(+12000 normal_clearing)
  1271. EXECUTE [depth=0] sofia/default/3001@10.100.17.104:5138 sched_hangup(+12000 normal_clearing)
  1272. 2021-12-17 08:46:35.136351 [DEBUG] switch_scheduler.c:252 Added task 1308 switch_ivr_schedule_hangup (48dd8ec5-59bb-4f74-9ac7-37c0aafd5343) to run at 1639735595
  1273. 2021-12-17 08:46:35.356366 [INFO] switch_rtp.c:7719 Auto Changing audio port from 10.100.17.104:10068 to 10.100.17.104:1024
  1274.