From Bistre Madrill, 2 Weeks ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2024-04-17 05:10:47.433081 100.00% [NOTICE] switch_channel.c:1123 New Channel sofia/default/321785@cloud.masip.es [03b6b87f-bf80-43ba-9f62-20d3eac9aa26]
  2. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_NEW (Cur 1 Tot 811783)
  3. 2024-04-17 05:10:47.433081 100.00% [INFO] sofia.c:10462 sofia/default/321785@cloud.masip.es receiving invite from 34.252.123.120:5060 version: 1.10.7 -release 64bit call-id: YWNkODg3ZWQ4ZDFjM2EwMmUzYmVmZGI5NzA2MDliMDc.
  4. 2024-04-17 05:10:47.433081 100.00% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 34.252.123.120:0.
  5. 2024-04-17 05:10:47.433081 100.00% [DEBUG] sofia.c:10585 IP 34.252.123.120 Approved by acl "default[]". Access Granted.
  6. 2024-04-17 05:10:47.433081 100.00% [DEBUG] sofia.c:7499 Channel sofia/default/321785@cloud.masip.es entering state [received][100]
  7. 2024-04-17 05:10:47.433081 100.00% [DEBUG] sofia.c:7509 Remote SDP:
  8. v=0                                                                                                                                                                                                                
  9. o=Z 0 0 IN IP4 103.240.35.46                                                                                                                                                                                      
  10. s=Z                                                                                                                                                                                                                
  11. c=IN IP4 103.240.35.46                                                                                                                                                                                            
  12. t=0 0                                                                                                                                                                                                              
  13. m=audio 8000 RTP/AVP 3 110 8 0 98 101                                                                                                                                                                              
  14. a=rtpmap:110 speex/8000                                                                                                                                                                                            
  15. a=rtpmap:98 iLBC/8000                                                                                                                                                                                              
  16. a=fmtp:98 mode=20                                                                                                                                                                                                  
  17. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  18. a=fmtp:101 0-15                                                                                                                                                                                                    
  19.  
  20. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  21. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  22. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  23. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[G729:18:8000:20:8000:1]
  24. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  25. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  26. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  27. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  28. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  29. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  30. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  31. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  32. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  33. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  34. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[G729:18:8000:20:8000:1]
  35. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  36. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  37. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  38. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/321785@cloud.masip.es PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  39. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_codec.c:111 sofia/default/321785@cloud.masip.es Original read codec set to PCMA:8
  40. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  41. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_media.c:5973 sofia/default/321785@cloud.masip.es Set 2833 dtmf send payload to 101 recv payload to 101
  42. 2024-04-17 05:10:47.433081 100.00% [DEBUG] sofia.c:7933 (sofia/default/321785@cloud.masip.es) State Change CS_NEW -> CS_INIT
  43. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:600 (sofia/default/321785@cloud.masip.es) State NEW
  44. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_INIT (Cur 1 Tot 811783)
  45. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:624 (sofia/default/321785@cloud.masip.es) State INIT
  46. 2024-04-17 05:10:47.433081 100.00% [DEBUG] mod_sofia.c:97 sofia/default/321785@cloud.masip.es SOFIA INIT
  47. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:40 sofia/default/321785@cloud.masip.es Standard INIT
  48. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:48 (sofia/default/321785@cloud.masip.es) State Change CS_INIT -> CS_ROUTING
  49. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:624 (sofia/default/321785@cloud.masip.es) State INIT going to sleep
  50. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_ROUTING (Cur 1 Tot 811783)
  51. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_channel.c:2380 (sofia/default/321785@cloud.masip.es) Callstate Change DOWN -> RINGING
  52. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING
  53. 2024-04-17 05:10:47.433081 100.00% [DEBUG] mod_sofia.c:158 sofia/default/321785@cloud.masip.es SOFIA ROUTING
  54. 2024-04-17 05:10:47.433081 100.00% [DEBUG] switch_core_state_machine.c:230 sofia/default/321785@cloud.masip.es Standard ROUTING
  55. 2024-04-17 05:10:47.433081 100.00% [INFO] mod_dialplan_xml.c:639 Processing 321785 <321785>->38933550965 in context default
  56. 2024-04-17 05:10:47.473075 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes','masip')                                                                                                                                                                                                            
  57. 2024-04-17 05:10:47.473075 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2024-04-17 05:10:47.473075 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 38933550965
  59. 2024-04-17 05:10:47.473075 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '38933550965' AND status=0 limit 1
  60. 2024-04-17 05:10:47.473075 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 321785 / 321785
  61. 2024-04-17 05:10:47.473075 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="38933550965" LIMIT 1                                                                                                                                                    
  62. 2024-04-17 05:10:47.473075 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="38933550965" limit 1                                                                                                                                                                                                
  63. 2024-04-17 05:10:47.473075 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  64. 2024-04-17 05:10:47.473075 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 321785]
  65. 2024-04-17 05:10:47.473075 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "321785" AND deleted = 0 limit 1
  66. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^38933550965.*' OR blocked_patterns = '^3893355096.*' OR blocked_patterns = '^389335509.*' OR blocked_patterns = '^38933550.*' OR blocked_patterns = '^3893355.*' OR blocked_patterns = '^389335.*' OR blocked_patterns = '^38933.*' OR blocked_patterns = '^3893.*' OR blocked_patterns = '^389.*' OR blocked_patterns = '^38.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 151 limit 1                                                                      
  67. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="38933550965" AND (accountid = 0 OR status = 1) LIMIT 1
  68. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^38933550965.*' OR patterns = '^3893355096.*' OR patterns = '^389335509.*' OR patterns = '^38933550.*' OR patterns = '^3893355.*' OR patterns = '^389335.*' OR patterns = '^38933.*' OR patterns = '^3893.*' OR patterns = '^389.*' OR patterns = '^38.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 151 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                                                                                                                                                                            
  69. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="38933550965" AND A.accountid = '151' limit 1                                                                                                                                                              
  70. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 38933550965
  71. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="38933550965" LIMIT 1                                                                                                                                                    
  72. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="38933550965" limit 1                                                                                                                                                                                                
  73. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  74. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '38933550965' OR number = '3893355096' OR number = '389335509' OR number = '38933550' OR number = '3893355' OR number = '389335' OR number = '38933' OR number = '3893' OR number = '389' OR number = '38' OR number = '3' OR number ='--') OR (number = '38933550965*' OR number = '3893355096*' OR number = '389335509*' OR number = '38933550*' OR number = '3893355*' OR number = '389335*' OR number = '38933*' OR number = '3893*' OR number = '389*' OR number = '38*' OR number = '3*' OR number ='--') OR (number = '321785' OR number = '32178' OR number = '3217' OR number = '321' OR number = '32' OR number = '3' OR number ='--') OR (number = '321785*' OR number = '32178*' OR number = '3217*' OR number = '321*' OR number = '32*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC          
  75. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  76. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '38933550965' OR routing_prefix = '3893355096' OR routing_prefix = '389335509' OR routing_prefix = '38933550' OR routing_prefix = '3893355' OR routing_prefix = '389335' OR routing_prefix = '38933' OR routing_prefix = '3893' OR routing_prefix = '389' OR routing_prefix = '38' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                            
  77. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  78. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 151
  79. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 321785
  80. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10
  81. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  82. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  83. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  84. 2024-04-17 05:10:47.493074 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  85. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  86. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  87. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  88. 2024-04-17 05:10:47.493074 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^38933550965.*' OR pattern = '^3893355096.*' OR pattern = '^389335509.*' OR pattern = '^38933550.*' OR pattern = '^3893355.*' OR pattern = '^389335.*' OR pattern = '^38933.*' OR pattern = '^3893.*' OR pattern = '^389.*' OR pattern = '^38.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 4 OR accountid=151)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                
  89. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  90. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  91. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 158115
  92. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  93. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  94. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 1.15800
  95. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Macedonia
  96. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  97. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 151
  98. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  99. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  100. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  101. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10 balance Accountid 151 !!!
  102. 2024-04-17 05:10:47.513079 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 8.6355785837651 minutes
  103. 2024-04-17 05:10:47.513079 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  104. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  105. <document type="freeswitch/xml">                                                                                                                                                                                  
  106. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  107. <context name="default">                                                                                                                                                                                          
  108. <extension name="38933550965">                                                                                                                                                                                    
  109. <condition field="destination_number" expression="38933550965">                                                                                                                                                    
  110. <action application="log" data="INFO ASTPP - API CALL"/>                                                                                                                                                          
  111. <action application="curl" data="https://cloud.masip.es/custom_curl/index -X POST destination_number=38933550965 -k"/>                                                                                            
  112. <action application="set" data='sip_h_P-masip_custom_flag=true'/>                                                                                                                                                  
  113. <action application="export" data='sip_h_P-masip_custom_flag=true'/>                                                                                                                                              
  114. <action application="sleep" data="3000"/>                                                                                                                                                                          
  115. <action application="transfer" data="38933550965 XML default"/>                                                                                                                                                    
  116. </condition>                                                                                                                                                                                                      
  117. </extension>                                                                                                                                                                                                      
  118. </context>                                                                                                                                                                                                        
  119. </section>                                                                                                                                                                                                        
  120. </document>                                                                                                                                                                                                        
  121. Dialplan: sofia/default/321785@cloud.masip.es parsing [default->38933550965] continue=false
  122. Dialplan: sofia/default/321785@cloud.masip.es Regex (PASS) [38933550965] destination_number(38933550965) =~ /38933550965/ break=on-false
  123. Dialplan: sofia/default/321785@cloud.masip.es Action log(INFO ASTPP - API CALL)
  124. Dialplan: sofia/default/321785@cloud.masip.es Action curl(https://cloud.masip.es/custom_curl/index -X POST destination_number=38933550965 -k)
  125. Dialplan: sofia/default/321785@cloud.masip.es Action set(sip_h_P-masip_custom_flag=true)
  126. Dialplan: sofia/default/321785@cloud.masip.es Action export(sip_h_P-masip_custom_flag=true)
  127. Dialplan: sofia/default/321785@cloud.masip.es Action sleep(3000)
  128. Dialplan: sofia/default/321785@cloud.masip.es Action transfer(38933550965 XML default)
  129. 2024-04-17 05:10:47.513079 100.00% [DEBUG] switch_core_state_machine.c:281 (sofia/default/321785@cloud.masip.es) State Change CS_ROUTING -> CS_EXECUTE
  130. 2024-04-17 05:10:47.513079 100.00% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING going to sleep
  131. 2024-04-17 05:10:47.513079 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_EXECUTE (Cur 1 Tot 811783)
  132. 2024-04-17 05:10:47.513079 100.00% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE
  133. 2024-04-17 05:10:47.513079 100.00% [DEBUG] mod_sofia.c:213 sofia/default/321785@cloud.masip.es SOFIA EXECUTE
  134. 2024-04-17 05:10:47.513079 100.00% [DEBUG] switch_core_state_machine.c:323 sofia/default/321785@cloud.masip.es Standard EXECUTE
  135. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es log(INFO ASTPP - API CALL)
  136. 2024-04-17 05:10:47.513079 100.00% [INFO] mod_dptools.c:1879 ASTPP - API CALL
  137. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es curl(https://cloud.masip.es/custom_curl/index -X POST destination_number=38933550965 -k)
  138. 2024-04-17 05:10:47.513079 100.00% [DEBUG] mod_curl.c:200 method: POST, url: https://cloud.masip.es/custom_curl/index, content-type: (null)
  139. 2024-04-17 05:10:47.513079 100.00% [WARNING] mod_curl.c:223 Not verifying TLS cert for https://cloud.masip.es/custom_curl/index; connection is not secure
  140. 2024-04-17 05:10:47.513079 100.00% [DEBUG] mod_curl.c:252 Post data: destination_number=38933550965
  141. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(sip_h_P-masip_custom_flag=true)
  142. 2024-04-17 05:10:47.593081 100.00% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [sip_h_P-masip_custom_flag]=[true]
  143. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(sip_h_P-masip_custom_flag=true)
  144. 2024-04-17 05:10:47.593081 100.00% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_h_P-masip_custom_flag]=[true]
  145. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es sleep(3000)
  146. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es transfer(38933550965 XML default)
  147. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_ivr.c:2289 (sofia/default/321785@cloud.masip.es) State Change CS_EXECUTE -> CS_ROUTING
  148. 2024-04-17 05:10:50.613089 99.97% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/321785@cloud.masip.es to XML[38933550965@default]
  149. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE going to sleep
  150. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_ROUTING (Cur 1 Tot 811783)
  151. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING
  152. 2024-04-17 05:10:50.613089 99.97% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  153. 2024-04-17 05:10:50.613089 99.97% [DEBUG] mod_sofia.c:158 sofia/default/321785@cloud.masip.es SOFIA ROUTING
  154. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_core_state_machine.c:230 sofia/default/321785@cloud.masip.es Standard ROUTING
  155. 2024-04-17 05:10:50.613089 99.97% [INFO] mod_dialplan_xml.c:639 Processing 321785 <321785>->38933550965 in context default
  156. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes','masip')                                                                                                                                                                                                            
  157. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  158. 2024-04-17 05:10:50.613089 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 38933550965
  159. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '38933550965' AND status=0 limit 1
  160. 2024-04-17 05:10:50.613089 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 321785 / 321785
  161. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="38933550965" LIMIT 1                                                                                                                                                      
  162. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="38933550965" limit 1                                                                                                                                                                                                  
  163. 2024-04-17 05:10:50.613089 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  164. 2024-04-17 05:10:50.613089 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 321785]
  165. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "321785" AND deleted = 0 limit 1
  166. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^38933550965.*' OR blocked_patterns = '^3893355096.*' OR blocked_patterns = '^389335509.*' OR blocked_patterns = '^38933550.*' OR blocked_patterns = '^3893355.*' OR blocked_patterns = '^389335.*' OR blocked_patterns = '^38933.*' OR blocked_patterns = '^3893.*' OR blocked_patterns = '^389.*' OR blocked_patterns = '^38.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 151 limit 1                                                                        
  167. 2024-04-17 05:10:50.613089 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="38933550965" AND (accountid = 0 OR status = 1) LIMIT 1
  168. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^38933550965.*' OR patterns = '^3893355096.*' OR patterns = '^389335509.*' OR patterns = '^38933550.*' OR patterns = '^3893355.*' OR patterns = '^389335.*' OR patterns = '^38933.*' OR patterns = '^3893.*' OR patterns = '^389.*' OR patterns = '^38.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 151 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                                                                                                                                                                            
  169. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="38933550965" AND A.accountid = '151' limit 1                                                                                                                                                                
  170. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 38933550965
  171. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="38933550965" LIMIT 1                                                                                                                                                      
  172. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="38933550965" limit 1                                                                                                                                                                                                  
  173. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  174. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '38933550965' OR number = '3893355096' OR number = '389335509' OR number = '38933550' OR number = '3893355' OR number = '389335' OR number = '38933' OR number = '3893' OR number = '389' OR number = '38' OR number = '3' OR number ='--') OR (number = '38933550965*' OR number = '3893355096*' OR number = '389335509*' OR number = '38933550*' OR number = '3893355*' OR number = '389335*' OR number = '38933*' OR number = '3893*' OR number = '389*' OR number = '38*' OR number = '3*' OR number ='--') OR (number = '321785' OR number = '32178' OR number = '3217' OR number = '321' OR number = '32' OR number = '3' OR number ='--') OR (number = '321785*' OR number = '32178*' OR number = '3217*' OR number = '321*' OR number = '32*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC            
  175. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  176. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '38933550965' OR routing_prefix = '3893355096' OR routing_prefix = '389335509' OR routing_prefix = '38933550' OR routing_prefix = '3893355' OR routing_prefix = '389335' OR routing_prefix = '38933' OR routing_prefix = '3893' OR routing_prefix = '389' OR routing_prefix = '38' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                            
  177. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  178. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 151
  179. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 321785
  180. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10
  181. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  182. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  183. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  184. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  185. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  186. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  187. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  188. 2024-04-17 05:10:50.633074 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^38933550965.*' OR pattern = '^3893355096.*' OR pattern = '^389335509.*' OR pattern = '^38933550.*' OR pattern = '^3893355.*' OR pattern = '^389335.*' OR pattern = '^38933.*' OR pattern = '^3893.*' OR pattern = '^389.*' OR pattern = '^38.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 4 OR accountid=151)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                  
  189. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  190. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  191. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 158115
  192. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  193. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  194. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 1.15800
  195. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Macedonia
  196. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  197. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 151
  198. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  199. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  200. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  201. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10 balance Accountid 151 !!!
  202. 2024-04-17 05:10:50.633074 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 8.6355785837651 minutes
  203. 2024-04-17 05:10:51.653080 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Query :SELECT trunk_id,nrn,mmc FROM masip_curl_data WHERE destination_number = '38933550965' order by id desc limit 1
  204. 2024-04-17 05:10:51.653080 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== MASIP Information Start ===================
  205. 2024-04-17 05:10:51.653080 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP Trunk ==>
  206. 2024-04-17 05:10:51.653080 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP NRN ==>
  207. 2024-04-17 05:10:51.653080 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP MMC ==>
  208. 2024-04-17 05:10:51.653080 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== MASIP Information Ends ====================
  209. 2024-04-17 05:10:51.653080 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
  210. 2024-04-17 05:10:51.653080 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query ==> SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=4 ORDER by id asc
  211. 2024-04-17 05:10:51.653080 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] From DB - trunk_ids ==> 8,11,6
  212. 2024-04-17 05:10:51.653080 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] masip_trunk ==>
  213. 2024-04-17 05:10:51.653080 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable as dialplan_variable,GW.gateway_data as gateway_data,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^38933550965.*' OR pattern = '^3893355096.*' OR pattern = '^389335509.*' OR pattern = '^38933550.*' OR pattern = '^3893355.*' OR pattern = '^389335.*' OR pattern = '^38933.*' OR pattern = '^3893.*' OR pattern = '^389.*' OR pattern = '^38.*' OR pattern = '^3.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (8,11,6) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by FIELD(TR.trunk_id,8,11,6),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC,TR.effective_date DESC                                
  214. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  215. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 513150
  216. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^389.*
  217. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Macedonia
  218. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  219. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  220. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^389.*
  221. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  222. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 8000
  223. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 11
  224. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Alisys
  225. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  226. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  227. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 164
  228. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  229. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : ALISYS
  230. 2024-04-17 05:10:51.673076 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  231. 2024-04-17 05:10:51.673076 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 151 AND status=0 LIMIT 1                                                                                                                                                                                      
  232. 2024-04-17 05:10:51.693082 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 8.6355785837651
  233. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  234. 2024-04-17 05:10:51.693082 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  235. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  236. 2024-04-17 05:10:51.693082 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] freeswitch_xml_outbound triggered !!!
  237. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 164) AND status=0 limit 1                                                                                                                                                                
  238. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from trunks where id = 11) AND status=0 limit 1                                                                                                                                                                    
  239. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/8000.....38933550965
  240. 2024-04-17 05:10:51.693082 99.97% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 38933550965
  241. 2024-04-17 05:10:51.693082 99.97% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 800038933550965
  242. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="38933550965" LIMIT 1                                                                                                                                                      
  243. 2024-04-17 05:10:51.693082 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_nrn ==>
  244. 2024-04-17 05:10:51.693082 99.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_mmc ==>
  245. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
  246. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  247. <document type="freeswitch/xml">                                                                                                                                                                                  
  248. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  249. <context name="default">                                                                                                                                                                                          
  250. <extension name="38933550965">                                                                                                                                                                                    
  251. <condition field="destination_number" expression="38933550965">                                                                                                                                                    
  252. <action application="set" data="effective_destination_number=38933550965"/>                                                                                                                                        
  253. <action application="set" data="execute_on_answer_1=sched_hangup +518.13471502591 normal_clearing"/>                                                                                                              
  254. <action application="set" data="callstart=2024-04-17 05:10:51"/>                                                                                                                                                  
  255. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  256. <action application="set" data="continue_on_fail=!USER_BUSY"/>                                                                                                                                                    
  257. <action application="set" data="account_id=151"/>                                                                                                                                                                  
  258. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  259. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  260. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  261. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  262. <action application="set" data="accountname=default"/>                                                                                                                                                            
  263. <action application="set" data="origination_rates=ID:158115|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.15800|INC:1|INITIALBLOCK:1|RATEGROUP:4|MARKUP:0|CI:0|ACCID:151"/>
  264. <action application="set" data="original_caller_id_name=321785"/>                                                                                                                                                  
  265. <action application="set" data="original_caller_id_number=321785"/>                                                                                                                                                
  266.  
  267. <action application="set" data="effective_caller_id_name=321785"/>                                                                                                                                                
  268. <action application="set" data="effective_caller_id_number=321785"/>                                                                                                                                              
  269. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  270. <action application="set" data="termination_rates=ID:513150|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.23160|INC:1|INITIALBLOCK:1|TRUNK:11|PROVIDER:164"/>                  
  271. <action application="set" data="trunk_id=11"/>                                                                                                                                                                    
  272. <action application="set" data="provider_id=164"/>                                                                                                                                                                
  273. <action application="set" data="rate_flag=2"/>                                                                                                                                                                    
  274. <action application="set" data="force_trunk_flag=0"/>                                                                                                                                                              
  275. <action application="export" data="presence_data=trunk_id=11"/>                                                                                                                                                    
  276. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  277. <action application="export" data="presence_id=38933550965"/>                                                                                                                                                      
  278. <action application="export" data="presence_data=x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||ALISYS // ^389.* // Macedonia // 0.23160 // trunk_id=11|||STD|||103.240.35.46"/>                        
  279. <action application="bridge" data="[leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Alisys/800038933550965;fs_path=sip:34.252.123.120:5060"/>                                
  280. </condition>                                                                                                                                                                                                      
  281. </extension>                                                                                                                                                                                                      
  282. </context>                                                                                                                                                                                                        
  283. </section>                                                                                                                                                                                                        
  284. </document>                                                                                                                                                                                                        
  285. Dialplan: sofia/default/321785@cloud.masip.es parsing [default->38933550965] continue=false
  286. Dialplan: sofia/default/321785@cloud.masip.es Regex (PASS) [38933550965] destination_number(38933550965) =~ /38933550965/ break=on-false
  287. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_destination_number=38933550965)
  288. Dialplan: sofia/default/321785@cloud.masip.es Action set(execute_on_answer_1=sched_hangup +518.13471502591 normal_clearing)
  289. Dialplan: sofia/default/321785@cloud.masip.es Action set(callstart=2024-04-17 05:10:51)
  290. Dialplan: sofia/default/321785@cloud.masip.es Action set(hangup_after_bridge=true)
  291. Dialplan: sofia/default/321785@cloud.masip.es Action set(continue_on_fail=!USER_BUSY)
  292. Dialplan: sofia/default/321785@cloud.masip.es Action set(account_id=151)
  293. Dialplan: sofia/default/321785@cloud.masip.es Action set(parent_id=0)
  294. Dialplan: sofia/default/321785@cloud.masip.es Action set(entity_id=0)
  295. Dialplan: sofia/default/321785@cloud.masip.es Action set(call_processed=internal)
  296. Dialplan: sofia/default/321785@cloud.masip.es Action set(call_direction=outbound)
  297. Dialplan: sofia/default/321785@cloud.masip.es Action set(accountname=default)
  298. Dialplan: sofia/default/321785@cloud.masip.es Action set(origination_rates=ID:158115|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.15800|INC:1|INITIALBLOCK:1|RATEGROUP:4|MARKUP:0|CI:0|ACCID:151)                                                                                                                                                                                            
  299. Dialplan: sofia/default/321785@cloud.masip.es Action set(original_caller_id_name=321785)
  300. Dialplan: sofia/default/321785@cloud.masip.es Action set(original_caller_id_number=321785)
  301. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_caller_id_name=321785)
  302. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_caller_id_number=321785)
  303. Dialplan: sofia/default/321785@cloud.masip.es Action set(calltype=STANDARD)
  304. Dialplan: sofia/default/321785@cloud.masip.es Action set(termination_rates=ID:513150|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.23160|INC:1|INITIALBLOCK:1|TRUNK:11|PROVIDER:164)                                                                                                                                                                                                              
  305. Dialplan: sofia/default/321785@cloud.masip.es Action set(trunk_id=11)
  306. Dialplan: sofia/default/321785@cloud.masip.es Action set(provider_id=164)
  307. Dialplan: sofia/default/321785@cloud.masip.es Action set(rate_flag=2)
  308. Dialplan: sofia/default/321785@cloud.masip.es Action set(force_trunk_flag=0)
  309. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=trunk_id=11)
  310. Dialplan: sofia/default/321785@cloud.masip.es Action set(intcall=0)
  311. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_id=38933550965)
  312. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||ALISYS // ^389.* // Macedonia // 0.23160 // trunk_id=11|||STD|||103.240.35.46)
  313. Dialplan: sofia/default/321785@cloud.masip.es Action bridge([leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Alisys/800038933550965;fs_path=sip:34.252.123.120:5060)
  314. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:281 (sofia/default/321785@cloud.masip.es) State Change CS_ROUTING -> CS_EXECUTE
  315. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING going to sleep
  316. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_EXECUTE (Cur 1 Tot 811783)
  317. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE
  318. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_sofia.c:213 sofia/default/321785@cloud.masip.es SOFIA EXECUTE
  319. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:323 sofia/default/321785@cloud.masip.es Standard EXECUTE
  320. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(effective_destination_number=38933550965)
  321. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [effective_destination_number]=[38933550965]
  322. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(execute_on_answer_1=sched_hangup +518.13471502591 normal_clearing)
  323. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [execute_on_answer_1]=[sched_hangup +518.13471502591 normal_clearing]
  324. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(callstart=2024-04-17 05:10:51)
  325. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [callstart]=[2024-04-17 05:10:51]
  326. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(hangup_after_bridge=true)
  327. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [hangup_after_bridge]=[true]
  328. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(continue_on_fail=!USER_BUSY)
  329. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [continue_on_fail]=[!USER_BUSY]
  330. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(account_id=151)
  331. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [account_id]=[151]
  332. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(parent_id=0)
  333. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [parent_id]=[0]
  334. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(entity_id=0)
  335. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [entity_id]=[0]
  336. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(call_processed=internal)
  337. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [call_processed]=[internal]
  338. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(call_direction=outbound)
  339. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [call_direction]=[outbound]
  340. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(accountname=default)
  341. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [accountname]=[default]
  342. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(origination_rates=ID:158115|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.15800|INC:1|INITIALBLOCK:1|RATEGROUP:4|MARKUP:0|CI:0|ACCID:151)                                                                                                                                                                                          
  343. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [origination_rates]=[ID:158115|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:1.15800|INC:1|INITIALBLOCK:1|RATEGROUP:4|MARKUP:0|CI:0|ACCID:151]                                                                                                                                            
  344. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(original_caller_id_name=321785)
  345. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [original_caller_id_name]=[321785]
  346. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(original_caller_id_number=321785)
  347. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [original_caller_id_number]=[321785]
  348. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(effective_caller_id_name=321785)
  349. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [effective_caller_id_name]=[321785]
  350. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(effective_caller_id_number=321785)
  351. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [effective_caller_id_number]=[321785]
  352. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(calltype=STANDARD)
  353. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [calltype]=[STANDARD]
  354. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(termination_rates=ID:513150|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.23160|INC:1|INITIALBLOCK:1|TRUNK:11|PROVIDER:164)                                                                                                                                                                                                            
  355. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [termination_rates]=[ID:513150|CODE:^389.*|DESTINATION:Macedonia|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.23160|INC:1|INITIALBLOCK:1|TRUNK:11|PROVIDER:164]                                                                                                                                                              
  356. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(trunk_id=11)
  357. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [trunk_id]=[11]
  358. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(provider_id=164)
  359. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [provider_id]=[164]
  360. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(rate_flag=2)
  361. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [rate_flag]=[2]
  362. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(force_trunk_flag=0)
  363. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [force_trunk_flag]=[0]
  364. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_data=trunk_id=11)
  365. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=11]
  366. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(intcall=0)
  367. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [intcall]=[0]
  368. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_id=38933550965)
  369. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[38933550965]
  370. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_data=x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||ALISYS // ^389.* // Macedonia // 0.23160 // trunk_id=11|||STD|||103.240.35.46)
  371. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||ALISYS // ^389.* // Macedonia // 0.23160 // trunk_id=11|||STD|||103.240.35.46]                                                                                                                                                                                        
  372. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es bridge([leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Alisys/800038933550965;fs_path=sip:34.252.123.120:5060)
  373. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [sip_h_P-masip_custom_flag]=[true] to event
  374. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_data]=[x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||ALISYS // ^389.* // Macedonia // 0.23160 // trunk_id=11|||STD|||103.240.35.46] to event                                                                                                                                          
  375. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_id]=[38933550965] to event
  376. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_data]=[x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||ALISYS // ^389.* // Macedonia // 0.23160 // trunk_id=11|||STD|||103.240.35.46] to event                                                                                                                                          
  377. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  378. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  379. 2024-04-17 05:10:51.693082 99.97% [NOTICE] switch_channel.c:1123 New Channel sofia/default/800038933550965 [d4a1d5f8-9f27-4a71-a85c-15009cba96ac]
  380. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_sofia.c:5121 (sofia/default/800038933550965) State Change CS_NEW -> CS_INIT
  381. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/800038933550965) Running State Change CS_INIT (Cur 2 Tot 811784)
  382. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/800038933550965) State INIT
  383. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_sofia.c:97 sofia/default/800038933550965 SOFIA INIT
  384. 2024-04-17 05:10:51.693082 99.97% [DEBUG] sofia_glue.c:1620 sip:34.252.123.120:5060 Setting proxy route to sofia/default/800038933550965
  385. 2024-04-17 05:10:51.693082 99.97% [INFO] sofia_glue.c:1651 sofia/default/800038933550965 sending invite call-id: (null)
  386. 2024-04-17 05:10:51.693082 99.97% [DEBUG] sofia_glue.c:1654 sofia/default/800038933550965 sending invite version: 1.10.7 -release 64bit
  387. Local SDP:                                                                                                                                                                                                        
  388. v=0                                                                                                                                                                                                                
  389. o=FreeSWITCH 1713308719 1713308720 IN IP4 54.220.206.86                                                                                                                                                            
  390. s=FreeSWITCH                                                                                                                                                                                                      
  391. c=IN IP4 54.220.206.86                                                                                                                                                                                            
  392. t=0 0                                                                                                                                                                                                              
  393. m=audio 21932 RTP/AVP 8 18 0 101                                                                                                                                                                                  
  394. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  395. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  396. a=fmtp:18 annexb=no                                                                                                                                                                                                
  397. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  398. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  399. a=fmtp:101 0-15                                                                                                                                                                                                    
  400. a=ptime:20                                                                                                                                                                                                        
  401. a=sendrecv                                                                                                                                                                                                        
  402.  
  403. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:40 sofia/default/800038933550965 Standard INIT
  404. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:48 (sofia/default/800038933550965) State Change CS_INIT -> CS_ROUTING
  405. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/800038933550965) State INIT going to sleep
  406. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/800038933550965) Running State Change CS_ROUTING (Cur 2 Tot 811784)
  407. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/800038933550965) State ROUTING
  408. 2024-04-17 05:10:51.693082 99.97% [DEBUG] mod_sofia.c:158 sofia/default/800038933550965 SOFIA ROUTING
  409. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_ivr_originate.c:67 (sofia/default/800038933550965) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  410. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/800038933550965) State ROUTING going to sleep
  411. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/800038933550965) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 811784)
  412. 2024-04-17 05:10:51.693082 99.97% [DEBUG] sofia.c:7499 Channel sofia/default/800038933550965 entering state [calling][0]
  413. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:659 (sofia/default/800038933550965) State CONSUME_MEDIA
  414. 2024-04-17 05:10:51.693082 99.97% [DEBUG] switch_core_state_machine.c:659 (sofia/default/800038933550965) State CONSUME_MEDIA going to sleep
  415. 2024-04-17 05:10:51.933079 99.97% [DEBUG] sofia.c:7499 Channel sofia/default/800038933550965 entering state [terminated][500]
  416. 2024-04-17 05:10:51.933079 99.97% [NOTICE] sofia.c:8738 Hangup sofia/default/800038933550965 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
  417. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/800038933550965) Running State Change CS_HANGUP (Cur 2 Tot 811784)
  418. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:844 (sofia/default/800038933550965) Callstate Change DOWN -> HANGUP
  419. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:846 (sofia/default/800038933550965) State HANGUP
  420. 2024-04-17 05:10:51.933079 99.97% [DEBUG] mod_sofia.c:468 Channel sofia/default/800038933550965 hanging up, cause: NORMAL_TEMPORARY_FAILURE
  421. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:59 sofia/default/800038933550965 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE
  422. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:846 (sofia/default/800038933550965) State HANGUP going to sleep
  423. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:616 (sofia/default/800038933550965) State Change CS_HANGUP -> CS_REPORTING
  424. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/800038933550965) Running State Change CS_REPORTING (Cur 2 Tot 811784)
  425. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:932 (sofia/default/800038933550965) State REPORTING
  426. 2024-04-17 05:10:51.933079 99.97% [INFO] mod_json_cdr.c:271 Process [d4a1d5f8-9f27-4a71-a85c-15009cba96ac.cdr.json]
  427. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]
  428. 2024-04-17 05:10:51.933079 99.97% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: NORMAL_TEMPORARY_FAILURE
  429. 2024-04-17 05:10:51.933079 99.97% [NOTICE] switch_channel.c:5050 Hangup sofia/default/321785@cloud.masip.es [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]
  430. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_session.c:2983 sofia/default/321785@cloud.masip.es skip receive message [PHONE_EVENT] (channel is hungup already)
  431. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE going to sleep
  432. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_HANGUP (Cur 2 Tot 811784)
  433. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:844 (sofia/default/321785@cloud.masip.es) Callstate Change RINGING -> HANGUP
  434. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:846 (sofia/default/321785@cloud.masip.es) State HANGUP
  435. 2024-04-17 05:10:51.933079 99.97% [DEBUG] mod_sofia.c:462 sofia/default/321785@cloud.masip.es Overriding SIP cause 503 with 500 from the other leg
  436. 2024-04-17 05:10:51.933079 99.97% [DEBUG] mod_sofia.c:468 Channel sofia/default/321785@cloud.masip.es hanging up, cause: NORMAL_TEMPORARY_FAILURE
  437. 2024-04-17 05:10:51.933079 99.97% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 500
  438. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:59 sofia/default/321785@cloud.masip.es Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE
  439. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:846 (sofia/default/321785@cloud.masip.es) State HANGUP going to sleep
  440. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:616 (sofia/default/321785@cloud.masip.es) State Change CS_HANGUP -> CS_REPORTING
  441. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_REPORTING (Cur 2 Tot 811784)
  442. 2024-04-17 05:10:51.933079 99.97% [DEBUG] switch_core_state_machine.c:932 (sofia/default/321785@cloud.masip.es) State REPORTING
  443. 2024-04-17 05:10:51.933079 99.97% [INFO] mod_json_cdr.c:271 Process [03b6b87f-bf80-43ba-9f62-20d3eac9aa26.cdr.json]
  444. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:168 sofia/default/800038933550965 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE
  445. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:932 (sofia/default/800038933550965) State REPORTING going to sleep
  446. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:607 (sofia/default/800038933550965) State Change CS_REPORTING -> CS_DESTROY
  447. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_session.c:1753 Session 811784 (sofia/default/800038933550965) Locked, Waiting on external entities
  448. 2024-04-17 05:10:51.953076 99.97% [NOTICE] switch_core_session.c:1771 Session 811784 (sofia/default/800038933550965) Ended
  449. 2024-04-17 05:10:51.953076 99.97% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/800038933550965 [CS_DESTROY]
  450. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:735 (sofia/default/800038933550965) Running State Change CS_DESTROY (Cur 1 Tot 811784)
  451. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:745 (sofia/default/800038933550965) State DESTROY
  452. 2024-04-17 05:10:51.953076 99.97% [DEBUG] mod_sofia.c:379 sofia/default/800038933550965 SOFIA DESTROY
  453. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:175 sofia/default/800038933550965 Standard DESTROY
  454. 2024-04-17 05:10:51.953076 99.97% [DEBUG] switch_core_state_machine.c:745 (sofia/default/800038933550965) State DESTROY going to sleep
  455. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:168 sofia/default/321785@cloud.masip.es Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE
  456. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:932 (sofia/default/321785@cloud.masip.es) State REPORTING going to sleep
  457. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:607 (sofia/default/321785@cloud.masip.es) State Change CS_REPORTING -> CS_DESTROY
  458. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_session.c:1753 Session 811783 (sofia/default/321785@cloud.masip.es) Locked, Waiting on external entities
  459. 2024-04-17 05:10:51.973076 99.97% [NOTICE] switch_core_session.c:1771 Session 811783 (sofia/default/321785@cloud.masip.es) Ended
  460. 2024-04-17 05:10:51.973076 99.97% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/321785@cloud.masip.es [CS_DESTROY]
  461. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:735 (sofia/default/321785@cloud.masip.es) Running State Change CS_DESTROY (Cur 0 Tot 811784)
  462. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:745 (sofia/default/321785@cloud.masip.es) State DESTROY
  463. 2024-04-17 05:10:51.973076 99.97% [DEBUG] mod_sofia.c:379 sofia/default/321785@cloud.masip.es SOFIA DESTROY
  464. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:175 sofia/default/321785@cloud.masip.es Standard DESTROY
  465. 2024-04-17 05:10:51.973076 99.97% [DEBUG] switch_core_state_machine.c:745 (sofia/default/321785@cloud.masip.es) State DESTROY going to sleep
  466. 2024-04-17 05:10:52.033082 99.93% [NOTICE] switch_channel.c:1123 New Channel sofia/default/659635137@54.170.60.120 [f1eaa947-70e8-4362-9519-c26c68fc2f7a]
  467. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/659635137@54.170.60.120) Running State Change CS_NEW (Cur 1 Tot 811785)
  468. 2024-04-17 05:10:52.033082 99.93% [INFO] sofia.c:10462 sofia/default/659635137@54.170.60.120 receiving invite from 34.252.123.120:5060 version: 1.10.7 -release 64bit call-id: 539009596_94100740@54.170.60.120
  469. 2024-04-17 05:10:52.033082 99.93% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 34.252.123.120:0.
  470. 2024-04-17 05:10:52.033082 99.93% [DEBUG] sofia.c:10585 IP 34.252.123.120 Approved by acl "default[]". Access Granted.
  471. 2024-04-17 05:10:52.033082 99.93% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [received][100]
  472. 2024-04-17 05:10:52.033082 99.93% [DEBUG] sofia.c:7509 Remote SDP:
  473. v=0                                                                                                                                                                                                                
  474. o=Sonus_UAC 56028 659387 IN IP4 54.170.60.120                                                                                                                                                                      
  475. s=SIP Media Capabilities                                                                                                                                                                                          
  476. c=IN IP4 54.170.60.120                                                                                                                                                                                            
  477. t=0 0                                                                                                                                                                                                              
  478. m=audio 16040 RTP/AVP 8 18 0 97 13                                                                                                                                                                                
  479. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  480. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  481. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  482. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  483. a=fmtp:97 0-15                                                                                                                                                                                                    
  484. a=rtpmap:13 CN/8000                                                                                                                                                                                                
  485. a=ptime:20                                                                                                                                                                                                        
  486.  
  487. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  488. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  489. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  490. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  491. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  492. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  493. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  494. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  495. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  496. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  497. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  498. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  499. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 97@8000
  500. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/659635137@54.170.60.120 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  501. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_codec.c:111 sofia/default/659635137@54.170.60.120 Original read codec set to PCMA:8
  502. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 97@8000
  503. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_media.c:5973 sofia/default/659635137@54.170.60.120 Set 2833 dtmf send payload to 97 recv payload to 97
  504. 2024-04-17 05:10:52.033082 99.93% [DEBUG] sofia.c:7933 (sofia/default/659635137@54.170.60.120) State Change CS_NEW -> CS_INIT
  505. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:600 (sofia/default/659635137@54.170.60.120) State NEW
  506. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/659635137@54.170.60.120) Running State Change CS_INIT (Cur 1 Tot 811785)
  507. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:624 (sofia/default/659635137@54.170.60.120) State INIT
  508. 2024-04-17 05:10:52.033082 99.93% [DEBUG] mod_sofia.c:97 sofia/default/659635137@54.170.60.120 SOFIA INIT
  509. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:40 sofia/default/659635137@54.170.60.120 Standard INIT
  510. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:48 (sofia/default/659635137@54.170.60.120) State Change CS_INIT -> CS_ROUTING
  511. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:624 (sofia/default/659635137@54.170.60.120) State INIT going to sleep
  512. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/659635137@54.170.60.120) Running State Change CS_ROUTING (Cur 1 Tot 811785)
  513. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_channel.c:2380 (sofia/default/659635137@54.170.60.120) Callstate Change DOWN -> RINGING
  514. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:640 (sofia/default/659635137@54.170.60.120) State ROUTING
  515. 2024-04-17 05:10:52.033082 99.93% [DEBUG] mod_sofia.c:158 sofia/default/659635137@54.170.60.120 SOFIA ROUTING
  516. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_core_state_machine.c:230 sofia/default/659635137@54.170.60.120 Standard ROUTING
  517. 2024-04-17 05:10:52.033082 99.93% [INFO] mod_dialplan_xml.c:639 Processing 659635137 <659635137>->960202524 in context default
  518. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes','masip')                                                                                                                                                                                                            
  519. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  520. 2024-04-17 05:10:52.033082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 960202524
  521. 2024-04-17 05:10:52.033082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '960202524' AND status=0 limit 1
  522. 2024-04-17 05:10:52.053074 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 659635137 / 659635137
  523. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="960202524" LIMIT 1                                                                                                                                                        
  524. 2024-04-17 05:10:52.053074 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  525. 2024-04-17 05:10:52.053074 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 226942]
  526. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "226942" AND deleted = 0 limit 1
  527. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="960202524" AND (accountid = 0 OR status = 1) LIMIT 1
  528. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  529. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 59
  530. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^960202524.*' OR patterns = '^96020252.*' OR patterns = '^9602025.*' OR patterns = '^960202.*' OR patterns = '^96020.*' OR patterns = '^9602.*' OR patterns = '^960.*' OR patterns = '^96.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 59 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  531. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="960202524" AND A.accountid = '9' limit 1                                                                                                                                                                    
  532. 2024-04-17 05:10:52.053074 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 960202524
  533. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="960202524" LIMIT 1                                                                                                                                                        
  534. 2024-04-17 05:10:52.053074 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  535. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '960202524' OR number = '96020252' OR number = '9602025' OR number = '960202' OR number = '96020' OR number = '9602' OR number = '960' OR number = '96' OR number = '9' OR number ='--') OR (number = '960202524*' OR number = '96020252*' OR number = '9602025*' OR number = '960202*' OR number = '96020*' OR number = '9602*' OR number = '960*' OR number = '96*' OR number = '9*' OR number ='--') OR (number = '659635137' OR number = '65963513' OR number = '6596351' OR number = '659635' OR number = '65963' OR number = '6596' OR number = '659' OR number = '65' OR number = '6' OR number ='--') OR (number = '659635137*' OR number = '65963513*' OR number = '6596351*' OR number = '659635*' OR number = '65963*' OR number = '6596*' OR number = '659*' OR number = '65*' OR number = '6*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                                                                                                                          
  536. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  537. 2024-04-17 05:10:52.053074 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '960202524' OR routing_prefix = '96020252' OR routing_prefix = '9602025' OR routing_prefix = '960202' OR routing_prefix = '96020' OR routing_prefix = '9602' OR routing_prefix = '960' OR routing_prefix = '96' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                                                
  538. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  539. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 9
  540. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 226942
  541. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10000
  542. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  543. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 14
  544. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  545. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  546. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 14 AND status = 0
  547. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  548. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="960202524" LIMIT 1                                                                                                                                                        
  549. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  550. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  551. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1156
  552. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  553. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  554. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  555. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Discana Spain
  556. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 174
  557. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 9
  558. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  559. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 9 !!!
  560. 2024-04-17 05:10:52.073082 99.93% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  561. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  562. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  563. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:0
  564. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 9 AND status=0 LIMIT 1                                                                                                                                                                                        
  565. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "59" AND deleted = 0 limit 1
  566. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 14 AND status = 0
  567. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  568. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 14 AND status = 0
  569. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^960202524.*' OR pattern = '^96020252.*' OR pattern = '^9602025.*' OR pattern = '^960202.*' OR pattern = '^96020.*' OR pattern = '^9602.*' OR pattern = '^960.*' OR pattern = '^96.*' OR pattern = '^9.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 14 OR accountid=9)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                                              
  570. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  571. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  572. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 89378
  573. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  574. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  575. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  576. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Desvio Discana
  577. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 174
  578. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 9
  579. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  580. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  581. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  582. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 9 !!!
  583. 2024-04-17 05:10:52.073082 99.93% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  584. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:9
  585. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:9
  586. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 9
  587. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  588. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  589. 2024-04-17 05:10:52.073082 99.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  590. 2024-04-17 05:10:52.073082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 59  and status = 0 limit 1
  591. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  592. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] START:
  593. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  594. <document type="freeswitch/xml">                                                                                                                                                                                  
  595. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  596. <context name="default">                                                                                                                                                                                          
  597. <extension name="960202524">                                                                                                                                                                                      
  598. <condition field="destination_number" expression="960202524">                                                                                                                                                      
  599. <action application="set" data="effective_destination_number=960202524"/>                                                                                                                                          
  600. <action application="set" data="execute_on_answer_1=sched_hangup +6000 normal_clearing"/>                                                                                                                          
  601. <action application="set" data="callstart=2024-04-17 05:10:52"/>                                                                                                                                                  
  602. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  603. <action application="set" data="continue_on_fail=!USER_BUSY"/>                                                                                                                                                    
  604. <action application="set" data="account_id=9"/>                                                                                                                                                                    
  605. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  606. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  607. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  608. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  609. <action application="set" data="accountname=default"/>                                                                                                                                                            
  610. <action application="set" data="origination_rates_did=ID:1156|CODE:^960202524.*|DESTINATION:Discana Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:59"/>                                                                                                                                                                                                    
  611. <action application="set" data="origination_rates=ID:89378|CODE:^960202524.*|DESTINATION:Desvio Discana|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:14|MARKUP:0|CI:174|ACCID:9"/>                                                                                                                                                                                                        
  612. <action application="set" data="original_caller_id_name=659635137"/>                                                                                                                                              
  613. <action application="set" data="original_caller_id_number=659635137"/>                                                                                                                                            
  614. <action application="set" data="effective_caller_id_name=659635137"/>                                                                                                                                              
  615. <action application="set" data="effective_caller_id_number=659635137"/>                                                                                                                                            
  616. <action application="set" data="receiver_accid=59"/>                                                                                                                                                              
  617. <action application="export" data="domain_name="/>                                                                                                                                                                
  618. <action application="export" data="sip_to_host="/>                                                                                                                                                                
  619. <action application="export" data="presence_data=x|||Discana(612825)|||||||||DID|||54.170.60.120"/>                                                                                                                
  620. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  621. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  622. <action application="bridge" data="{sip_invite_params=user=LOCAL,absolute_codec_string=^^:PCMU:PCMA:G729}[leg_timeout=0]sofia/${sofia_profile_name}/612825@cloud.masip.es^960202524"/>                            
  623. <condition field="${cond(${user_data 612825@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                            
  624. <action application="answer"/>                                                                                                                                                                                    
  625. <action application="export" data="voicemail_alternate_greet_id=960202524"/>                                                                                                                                      
  626. <action application="voicemail" data="default $${domain_name} 612825"/>                                                                                                                                            
  627. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  628. </condition>                                                                                                                                                                                                      
  629. <action application="set" data="did_id=1156"/>                                                                                                                                                                    
  630. <action application="set" data="destination_number=960202524"/>                                                                                                                                                    
  631. <action application="set" data="leg_timeout=0"/>                                                                                                                                                                  
  632. <action application="set" data="call_type_vm_flag=1"/>                                                                                                                                                            
  633. <action application="set" data="is_local_extension=1"/>                                                                                                                                                            
  634. <action application="lua" data="did_call_forwarding.lua"/>                                                                                                                                                        
  635. </condition>                                                                                                                                                                                                      
  636. </extension>                                                                                                                                                                                                      
  637. </context>                                                                                                                                                                                                        
  638. </section>                                                                                                                                                                                                        
  639. </document>                                                                                                                                                                                                        
  640. Dialplan: sofia/default/659635137@54.170.60.120 parsing [default->960202524] continue=false
  641. Dialplan: sofia/default/659635137@54.170.60.120 Regex (PASS) [960202524] destination_number(960202524) =~ /960202524/ break=on-false
  642. Dialplan: sofia/default/659635137@54.170.60.120 Action set(effective_destination_number=960202524)
  643. Dialplan: sofia/default/659635137@54.170.60.120 Action set(execute_on_answer_1=sched_hangup +6000 normal_clearing)
  644. Dialplan: sofia/default/659635137@54.170.60.120 Action set(callstart=2024-04-17 05:10:52)
  645. Dialplan: sofia/default/659635137@54.170.60.120 Action set(hangup_after_bridge=true)
  646. Dialplan: sofia/default/659635137@54.170.60.120 Action set(continue_on_fail=!USER_BUSY)
  647. Dialplan: sofia/default/659635137@54.170.60.120 Action set(account_id=9)
  648. Dialplan: sofia/default/659635137@54.170.60.120 Action set(parent_id=0)
  649. Dialplan: sofia/default/659635137@54.170.60.120 Action set(entity_id=3)
  650. Dialplan: sofia/default/659635137@54.170.60.120 Action set(call_processed=internal)
  651. Dialplan: sofia/default/659635137@54.170.60.120 Action set(call_direction=inbound)
  652. Dialplan: sofia/default/659635137@54.170.60.120 Action set(accountname=default)
  653. Dialplan: sofia/default/659635137@54.170.60.120 Action set(origination_rates_did=ID:1156|CODE:^960202524.*|DESTINATION:Discana Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:59)                                                                                                                                                                            
  654. Dialplan: sofia/default/659635137@54.170.60.120 Action set(origination_rates=ID:89378|CODE:^960202524.*|DESTINATION:Desvio Discana|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:14|MARKUP:0|CI:174|ACCID:9)                                                                                                                                                                              
  655. Dialplan: sofia/default/659635137@54.170.60.120 Action set(original_caller_id_name=659635137)
  656. Dialplan: sofia/default/659635137@54.170.60.120 Action set(original_caller_id_number=659635137)
  657. Dialplan: sofia/default/659635137@54.170.60.120 Action set(effective_caller_id_name=659635137)
  658. Dialplan: sofia/default/659635137@54.170.60.120 Action set(effective_caller_id_number=659635137)
  659. Dialplan: sofia/default/659635137@54.170.60.120 Action set(receiver_accid=59)
  660. Dialplan: sofia/default/659635137@54.170.60.120 Action export(domain_name=)
  661. Dialplan: sofia/default/659635137@54.170.60.120 Action export(sip_to_host=)
  662. Dialplan: sofia/default/659635137@54.170.60.120 Action export(presence_data=x|||Discana(612825)|||||||||DID|||54.170.60.120)
  663. Dialplan: sofia/default/659635137@54.170.60.120 Action export(call_type=5)
  664. Dialplan: sofia/default/659635137@54.170.60.120 Action set(calltype=SIP-DID)
  665. Dialplan: sofia/default/659635137@54.170.60.120 Action bridge({sip_invite_params=user=LOCAL,absolute_codec_string=^^:PCMU:PCMA:G729}[leg_timeout=0]sofia/${sofia_profile_name}/612825@cloud.masip.es^960202524)
  666. Dialplan: sofia/default/659635137@54.170.60.120 Action set(did_id=1156)
  667. Dialplan: sofia/default/659635137@54.170.60.120 Action set(destination_number=960202524)
  668. Dialplan: sofia/default/659635137@54.170.60.120 Action set(leg_timeout=0)
  669. Dialplan: sofia/default/659635137@54.170.60.120 Action set(call_type_vm_flag=1)
  670. Dialplan: sofia/default/659635137@54.170.60.120 Action set(is_local_extension=1)
  671. Dialplan: sofia/default/659635137@54.170.60.120 Action lua(did_call_forwarding.lua)
  672. |--- Dialplan: Processing recursive conditions level:1 [960202524_recur_1] require-nested=TRUE
  673. |--- Dialplan: sofia/default/659635137@54.170.60.120 Regex (PASS) [960202524_recur_1] ${cond(${user_data 612825@${domain_name} param vm-enabled} == true ? YES : NO)}(YES) =~ /^YES$/ break=on-false
  674. |--- Dialplan: sofia/default/659635137@54.170.60.120 Action answer()
  675. |--- Dialplan: sofia/default/659635137@54.170.60.120 Action export(voicemail_alternate_greet_id=960202524)
  676. |--- Dialplan: sofia/default/659635137@54.170.60.120 Action voicemail(default $${domain_name} 612825)
  677. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:281 (sofia/default/659635137@54.170.60.120) State Change CS_ROUTING -> CS_EXECUTE
  678. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:640 (sofia/default/659635137@54.170.60.120) State ROUTING going to sleep
  679. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/659635137@54.170.60.120) Running State Change CS_EXECUTE (Cur 1 Tot 811785)
  680. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:647 (sofia/default/659635137@54.170.60.120) State EXECUTE
  681. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_sofia.c:213 sofia/default/659635137@54.170.60.120 SOFIA EXECUTE
  682. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:323 sofia/default/659635137@54.170.60.120 Standard EXECUTE
  683. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(effective_destination_number=960202524)
  684. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [effective_destination_number]=[960202524]
  685. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(execute_on_answer_1=sched_hangup +6000 normal_clearing)
  686. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [execute_on_answer_1]=[sched_hangup +6000 normal_clearing]
  687. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(callstart=2024-04-17 05:10:52)
  688. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [callstart]=[2024-04-17 05:10:52]
  689. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(hangup_after_bridge=true)
  690. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [hangup_after_bridge]=[true]
  691. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(continue_on_fail=!USER_BUSY)
  692. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [continue_on_fail]=[!USER_BUSY]
  693. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(account_id=9)
  694. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [account_id]=[9]
  695. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(parent_id=0)
  696. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [parent_id]=[0]
  697. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(entity_id=3)
  698. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [entity_id]=[3]
  699. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(call_processed=internal)
  700. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [call_processed]=[internal]
  701. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(call_direction=inbound)
  702. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [call_direction]=[inbound]
  703. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(accountname=default)
  704. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [accountname]=[default]
  705. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(origination_rates_did=ID:1156|CODE:^960202524.*|DESTINATION:Discana Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:59)                                                                                                                                                                          
  706. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [origination_rates_did]=[ID:1156|CODE:^960202524.*|DESTINATION:Discana Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:59]                                                                                                                            
  707. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(origination_rates=ID:89378|CODE:^960202524.*|DESTINATION:Desvio Discana|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:14|MARKUP:0|CI:174|ACCID:9)                                                                                                                                                                              
  708. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [origination_rates]=[ID:89378|CODE:^960202524.*|DESTINATION:Desvio Discana|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:14|MARKUP:0|CI:174|ACCID:9]                                                                                                                                
  709. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(original_caller_id_name=659635137)
  710. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [original_caller_id_name]=[659635137]
  711. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(original_caller_id_number=659635137)
  712. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [original_caller_id_number]=[659635137]
  713. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(effective_caller_id_name=659635137)
  714. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [effective_caller_id_name]=[659635137]
  715. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(effective_caller_id_number=659635137)
  716. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [effective_caller_id_number]=[659635137]
  717. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(receiver_accid=59)
  718. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [receiver_accid]=[59]
  719. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 export(domain_name=)
  720. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[UNDEF]
  721. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 export(sip_to_host=)
  722. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[UNDEF]
  723. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 export(presence_data=x|||Discana(612825)|||||||||DID|||54.170.60.120)
  724. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Discana(612825)|||||||||DID|||54.170.60.120]
  725. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 export(call_type=5)
  726. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[5]
  727. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 set(calltype=SIP-DID)
  728. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_dptools.c:1685 SET sofia/default/659635137@54.170.60.120 [calltype]=[SIP-DID]
  729. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 bridge({sip_invite_params=user=LOCAL,absolute_codec_string=^^:PCMU:PCMA:G729}[leg_timeout=0]sofia/default/612825@cloud.masip.es^960202524)
  730. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_channel.c:1269 sofia/default/659635137@54.170.60.120 EXPORTING[export_vars] [presence_data]=[x|||Discana(612825)|||||||||DID|||54.170.60.120] to event
  731. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_channel.c:1269 sofia/default/659635137@54.170.60.120 EXPORTING[export_vars] [call_type]=[5] to event
  732. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  733. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  734. 2024-04-17 05:10:52.093082 99.93% [NOTICE] switch_channel.c:1123 New Channel sofia/default/612825@cloud.masip.es [cc6bc080-da40-48c3-b069-cdafbbea7411]
  735. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_sofia.c:5121 (sofia/default/612825@cloud.masip.es) State Change CS_NEW -> CS_INIT
  736. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/612825@cloud.masip.es) Running State Change CS_INIT (Cur 2 Tot 811786)
  737. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:624 (sofia/default/612825@cloud.masip.es) State INIT
  738. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_sofia.c:97 sofia/default/612825@cloud.masip.es SOFIA INIT
  739. 2024-04-17 05:10:52.093082 99.93% [INFO] sofia_glue.c:1651 sofia/default/612825@cloud.masip.es sending invite call-id: (null)
  740. 2024-04-17 05:10:52.093082 99.93% [DEBUG] sofia_glue.c:1654 sofia/default/612825@cloud.masip.es sending invite version: 1.10.7 -release 64bit
  741. Local SDP:                                                                                                                                                                                                        
  742. v=0                                                                                                                                                                                                                
  743. o=FreeSWITCH 1713312794 1713312795 IN IP4 54.220.206.86                                                                                                                                                            
  744. s=FreeSWITCH                                                                                                                                                                                                      
  745. c=IN IP4 54.220.206.86                                                                                                                                                                                            
  746. t=0 0                                                                                                                                                                                                              
  747. m=audio 17858 RTP/AVP 0 8 18 101                                                                                                                                                                                  
  748. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  749. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  750. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  751. a=fmtp:18 annexb=no                                                                                                                                                                                                
  752. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  753. a=fmtp:101 0-15                                                                                                                                                                                                    
  754. a=ptime:20                                                                                                                                                                                                        
  755. a=sendrecv                                                                                                                                                                                                        
  756.  
  757. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:40 sofia/default/612825@cloud.masip.es Standard INIT
  758. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:48 (sofia/default/612825@cloud.masip.es) State Change CS_INIT -> CS_ROUTING
  759. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:624 (sofia/default/612825@cloud.masip.es) State INIT going to sleep
  760. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/612825@cloud.masip.es) Running State Change CS_ROUTING (Cur 2 Tot 811786)
  761. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:640 (sofia/default/612825@cloud.masip.es) State ROUTING
  762. 2024-04-17 05:10:52.093082 99.93% [DEBUG] mod_sofia.c:158 sofia/default/612825@cloud.masip.es SOFIA ROUTING
  763. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_ivr_originate.c:67 (sofia/default/612825@cloud.masip.es) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  764. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:640 (sofia/default/612825@cloud.masip.es) State ROUTING going to sleep
  765. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/612825@cloud.masip.es) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 811786)
  766. 2024-04-17 05:10:52.093082 99.93% [DEBUG] sofia.c:7499 Channel sofia/default/612825@cloud.masip.es entering state [calling][0]
  767. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:659 (sofia/default/612825@cloud.masip.es) State CONSUME_MEDIA
  768. 2024-04-17 05:10:52.093082 99.93% [DEBUG] switch_core_state_machine.c:659 (sofia/default/612825@cloud.masip.es) State CONSUME_MEDIA going to sleep
  769. 2024-04-17 05:10:52.633083 99.93% [INFO] sofia.c:1348 sofia/default/612825@cloud.masip.es Update Callee ID to "Outbound Call" <sip:960202524@cloud.masip.es>
  770. 2024-04-17 05:10:52.633083 99.93% [DEBUG] sofia.c:7499 Channel sofia/default/612825@cloud.masip.es entering state [proceeding][180]
  771. 2024-04-17 05:10:52.633083 99.93% [NOTICE] sofia.c:7610 Ring-Ready sofia/default/612825@cloud.masip.es!
  772. 2024-04-17 05:10:52.633083 99.93% [DEBUG] switch_channel.c:3494 (sofia/default/612825@cloud.masip.es) Callstate Change DOWN -> RINGING
  773. 2024-04-17 05:10:52.653075 99.93% [NOTICE] mod_sofia.c:2515 Ring-Ready sofia/default/659635137@54.170.60.120!
  774. 2024-04-17 05:10:52.653075 99.93% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [early][180]
  775. 2024-04-17 05:10:52.653075 99.93% [NOTICE] switch_ivr_originate.c:565 Ring Ready sofia/default/659635137@54.170.60.120!
  776. 2024-04-17 05:10:52.693079 99.93% [INFO] sofia.c:1348 sofia/default/612825@cloud.masip.es Update Callee ID to "Outbound Call" <sip:960202524@cloud.masip.es>
  777. 2024-04-17 05:10:52.693079 99.93% [DEBUG] sofia.c:7499 Channel sofia/default/612825@cloud.masip.es entering state [proceeding][183]
  778. 2024-04-17 05:10:52.693079 99.93% [DEBUG] sofia.c:7509 Remote SDP:
  779. v=0                                                                                                                                                                                                                
  780. o=root 1713304614 1713304615 IN IP4 185.237.201.115                                                                                                                                                                
  781. s=root                                                                                                                                                                                                            
  782. c=IN IP4 185.237.201.115                                                                                                                                                                                          
  783. t=0 0                                                                                                                                                                                                              
  784. m=audio 26038 RTP/AVP 0 101                                                                                                                                                                                        
  785. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  786. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  787. a=fmtp:101 0-15                                                                                                                                                                                                    
  788. a=silenceSupp:off - - - -                                                                                                                                                                                          
  789. a=ptime:20                                                                                                                                                                                                        
  790.  
  791. 2024-04-17 05:10:52.693079 99.93% [NOTICE] sofia.c:7512 Pre-Answer sofia/default/612825@cloud.masip.es!
  792. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_channel.c:3622 (sofia/default/612825@cloud.masip.es) Callstate Change RINGING -> EARLY
  793. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  794. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  795. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  796. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  797. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  798. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/612825@cloud.masip.es PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  799. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_codec.c:111 sofia/default/612825@cloud.masip.es Original read codec set to PCMU:0
  800. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  801. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:5973 sofia/default/612825@cloud.masip.es Set 2833 dtmf send payload to 101 recv payload to 101
  802. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/612825@cloud.masip.es] 10.0.2.92 port 17858 -> 185.237.201.115 port 26038 codec: 0 ms: 20
  803. 2024-04-17 05:10:52.693079 99.93% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
  804. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:9089 sofia/default/612825@cloud.masip.es Set 2833 dtmf send payload to 101
  805. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:9096 sofia/default/612825@cloud.masip.es Set 2833 dtmf receive payload to 101
  806. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:9119 sofia/default/612825@cloud.masip.es Set rtp dtmf delay to 40
  807. 2024-04-17 05:10:52.713073 99.93% [INFO] switch_ivr_originate.c:3841 Sending early media
  808. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/659635137@54.170.60.120] 10.0.2.92 port 32142 -> 54.170.60.120 port 16040 codec: 8 ms: 20
  809. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
  810. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:9089 sofia/default/659635137@54.170.60.120 Set 2833 dtmf send payload to 97
  811. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:9096 sofia/default/659635137@54.170.60.120 Set 2833 dtmf receive payload to 97
  812. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_media.c:9119 sofia/default/659635137@54.170.60.120 Set rtp dtmf delay to 40
  813. 2024-04-17 05:10:52.713073 99.93% [DEBUG] mod_sofia.c:2610 Ring SDP:
  814. v=0                                                                                                                                                                                                                
  815. o=FreeSWITCH 1713298510 1713298511 IN IP4 54.220.206.86                                                                                                                                                            
  816. s=FreeSWITCH                                                                                                                                                                                                      
  817. c=IN IP4 54.220.206.86                                                                                                                                                                                            
  818. t=0 0                                                                                                                                                                                                              
  819. m=audio 32142 RTP/AVP 8 97                                                                                                                                                                                        
  820. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  821. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  822. a=fmtp:97 0-15                                                                                                                                                                                                    
  823. a=ptime:20                                                                                                                                                                                                        
  824. a=sendrecv                                                                                                                                                                                                        
  825.  
  826. 2024-04-17 05:10:52.713073 99.93% [NOTICE] mod_sofia.c:2613 Pre-Answer sofia/default/659635137@54.170.60.120!
  827. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_channel.c:3622 (sofia/default/659635137@54.170.60.120) Callstate Change RINGING -> EARLY
  828. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_ivr_originate.c:3892 Originate Resulted in Success: [sofia/default/612825@cloud.masip.es] Peer UUID: cc6bc080-da40-48c3-b069-cdafbbea7411
  829. 2024-04-17 05:10:52.713073 99.93% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [early][183]
  830. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/612825@cloud.masip.es) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  831. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_state_machine.c:581 (sofia/default/612825@cloud.masip.es) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 811786)
  832. 2024-04-17 05:10:52.713073 99.93% [DEBUG] switch_core_state_machine.c:650 (sofia/default/612825@cloud.masip.es) State EXCHANGE_MEDIA
  833. 2024-04-17 05:10:52.713073 99.93% [DEBUG] mod_sofia.c:671 SOFIA EXCHANGE_MEDIA
  834. 2024-04-17 05:10:52.753079 99.93% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
  835. 2024-04-17 05:10:58.793081 99.90% [INFO] sofia.c:1348 sofia/default/612825@cloud.masip.es Update Callee ID to "Outbound Call" <sip:960202524@cloud.masip.es>
  836. 2024-04-17 05:10:58.793081 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/612825@cloud.masip.es entering state [completing][200]
  837. 2024-04-17 05:10:58.793081 99.90% [DEBUG] sofia.c:7506 Duplicate SDP
  838. v=0                                                                                                                                                                                                                
  839. o=root 1713304614 1713304615 IN IP4 185.237.201.115                                                                                                                                                                
  840. s=root                                                                                                                                                                                                            
  841. c=IN IP4 185.237.201.115                                                                                                                                                                                          
  842. t=0 0                                                                                                                                                                                                              
  843. m=audio 26038 RTP/AVP 0 101                                                                                                                                                                                        
  844. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  845. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  846. a=fmtp:101 0-15                                                                                                                                                                                                    
  847. a=silenceSupp:off - - - -                                                                                                                                                                                          
  848. a=ptime:20                                                                                                                                                                                                        
  849.  
  850. 2024-04-17 05:10:58.813083 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/612825@cloud.masip.es entering state [ready][200]
  851. 2024-04-17 05:10:58.813083 99.90% [NOTICE] sofia.c:8624 Channel [sofia/default/612825@cloud.masip.es] has been answered
  852. 2024-04-17 05:10:58.813083 99.90% [DEBUG] switch_channel.c:3950 (sofia/default/612825@cloud.masip.es) Callstate Change EARLY -> ACTIVE
  853. 2024-04-17 05:10:58.833084 99.90% [DEBUG] switch_core_media.c:8759 Audio params are unchanged for sofia/default/659635137@54.170.60.120.
  854. 2024-04-17 05:10:58.833084 99.90% [DEBUG] mod_sofia.c:913 Local SDP sofia/default/659635137@54.170.60.120:
  855. v=0                                                                                                                                                                                                                
  856. o=FreeSWITCH 1713298510 1713298512 IN IP4 54.220.206.86                                                                                                                                                            
  857. s=FreeSWITCH                                                                                                                                                                                                      
  858. c=IN IP4 54.220.206.86                                                                                                                                                                                            
  859. t=0 0                                                                                                                                                                                                              
  860. m=audio 32142 RTP/AVP 8 97                                                                                                                                                                                        
  861. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  862. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  863. a=fmtp:97 0-15                                                                                                                                                                                                    
  864. a=ptime:20                                                                                                                                                                                                        
  865. a=sendrecv                                                                                                                                                                                                        
  866.  
  867. 2024-04-17 05:10:58.833084 99.90% [NOTICE] switch_ivr_bridge.c:731 Channel [sofia/default/659635137@54.170.60.120] has been answered
  868. EXECUTE [depth=0] sofia/default/659635137@54.170.60.120 sched_hangup(+6000 normal_clearing)
  869. 2024-04-17 05:10:58.833084 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [completed][200]
  870. 2024-04-17 05:10:58.833084 99.90% [DEBUG] switch_scheduler.c:263 Added task 113995 switch_ivr_schedule_hangup (f1eaa947-70e8-4362-9519-c26c68fc2f7a) to run at 1713336658
  871. 2024-04-17 05:10:58.833084 99.90% [DEBUG] switch_channel.c:3950 (sofia/default/659635137@54.170.60.120) Callstate Change EARLY -> ACTIVE
  872. 2024-04-17 05:10:58.853075 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [ready][200]
  873. 2024-04-17 05:10:58.853075 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [received][100]
  874. 2024-04-17 05:10:58.853075 99.90% [DEBUG] sofia.c:7509 Remote SDP:
  875. v=0                                                                                                                                                                                                                
  876. o=Sonus_UAC 56028 659388 IN IP4 54.170.60.120                                                                                                                                                                      
  877. s=SIP Media Capabilities                                                                                                                                                                                          
  878. c=IN IP4 54.170.60.120                                                                                                                                                                                            
  879. t=0 0                                                                                                                                                                                                              
  880. m=audio 16040 RTP/AVP 8 97                                                                                                                                                                                        
  881. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  882. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  883. a=fmtp:97 0-15                                                                                                                                                                                                    
  884. a=ptime:20                                                                                                                                                                                                        
  885.  
  886. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  887. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  888. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  889. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  890. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 97@8000
  891. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 97@8000
  892. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:5973 sofia/default/659635137@54.170.60.120 Set 2833 dtmf send payload to 97 recv payload to 97
  893. 2024-04-17 05:10:58.853075 99.90% [DEBUG] switch_core_media.c:8759 Audio params are unchanged for sofia/default/659635137@54.170.60.120.
  894. 2024-04-17 05:10:58.853075 99.90% [DEBUG] sofia.c:8454 Processing updated SDP
  895. 2024-04-17 05:10:58.853075 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [completed][200]
  896. 2024-04-17 05:10:58.873077 99.90% [DEBUG] sofia.c:7499 Channel sofia/default/659635137@54.170.60.120 entering state [ready][200]
  897. 2024-04-17 05:10:58.913080 99.90% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
  898. 2024-04-17 05:10:59.193082 99.90% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
  899. 2024-04-17 05:11:24.813076 99.57% [NOTICE] sofia.c:1065 Hangup sofia/default/612825@cloud.masip.es [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  900. 2024-04-17 05:11:24.813076 99.57% [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/612825@cloud.masip.es]
  901. 2024-04-17 05:11:24.813076 99.57% [DEBUG] switch_core_state_machine.c:650 (sofia/default/612825@cloud.masip.es) State EXCHANGE_MEDIA going to sleep
  902. 2024-04-17 05:11:24.813076 99.57% [DEBUG] switch_core_state_machine.c:581 (sofia/default/612825@cloud.masip.es) Running State Change CS_HANGUP (Cur 2 Tot 811786)
  903. 2024-04-17 05:11:24.813076 99.57% [DEBUG] switch_core_state_machine.c:844 (sofia/default/612825@cloud.masip.es) Callstate Change ACTIVE -> HANGUP
  904. 2024-04-17 05:11:24.813076 99.57% [DEBUG] switch_core_state_machine.c:846 (sofia/default/612825@cloud.masip.es) State HANGUP
  905. 2024-04-17 05:11:24.813076 99.57% [DEBUG] mod_sofia.c:468 Channel sofia/default/612825@cloud.masip.es hanging up, cause: NORMAL_CLEARING
  906. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:59 sofia/default/612825@cloud.masip.es Standard HANGUP, cause: NORMAL_CLEARING
  907. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:846 (sofia/default/612825@cloud.masip.es) State HANGUP going to sleep
  908. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:616 (sofia/default/612825@cloud.masip.es) State Change CS_HANGUP -> CS_REPORTING
  909. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:581 (sofia/default/612825@cloud.masip.es) Running State Change CS_REPORTING (Cur 2 Tot 811786)
  910. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:932 (sofia/default/612825@cloud.masip.es) State REPORTING
  911. 2024-04-17 05:11:24.833081 99.57% [INFO] mod_json_cdr.c:271 Process [cc6bc080-da40-48c3-b069-cdafbbea7411.cdr.json]
  912. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:168 sofia/default/612825@cloud.masip.es Standard REPORTING, cause: NORMAL_CLEARING
  913. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:932 (sofia/default/612825@cloud.masip.es) State REPORTING going to sleep
  914. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:607 (sofia/default/612825@cloud.masip.es) State Change CS_REPORTING -> CS_DESTROY
  915. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_session.c:1753 Session 811786 (sofia/default/612825@cloud.masip.es) Locked, Waiting on external entities
  916. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_ivr_bridge.c:820 sofia/default/612825@cloud.masip.es ending bridge by request from write function
  917. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/659635137@54.170.60.120]
  918. 2024-04-17 05:11:24.833081 99.57% [NOTICE] switch_ivr_bridge.c:1944 Hangup sofia/default/659635137@54.170.60.120 [CS_EXECUTE] [NORMAL_CLEARING]
  919. 2024-04-17 05:11:24.833081 99.57% [NOTICE] switch_core_session.c:1771 Session 811786 (sofia/default/612825@cloud.masip.es) Ended
  920. 2024-04-17 05:11:24.833081 99.57% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/612825@cloud.masip.es [CS_DESTROY]
  921. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_session.c:2983 sofia/default/659635137@54.170.60.120 skip receive message [PHONE_EVENT] (channel is hungup already)
  922. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:647 (sofia/default/659635137@54.170.60.120) State EXECUTE going to sleep
  923. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:581 (sofia/default/659635137@54.170.60.120) Running State Change CS_HANGUP (Cur 1 Tot 811786)
  924. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:735 (sofia/default/612825@cloud.masip.es) Running State Change CS_DESTROY (Cur 1 Tot 811786)
  925. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:745 (sofia/default/612825@cloud.masip.es) State DESTROY
  926. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:844 (sofia/default/659635137@54.170.60.120) Callstate Change ACTIVE -> HANGUP
  927. 2024-04-17 05:11:24.833081 99.57% [DEBUG] mod_sofia.c:379 sofia/default/612825@cloud.masip.es SOFIA DESTROY
  928. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:175 sofia/default/612825@cloud.masip.es Standard DESTROY
  929. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:745 (sofia/default/612825@cloud.masip.es) State DESTROY going to sleep
  930. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:846 (sofia/default/659635137@54.170.60.120) State HANGUP
  931. 2024-04-17 05:11:24.833081 99.57% [DEBUG] mod_sofia.c:462 sofia/default/659635137@54.170.60.120 Overriding SIP cause 480 with 200 from the other leg
  932. 2024-04-17 05:11:24.833081 99.57% [DEBUG] mod_sofia.c:468 Channel sofia/default/659635137@54.170.60.120 hanging up, cause: NORMAL_CLEARING
  933. 2024-04-17 05:11:24.833081 99.57% [DEBUG] mod_sofia.c:522 Sending BYE to sofia/default/659635137@54.170.60.120
  934. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:59 sofia/default/659635137@54.170.60.120 Standard HANGUP, cause: NORMAL_CLEARING
  935. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:846 (sofia/default/659635137@54.170.60.120) State HANGUP going to sleep
  936. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:616 (sofia/default/659635137@54.170.60.120) State Change CS_HANGUP -> CS_REPORTING
  937. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:581 (sofia/default/659635137@54.170.60.120) Running State Change CS_REPORTING (Cur 1 Tot 811786)
  938. 2024-04-17 05:11:24.833081 99.57% [DEBUG] switch_core_state_machine.c:932 (sofia/default/659635137@54.170.60.120) State REPORTING
  939. 2024-04-17 05:11:24.833081 99.57% [INFO] mod_json_cdr.c:271 Process [f1eaa947-70e8-4362-9519-c26c68fc2f7a.cdr.json]
  940. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:168 sofia/default/659635137@54.170.60.120 Standard REPORTING, cause: NORMAL_CLEARING
  941. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:932 (sofia/default/659635137@54.170.60.120) State REPORTING going to sleep
  942. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:607 (sofia/default/659635137@54.170.60.120) State Change CS_REPORTING -> CS_DESTROY
  943. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_session.c:1753 Session 811785 (sofia/default/659635137@54.170.60.120) Locked, Waiting on external entities
  944. 2024-04-17 05:11:24.853079 99.57% [NOTICE] switch_core_session.c:1771 Session 811785 (sofia/default/659635137@54.170.60.120) Ended
  945. 2024-04-17 05:11:24.853079 99.57% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/659635137@54.170.60.120 [CS_DESTROY]
  946. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:735 (sofia/default/659635137@54.170.60.120) Running State Change CS_DESTROY (Cur 0 Tot 811786)
  947. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:745 (sofia/default/659635137@54.170.60.120) State DESTROY
  948. 2024-04-17 05:11:24.853079 99.57% [DEBUG] mod_sofia.c:379 sofia/default/659635137@54.170.60.120 SOFIA DESTROY
  949. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:175 sofia/default/659635137@54.170.60.120 Standard DESTROY
  950. 2024-04-17 05:11:24.853079 99.57% [DEBUG] switch_core_state_machine.c:745 (sofia/default/659635137@54.170.60.120) State DESTROY going to sleep
  951. 2024-04-17 05:11:25.353079 99.53% [DEBUG] switch_scheduler.c:147 Deleting task 113995 switch_ivr_schedule_hangup (f1eaa947-70e8-4362-9519-c26c68fc2f7a)
  952.