From working_case, 3 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2021-01-04 08:41:58.072256 [NOTICE] switch_core_state_machine.c:691 Hangup sofia/default/32101137253100@3.7.253.100 [CS_NEW] [WRONG_CALL_STATE]
  2. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:585 (sofia/default/32101137253100@3.7.253.100) Running State Change CS_HANGUP (Cur 1 Tot 33863)
  3. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:848 (sofia/default/32101137253100@3.7.253.100) Callstate Change DOWN -> HANGUP
  4. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:850 (sofia/default/32101137253100@3.7.253.100) State HANGUP
  5. 2021-01-04 08:41:58.072256 [DEBUG] mod_sofia.c:453 Channel sofia/default/32101137253100@3.7.253.100 hanging up, cause: WRONG_CALL_STATE
  6. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:60 sofia/default/32101137253100@3.7.253.100 Standard HANGUP, cause: WRONG_CALL_STATE
  7. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:850 (sofia/default/32101137253100@3.7.253.100) State HANGUP going to sleep
  8. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:620 (sofia/default/32101137253100@3.7.253.100) State Change CS_HANGUP -> CS_REPORTING
  9. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:585 (sofia/default/32101137253100@3.7.253.100) Running State Change CS_REPORTING (Cur 1 Tot 33863)
  10. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:936 (sofia/default/32101137253100@3.7.253.100) State REPORTING
  11. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:174 sofia/default/32101137253100@3.7.253.100 Standard REPORTING, cause: WRONG_CALL_STATE
  12. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:936 (sofia/default/32101137253100@3.7.253.100) State REPORTING going to sleep
  13. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:611 (sofia/default/32101137253100@3.7.253.100) State Change CS_REPORTING -> CS_DESTROY
  14. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_session.c:1726 Session 33863 (sofia/default/32101137253100@3.7.253.100) Locked, Waiting on external entities
  15. 2021-01-04 08:41:58.072256 [NOTICE] switch_core_session.c:1744 Session 33863 (sofia/default/32101137253100@3.7.253.100) Ended
  16. 2021-01-04 08:41:58.072256 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/32101137253100@3.7.253.100 [CS_DESTROY]
  17. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:739 (sofia/default/32101137253100@3.7.253.100) Running State Change CS_DESTROY (Cur 0 Tot 33863)
  18. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:749 (sofia/default/32101137253100@3.7.253.100) State DESTROY
  19. 2021-01-04 08:41:58.072256 [DEBUG] mod_sofia.c:364 sofia/default/32101137253100@3.7.253.100 SOFIA DESTROY
  20. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:181 sofia/default/32101137253100@3.7.253.100 Standard DESTROY
  21. 2021-01-04 08:41:58.072256 [DEBUG] switch_core_state_machine.c:749 (sofia/default/32101137253100@3.7.253.100) State DESTROY going to sleep
  22. 2021-01-04 08:41:58.532271 [NOTICE] switch_channel.c:1118 New Channel sofia/default/1001@3.7.253.100 [31b04374-104b-4e18-9ecf-2567b07ab793]
  23. 2021-01-04 08:41:58.532271 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1001@3.7.253.100) Running State Change CS_NEW (Cur 1 Tot 33864)
  24. 2021-01-04 08:41:58.532271 [DEBUG] sofia.c:10280 sofia/default/1001@3.7.253.100 receiving invite from 185.16.38.33:61732 version: 1.10.5 -release-17-25569c1631 64bit
  25. 2021-01-04 08:41:58.532271 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.16.38.33:0.
  26. 2021-01-04 08:41:58.532271 [DEBUG] sofia.c:2434 detaching session 31b04374-104b-4e18-9ecf-2567b07ab793
  27. 2021-01-04 08:41:58.532271 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [99901500006448303370@3.7.253.100] from ip 185.16.38.33
  28. 2021-01-04 08:41:58.532271 [DEBUG] switch_core_state_machine.c:604 (sofia/default/1001@3.7.253.100) State NEW
  29. 2021-01-04 08:41:58.652282 [DEBUG] sofia.c:2544 Re-attaching to session 31b04374-104b-4e18-9ecf-2567b07ab793
  30. 2021-01-04 08:41:58.672251 [DEBUG] sofia.c:10280 sofia/default/1001@3.7.253.100 receiving invite from 185.16.38.33:61732 version: 1.10.5 -release-17-25569c1631 64bit
  31. 2021-01-04 08:41:58.672251 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.16.38.33:0.
  32. 2021-01-04 08:41:58.672251 [WARNING] sofia_reg.c:2930 Can't find user [1001@3.7.253.100] from 185.16.38.33
  33. You must define a domain called '3.7.253.100' in your directory and add a user with the id="1001" attribute
  34. and you must configure your device to use the proper domain in its authentication credentials.
  35. 2021-01-04 08:41:58.672251 [NOTICE] sofia.c:2432 Hangup sofia/default/1001@3.7.253.100 [CS_NEW] [CALL_REJECTED]
  36. 2021-01-04 08:41:58.672251 [WARNING] sofia_reg.c:1739 SIP auth failure (INVITE) on sofia profile 'default' for [99901500006448303370@3.7.253.100] from ip 185.16.38.33
  37. 2021-01-04 08:41:58.672251 [DEBUG] sofia.c:1548 Channel is already hungup.
  38. 2021-01-04 08:41:58.672251 [DEBUG] sofia.c:1548 Channel is already hungup.
  39. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1001@3.7.253.100) Running State Change CS_HANGUP (Cur 1 Tot 33864)
  40. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:848 (sofia/default/1001@3.7.253.100) Callstate Change DOWN -> HANGUP
  41. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1001@3.7.253.100) State HANGUP
  42. 2021-01-04 08:41:58.672251 [DEBUG] mod_sofia.c:453 Channel sofia/default/1001@3.7.253.100 hanging up, cause: CALL_REJECTED
  43. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:60 sofia/default/1001@3.7.253.100 Standard HANGUP, cause: CALL_REJECTED
  44. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1001@3.7.253.100) State HANGUP going to sleep
  45. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:620 (sofia/default/1001@3.7.253.100) State Change CS_HANGUP -> CS_REPORTING
  46. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1001@3.7.253.100) Running State Change CS_REPORTING (Cur 1 Tot 33864)
  47. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1001@3.7.253.100) State REPORTING
  48. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:174 sofia/default/1001@3.7.253.100 Standard REPORTING, cause: CALL_REJECTED
  49. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1001@3.7.253.100) State REPORTING going to sleep
  50. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:611 (sofia/default/1001@3.7.253.100) State Change CS_REPORTING -> CS_DESTROY
  51. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_session.c:1726 Session 33864 (sofia/default/1001@3.7.253.100) Locked, Waiting on external entities
  52. 2021-01-04 08:41:58.672251 [NOTICE] switch_core_session.c:1744 Session 33864 (sofia/default/1001@3.7.253.100) Ended
  53. 2021-01-04 08:41:58.672251 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/1001@3.7.253.100 [CS_DESTROY]
  54. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:739 (sofia/default/1001@3.7.253.100) Running State Change CS_DESTROY (Cur 0 Tot 33864)
  55. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1001@3.7.253.100) State DESTROY
  56. 2021-01-04 08:41:58.672251 [DEBUG] mod_sofia.c:364 sofia/default/1001@3.7.253.100 SOFIA DESTROY
  57. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:181 sofia/default/1001@3.7.253.100 Standard DESTROY
  58. 2021-01-04 08:41:58.672251 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1001@3.7.253.100) State DESTROY going to sleep
  59. 2021-01-04 08:41:59.932272 [NOTICE] switch_channel.c:1118 New Channel sofia/default/393212118@13.127.159.248 [9dcb7e8b-2b35-41f3-8248-57465b621a85]
  60. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_NEW (Cur 1 Tot 33865)
  61. 2021-01-04 08:41:59.932272 [DEBUG] sofia.c:10280 sofia/default/393212118@13.127.159.248 receiving invite from 13.127.159.248:5060 version: 1.10.5 -release-17-25569c1631 64bit
  62. 2021-01-04 08:41:59.932272 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 13.127.159.248:0.
  63. 2021-01-04 08:41:59.932272 [DEBUG] sofia.c:10403 IP 13.127.159.248 Approved by acl "default[]". Access Granted.
  64. 2021-01-04 08:41:59.932272 [DEBUG] sofia.c:7326 Channel sofia/default/393212118@13.127.159.248 entering state [received][100]
  65. 2021-01-04 08:41:59.932272 [DEBUG] sofia.c:7336 Remote SDP:
  66. v=0
  67. o=FreeSWITCH 1609723659 1609723660 IN IP4 13.127.159.248
  68. s=FreeSWITCH
  69. c=IN IP4 13.127.159.248
  70. t=0 0
  71. m=audio 26060 RTP/AVP 8 101
  72. a=rtpmap:8 PCMA/8000
  73. a=rtpmap:101 telephone-event/8000
  74. a=fmtp:101 0-16
  75. a=ptime:20
  76.  
  77. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  78. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  79. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  80. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  81. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/393212118@13.127.159.248 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  82. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_codec.c:111 sofia/default/393212118@13.127.159.248 Original read codec set to PCMA:8
  83. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  84. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_media.c:5911 sofia/default/393212118@13.127.159.248 Set 2833 dtmf send payload to 101 recv payload to 101
  85. 2021-01-04 08:41:59.932272 [DEBUG] sofia.c:7760 (sofia/default/393212118@13.127.159.248) State Change CS_NEW -> CS_INIT
  86. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:604 (sofia/default/393212118@13.127.159.248) State NEW
  87. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_INIT (Cur 1 Tot 33865)
  88. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:628 (sofia/default/393212118@13.127.159.248) State INIT
  89. 2021-01-04 08:41:59.932272 [DEBUG] mod_sofia.c:93 sofia/default/393212118@13.127.159.248 SOFIA INIT
  90. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:40 sofia/default/393212118@13.127.159.248 Standard INIT
  91. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:48 (sofia/default/393212118@13.127.159.248) State Change CS_INIT -> CS_ROUTING
  92. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:628 (sofia/default/393212118@13.127.159.248) State INIT going to sleep
  93. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_ROUTING (Cur 1 Tot 33865)
  94. 2021-01-04 08:41:59.932272 [DEBUG] switch_channel.c:2332 (sofia/default/393212118@13.127.159.248) Callstate Change DOWN -> RINGING
  95. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:644 (sofia/default/393212118@13.127.159.248) State ROUTING
  96. 2021-01-04 08:41:59.932272 [DEBUG] mod_sofia.c:154 sofia/default/393212118@13.127.159.248 SOFIA ROUTING
  97. 2021-01-04 08:41:59.932272 [DEBUG] switch_core_state_machine.c:236 sofia/default/393212118@13.127.159.248 Standard ROUTING
  98. 2021-01-04 08:41:59.932272 [INFO] mod_dialplan_xml.c:637 Processing 4727985745 <393212118>->442342343234 in context default
  99. 2021-01-04 08:41:59.952251 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  100. 2021-01-04 08:41:59.952251 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  101. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0
  102. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 442342343234
  103. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '442342343234' limit 1
  104. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '442342343234' AND status=0 limit 1
  105. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '442342343234' and status=0 LIMIT 1
  106. 2021-01-04 08:41:59.972247 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] in custom Caller ID
  107. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 4727985745 / 393212118
  108. 2021-01-04 08:41:59.972247 [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 ="442342343234" LIMIT 1
  109. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound
  110. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("13.127.159.248") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "442342343234"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  111. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 4727985745]
  112. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =442342343234
  113. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4727985745" AND deleted = 0 limit 1
  114. 2021-01-04 08:41:59.972247 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [IS_CALL_INTERNATIONAL] Call (442342343234) marked as international call!!
  115. 2021-01-04 08:41:59.972247 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [IS_CALL_INTERNATIONAL] Call (442342343234) marked as international call!!
  116. 2021-01-04 08:41:59.972247 [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 ="442342343234" AND A.accountid = '2' limit 1
  117. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 442342343234
  118. 2021-01-04 08:41:59.972247 [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 ="442342343234" LIMIT 1
  119. 2021-01-04 08:41:59.972247 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : inbound
  120. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="442342343234" AND (accountid = 0 OR status = 1) LIMIT 1
  121. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound
  122. 2021-01-04 08:41:59.972247 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :2
  123. 2021-01-04 08:41:59.972247 [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 (patterns = '^442342343234.*' OR patterns = '^44234234323.*' OR patterns = '^4423423432.*' OR patterns = '^442342343.*' OR patterns = '^44234234.*' OR patterns = '^4423423.*' OR patterns = '^442342.*' OR patterns = '^44234.*' OR patterns = '^4423.*' OR patterns = '^442.*' OR patterns = '^44.*' OR patterns = '^4.*' OR patterns ='--') AND accountid = 2 ORDER BY LENGTH(PKGPTR.patterns) DESC
  124. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Package ID : 7
  125. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Product ID : 6
  126. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Package Type : 1 Call Direction : inbound [0:inbound,1:outbound,2:both]
  127. 2021-01-04 08:41:59.992253 [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 = '442342343234' OR number = '44234234323' OR number = '4423423432' OR number = '442342343' OR number = '44234234' OR number = '4423423' OR number = '442342' OR number = '44234' OR number = '4423' OR number = '442' OR number = '44' OR number = '4' OR number ='--') OR (number = '442342343234*' OR number = '44234234323*' OR number = '4423423432*' OR number = '442342343*' OR number = '44234234*' OR number = '4423423*' OR number = '442342*' OR number = '44234*' OR number = '4423*' OR number = '442*' OR number = '44*' OR number = '4*' OR number ='--') OR (number = '393212118' OR number = '39321211' OR number = '3932121' OR number = '393212' OR number = '39321' OR number = '3932' OR number = '393' OR number = '39' OR number = '3' OR number ='--') OR (number = '393212118*' OR number = '39321211*' OR number = '3932121*' OR number = '393212*' OR number = '39321*' OR number = '3932*' OR number = '393*' OR number = '39*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  128. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  129. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '442342343234' OR routing_prefix = '44234234323' OR routing_prefix = '4423423432' OR routing_prefix = '442342343' OR routing_prefix = '44234234' OR routing_prefix = '4423423' OR routing_prefix = '442342' OR routing_prefix = '44234' OR routing_prefix = '4423' OR routing_prefix = '442' OR routing_prefix = '44' OR routing_prefix = '4' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  130. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  131. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 2
  132. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 4727985745
  133. 2021-01-04 08:41:59.992253 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [IS_CALL_INTERNATIONAL] Call (442342343234) marked as international call!!
  134. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 0
  135. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  136. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  137. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  138. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  139. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  140. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound
  141. 2021-01-04 08:41:59.992253 [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 ="442342343234" LIMIT 1
  142. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: inbound
  143. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  144. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 2
  145. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  146. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  147. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.00000
  148. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : 442342343234
  149. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 200
  150. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 2
  151. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  152. 2021-01-04 08:41:59.992253 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [IS_CALL_INTERNATIONAL] Call (442342343234) marked as international call!!
  153. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your0 balance Accountid 2 !!!
  154. 2021-01-04 08:41:59.992253 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  155. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  156. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE
  157. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:1
  158. 2021-01-04 08:41:59.992253 [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 = 2 AND status=0 LIMIT 1
  159. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "2" AND deleted = 0 limit 1
  160. 2021-01-04 08:41:59.992253 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [IS_CALL_INTERNATIONAL] Call (442342343234) marked as international call!!
  161. 2021-01-04 08:41:59.992253 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [IS_CALL_INTERNATIONAL] Call (442342343234) marked as international call!!
  162. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML:2
  163. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Userinfo XML:2
  164. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML : 2
  165. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 2 limit 1
  166. 2021-01-04 08:41:59.992253 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindefault.mtpbx.astppbilling.org
  167. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  168. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_direction : inbound
  169. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 2 limit 1
  170. 2021-01-04 08:41:59.992253 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindefault.mtpbx.astppbilling.org
  171. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_10
  172. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2
  173. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_type : 10
  174. 2021-01-04 08:41:59.992253 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_type : IVR
  175. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_IVR_INFO] Query :SELECT * from pbx_ivr_specification WHERE id = 1 and status=0 LIMIT 1
  176. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '0' LIMIT 1
  177. 2021-01-04 08:41:59.992253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  178. <document type="freeswitch/xml">
  179. <section name="dialplan" description="ASTPP Dialplan">
  180. <context name="default">
  181. <extension name="442342343234">
  182. <condition field="destination_number" expression="442342343234">
  183. <action application="set" data="effective_destination_number=442342343234"/>
  184. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  185. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  186. <action application="set" data="callstart=2021-01-04 08:42:00"/>
  187. <action application="set" data="hangup_after_bridge=true"/>
  188. <action application="set" data="continue_on_fail=TRUE"/>
  189. <action application="set" data="account_id=2"/>
  190. <action application="set" data="parent_id=0"/>
  191. <action application="set" data="entity_id=0"/>
  192. <action application="set" data="call_processed=internal"/>
  193. <action application="set" data="call_direction=inbound"/>
  194. <action application="set" data="accountname=test"/>
  195. <action application="set" data="filename1=astpp.pbx.lua"/>
  196. <action application="set" data="origination_rates_did=ID:2|CODE:^442342343234.*|DESTINATION:442342343234|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2"/>
  197. <action application="set" data="origination_rates=0"/>
  198. <action application="set" data="original_caller_id_name=4727985745"/>
  199. <action application="set" data="original_caller_id_number=393212118"/>
  200. <action application="limit" data="db 4727985745 user_4727985745 1 !SWITCH_CONGESTION"/>
  201. <action application="set" data="effective_caller_id_name=4727985745"/>
  202. <action application="set" data="effective_caller_id_number=393212118"/>
  203. <action application="set" data="receiver_accid=2"/>
  204. <action application="export" data="domain_name=default.mtpbx.astppbilling.org"/>
  205. <action application="export" data="sip_to_host=default.mtpbx.astppbilling.org"/>
  206. <action application="export" data="presence_data=x|||default(4727985745)|||^442342343234.* // 442342343234 // 0.00000||||||DID|||13.127.159.248"/>
  207. <action application="export" data="call_type=10"/>
  208. <action application="set" data="did_calltype=10"/>
  209. <action application="set" data="did_extensions=1"/>
  210. <action application="export" data="is_recording=1"/>
  211. <action application="export" data="media_bug_answer_req=true"/>
  212. <action application="export" data="RECORD_STEREO=true"/>
  213. <action application="export" data="record_sample_rate=8000"/>
  214. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  215. <action application="set" data="ringback=0"/>
  216. <action application="set" data="module_name=pbx"/>
  217. <action application="set" data="sip_h_P-call_type=custom_forward"/>
  218. <action application="set" data="sip_h_P-Accountcode=2"/>
  219. <action application="set" data="variable_sip_to_host=default.mtpbx.astppbilling.org"/>
  220. <action application="set" data="userinfo_id=2"/>
  221. <action application="set" data="variable_sip_to_host=default.mtpbx.astppbilling.org"/>
  222. <action application="set" data="original_did_number=442342343234"/>
  223.     <action application="answer"/>
  224. <action application="ivr" data="test0"/>
  225. <action application="lua" data="astpp/lib/pbx/astpp-failover_ivr_destination.lua"/>
  226. </condition>
  227. </extension>
  228. </context>
  229. </section>
  230. </document>
  231. Dialplan: sofia/default/393212118@13.127.159.248 parsing [default->442342343234] continue=false
  232. Dialplan: sofia/default/393212118@13.127.159.248 Regex (PASS) [442342343234] destination_number(442342343234) =~ /442342343234/ break=on-false
  233. Dialplan: sofia/default/393212118@13.127.159.248 Action set(effective_destination_number=442342343234)
  234. Dialplan: sofia/default/393212118@13.127.159.248 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  235. Dialplan: sofia/default/393212118@13.127.159.248 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  236. Dialplan: sofia/default/393212118@13.127.159.248 Action set(callstart=2021-01-04 08:42:00)
  237. Dialplan: sofia/default/393212118@13.127.159.248 Action set(hangup_after_bridge=true)
  238. Dialplan: sofia/default/393212118@13.127.159.248 Action set(continue_on_fail=TRUE)
  239. Dialplan: sofia/default/393212118@13.127.159.248 Action set(account_id=2)
  240. Dialplan: sofia/default/393212118@13.127.159.248 Action set(parent_id=0)
  241. Dialplan: sofia/default/393212118@13.127.159.248 Action set(entity_id=0)
  242. Dialplan: sofia/default/393212118@13.127.159.248 Action set(call_processed=internal)
  243. Dialplan: sofia/default/393212118@13.127.159.248 Action set(call_direction=inbound)
  244. Dialplan: sofia/default/393212118@13.127.159.248 Action set(accountname=test)
  245. Dialplan: sofia/default/393212118@13.127.159.248 Action set(filename1=astpp.pbx.lua)
  246. Dialplan: sofia/default/393212118@13.127.159.248 Action set(origination_rates_did=ID:2|CODE:^442342343234.*|DESTINATION:442342343234|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2)
  247. Dialplan: sofia/default/393212118@13.127.159.248 Action set(origination_rates=0)
  248. Dialplan: sofia/default/393212118@13.127.159.248 Action set(original_caller_id_name=4727985745)
  249. Dialplan: sofia/default/393212118@13.127.159.248 Action set(original_caller_id_number=393212118)
  250. Dialplan: sofia/default/393212118@13.127.159.248 Action limit(db 4727985745 user_4727985745 1 !SWITCH_CONGESTION)
  251. Dialplan: sofia/default/393212118@13.127.159.248 Action set(effective_caller_id_name=4727985745)
  252. Dialplan: sofia/default/393212118@13.127.159.248 Action set(effective_caller_id_number=393212118)
  253. Dialplan: sofia/default/393212118@13.127.159.248 Action set(receiver_accid=2)
  254. Dialplan: sofia/default/393212118@13.127.159.248 Action export(domain_name=default.mtpbx.astppbilling.org)
  255. Dialplan: sofia/default/393212118@13.127.159.248 Action export(sip_to_host=default.mtpbx.astppbilling.org)
  256. Dialplan: sofia/default/393212118@13.127.159.248 Action export(presence_data=x|||default(4727985745)|||^442342343234.* // 442342343234 // 0.00000||||||DID|||13.127.159.248)
  257. Dialplan: sofia/default/393212118@13.127.159.248 Action export(call_type=10)
  258. Dialplan: sofia/default/393212118@13.127.159.248 Action set(did_calltype=10)
  259. Dialplan: sofia/default/393212118@13.127.159.248 Action set(did_extensions=1)
  260. Dialplan: sofia/default/393212118@13.127.159.248 Action export(is_recording=1)
  261. Dialplan: sofia/default/393212118@13.127.159.248 Action export(media_bug_answer_req=true)
  262. Dialplan: sofia/default/393212118@13.127.159.248 Action export(RECORD_STEREO=true)
  263. Dialplan: sofia/default/393212118@13.127.159.248 Action export(record_sample_rate=8000)
  264. Dialplan: sofia/default/393212118@13.127.159.248 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.wav)
  265. Dialplan: sofia/default/393212118@13.127.159.248 Action set(ringback=0)
  266. Dialplan: sofia/default/393212118@13.127.159.248 Action set(module_name=pbx)
  267. Dialplan: sofia/default/393212118@13.127.159.248 Action set(sip_h_P-call_type=custom_forward)
  268. Dialplan: sofia/default/393212118@13.127.159.248 Action set(sip_h_P-Accountcode=2)
  269. Dialplan: sofia/default/393212118@13.127.159.248 Action set(variable_sip_to_host=default.mtpbx.astppbilling.org)
  270. Dialplan: sofia/default/393212118@13.127.159.248 Action set(userinfo_id=2)
  271. Dialplan: sofia/default/393212118@13.127.159.248 Action set(variable_sip_to_host=default.mtpbx.astppbilling.org)
  272. Dialplan: sofia/default/393212118@13.127.159.248 Action set(original_did_number=442342343234)
  273. Dialplan: sofia/default/393212118@13.127.159.248 Action answer()
  274. Dialplan: sofia/default/393212118@13.127.159.248 Action ivr(test0)
  275. Dialplan: sofia/default/393212118@13.127.159.248 Action lua(astpp/lib/pbx/astpp-failover_ivr_destination.lua)
  276. 2021-01-04 08:42:00.012252 [DEBUG] switch_core_state_machine.c:287 (sofia/default/393212118@13.127.159.248) State Change CS_ROUTING -> CS_EXECUTE
  277. 2021-01-04 08:42:00.012252 [DEBUG] switch_core_state_machine.c:644 (sofia/default/393212118@13.127.159.248) State ROUTING going to sleep
  278. 2021-01-04 08:42:00.012252 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_EXECUTE (Cur 1 Tot 33865)
  279. 2021-01-04 08:42:00.012252 [DEBUG] switch_core_state_machine.c:651 (sofia/default/393212118@13.127.159.248) State EXECUTE
  280. 2021-01-04 08:42:00.012252 [DEBUG] mod_sofia.c:209 sofia/default/393212118@13.127.159.248 SOFIA EXECUTE
  281. 2021-01-04 08:42:00.012252 [DEBUG] switch_core_state_machine.c:329 sofia/default/393212118@13.127.159.248 Standard EXECUTE
  282. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(effective_destination_number=442342343234)
  283. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [effective_destination_number]=[442342343234]
  284. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(bridge_pre_execute_bleg_app=sched_hangup)
  285. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [bridge_pre_execute_bleg_app]=[sched_hangup]
  286. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  287. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  288. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(callstart=2021-01-04 08:42:00)
  289. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [callstart]=[2021-01-04 08:42:00]
  290. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(hangup_after_bridge=true)
  291. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [hangup_after_bridge]=[true]
  292. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(continue_on_fail=TRUE)
  293. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [continue_on_fail]=[TRUE]
  294. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(account_id=2)
  295. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [account_id]=[2]
  296. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(parent_id=0)
  297. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [parent_id]=[0]
  298. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(entity_id=0)
  299. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [entity_id]=[0]
  300. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(call_processed=internal)
  301. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [call_processed]=[internal]
  302. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(call_direction=inbound)
  303. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [call_direction]=[inbound]
  304. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(accountname=test)
  305. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [accountname]=[test]
  306. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(filename1=astpp.pbx.lua)
  307. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [filename1]=[astpp.pbx.lua]
  308. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(origination_rates_did=ID:2|CODE:^442342343234.*|DESTINATION:442342343234|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2)
  309. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [origination_rates_did]=[ID:2|CODE:^442342343234.*|DESTINATION:442342343234|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2]
  310. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(origination_rates=0)
  311. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [origination_rates]=[0]
  312. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(original_caller_id_name=4727985745)
  313. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [original_caller_id_name]=[4727985745]
  314. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(original_caller_id_number=393212118)
  315. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [original_caller_id_number]=[393212118]
  316. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 limit(db 4727985745 user_4727985745 1 !SWITCH_CONGESTION)
  317. 2021-01-04 08:42:00.012252 [DEBUG] switch_limit.c:124 incr called: 4727985745_user_4727985745 max:1, interval:0
  318. 2021-01-04 08:42:00.012252 [DEBUG] mod_db.c:194 Usage for 4727985745_user_4727985745 is now 1/1
  319. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(effective_caller_id_name=4727985745)
  320. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [effective_caller_id_name]=[4727985745]
  321. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(effective_caller_id_number=393212118)
  322. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [effective_caller_id_number]=[393212118]
  323. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(receiver_accid=2)
  324. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [receiver_accid]=[2]
  325. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(domain_name=default.mtpbx.astppbilling.org)
  326. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[default.mtpbx.astppbilling.org]
  327. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(sip_to_host=default.mtpbx.astppbilling.org)
  328. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[default.mtpbx.astppbilling.org]
  329. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(presence_data=x|||default(4727985745)|||^442342343234.* // 442342343234 // 0.00000||||||DID|||13.127.159.248)
  330. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||default(4727985745)|||^442342343234.* // 442342343234 // 0.00000||||||DID|||13.127.159.248]
  331. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(call_type=10)
  332. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[10]
  333. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(did_calltype=10)
  334. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [did_calltype]=[10]
  335. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(did_extensions=1)
  336. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [did_extensions]=[1]
  337. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(is_recording=1)
  338. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [is_recording]=[1]
  339. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(media_bug_answer_req=true)
  340. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [media_bug_answer_req]=[true]
  341. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(RECORD_STEREO=true)
  342. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [RECORD_STEREO]=[true]
  343. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(record_sample_rate=8000)
  344. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [record_sample_rate]=[8000]
  345. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav)
  346. 2021-01-04 08:42:00.012252 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav]
  347. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(ringback=0)
  348. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [ringback]=[0]
  349. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(module_name=pbx)
  350. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [module_name]=[pbx]
  351. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(sip_h_P-call_type=custom_forward)
  352. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [sip_h_P-call_type]=[custom_forward]
  353. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(sip_h_P-Accountcode=2)
  354. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [sip_h_P-Accountcode]=[2]
  355. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(variable_sip_to_host=default.mtpbx.astppbilling.org)
  356. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [variable_sip_to_host]=[default.mtpbx.astppbilling.org]
  357. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(userinfo_id=2)
  358. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [userinfo_id]=[2]
  359. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(variable_sip_to_host=default.mtpbx.astppbilling.org)
  360. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [variable_sip_to_host]=[default.mtpbx.astppbilling.org]
  361. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(original_did_number=442342343234)
  362. 2021-01-04 08:42:00.012252 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [original_did_number]=[442342343234]
  363. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 answer()
  364. 2021-01-04 08:42:00.012252 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/393212118@13.127.159.248] 172.31.13.192 port 31852 -> 13.127.159.248 port 26060 codec: 8 ms: 20
  365. 2021-01-04 08:42:00.012252 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  366. 2021-01-04 08:42:00.032249 [DEBUG] switch_core_media.c:8977 sofia/default/393212118@13.127.159.248 Set 2833 dtmf send payload to 101
  367. 2021-01-04 08:42:00.032249 [DEBUG] switch_core_media.c:8984 sofia/default/393212118@13.127.159.248 Set 2833 dtmf receive payload to 101
  368. 2021-01-04 08:42:00.032249 [DEBUG] switch_core_media.c:9007 sofia/default/393212118@13.127.159.248 Set rtp dtmf delay to 40
  369. 2021-01-04 08:42:00.032249 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/393212118@13.127.159.248:
  370. v=0
  371. o=FreeSWITCH 1609717868 1609717869 IN IP4 3.7.253.100
  372. s=FreeSWITCH
  373. c=IN IP4 3.7.253.100
  374. t=0 0
  375. m=audio 31852 RTP/AVP 8 101
  376. a=rtpmap:8 PCMA/8000
  377. a=rtpmap:101 telephone-event/8000
  378. a=fmtp:101 0-16
  379. a=ptime:20
  380. a=sendrecv
  381.  
  382. 2021-01-04 08:42:00.032249 [DEBUG] sofia.c:7326 Channel sofia/default/393212118@13.127.159.248 entering state [completed][200]
  383. 2021-01-04 08:42:00.032249 [NOTICE] mod_dptools.c:1406 Channel [sofia/default/393212118@13.127.159.248] has been answered
  384. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 record_session(/var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav)
  385. 2021-01-04 08:42:00.032249 [DEBUG] switch_ivr_async.c:1351 Record session sample rate: 8000 -> 8000
  386. 2021-01-04 08:42:00.032249 [DEBUG] switch_core_media_bug.c:970 Attaching BUG to sofia/default/393212118@13.127.159.248
  387. 2021-01-04 08:42:00.032249 [DEBUG] sofia.c:7326 Channel sofia/default/393212118@13.127.159.248 entering state [ready][200]
  388. 2021-01-04 08:42:00.032249 [DEBUG] switch_channel.c:3865 (sofia/default/393212118@13.127.159.248) Callstate Change RINGING -> ACTIVE
  389. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 ivr(test0)
  390. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-exit'
  391. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-sub'
  392. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-exec-app'
  393. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-play-sound'
  394. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-back'
  395. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-top'
  396. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:883 building menu 'test0'
  397. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '1'
  398. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '2'
  399. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '/^(\d{2,20})$/'
  400. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_menu.c:486 Executing IVR menu test0
  401. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_play_say.c:1488 Codec Activated L16@8000hz 1 channels 20ms
  402. 2021-01-04 08:42:00.052250 [DEBUG] switch_ivr_async.c:1640 No silence detection configured; assuming start of speech
  403. 2021-01-04 08:42:00.312273 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  404. 2021-01-04 08:42:00.312273 [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMA:8
  405. 2021-01-04 08:42:02.572301 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF 1:960
  406. 2021-01-04 08:42:02.572301 [INFO] switch_channel.c:522 RECV DTMF 1:960
  407. 2021-01-04 08:42:02.572301 [DEBUG] switch_ivr_play_say.c:1933 done playing file /var/www/html/astpp/upload/pbx/IVR_AUDIO_040121073835.wav
  408. 2021-01-04 08:42:02.572301 [DEBUG] switch_ivr_menu.c:378 waiting for 19/20 digits t/o 2000
  409. 2021-01-04 08:42:04.572324 [DEBUG] switch_ivr_menu.c:425 digits '1'
  410. 2021-01-04 08:42:04.572324 [DEBUG] switch_ivr_menu.c:580 IVR action on menu 'test0' matched '1' param 'transfer 4727985745 XML ${domain_name}'
  411. 2021-01-04 08:42:04.572324 [DEBUG] switch_ivr_menu.c:584 switch_ivr_menu_execute todo=[2]
  412. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 transfer(4727985745 XML default.mtpbx.astppbilling.org)
  413. 2021-01-04 08:42:04.572324 [DEBUG] switch_ivr.c:2243 (sofia/default/393212118@13.127.159.248) State Change CS_EXECUTE -> CS_ROUTING
  414. 2021-01-04 08:42:04.572324 [NOTICE] switch_ivr.c:2250 Transfer sofia/default/393212118@13.127.159.248 to XML[4727985745@default.mtpbx.astppbilling.org]
  415. 2021-01-04 08:42:04.572324 [DEBUG] switch_ivr_menu.c:562 action regex [1] [/^(\d{2,20})$/] [0]
  416. 2021-01-04 08:42:04.572324 [DEBUG] switch_ivr_menu.c:676 exit-sound '(null)'
  417. 2021-01-04 08:42:04.572324 [DEBUG] switch_core_state_machine.c:651 (sofia/default/393212118@13.127.159.248) State EXECUTE going to sleep
  418. 2021-01-04 08:42:04.572324 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_ROUTING (Cur 1 Tot 33865)
  419. 2021-01-04 08:42:04.572324 [DEBUG] switch_channel.c:2332 (sofia/default/393212118@13.127.159.248) Callstate Change ACTIVE -> RINGING
  420. 2021-01-04 08:42:04.572324 [DEBUG] switch_core_state_machine.c:644 (sofia/default/393212118@13.127.159.248) State ROUTING
  421. 2021-01-04 08:42:04.572324 [DEBUG] mod_sofia.c:154 sofia/default/393212118@13.127.159.248 SOFIA ROUTING
  422. 2021-01-04 08:42:04.572324 [DEBUG] switch_core_state_machine.c:236 sofia/default/393212118@13.127.159.248 Standard ROUTING
  423. 2021-01-04 08:42:04.572324 [INFO] mod_dialplan_xml.c:637 Processing 4727985745 <393212118>->4727985745 in context default.mtpbx.astppbilling.org
  424. 2021-01-04 08:42:04.612253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  425. 2021-01-04 08:42:04.612253 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  426. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0
  427. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 4727985745
  428. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '4727985745' limit 1
  429. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '4727985745' AND status=0 limit 1
  430. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '4727985745' and status=0 LIMIT 1
  431. 2021-01-04 08:42:04.632252 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] in custom Caller ID
  432. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 4727985745 / 393212118
  433. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 2 limit 1
  434. 2021-01-04 08:42:04.632252 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindefault.mtpbx.astppbilling.org
  435. 2021-01-04 08:42:04.632252 [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 ="4727985745" LIMIT 1
  436. 2021-01-04 08:42:04.632252 [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="4727985745"  AND domains.domain="default.mtpbx.astppbilling.org" limit 1
  437. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  438. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 2]
  439. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =4727985745
  440. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "2" AND deleted = 0 limit 1
  441. 2021-01-04 08:42:04.632252 [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 ="4727985745" AND A.accountid = '2' limit 1
  442. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 4727985745
  443. 2021-01-04 08:42:04.632252 [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 ="4727985745" LIMIT 1
  444. 2021-01-04 08:42:04.632252 [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="4727985745"  AND domains.domain="default.mtpbx.astppbilling.org" limit 1
  445. 2021-01-04 08:42:04.632252 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : local
  446. 2021-01-04 08:42:04.632252 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="4727985745" AND (accountid = 0 OR status = 1) LIMIT 1
  447. 2021-01-04 08:42:04.632252 [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 (patterns = '^4727985745.*' OR patterns = '^472798574.*' OR patterns = '^47279857.*' OR patterns = '^4727985.*' OR patterns = '^472798.*' OR patterns = '^47279.*' OR patterns = '^4727.*' OR patterns = '^472.*' OR patterns = '^47.*' OR patterns = '^4.*' OR patterns ='--') AND accountid = 2 ORDER BY LENGTH(PKGPTR.patterns) DESC
  448. 2021-01-04 08:42:04.652250 [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 = '4727985745' OR number = '472798574' OR number = '47279857' OR number = '4727985' OR number = '472798' OR number = '47279' OR number = '4727' OR number = '472' OR number = '47' OR number = '4' OR number ='--') OR (number = '4727985745*' OR number = '472798574*' OR number = '47279857*' OR number = '4727985*' OR number = '472798*' OR number = '47279*' OR number = '4727*' OR number = '472*' OR number = '47*' OR number = '4*' OR number ='--') OR (number = '393212118' OR number = '39321211' OR number = '3932121' OR number = '393212' OR number = '39321' OR number = '3932' OR number = '393' OR number = '39' OR number = '3' OR number ='--') OR (number = '393212118*' OR number = '39321211*' OR number = '3932121*' OR number = '393212*' OR number = '39321*' OR number = '3932*' OR number = '393*' OR number = '39*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  449. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  450. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '4727985745' OR routing_prefix = '472798574' OR routing_prefix = '47279857' OR routing_prefix = '4727985' OR routing_prefix = '472798' OR routing_prefix = '47279' OR routing_prefix = '4727' OR routing_prefix = '472' OR routing_prefix = '47' OR routing_prefix = '4' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  451. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  452. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 2
  453. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 4727985745
  454. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 65.5
  455. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  456. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  457. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  458. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  459. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  460. 2021-01-04 08:42:04.652250 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] free_inbound!!!1
  461. 2021-01-04 08:42:04.652250 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] charge_per_min!!!1
  462. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your65.5 balance Accountid 2 !!!
  463. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 65.5 minutes
  464. 2021-01-04 08:42:04.652250 [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="4727985745"  AND domains.domain="default.mtpbx.astppbilling.org" limit 1
  465. 2021-01-04 08:42:04.652250 [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 = 2 AND status=0 LIMIT 1
  466. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 65.5
  467. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_direction : local
  468. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 2 limit 1
  469. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1 limit 1
  470. 2021-01-04 08:42:04.652250 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindefault.mtpbx.astppbilling.org
  471. 2021-01-04 08:42:04.652250 [WARNING] switch_cpp.cpp:1447 [ASTPP] [LOCAL CALL] is_recording1
  472. 2021-01-04 08:42:04.652250 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FSXMLLOCAL] Caller ID Translation Starts
  473. 2021-01-04 08:42:04.652250 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FSXMLLOCAL] Caller ID Translation Ends
  474. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  475. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 1
  476. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1 limit 1
  477. 2021-01-04 08:42:04.652250 [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
  478. 2021-01-04 08:42:04.652250 [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
  479. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] call_forwarding_flag : 1
  480. 2021-01-04 08:42:04.652250 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP Call forwarding Disable
  481. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  482. 2021-01-04 08:42:04.652250 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  483. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  484. <document type="freeswitch/xml">
  485. <section name="dialplan" description="ASTPP Dialplan">
  486. <context name="default.mtpbx.astppbilling.org">
  487. <extension name="4727985745">
  488. <condition field="destination_number" expression="4727985745">
  489. <action application="set" data="effective_destination_number=4727985745"/>
  490. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  491. <action application="set" data="bridge_pre_execute_bleg_data=+3930 normal_clearing"/>
  492. <action application="set" data="callstart=2021-01-04 08:42:04"/>
  493. <action application="set" data="hangup_after_bridge=true"/>
  494. <action application="set" data="continue_on_fail=TRUE"/>
  495. <action application="set" data="account_id=2"/>
  496. <action application="set" data="parent_id=0"/>
  497. <action application="set" data="entity_id=0"/>
  498. <action application="set" data="call_processed=internal"/>
  499. <action application="set" data="call_direction=local"/>
  500. <action application="set" data="accountname=default"/>
  501. <action application="set" data="filename1=astpp.pbx.lua"/>
  502. <action application="set" data="origination_rates=ID:0|CODE:^4727985745.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:1|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:2"/>
  503. <action application="set" data="original_caller_id_name=4727985745"/>
  504. <action application="set" data="original_caller_id_number=393212118"/>
  505. <action application="limit" data="db 2 user_2 1 !SWITCH_CONGESTION"/>
  506. <action application="limit" data="hash inbound 4727985745 1 !USER_BUSY" />
  507. <action application="set" data="effective_caller_id_name=4727985745"/>
  508. <action application="set" data="effective_caller_id_number=393212118"/>
  509. <action application="set" data="calltype=LOCAL"/>
  510. <action application="set" data="receiver_accid=2"/>
  511. <action application="db" data="insert/pickup_any_group_${callgroup}/4727985745/${uuid}"/>
  512. <action application="set" data="dialed_extension=transfer_call"/>
  513. <action application="export" data="dialed_extension=transfer_call"/>
  514. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  515. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  516. <action application="set" data="hangup_after_bridge=true"/>
  517. <action application="bridge" data="{sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=2}[leg_timeout=60 ] user/4727985745@default.mtpbx.astppbilling.org"/>
  518. <action application="set" data="on_busy_flag=1"/>
  519. <action application="set" data="on_busy_destination="/>
  520. <action application="set" data="no_answer_flag=1"/>
  521. <action application="set" data="no_answer_destination="/>
  522. <action application="set" data="not_register_flag=1"/>
  523. <action application="set" data="not_register_destination="/>
  524. <action application="set" data="opensips_flag=1"/>
  525. <action application="set" data="variable_sip_to_host=default.mtpbx.astppbilling.org"/>
  526. <action application="set" data="opensips_domain=127.0.0.1"/>
  527. <action application="set" data="leg_timeout=60"/>
  528. <action application="set" data="userinfo_id=2"/>
  529. <action application="set" data="sip_destination_number=4727985745"/>
  530. <action application="set" data="did_number=4727985745"/>
  531. <action application="set" data="user_domain=default.mtpbx.astppbilling.org"/>
  532. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  533. <condition field="${cond(${user_data 4727985745@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  534. <action application="answer"/>
  535. <action application="export" data="voicemail_alternate_greet_id=4727985745"/>
  536. <action application="voicemail" data="default $${domain_name} 4727985745"/>
  537. <anti-action application="hangup" data="${originate_disposition}"/>
  538. </condition>
  539. </condition>
  540. </extension>
  541. </context>
  542. </section>
  543. </document>
  544. Dialplan: sofia/default/393212118@13.127.159.248 parsing [default.mtpbx.astppbilling.org->4727985745] continue=false
  545. Dialplan: sofia/default/393212118@13.127.159.248 Regex (PASS) [4727985745] destination_number(4727985745) =~ /4727985745/ break=on-false
  546. Dialplan: sofia/default/393212118@13.127.159.248 Action set(effective_destination_number=4727985745)
  547. Dialplan: sofia/default/393212118@13.127.159.248 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  548. Dialplan: sofia/default/393212118@13.127.159.248 Action set(bridge_pre_execute_bleg_data=+3930 normal_clearing)
  549. Dialplan: sofia/default/393212118@13.127.159.248 Action set(callstart=2021-01-04 08:42:04)
  550. Dialplan: sofia/default/393212118@13.127.159.248 Action set(hangup_after_bridge=true)
  551. Dialplan: sofia/default/393212118@13.127.159.248 Action set(continue_on_fail=TRUE)
  552. Dialplan: sofia/default/393212118@13.127.159.248 Action set(account_id=2)
  553. Dialplan: sofia/default/393212118@13.127.159.248 Action set(parent_id=0)
  554. Dialplan: sofia/default/393212118@13.127.159.248 Action set(entity_id=0)
  555. Dialplan: sofia/default/393212118@13.127.159.248 Action set(call_processed=internal)
  556. Dialplan: sofia/default/393212118@13.127.159.248 Action set(call_direction=local)
  557. Dialplan: sofia/default/393212118@13.127.159.248 Action set(accountname=default)
  558. Dialplan: sofia/default/393212118@13.127.159.248 Action set(filename1=astpp.pbx.lua)
  559. Dialplan: sofia/default/393212118@13.127.159.248 Action set(origination_rates=ID:0|CODE:^4727985745.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:1|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:2)
  560. Dialplan: sofia/default/393212118@13.127.159.248 Action set(original_caller_id_name=4727985745)
  561. Dialplan: sofia/default/393212118@13.127.159.248 Action set(original_caller_id_number=393212118)
  562. Dialplan: sofia/default/393212118@13.127.159.248 Action limit(db 2 user_2 1 !SWITCH_CONGESTION)
  563. Dialplan: sofia/default/393212118@13.127.159.248 Action limit(hash inbound 4727985745 1 !USER_BUSY)
  564. Dialplan: sofia/default/393212118@13.127.159.248 Action set(effective_caller_id_name=4727985745)
  565. Dialplan: sofia/default/393212118@13.127.159.248 Action set(effective_caller_id_number=393212118)
  566. Dialplan: sofia/default/393212118@13.127.159.248 Action set(calltype=LOCAL)
  567. Dialplan: sofia/default/393212118@13.127.159.248 Action set(receiver_accid=2)
  568. Dialplan: sofia/default/393212118@13.127.159.248 Action db(insert/pickup_any_group_${callgroup}/4727985745/${uuid})
  569. Dialplan: sofia/default/393212118@13.127.159.248 Action set(dialed_extension=transfer_call)
  570. Dialplan: sofia/default/393212118@13.127.159.248 Action export(dialed_extension=transfer_call)
  571. Dialplan: sofia/default/393212118@13.127.159.248 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  572. Dialplan: sofia/default/393212118@13.127.159.248 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  573. Dialplan: sofia/default/393212118@13.127.159.248 Action set(hangup_after_bridge=true)
  574. Dialplan: sofia/default/393212118@13.127.159.248 Action bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=2}[leg_timeout=60 ] user/4727985745@default.mtpbx.astppbilling.org)
  575. Dialplan: sofia/default/393212118@13.127.159.248 Action set(on_busy_flag=1)
  576. Dialplan: sofia/default/393212118@13.127.159.248 Action set(on_busy_destination=)
  577. Dialplan: sofia/default/393212118@13.127.159.248 Action set(no_answer_flag=1)
  578. Dialplan: sofia/default/393212118@13.127.159.248 Action set(no_answer_destination=)
  579. Dialplan: sofia/default/393212118@13.127.159.248 Action set(not_register_flag=1)
  580. Dialplan: sofia/default/393212118@13.127.159.248 Action set(not_register_destination=)
  581. Dialplan: sofia/default/393212118@13.127.159.248 Action set(opensips_flag=1)
  582. Dialplan: sofia/default/393212118@13.127.159.248 Action set(variable_sip_to_host=default.mtpbx.astppbilling.org)
  583. Dialplan: sofia/default/393212118@13.127.159.248 Action set(opensips_domain=127.0.0.1)
  584. Dialplan: sofia/default/393212118@13.127.159.248 Action set(leg_timeout=60)
  585. Dialplan: sofia/default/393212118@13.127.159.248 Action set(userinfo_id=2)
  586. Dialplan: sofia/default/393212118@13.127.159.248 Action set(sip_destination_number=4727985745)
  587. Dialplan: sofia/default/393212118@13.127.159.248 Action set(did_number=4727985745)
  588. Dialplan: sofia/default/393212118@13.127.159.248 Action set(user_domain=default.mtpbx.astppbilling.org)
  589. Dialplan: sofia/default/393212118@13.127.159.248 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  590. |--- Dialplan: Processing recursive conditions level:1 [4727985745_recur_1] require-nested=TRUE
  591. |--- Dialplan: sofia/default/393212118@13.127.159.248 Regex (FAIL) [4727985745_recur_1] ${cond(${user_data 4727985745@${domain_name} param vm-enabled} == true ? YES : NO)}(NO) =~ /^YES$/ break=on-false
  592. |--- Dialplan: sofia/default/393212118@13.127.159.248 ANTI-Action hangup(${originate_disposition})
  593. 2021-01-04 08:42:04.712246 [DEBUG] switch_core_state_machine.c:287 (sofia/default/393212118@13.127.159.248) State Change CS_ROUTING -> CS_EXECUTE
  594. 2021-01-04 08:42:04.712246 [DEBUG] switch_core_state_machine.c:644 (sofia/default/393212118@13.127.159.248) State ROUTING going to sleep
  595. 2021-01-04 08:42:04.712246 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_EXECUTE (Cur 1 Tot 33865)
  596. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:2334 (sofia/default/393212118@13.127.159.248) Callstate Change RINGING -> ACTIVE
  597. 2021-01-04 08:42:04.712246 [DEBUG] switch_core_state_machine.c:651 (sofia/default/393212118@13.127.159.248) State EXECUTE
  598. 2021-01-04 08:42:04.712246 [DEBUG] mod_sofia.c:209 sofia/default/393212118@13.127.159.248 SOFIA EXECUTE
  599. 2021-01-04 08:42:04.712246 [DEBUG] switch_core_state_machine.c:329 sofia/default/393212118@13.127.159.248 Standard EXECUTE
  600. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(effective_destination_number=4727985745)
  601. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [effective_destination_number]=[4727985745]
  602. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(bridge_pre_execute_bleg_app=sched_hangup)
  603. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [bridge_pre_execute_bleg_app]=[sched_hangup]
  604. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(bridge_pre_execute_bleg_data=+3930 normal_clearing)
  605. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [bridge_pre_execute_bleg_data]=[+3930 normal_clearing]
  606. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(callstart=2021-01-04 08:42:04)
  607. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [callstart]=[2021-01-04 08:42:04]
  608. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(hangup_after_bridge=true)
  609. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [hangup_after_bridge]=[true]
  610. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(continue_on_fail=TRUE)
  611. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [continue_on_fail]=[TRUE]
  612. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(account_id=2)
  613. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [account_id]=[2]
  614. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(parent_id=0)
  615. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [parent_id]=[0]
  616. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(entity_id=0)
  617. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [entity_id]=[0]
  618. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(call_processed=internal)
  619. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [call_processed]=[internal]
  620. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(call_direction=local)
  621. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [call_direction]=[local]
  622. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(accountname=default)
  623. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [accountname]=[default]
  624. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(filename1=astpp.pbx.lua)
  625. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [filename1]=[astpp.pbx.lua]
  626. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(origination_rates=ID:0|CODE:^4727985745.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:1|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:2)
  627. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [origination_rates]=[ID:0|CODE:^4727985745.*|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|CT:0|COST:1|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|CI:0|ACCID:2]
  628. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(original_caller_id_name=4727985745)
  629. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [original_caller_id_name]=[4727985745]
  630. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(original_caller_id_number=393212118)
  631. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [original_caller_id_number]=[393212118]
  632. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 limit(db 2 user_2 1 !SWITCH_CONGESTION)
  633. 2021-01-04 08:42:04.712246 [DEBUG] switch_limit.c:124 incr called: 2_user_2 max:1, interval:0
  634. 2021-01-04 08:42:04.712246 [DEBUG] mod_db.c:194 Usage for 2_user_2 is now 1/1
  635. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 limit(hash inbound 4727985745 1 !USER_BUSY)
  636. 2021-01-04 08:42:04.712246 [DEBUG] switch_limit.c:124 incr called: inbound_4727985745 max:1, interval:0
  637. 2021-01-04 08:42:04.712246 [DEBUG] mod_hash.c:196 Usage for inbound_4727985745 is now 1/1
  638. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(effective_caller_id_name=4727985745)
  639. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [effective_caller_id_name]=[4727985745]
  640. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(effective_caller_id_number=393212118)
  641. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [effective_caller_id_number]=[393212118]
  642. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(calltype=LOCAL)
  643. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [calltype]=[LOCAL]
  644. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(receiver_accid=2)
  645. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [receiver_accid]=[2]
  646. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 db(insert/pickup_any_group_/4727985745/9dcb7e8b-2b35-41f3-8248-57465b621a85)
  647. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(dialed_extension=transfer_call)
  648. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [dialed_extension]=[transfer_call]
  649. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 export(dialed_extension=transfer_call)
  650. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  651. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  652. 2021-01-04 08:42:04.712246 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  653. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  654. 2021-01-04 08:42:04.712246 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  655. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 set(hangup_after_bridge=true)
  656. 2021-01-04 08:42:04.712246 [DEBUG] mod_dptools.c:1672 SET sofia/default/393212118@13.127.159.248 [hangup_after_bridge]=[true]
  657. EXECUTE [depth=0] sofia/default/393212118@13.127.159.248 bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=2}[leg_timeout=60 ] user/4727985745@default.mtpbx.astppbilling.org)
  658. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1906 (sofia/default/393212118@13.127.159.248) Callstate Change ACTIVE -> RING_WAIT
  659. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [domain_name]=[default.mtpbx.astppbilling.org] to event
  660. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [sip_to_host]=[default.mtpbx.astppbilling.org] to event
  661. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [presence_data]=[x|||default(4727985745)|||^442342343234.* // 442342343234 // 0.00000||||||DID|||13.127.159.248] to event
  662. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [call_type]=[10] to event
  663. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [is_recording]=[1] to event
  664. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  665. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event
  666. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  667. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav] to event
  668. 2021-01-04 08:42:04.712246 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  669. 2021-01-04 08:42:04.712246 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  670. 2021-01-04 08:42:04.712246 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  671. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [domain_name]=[default.mtpbx.astppbilling.org] to event
  672. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [sip_to_host]=[default.mtpbx.astppbilling.org] to event
  673. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [presence_data]=[x|||default(4727985745)|||^442342343234.* // 442342343234 // 0.00000||||||DID|||13.127.159.248] to event
  674. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [call_type]=[10] to event
  675. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [is_recording]=[1] to event
  676. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  677. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event
  678. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  679. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav] to event
  680. 2021-01-04 08:42:04.732249 [DEBUG] switch_channel.c:1264 sofia/default/393212118@13.127.159.248 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  681. 2021-01-04 08:42:04.732249 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  682. 2021-01-04 08:42:04.732249 [NOTICE] switch_channel.c:1118 New Channel sofia/default/4727985745@117.247.91.162:47162 [71d2d84e-5c23-48a5-815c-ea2c75e067cd]
  683. 2021-01-04 08:42:04.732249 [DEBUG] mod_sofia.c:5089 (sofia/default/4727985745@117.247.91.162:47162) State Change CS_NEW -> CS_INIT
  684. 2021-01-04 08:42:04.732249 [DEBUG] switch_ivr_originate.c:3111 sofia/default/4727985745@117.247.91.162:47162 Setting leg timeout to 60
  685. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_INIT (Cur 2 Tot 33866)
  686. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:628 (sofia/default/4727985745@117.247.91.162:47162) State INIT
  687. 2021-01-04 08:42:04.732249 [DEBUG] mod_sofia.c:93 sofia/default/4727985745@117.247.91.162:47162 SOFIA INIT
  688. 2021-01-04 08:42:04.732249 [DEBUG] sofia_glue.c:1587 sip:4727985745@117.247.91.162:34152;rinstance=441fb32f9922b1fb;transport=TCP Setting proxy route to sofia/default/4727985745@117.247.91.162:47162
  689. 2021-01-04 08:42:04.732249 [DEBUG] sofia_glue.c:1618 sofia/default/4727985745@117.247.91.162:47162 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  690. Local SDP:
  691. v=0
  692. o=FreeSWITCH 1609726642 1609726643 IN IP4 3.7.253.100
  693. s=FreeSWITCH
  694. c=IN IP4 3.7.253.100
  695. t=0 0
  696. m=audio 23082 RTP/AVP 8 101
  697. a=rtpmap:8 PCMA/8000
  698. a=rtpmap:101 telephone-event/8000
  699. a=fmtp:101 0-16
  700. a=ptime:20
  701. a=sendrecv
  702.  
  703. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:40 sofia/default/4727985745@117.247.91.162:47162 Standard INIT
  704. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4727985745@117.247.91.162:47162) State Change CS_INIT -> CS_ROUTING
  705. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:628 (sofia/default/4727985745@117.247.91.162:47162) State INIT going to sleep
  706. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_ROUTING (Cur 2 Tot 33866)
  707. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:644 (sofia/default/4727985745@117.247.91.162:47162) State ROUTING
  708. 2021-01-04 08:42:04.732249 [DEBUG] mod_sofia.c:154 sofia/default/4727985745@117.247.91.162:47162 SOFIA ROUTING
  709. 2021-01-04 08:42:04.732249 [DEBUG] switch_ivr_originate.c:67 (sofia/default/4727985745@117.247.91.162:47162) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  710. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:644 (sofia/default/4727985745@117.247.91.162:47162) State ROUTING going to sleep
  711. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 33866)
  712. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:663 (sofia/default/4727985745@117.247.91.162:47162) State CONSUME_MEDIA
  713. 2021-01-04 08:42:04.732249 [DEBUG] switch_core_state_machine.c:663 (sofia/default/4727985745@117.247.91.162:47162) State CONSUME_MEDIA going to sleep
  714. 2021-01-04 08:42:04.732249 [DEBUG] sofia.c:7326 Channel sofia/default/4727985745@117.247.91.162:47162 entering state [calling][0]
  715. 2021-01-04 08:42:05.832266 [DEBUG] sofia.c:7326 Channel sofia/default/4727985745@117.247.91.162:47162 entering state [proceeding][180]
  716. 2021-01-04 08:42:05.832266 [NOTICE] sofia.c:7437 Ring-Ready sofia/default/4727985745@117.247.91.162:47162!
  717. 2021-01-04 08:42:05.832266 [DEBUG] switch_channel.c:3437 (sofia/default/4727985745@117.247.91.162:47162) Callstate Change DOWN -> RINGING
  718. 2021-01-04 08:42:05.852252 [DEBUG] switch_ivr_originate.c:1333 Raw Codec Activation Success L16@8000hz 1 channel 20ms
  719. 2021-01-04 08:42:05.852252 [DEBUG] switch_core_codec.c:223 sofia/default/393212118@13.127.159.248 Push codec L16:100
  720. 2021-01-04 08:42:05.872257 [DEBUG] switch_ivr_originate.c:1407 Play Ringback Tone [0]
  721. 2021-01-04 08:42:07.612224 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [998@3.7.253.100] from ip 185.163.46.149
  722. 2021-01-04 08:42:07.772267 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [1748@3.7.253.100] from ip 185.163.46.149
  723. 2021-01-04 08:42:07.852272 [WARNING] sofia_reg.c:2930 Can't find user [998@3.7.253.100] from 185.163.46.149
  724. You must define a domain called '3.7.253.100' in your directory and add a user with the id="998" attribute
  725. and you must configure your device to use the proper domain in its authentication credentials.
  726. 2021-01-04 08:42:07.852272 [WARNING] sofia_reg.c:1739 SIP auth failure (REGISTER) on sofia profile 'default' for [998@3.7.253.100] from ip 185.163.46.149
  727. 2021-01-04 08:42:07.992268 [WARNING] sofia_reg.c:2930 Can't find user [1748@3.7.253.100] from 185.163.46.149
  728. You must define a domain called '3.7.253.100' in your directory and add a user with the id="1748" attribute
  729. and you must configure your device to use the proper domain in its authentication credentials.
  730. 2021-01-04 08:42:07.992268 [WARNING] sofia_reg.c:1739 SIP auth failure (REGISTER) on sofia profile 'default' for [1748@3.7.253.100] from ip 185.163.46.149
  731. 2021-01-04 08:42:08.032272 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [4747@3.7.253.100] from ip 185.163.46.149
  732. 2021-01-04 08:42:08.272274 [WARNING] sofia_reg.c:2930 Can't find user [4747@3.7.253.100] from 185.163.46.149
  733. You must define a domain called '3.7.253.100' in your directory and add a user with the id="4747" attribute
  734. and you must configure your device to use the proper domain in its authentication credentials.
  735. 2021-01-04 08:42:08.272274 [WARNING] sofia_reg.c:1739 SIP auth failure (REGISTER) on sofia profile 'default' for [4747@3.7.253.100] from ip 185.163.46.149
  736. 2021-01-04 08:42:08.772269 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [3997@3.7.253.100] from ip 185.163.46.149
  737. 2021-01-04 08:42:09.012364 [WARNING] sofia_reg.c:2930 Can't find user [3997@3.7.253.100] from 185.163.46.149
  738. You must define a domain called '3.7.253.100' in your directory and add a user with the id="3997" attribute
  739. and you must configure your device to use the proper domain in its authentication credentials.
  740. 2021-01-04 08:42:09.012364 [WARNING] sofia_reg.c:1739 SIP auth failure (REGISTER) on sofia profile 'default' for [3997@3.7.253.100] from ip 185.163.46.149
  741. 2021-01-04 08:42:10.552251 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [5547@3.7.253.100] from ip 45.82.223.34
  742. 2021-01-04 08:42:10.712249 [WARNING] sofia_reg.c:2930 Can't find user [5547@3.7.253.100] from 45.82.223.34
  743. You must define a domain called '3.7.253.100' in your directory and add a user with the id="5547" attribute
  744. and you must configure your device to use the proper domain in its authentication credentials.
  745. 2021-01-04 08:42:10.712249 [WARNING] sofia_reg.c:1739 SIP auth failure (REGISTER) on sofia profile 'default' for [5547@3.7.253.100] from ip 45.82.223.34
  746. 2021-01-04 08:42:10.952269 [DEBUG] sofia.c:7326 Channel sofia/default/4727985745@117.247.91.162:47162 entering state [completing][200]
  747. 2021-01-04 08:42:10.952269 [DEBUG] sofia.c:7336 Remote SDP:
  748. v=0
  749. o=Z 0 3 IN IP4 117.247.91.162
  750. s=Z
  751. c=IN IP4 117.247.91.162
  752. t=0 0
  753. m=audio 8002 RTP/AVP 8 3 110 0 98 101
  754. a=rtpmap:110 speex/8000
  755. a=rtpmap:98 iLBC/8000
  756. a=fmtp:98 mode=20
  757. a=rtpmap:101 telephone-event/8000
  758. a=fmtp:101 0-15
  759.  
  760. 2021-01-04 08:42:10.952269 [DEBUG] sofia.c:7326 Channel sofia/default/4727985745@117.247.91.162:47162 entering state [ready][200]
  761. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  762. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  763. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  764. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  765. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  766. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  767. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  768. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/4727985745@117.247.91.162:47162 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  769. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_codec.c:111 sofia/default/4727985745@117.247.91.162:47162 Original read codec set to PCMA:8
  770. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  771. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:5911 sofia/default/4727985745@117.247.91.162:47162 Set 2833 dtmf send payload to 101 recv payload to 101
  772. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/4727985745@117.247.91.162:47162] 172.31.13.192 port 23082 -> 117.247.91.162 port 8002 codec: 8 ms: 20
  773. 2021-01-04 08:42:10.952269 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  774. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:8977 sofia/default/4727985745@117.247.91.162:47162 Set 2833 dtmf send payload to 101
  775. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:8984 sofia/default/4727985745@117.247.91.162:47162 Set 2833 dtmf receive payload to 101
  776. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_media.c:9007 sofia/default/4727985745@117.247.91.162:47162 Set rtp dtmf delay to 40
  777. 2021-01-04 08:42:10.952269 [NOTICE] sofia.c:8504 Channel [sofia/default/4727985745@117.247.91.162:47162] has been answered
  778. EXECUTE [depth=1] sofia/default/4727985745@117.247.91.162:47162 record_session(/var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav)
  779. 2021-01-04 08:42:10.952269 [DEBUG] switch_core_codec.c:248 sofia/default/393212118@13.127.159.248 Restore previous codec PCMA:8.
  780. 2021-01-04 08:42:10.952269 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/4727985745@117.247.91.162:47162]
  781. 2021-01-04 08:42:10.972246 [DEBUG] switch_channel.c:2130 (sofia/default/393212118@13.127.159.248) Callstate Change RING_WAIT -> ACTIVE
  782. 2021-01-04 08:42:10.972246 [DEBUG] switch_ivr_originate.c:3111 sofia/default/4727985745@117.247.91.162:47162 Setting leg timeout to 60
  783. 2021-01-04 08:42:10.972246 [DEBUG] switch_ivr_async.c:1351 Record session sample rate: 8000 -> 8000
  784. 2021-01-04 08:42:10.972246 [DEBUG] switch_core_media_bug.c:970 Attaching BUG to sofia/default/4727985745@117.247.91.162:47162
  785. 2021-01-04 08:42:10.972246 [DEBUG] switch_channel.c:3865 (sofia/default/4727985745@117.247.91.162:47162) Callstate Change RINGING -> ACTIVE
  786. 2021-01-04 08:42:10.972246 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/4727985745@117.247.91.162:47162]
  787. 2021-01-04 08:42:10.972246 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/4727985745@117.247.91.162:47162) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  788. 2021-01-04 08:42:10.972246 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 33866)
  789. 2021-01-04 08:42:10.972246 [DEBUG] switch_core_state_machine.c:654 (sofia/default/4727985745@117.247.91.162:47162) State EXCHANGE_MEDIA
  790. 2021-01-04 08:42:10.972246 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  791. 2021-01-04 08:42:10.972246 [DEBUG] switch_ivr_async.c:1640 No silence detection configured; assuming start of speech
  792. 2021-01-04 08:42:11.052283 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  793. 2021-01-04 08:42:11.052283 [DEBUG] switch_core_io.c:448 Setting BUG Codec PCMA:8
  794. 2021-01-04 08:42:11.152271 [DEBUG] switch_ivr_bridge.c:655 sofia/default/4727985745@117.247.91.162:47162 Bridge execute app sched_hangup(+3930 normal_clearing)
  795. 2021-01-04 08:42:11.172253 [DEBUG] switch_ivr.c:632 sofia/default/4727985745@117.247.91.162:47162 Command Execute [depth=0] sched_hangup(+3930 normal_clearing)
  796. EXECUTE [depth=0] sofia/default/4727985745@117.247.91.162:47162 sched_hangup(+3930 normal_clearing)
  797. 2021-01-04 08:42:11.172253 [DEBUG] switch_scheduler.c:252 Added task 121 switch_ivr_schedule_hangup (71d2d84e-5c23-48a5-815c-ea2c75e067cd) to run at 1609753661
  798. 2021-01-04 08:42:11.392252 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [7047@3.7.253.100] from ip 45.82.223.34
  799. 2021-01-04 08:42:11.552237 [WARNING] sofia_reg.c:2930 Can't find user [7047@3.7.253.100] from 45.82.223.34
  800. You must define a domain called '3.7.253.100' in your directory and add a user with the id="7047" attribute
  801. and you must configure your device to use the proper domain in its authentication credentials.
  802. 2021-01-04 08:42:11.552237 [WARNING] sofia_reg.c:1739 SIP auth failure (REGISTER) on sofia profile 'default' for [7047@3.7.253.100] from ip 45.82.223.34
  803. 2021-01-04 08:42:13.512290 [NOTICE] sofia.c:1089 Hangup sofia/default/4727985745@117.247.91.162:47162 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  804. 2021-01-04 08:42:13.512290 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/4727985745@117.247.91.162:47162]
  805. 2021-01-04 08:42:13.512290 [DEBUG] switch_core_state_machine.c:654 (sofia/default/4727985745@117.247.91.162:47162) State EXCHANGE_MEDIA going to sleep
  806. 2021-01-04 08:42:13.512290 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_HANGUP (Cur 2 Tot 33866)
  807. 2021-01-04 08:42:13.512290 [DEBUG] switch_ivr_async.c:1445 Stop recording file /var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav
  808. 2021-01-04 08:42:13.512290 [DEBUG] switch_ivr_bridge.c:820 sofia/default/4727985745@117.247.91.162:47162 ending bridge by request from write function
  809. 2021-01-04 08:42:13.532247 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/393212118@13.127.159.248]
  810. 2021-01-04 08:42:13.532247 [DEBUG] switch_ivr_bridge.c:1892 sofia/default/4727985745@117.247.91.162:47162 skip receive message [UNBRIDGE] (channel is hungup already)
  811. 2021-01-04 08:42:13.532247 [NOTICE] switch_ivr_bridge.c:1944 Hangup sofia/default/393212118@13.127.159.248 [CS_EXECUTE] [NORMAL_CLEARING]
  812. 2021-01-04 08:42:13.532247 [DEBUG] mod_hash.c:296 Usage for inbound_4727985745 is now 0
  813. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_session.c:2905 sofia/default/393212118@13.127.159.248 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  814. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:651 (sofia/default/393212118@13.127.159.248) State EXECUTE going to sleep
  815. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_HANGUP (Cur 2 Tot 33866)
  816. 2021-01-04 08:42:13.532247 [DEBUG] switch_ivr_async.c:1445 Stop recording file /var/lib/freeswitch/recordings/9dcb7e8b-2b35-41f3-8248-57465b621a85.wav
  817. 2021-01-04 08:42:13.532247 [DEBUG] switch_ivr_async.c:1520 Channel is hung up
  818. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_media_bug.c:1295 Removing BUG from sofia/default/4727985745@117.247.91.162:47162
  819. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:848 (sofia/default/4727985745@117.247.91.162:47162) Callstate Change ACTIVE -> HANGUP
  820. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4727985745@117.247.91.162:47162) State HANGUP
  821. 2021-01-04 08:42:13.532247 [DEBUG] mod_sofia.c:453 Channel sofia/default/4727985745@117.247.91.162:47162 hanging up, cause: NORMAL_CLEARING
  822. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:60 sofia/default/4727985745@117.247.91.162:47162 Standard HANGUP, cause: NORMAL_CLEARING
  823. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4727985745@117.247.91.162:47162) State HANGUP going to sleep
  824. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:620 (sofia/default/4727985745@117.247.91.162:47162) State Change CS_HANGUP -> CS_REPORTING
  825. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_REPORTING (Cur 2 Tot 33866)
  826. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:936 (sofia/default/4727985745@117.247.91.162:47162) State REPORTING
  827. 2021-01-04 08:42:13.532247 [INFO] mod_json_cdr.c:271 Process [71d2d84e-5c23-48a5-815c-ea2c75e067cd.cdr.json]
  828. 2021-01-04 08:42:13.532247 [DEBUG] switch_ivr_async.c:1520 Channel is hung up
  829. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_media_bug.c:1295 Removing BUG from sofia/default/393212118@13.127.159.248
  830. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:848 (sofia/default/393212118@13.127.159.248) Callstate Change ACTIVE -> HANGUP
  831. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:850 (sofia/default/393212118@13.127.159.248) State HANGUP
  832. 2021-01-04 08:42:13.532247 [DEBUG] mod_sofia.c:447 sofia/default/393212118@13.127.159.248 Overriding SIP cause 480 with 200 from the other leg
  833. 2021-01-04 08:42:13.532247 [DEBUG] mod_sofia.c:453 Channel sofia/default/393212118@13.127.159.248 hanging up, cause: NORMAL_CLEARING
  834. 2021-01-04 08:42:13.532247 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/393212118@13.127.159.248
  835. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:60 sofia/default/393212118@13.127.159.248 Standard HANGUP, cause: NORMAL_CLEARING
  836. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:850 (sofia/default/393212118@13.127.159.248) State HANGUP going to sleep
  837. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:620 (sofia/default/393212118@13.127.159.248) State Change CS_HANGUP -> CS_REPORTING
  838. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:585 (sofia/default/393212118@13.127.159.248) Running State Change CS_REPORTING (Cur 2 Tot 33866)
  839. 2021-01-04 08:42:13.532247 [DEBUG] switch_core_state_machine.c:936 (sofia/default/393212118@13.127.159.248) State REPORTING
  840. 2021-01-04 08:42:13.532247 [INFO] mod_json_cdr.c:271 Process [9dcb7e8b-2b35-41f3-8248-57465b621a85.cdr.json]
  841. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:174 sofia/default/4727985745@117.247.91.162:47162 Standard REPORTING, cause: NORMAL_CLEARING
  842. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:936 (sofia/default/4727985745@117.247.91.162:47162) State REPORTING going to sleep
  843. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:611 (sofia/default/4727985745@117.247.91.162:47162) State Change CS_REPORTING -> CS_DESTROY
  844. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_session.c:1726 Session 33866 (sofia/default/4727985745@117.247.91.162:47162) Locked, Waiting on external entities
  845. 2021-01-04 08:42:13.552249 [NOTICE] switch_core_session.c:1744 Session 33866 (sofia/default/4727985745@117.247.91.162:47162) Ended
  846. 2021-01-04 08:42:13.552249 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/4727985745@117.247.91.162:47162 [CS_DESTROY]
  847. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:739 (sofia/default/4727985745@117.247.91.162:47162) Running State Change CS_DESTROY (Cur 1 Tot 33866)
  848. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:749 (sofia/default/4727985745@117.247.91.162:47162) State DESTROY
  849. 2021-01-04 08:42:13.552249 [DEBUG] mod_sofia.c:364 sofia/default/4727985745@117.247.91.162:47162 SOFIA DESTROY
  850. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:181 sofia/default/4727985745@117.247.91.162:47162 Standard DESTROY
  851. 2021-01-04 08:42:13.552249 [DEBUG] switch_core_state_machine.c:749 (sofia/default/4727985745@117.247.91.162:47162) State DESTROY going to sleep
  852. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:174 sofia/default/393212118@13.127.159.248 Standard REPORTING, cause: NORMAL_CLEARING
  853. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:936 (sofia/default/393212118@13.127.159.248) State REPORTING going to sleep
  854. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:611 (sofia/default/393212118@13.127.159.248) State Change CS_REPORTING -> CS_DESTROY
  855. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_session.c:1726 Session 33865 (sofia/default/393212118@13.127.159.248) Locked, Waiting on external entities
  856. 2021-01-04 08:42:13.572303 [NOTICE] switch_core_session.c:1744 Session 33865 (sofia/default/393212118@13.127.159.248) Ended
  857. 2021-01-04 08:42:13.572303 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/393212118@13.127.159.248 [CS_DESTROY]
  858. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:739 (sofia/default/393212118@13.127.159.248) Running State Change CS_DESTROY (Cur 0 Tot 33866)
  859. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:749 (sofia/default/393212118@13.127.159.248) State DESTROY
  860. 2021-01-04 08:42:13.572303 [DEBUG] mod_sofia.c:364 sofia/default/393212118@13.127.159.248 SOFIA DESTROY
  861. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:181 sofia/default/393212118@13.127.159.248 Standard DESTROY
  862. 2021-01-04 08:42:13.572303 [DEBUG] switch_core_state_machine.c:749 (sofia/default/393212118@13.127.159.248) State DESTROY going to sleep
  863. 2021-01-04 08:42:13.672268 [DEBUG] switch_scheduler.c:147 Deleting task 121 switch_ivr_schedule_hangup (71d2d84e-5c23-48a5-815c-ea2c75e067cd)
  864.