From Lousy Flamingo, 2 Weeks ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2024-04-17 04:48:25.313082 99.67% [NOTICE] switch_channel.c:1123 New Channel sofia/default/321785@cloud.masip.es [e41e2613-dbe7-49d1-aae9-5a46498367cd]
  2. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_NEW (Cur 1 Tot 811772)
  3. 2024-04-17 04:48:25.313082 99.67% [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: NTdlOWZkN2NkYzc0ZjkwZjg1NWQxY2VmMGRmN2MxYzg.
  4. 2024-04-17 04:48:25.313082 99.67% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 34.252.123.120:0.
  5. 2024-04-17 04:48:25.313082 99.67% [DEBUG] sofia.c:10585 IP 34.252.123.120 Approved by acl "default[]". Access Granted.
  6. 2024-04-17 04:48:25.313082 99.67% [DEBUG] sofia.c:7499 Channel sofia/default/321785@cloud.masip.es entering state [received][100]
  7. 2024-04-17 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  29. 2024-04-17 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  34. 2024-04-17 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  38. 2024-04-17 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [DEBUG] switch_core_codec.c:111 sofia/default/321785@cloud.masip.es Original read codec set to PCMA:8
  40. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  41. 2024-04-17 04:48:25.313082 99.67% [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 04:48:25.313082 99.67% [DEBUG] sofia.c:7933 (sofia/default/321785@cloud.masip.es) State Change CS_NEW -> CS_INIT
  43. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:600 (sofia/default/321785@cloud.masip.es) State NEW
  44. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_INIT (Cur 1 Tot 811772)
  45. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:624 (sofia/default/321785@cloud.masip.es) State INIT
  46. 2024-04-17 04:48:25.313082 99.67% [DEBUG] mod_sofia.c:97 sofia/default/321785@cloud.masip.es SOFIA INIT
  47. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:40 sofia/default/321785@cloud.masip.es Standard INIT
  48. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:48 (sofia/default/321785@cloud.masip.es) State Change CS_INIT -> CS_ROUTING
  49. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:624 (sofia/default/321785@cloud.masip.es) State INIT going to sleep
  50. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_ROUTING (Cur 1 Tot 811772)
  51. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_channel.c:2380 (sofia/default/321785@cloud.masip.es) Callstate Change DOWN -> RINGING
  52. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING
  53. 2024-04-17 04:48:25.313082 99.67% [DEBUG] mod_sofia.c:158 sofia/default/321785@cloud.masip.es SOFIA ROUTING
  54. 2024-04-17 04:48:25.313082 99.67% [DEBUG] switch_core_state_machine.c:230 sofia/default/321785@cloud.masip.es Standard ROUTING
  55. 2024-04-17 04:48:25.313082 99.67% [INFO] mod_dialplan_xml.c:639 Processing 321785 <321785>->38933550965 in context default
  56. 2024-04-17 04:48:25.333081 99.67% [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 04:48:25.353081 99.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2024-04-17 04:48:25.353081 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 38933550965
  59. 2024-04-17 04:48:25.353081 99.67% [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 04:48:25.353081 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 321785 / 321785
  61. 2024-04-17 04:48:25.353081 99.67% [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 04:48:25.353081 99.67% [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 04:48:25.353081 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  64. 2024-04-17 04:48:25.353081 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 321785]
  65. 2024-04-17 04:48:25.353081 99.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "321785" AND deleted = 0 limit 1
  66. 2024-04-17 04:48:25.353081 99.67% [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 04:48:25.353081 99.67% [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 04:48:25.353081 99.67% [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 04:48:25.373082 99.67% [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 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 38933550965
  71. 2024-04-17 04:48:25.373082 99.67% [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 04:48:25.373082 99.67% [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 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  74. 2024-04-17 04:48:25.373082 99.67% [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 04:48:25.373082 99.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  76. 2024-04-17 04:48:25.373082 99.67% [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 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  78. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 151
  79. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 321785
  80. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10
  81. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  82. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  83. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  84. 2024-04-17 04:48:25.373082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  85. 2024-04-17 04:48:25.373082 99.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  86. 2024-04-17 04:48:25.373082 99.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  87. 2024-04-17 04:48:25.373082 99.67% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  88. 2024-04-17 04:48:25.373082 99.67% [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 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  90. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  91. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 158115
  92. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  93. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  94. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 1.15800
  95. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Macedonia
  96. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  97. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 151
  98. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  99. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  100. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  101. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10 balance Accountid 151 !!!
  102. 2024-04-17 04:48:25.393082 99.67% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 8.6355785837651 minutes
  103. 2024-04-17 04:48:25.393082 99.67% [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 04:48:25.393082 99.67% [DEBUG] switch_core_state_machine.c:281 (sofia/default/321785@cloud.masip.es) State Change CS_ROUTING -> CS_EXECUTE
  130. 2024-04-17 04:48:25.393082 99.67% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING going to sleep
  131. 2024-04-17 04:48:25.393082 99.67% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_EXECUTE (Cur 1 Tot 811772)
  132. 2024-04-17 04:48:25.393082 99.67% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE
  133. 2024-04-17 04:48:25.393082 99.67% [DEBUG] mod_sofia.c:213 sofia/default/321785@cloud.masip.es SOFIA EXECUTE
  134. 2024-04-17 04:48:25.393082 99.67% [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 04:48:25.393082 99.67% [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 04:48:25.393082 99.67% [DEBUG] mod_curl.c:200 method: POST, url: https://cloud.masip.es/custom_curl/index, content-type: (null)
  139. 2024-04-17 04:48:25.393082 99.67% [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 04:48:25.393082 99.67% [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 04:48:25.473081 99.67% [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 04:48:25.473081 99.67% [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 04:48:28.493079 99.63% [DEBUG] switch_ivr.c:2289 (sofia/default/321785@cloud.masip.es) State Change CS_EXECUTE -> CS_ROUTING
  148. 2024-04-17 04:48:28.493079 99.63% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/321785@cloud.masip.es to XML[38933550965@default]
  149. 2024-04-17 04:48:28.493079 99.63% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE going to sleep
  150. 2024-04-17 04:48:28.493079 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_ROUTING (Cur 1 Tot 811772)
  151. 2024-04-17 04:48:28.493079 99.63% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING
  152. 2024-04-17 04:48:28.493079 99.63% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  153. 2024-04-17 04:48:28.493079 99.63% [DEBUG] mod_sofia.c:158 sofia/default/321785@cloud.masip.es SOFIA ROUTING
  154. 2024-04-17 04:48:28.493079 99.63% [DEBUG] switch_core_state_machine.c:230 sofia/default/321785@cloud.masip.es Standard ROUTING
  155. 2024-04-17 04:48:28.493079 99.63% [INFO] mod_dialplan_xml.c:639 Processing 321785 <321785>->38933550965 in context default
  156. 2024-04-17 04:48:28.493079 99.63% [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 04:48:28.493079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  158. 2024-04-17 04:48:28.493079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 38933550965
  159. 2024-04-17 04:48:28.493079 99.63% [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 04:48:28.493079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 321785 / 321785
  161. 2024-04-17 04:48:28.493079 99.63% [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 04:48:28.493079 99.63% [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 04:48:28.493079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  164. 2024-04-17 04:48:28.493079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 321785]
  165. 2024-04-17 04:48:28.493079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "321785" AND deleted = 0 limit 1
  166. 2024-04-17 04:48:28.493079 99.63% [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 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 38933550965
  171. 2024-04-17 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  174. 2024-04-17 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  176. 2024-04-17 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  178. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 151
  179. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 321785
  180. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10
  181. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  182. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  183. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  184. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  185. 2024-04-17 04:48:28.513085 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  186. 2024-04-17 04:48:28.513085 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  187. 2024-04-17 04:48:28.513085 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  188. 2024-04-17 04:48:28.513085 99.63% [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 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  190. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  191. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 158115
  192. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  193. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  194. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 1.15800
  195. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Macedonia
  196. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  197. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 151
  198. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  199. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  200. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  201. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10 balance Accountid 151 !!!
  202. 2024-04-17 04:48:28.513085 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 8.6355785837651 minutes
  203. 2024-04-17 04:48:29.533078 99.63% [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 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== MASIP Information Start ===================
  205. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP Trunk ==> 2
  206. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP NRN ==>
  207. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP MMC ==>
  208. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== MASIP Information Ends ====================
  209. 2024-04-17 04:48:29.533078 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
  210. 2024-04-17 04:48:29.533078 99.63% [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 04:48:29.533078 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] From DB - trunk_ids ==> 8,11,6
  212. 2024-04-17 04:48:29.533078 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] masip_trunk ==> 2
  213. 2024-04-17 04:48:29.533078 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Trunk ID from MASIP ID Query :SELECT id FROM trunks WHERE masip_id = '2'
  214. 2024-04-17 04:48:29.533078 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] masip_trunk_id ==>
  215. 2024-04-17 04:48:29.533078 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Final - trunk_ids ==> 8,11,6
  216. 2024-04-17 04:48:29.533078 99.63% [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                                
  217. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  218. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 300537
  219. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^389.*
  220. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Macedonia - Fixed
  221. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  222. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  223. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^389.*
  224. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  225. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 00
  226. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 8
  227. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Aire_Ppal
  228. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  229. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : Aire_Bckp
  230. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 113
  231. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  232. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : AIRE
  233. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  234. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  235. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 513150
  236. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^389.*
  237. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Macedonia
  238. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  239. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  240. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^389.*
  241. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  242. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 8000
  243. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 11
  244. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Alisys
  245. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  246. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  247. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 164
  248. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  249. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : ALISYS
  250. 2024-04-17 04:48:29.533078 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  251. 2024-04-17 04:48:29.533078 99.63% [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                                                                                                                                                                                      
  252. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 8.6355785837651
  253. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  254. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  255. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  256. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] freeswitch_xml_outbound triggered !!!
  257. 2024-04-17 04:48:29.553079 99.63% [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 = 113) AND status=0 limit 1                                                                                                                                                                
  258. 2024-04-17 04:48:29.553079 99.63% [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 = 8) AND status=0 limit 1                                                                                                                                                                    
  259. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/00.....38933550965
  260. 2024-04-17 04:48:29.553079 99.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 38933550965
  261. 2024-04-17 04:48:29.553079 99.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0038933550965
  262. 2024-04-17 04:48:29.553079 99.63% [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                                                                                                                                                      
  263. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_nrn ==>
  264. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_mmc ==>
  265. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  266. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] freeswitch_xml_outbound triggered !!!
  267. 2024-04-17 04:48:29.553079 99.63% [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                                                                                                                                                                
  268. 2024-04-17 04:48:29.553079 99.63% [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                                                                                                                                                                    
  269. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/8000.....38933550965
  270. 2024-04-17 04:48:29.553079 99.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 38933550965
  271. 2024-04-17 04:48:29.553079 99.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 800038933550965
  272. 2024-04-17 04:48:29.553079 99.63% [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                                                                                                                                                      
  273. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_nrn ==>
  274. 2024-04-17 04:48:29.553079 99.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_mmc ==>
  275. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:
  276. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  277. <document type="freeswitch/xml">                                                                                                                                                                                  
  278. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  279. <context name="default">                                                                                                                                                                                          
  280. <extension name="38933550965">                                                                                                                                                                                    
  281. <condition field="destination_number" expression="38933550965">                                                                                                                                                    
  282. <action application="set" data="effective_destination_number=38933550965"/>                                                                                                                                        
  283. <action application="set" data="execute_on_answer_1=sched_hangup +518.13471502591 normal_clearing"/>                                                                                                              
  284. <action application="set" data="callstart=2024-04-17 04:48:29"/>                                                                                                                                                  
  285. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  286. <action application="set" data="continue_on_fail=!USER_BUSY"/>                                                                                                                                                    
  287. <action application="set" data="account_id=151"/>                                                                                                                                                                  
  288. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  289. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  290. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  291. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  292. <action application="set" data="accountname=default"/>                                                                                                                                                            
  293. <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"/>
  294. <action application="set" data="original_caller_id_name=321785"/>                                                                                                                                                  
  295. <action application="set" data="original_caller_id_number=321785"/>                                                                                                                                                
  296.  
  297. <action application="set" data="effective_caller_id_name=321785"/>                                                                                                                                                
  298. <action application="set" data="effective_caller_id_number=321785"/>                                                                                                                                              
  299. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  300. <action application="set" data="termination_rates=ID:300537|CODE:^389.*|DESTINATION:Macedonia - Fixed|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.60000|INC:1|INITIALBLOCK:0|TRUNK:8|PROVIDER:113"/>          
  301. <action application="set" data="trunk_id=8"/>                                                                                                                                                                      
  302. <action application="set" data="provider_id=113"/>                                                                                                                                                                
  303. <action application="set" data="rate_flag=2"/>                                                                                                                                                                    
  304. <action application="set" data="force_trunk_flag=0"/>                                                                                                                                                              
  305. <action application="export" data="presence_data=trunk_id=8"/>                                                                                                                                                    
  306. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  307. <action application="export" data="presence_id=38933550965"/>                                                                                                                                                      
  308. <action application="export" data="presence_data=x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||AIRE // ^389.* // Macedonia - Fixed // 0.60000 // trunk_id=8|||STD|||103.240.35.46"/>                    
  309. <action application="bridge" data="[leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Aire_Ppal/0038933550965;fs_path=sip:34.252.123.120:5060"/>                                
  310. <action application="bridge" data="[leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Aire_Bckp/0038933550965;fs_path=sip:34.252.123.120:5060"/>                                
  311. <action application="set" data="effective_caller_id_name=321785"/>                                                                                                                                                
  312. <action application="set" data="effective_caller_id_number=321785"/>                                                                                                                                              
  313. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  314. <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"/>                  
  315. <action application="set" data="trunk_id=11"/>                                                                                                                                                                    
  316. <action application="set" data="provider_id=164"/>                                                                                                                                                                
  317. <action application="set" data="rate_flag=2"/>                                                                                                                                                                    
  318. <action application="set" data="force_trunk_flag=0"/>                                                                                                                                                              
  319. <action application="export" data="presence_data=trunk_id=11"/>                                                                                                                                                    
  320. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  321. <action application="export" data="presence_id=38933550965"/>                                                                                                                                                      
  322. <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"/>                        
  323. <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"/>                                
  324. </condition>                                                                                                                                                                                                      
  325. </extension>                                                                                                                                                                                                      
  326. </context>                                                                                                                                                                                                        
  327. </section>                                                                                                                                                                                                        
  328. </document>                                                                                                                                                                                                        
  329. Dialplan: sofia/default/321785@cloud.masip.es parsing [default->38933550965] continue=false
  330. Dialplan: sofia/default/321785@cloud.masip.es Regex (PASS) [38933550965] destination_number(38933550965) =~ /38933550965/ break=on-false
  331. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_destination_number=38933550965)
  332. Dialplan: sofia/default/321785@cloud.masip.es Action set(execute_on_answer_1=sched_hangup +518.13471502591 normal_clearing)
  333. Dialplan: sofia/default/321785@cloud.masip.es Action set(callstart=2024-04-17 04:48:29)
  334. Dialplan: sofia/default/321785@cloud.masip.es Action set(hangup_after_bridge=true)
  335. Dialplan: sofia/default/321785@cloud.masip.es Action set(continue_on_fail=!USER_BUSY)
  336. Dialplan: sofia/default/321785@cloud.masip.es Action set(account_id=151)
  337. Dialplan: sofia/default/321785@cloud.masip.es Action set(parent_id=0)
  338. Dialplan: sofia/default/321785@cloud.masip.es Action set(entity_id=0)
  339. Dialplan: sofia/default/321785@cloud.masip.es Action set(call_processed=internal)
  340. Dialplan: sofia/default/321785@cloud.masip.es Action set(call_direction=outbound)
  341. Dialplan: sofia/default/321785@cloud.masip.es Action set(accountname=default)
  342. 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)                                                                                                                                                                                            
  343. Dialplan: sofia/default/321785@cloud.masip.es Action set(original_caller_id_name=321785)
  344. Dialplan: sofia/default/321785@cloud.masip.es Action set(original_caller_id_number=321785)
  345. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_caller_id_name=321785)
  346. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_caller_id_number=321785)
  347. Dialplan: sofia/default/321785@cloud.masip.es Action set(calltype=STANDARD)
  348. Dialplan: sofia/default/321785@cloud.masip.es Action set(termination_rates=ID:300537|CODE:^389.*|DESTINATION:Macedonia - Fixed|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.60000|INC:1|INITIALBLOCK:0|TRUNK:8|PROVIDER:113)                                                                                                                                                                                                      
  349. Dialplan: sofia/default/321785@cloud.masip.es Action set(trunk_id=8)
  350. Dialplan: sofia/default/321785@cloud.masip.es Action set(provider_id=113)
  351. Dialplan: sofia/default/321785@cloud.masip.es Action set(rate_flag=2)
  352. Dialplan: sofia/default/321785@cloud.masip.es Action set(force_trunk_flag=0)
  353. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=trunk_id=8)
  354. Dialplan: sofia/default/321785@cloud.masip.es Action set(intcall=0)
  355. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_id=38933550965)
  356. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||AIRE // ^389.* // Macedonia - Fixed // 0.60000 // trunk_id=8|||STD|||103.240.35.46)                                                                                                                                                                                                                
  357. Dialplan: sofia/default/321785@cloud.masip.es Action bridge([leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Aire_Ppal/0038933550965;fs_path=sip:34.252.123.120:5060)
  358. Dialplan: sofia/default/321785@cloud.masip.es Action bridge([leg_timeout=0,sip_cid_type=pid,absolute_codec_string=^^:PCMA:G729:PCMU]sofia/gateway/Aire_Bckp/0038933550965;fs_path=sip:34.252.123.120:5060)
  359. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_caller_id_name=321785)
  360. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_caller_id_number=321785)
  361. Dialplan: sofia/default/321785@cloud.masip.es Action set(calltype=STANDARD)
  362. 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)                                                                                                                                                                                                              
  363. Dialplan: sofia/default/321785@cloud.masip.es Action set(trunk_id=11)
  364. Dialplan: sofia/default/321785@cloud.masip.es Action set(provider_id=164)
  365. Dialplan: sofia/default/321785@cloud.masip.es Action set(rate_flag=2)
  366. Dialplan: sofia/default/321785@cloud.masip.es Action set(force_trunk_flag=0)
  367. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=trunk_id=11)
  368. Dialplan: sofia/default/321785@cloud.masip.es Action set(intcall=0)
  369. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_id=38933550965)
  370. 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)
  371. 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)
  372. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:281 (sofia/default/321785@cloud.masip.es) State Change CS_ROUTING -> CS_EXECUTE
  373. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING going to sleep
  374. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_EXECUTE (Cur 1 Tot 811772)
  375. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE
  376. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_sofia.c:213 sofia/default/321785@cloud.masip.es SOFIA EXECUTE
  377. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:323 sofia/default/321785@cloud.masip.es Standard EXECUTE
  378. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(effective_destination_number=38933550965)
  379. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [effective_destination_number]=[38933550965]
  380. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(execute_on_answer_1=sched_hangup +518.13471502591 normal_clearing)
  381. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [execute_on_answer_1]=[sched_hangup +518.13471502591 normal_clearing]
  382. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(callstart=2024-04-17 04:48:29)
  383. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [callstart]=[2024-04-17 04:48:29]
  384. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(hangup_after_bridge=true)
  385. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [hangup_after_bridge]=[true]
  386. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(continue_on_fail=!USER_BUSY)
  387. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [continue_on_fail]=[!USER_BUSY]
  388. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(account_id=151)
  389. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [account_id]=[151]
  390. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(parent_id=0)
  391. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [parent_id]=[0]
  392. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(entity_id=0)
  393. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [entity_id]=[0]
  394. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(call_processed=internal)
  395. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [call_processed]=[internal]
  396. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(call_direction=outbound)
  397. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [call_direction]=[outbound]
  398. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(accountname=default)
  399. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [accountname]=[default]
  400. 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)                                                                                                                                                                                          
  401. 2024-04-17 04:48:29.553079 99.63% [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]                                                                                                                                            
  402. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(original_caller_id_name=321785)
  403. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [original_caller_id_name]=[321785]
  404. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(original_caller_id_number=321785)
  405. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [original_caller_id_number]=[321785]
  406. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(effective_caller_id_name=321785)
  407. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [effective_caller_id_name]=[321785]
  408. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(effective_caller_id_number=321785)
  409. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [effective_caller_id_number]=[321785]
  410. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(calltype=STANDARD)
  411. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [calltype]=[STANDARD]
  412. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(termination_rates=ID:300537|CODE:^389.*|DESTINATION:Macedonia - Fixed|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.60000|INC:1|INITIALBLOCK:0|TRUNK:8|PROVIDER:113)                                                                                                                                                                                                      
  413. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [termination_rates]=[ID:300537|CODE:^389.*|DESTINATION:Macedonia - Fixed|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.60000|INC:1|INITIALBLOCK:0|TRUNK:8|PROVIDER:113]                                                                                                                                                        
  414. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(trunk_id=8)
  415. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [trunk_id]=[8]
  416. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(provider_id=113)
  417. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [provider_id]=[113]
  418. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(rate_flag=2)
  419. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [rate_flag]=[2]
  420. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(force_trunk_flag=0)
  421. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [force_trunk_flag]=[0]
  422. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_data=trunk_id=8)
  423. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=8]
  424. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(intcall=0)
  425. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_dptools.c:1685 SET sofia/default/321785@cloud.masip.es [intcall]=[0]
  426. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_id=38933550965)
  427. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[38933550965]
  428. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_data=x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||AIRE // ^389.* // Macedonia - Fixed // 0.60000 // trunk_id=8|||STD|||103.240.35.46)                                                                                                                                                                                                              
  429. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||AIRE // ^389.* // Macedonia - Fixed // 0.60000 // trunk_id=8|||STD|||103.240.35.46]                                                                                                                                                                                    
  430. 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/Aire_Ppal/0038933550965;fs_path=sip:34.252.123.120:5060)
  431. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [sip_h_P-masip_custom_flag]=[true] to event
  432. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_data]=[x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||AIRE // ^389.* // Macedonia - Fixed // 0.60000 // trunk_id=8|||STD|||103.240.35.46] to event                                                                                                                                    
  433. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_id]=[38933550965] to event
  434. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_data]=[x|||INextrix(321785)|||^389.* // Macedonia // 1.15800 |||AIRE // ^389.* // Macedonia - Fixed // 0.60000 // trunk_id=8|||STD|||103.240.35.46] to event                                                                                                                                    
  435. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  436. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  437. 2024-04-17 04:48:29.553079 99.63% [NOTICE] switch_channel.c:1123 New Channel sofia/default/0038933550965 [29d434f9-18b0-4e8e-8e2a-41fa9b492b54]
  438. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_sofia.c:5121 (sofia/default/0038933550965) State Change CS_NEW -> CS_INIT
  439. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0038933550965) Running State Change CS_INIT (Cur 2 Tot 811773)
  440. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:624 (sofia/default/0038933550965) State INIT
  441. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_sofia.c:97 sofia/default/0038933550965 SOFIA INIT
  442. 2024-04-17 04:48:29.553079 99.63% [DEBUG] sofia_glue.c:1620 sip:34.252.123.120:5060 Setting proxy route to sofia/default/0038933550965
  443. 2024-04-17 04:48:29.553079 99.63% [INFO] sofia_glue.c:1651 sofia/default/0038933550965 sending invite call-id: (null)
  444. 2024-04-17 04:48:29.553079 99.63% [DEBUG] sofia_glue.c:1654 sofia/default/0038933550965 sending invite version: 1.10.7 -release 64bit
  445. Local SDP:                                                                                                                                                                                                        
  446. v=0                                                                                                                                                                                                                
  447. o=FreeSWITCH 1713300847 1713300848 IN IP4 54.220.206.86                                                                                                                                                            
  448. s=FreeSWITCH                                                                                                                                                                                                      
  449. c=IN IP4 54.220.206.86                                                                                                                                                                                            
  450. t=0 0                                                                                                                                                                                                              
  451. m=audio 28462 RTP/AVP 8 18 0 101                                                                                                                                                                                  
  452. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  453. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  454. a=fmtp:18 annexb=no                                                                                                                                                                                                
  455. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  456. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  457. a=fmtp:101 0-15                                                                                                                                                                                                    
  458. a=ptime:20                                                                                                                                                                                                        
  459. a=sendrecv                                                                                                                                                                                                        
  460.  
  461. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:40 sofia/default/0038933550965 Standard INIT
  462. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:48 (sofia/default/0038933550965) State Change CS_INIT -> CS_ROUTING
  463. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:624 (sofia/default/0038933550965) State INIT going to sleep
  464. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0038933550965) Running State Change CS_ROUTING (Cur 2 Tot 811773)
  465. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:640 (sofia/default/0038933550965) State ROUTING
  466. 2024-04-17 04:48:29.553079 99.63% [DEBUG] mod_sofia.c:158 sofia/default/0038933550965 SOFIA ROUTING
  467. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_ivr_originate.c:67 (sofia/default/0038933550965) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  468. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:640 (sofia/default/0038933550965) State ROUTING going to sleep
  469. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0038933550965) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 811773)
  470. 2024-04-17 04:48:29.553079 99.63% [DEBUG] sofia.c:7499 Channel sofia/default/0038933550965 entering state [calling][0]
  471. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:659 (sofia/default/0038933550965) State CONSUME_MEDIA
  472. 2024-04-17 04:48:29.553079 99.63% [DEBUG] switch_core_state_machine.c:659 (sofia/default/0038933550965) State CONSUME_MEDIA going to sleep
  473. 2024-04-17 04:48:29.633084 99.63% [DEBUG] sofia.c:6678 Remote Reason: 57
  474. 2024-04-17 04:48:29.633084 99.63% [DEBUG] sofia.c:7499 Channel sofia/default/0038933550965 entering state [terminated][403]
  475. 2024-04-17 04:48:29.633084 99.63% [NOTICE] sofia.c:8738 Hangup sofia/default/0038933550965 [CS_CONSUME_MEDIA] [BEARERCAPABILITY_NOTAUTH]
  476. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0038933550965) Running State Change CS_HANGUP (Cur 2 Tot 811773)
  477. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:844 (sofia/default/0038933550965) Callstate Change DOWN -> HANGUP
  478. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:846 (sofia/default/0038933550965) State HANGUP
  479. 2024-04-17 04:48:29.633084 99.63% [DEBUG] mod_sofia.c:468 Channel sofia/default/0038933550965 hanging up, cause: BEARERCAPABILITY_NOTAUTH
  480. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:59 sofia/default/0038933550965 Standard HANGUP, cause: BEARERCAPABILITY_NOTAUTH
  481. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:846 (sofia/default/0038933550965) State HANGUP going to sleep
  482. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:616 (sofia/default/0038933550965) State Change CS_HANGUP -> CS_REPORTING
  483. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0038933550965) Running State Change CS_REPORTING (Cur 2 Tot 811773)
  484. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/0038933550965) State REPORTING
  485. 2024-04-17 04:48:29.633084 99.63% [INFO] mod_json_cdr.c:271 Process [29d434f9-18b0-4e8e-8e2a-41fa9b492b54.cdr.json]
  486. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 57 [BEARERCAPABILITY_NOTAUTH]
  487. 2024-04-17 04:48:29.633084 99.63% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: BEARERCAPABILITY_NOTAUTH
  488. 2024-04-17 04:48:29.633084 99.63% [NOTICE] switch_channel.c:5050 Hangup sofia/default/321785@cloud.masip.es [CS_EXECUTE] [BEARERCAPABILITY_NOTAUTH]
  489. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_session.c:2983 sofia/default/321785@cloud.masip.es skip receive message [PHONE_EVENT] (channel is hungup already)
  490. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE going to sleep
  491. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_HANGUP (Cur 2 Tot 811773)
  492. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:844 (sofia/default/321785@cloud.masip.es) Callstate Change RINGING -> HANGUP
  493. 2024-04-17 04:48:29.633084 99.63% [DEBUG] switch_core_state_machine.c:846 (sofia/default/321785@cloud.masip.es) State HANGUP
  494. 2024-04-17 04:48:29.633084 99.63% [DEBUG] mod_sofia.c:462 sofia/default/321785@cloud.masip.es Overriding SIP cause 403 with 403 from the other leg
  495. 2024-04-17 04:48:29.633084 99.63% [DEBUG] mod_sofia.c:468 Channel sofia/default/321785@cloud.masip.es hanging up, cause: BEARERCAPABILITY_NOTAUTH
  496. 2024-04-17 04:48:29.653089 99.63% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 403
  497. 2024-04-17 04:48:29.653089 99.63% [DEBUG] switch_core_state_machine.c:59 sofia/default/321785@cloud.masip.es Standard HANGUP, cause: BEARERCAPABILITY_NOTAUTH
  498. 2024-04-17 04:48:29.653089 99.63% [DEBUG] switch_core_state_machine.c:846 (sofia/default/321785@cloud.masip.es) State HANGUP going to sleep
  499. 2024-04-17 04:48:29.653089 99.63% [DEBUG] switch_core_state_machine.c:616 (sofia/default/321785@cloud.masip.es) State Change CS_HANGUP -> CS_REPORTING
  500. 2024-04-17 04:48:29.653089 99.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_REPORTING (Cur 2 Tot 811773)
  501. 2024-04-17 04:48:29.653089 99.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/321785@cloud.masip.es) State REPORTING
  502. 2024-04-17 04:48:29.653089 99.63% [INFO] mod_json_cdr.c:271 Process [e41e2613-dbe7-49d1-aae9-5a46498367cd.cdr.json]
  503. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:168 sofia/default/321785@cloud.masip.es Standard REPORTING, cause: BEARERCAPABILITY_NOTAUTH
  504. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/321785@cloud.masip.es) State REPORTING going to sleep
  505. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:607 (sofia/default/321785@cloud.masip.es) State Change CS_REPORTING -> CS_DESTROY
  506. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_session.c:1753 Session 811772 (sofia/default/321785@cloud.masip.es) Locked, Waiting on external entities
  507. 2024-04-17 04:48:29.693077 99.63% [NOTICE] switch_core_session.c:1771 Session 811772 (sofia/default/321785@cloud.masip.es) Ended
  508. 2024-04-17 04:48:29.693077 99.63% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/321785@cloud.masip.es [CS_DESTROY]
  509. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:735 (sofia/default/321785@cloud.masip.es) Running State Change CS_DESTROY (Cur 1 Tot 811773)
  510. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/321785@cloud.masip.es) State DESTROY
  511. 2024-04-17 04:48:29.693077 99.63% [DEBUG] mod_sofia.c:379 sofia/default/321785@cloud.masip.es SOFIA DESTROY
  512. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:175 sofia/default/321785@cloud.masip.es Standard DESTROY
  513. 2024-04-17 04:48:29.693077 99.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/321785@cloud.masip.es) State DESTROY going to sleep
  514. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:168 sofia/default/0038933550965 Standard REPORTING, cause: BEARERCAPABILITY_NOTAUTH
  515. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/0038933550965) State REPORTING going to sleep
  516. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:607 (sofia/default/0038933550965) State Change CS_REPORTING -> CS_DESTROY
  517. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_session.c:1753 Session 811773 (sofia/default/0038933550965) Locked, Waiting on external entities
  518. 2024-04-17 04:48:29.793078 99.63% [NOTICE] switch_core_session.c:1771 Session 811773 (sofia/default/0038933550965) Ended
  519. 2024-04-17 04:48:29.793078 99.63% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/0038933550965 [CS_DESTROY]
  520. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:735 (sofia/default/0038933550965) Running State Change CS_DESTROY (Cur 0 Tot 811773)
  521. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/0038933550965) State DESTROY
  522. 2024-04-17 04:48:29.793078 99.63% [DEBUG] mod_sofia.c:379 sofia/default/0038933550965 SOFIA DESTROY
  523. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:175 sofia/default/0038933550965 Standard DESTROY
  524. 2024-04-17 04:48:29.793078 99.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/0038933550965) State DESTROY going to sleep
  525.