From Funky Mockingbird, 1 Week ago, written in Plain Text.
- view diff
Embed
  1. 2024-04-24 05:04:12.794931 99.80% [NOTICE] switch_channel.c:1123 New Channel sofia/default/321785@cloud.masip.es [12dd2ae7-ea0e-44e0-b792-c3ea0b8ae591]
  2. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_NEW (Cur 1 Tot 28)
  3. 2024-04-24 05:04:12.794931 99.80% [INFO] sofia.c:10453 sofia/default/321785@cloud.masip.es receiving invite from 34.252.123.120:5060 version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit call-id: MzIwYjRhM2EyNWJmNjcwMWUwNTM3YzlmZDMzOTUwODU.
  4. 2024-04-24 05:04:12.794931 99.80% [DEBUG] sofia.c:10547 verifying acl "default" for ip/port 34.252.123.120:0.
  5. 2024-04-24 05:04:12.794931 99.80% [DEBUG] sofia.c:10576 IP 34.252.123.120 Approved by acl "default[]". Access Granted.
  6. 2024-04-24 05:04:12.794931 99.80% [DEBUG] sofia.c:7487 Channel sofia/default/321785@cloud.masip.es entering state [received][100]
  7. 2024-04-24 05:04:12.794931 99.80% [DEBUG] sofia.c:7497 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-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  21. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  22. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  23. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[G729:18:8000:20:8000:1]
  24. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  25. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  26. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  27. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  28. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  29. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  30. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  31. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  32. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  33. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  34. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[G729:18:8000:20:8000:1]
  35. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  36. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  37. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5443 Set telephone-event payload to 101@8000
  38. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:3750 Set Codec sofia/default/321785@cloud.masip.es PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  39. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_codec.c:111 sofia/default/321785@cloud.masip.es Original read codec set to PCMA:8
  40. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5792 Set telephone-event payload to 101@8000
  41. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_media.c:5850 sofia/default/321785@cloud.masip.es Set 2833 dtmf send payload to 101 recv payload to 101
  42. 2024-04-24 05:04:12.794931 99.80% [DEBUG] sofia.c:7921 (sofia/default/321785@cloud.masip.es) State Change CS_NEW -> CS_INIT
  43. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:600 (sofia/default/321785@cloud.masip.es) State NEW
  44. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_INIT (Cur 1 Tot 28)
  45. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:624 (sofia/default/321785@cloud.masip.es) State INIT
  46. 2024-04-24 05:04:12.794931 99.80% [DEBUG] mod_sofia.c:97 sofia/default/321785@cloud.masip.es SOFIA INIT
  47. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:40 sofia/default/321785@cloud.masip.es Standard INIT
  48. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:48 (sofia/default/321785@cloud.masip.es) State Change CS_INIT -> CS_ROUTING
  49. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:624 (sofia/default/321785@cloud.masip.es) State INIT going to sleep
  50. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_ROUTING (Cur 1 Tot 28)
  51. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_channel.c:2380 (sofia/default/321785@cloud.masip.es) Callstate Change DOWN -> RINGING
  52. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING
  53. 2024-04-24 05:04:12.794931 99.80% [DEBUG] mod_sofia.c:158 sofia/default/321785@cloud.masip.es SOFIA ROUTING
  54. 2024-04-24 05:04:12.794931 99.80% [DEBUG] switch_core_state_machine.c:230 sofia/default/321785@cloud.masip.es Standard ROUTING
  55. 2024-04-24 05:04:12.794931 99.80% [INFO] mod_dialplan_xml.c:639 Processing 321785 <321785>->21655577909 in context default
  56. 2024-04-24 05:04:12.814931 99.80% [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-24 05:04:12.834931 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2024-04-24 05:04:12.834931 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 21655577909
  59. 2024-04-24 05:04:12.834931 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '21655577909' AND status=0 limit 1
  60. 2024-04-24 05:04:12.834931 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 321785 / 321785
  61. 2024-04-24 05:04:12.834931 99.80% [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 ="21655577909" LIMIT 1                                                                                                                                                      
  62. 2024-04-24 05:04:12.834931 99.80% [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="21655577909" limit 1                                                                                                                                                                                                  
  63. 2024-04-24 05:04:12.834931 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  64. 2024-04-24 05:04:12.834931 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 321785]
  65. 2024-04-24 05:04:12.834931 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "321785" AND deleted = 0 limit 1
  66. 2024-04-24 05:04:12.834931 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^21655577909.*' OR blocked_patterns = '^2165557790.*' OR blocked_patterns = '^216555779.*' OR blocked_patterns = '^21655577.*' OR blocked_patterns = '^2165557.*' OR blocked_patterns = '^216555.*' OR blocked_patterns = '^21655.*' OR blocked_patterns = '^2165.*' OR blocked_patterns = '^216.*' OR blocked_patterns = '^21.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 151 limit 1                                                                        
  67. 2024-04-24 05:04:12.854932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="21655577909" AND (accountid = 0 OR status = 1) LIMIT 1
  68. 2024-04-24 05:04:12.854932 99.80% [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 = '^21655577909.*' OR patterns = '^2165557790.*' OR patterns = '^216555779.*' OR patterns = '^21655577.*' OR patterns = '^2165557.*' OR patterns = '^216555.*' OR patterns = '^21655.*' OR patterns = '^2165.*' OR patterns = '^216.*' OR patterns = '^21.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 151 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                                                                                                                                                                            
  69. 2024-04-24 05:04:12.854932 99.80% [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 ="21655577909" AND A.accountid = '151' limit 1                                                                                                                                                                
  70. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 21655577909
  71. 2024-04-24 05:04:12.854932 99.80% [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 ="21655577909" LIMIT 1                                                                                                                                                      
  72. 2024-04-24 05:04:12.854932 99.80% [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="21655577909" limit 1                                                                                                                                                                                                  
  73. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  74. 2024-04-24 05:04:12.854932 99.80% [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 = '21655577909' OR number = '2165557790' OR number = '216555779' OR number = '21655577' OR number = '2165557' OR number = '216555' OR number = '21655' OR number = '2165' OR number = '216' OR number = '21' OR number = '2' OR number ='--') OR (number = '21655577909*' OR number = '2165557790*' OR number = '216555779*' OR number = '21655577*' OR number = '2165557*' OR number = '216555*' OR number = '21655*' OR number = '2165*' OR number = '216*' OR number = '21*' OR number = '2*' 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-24 05:04:12.854932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  76. 2024-04-24 05:04:12.854932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '21655577909' OR routing_prefix = '2165557790' OR routing_prefix = '216555779' OR routing_prefix = '21655577' OR routing_prefix = '2165557' OR routing_prefix = '216555' OR routing_prefix = '21655' OR routing_prefix = '2165' OR routing_prefix = '216' OR routing_prefix = '21' OR routing_prefix = '2' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                            
  77. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  78. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 151
  79. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 321785
  80. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 9.2776
  81. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  82. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  83. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  84. 2024-04-24 05:04:12.854932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  85. 2024-04-24 05:04:12.854932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  86. 2024-04-24 05:04:12.854932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  87. 2024-04-24 05:04:12.854932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  88. 2024-04-24 05:04:12.874930 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^21655577909.*' OR pattern = '^2165557790.*' OR pattern = '^216555779.*' OR pattern = '^21655577.*' OR pattern = '^2165557.*' OR pattern = '^216555.*' OR pattern = '^21655.*' OR pattern = '^2165.*' OR pattern = '^216.*' OR pattern = '^21.*' OR pattern = '^2.*' 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-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  90. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  91. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 174680
  92. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  93. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  94. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 3.09600
  95. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Tunisia - Mobile - Orange
  96. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  97. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 151
  98. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  99. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  100. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  101. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your9.2776 balance Accountid 151 !!!
  102. 2024-04-24 05:04:12.874930 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 2.9966408268734 minutes
  103. 2024-04-24 05:04:12.874930 99.80% [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="21655577909">                                                                                                                                                                                    
  109. <condition field="destination_number" expression="21655577909">                                                                                                                                                    
  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=21655577909 -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="21655577909 XML default"/>                                                                                                                                                    
  116. </condition>                                                                                                                                                                                                      
  117. </extension>                                                                                                                                                                                                      
  118. </context>                                                                                                                                                                                                        
  119. </section>                                                                                                                                                                                                        
  120. </document>                                                                                                                                                                                                        
  121. Dialplan: sofia/default/321785@cloud.masip.es parsing [default->21655577909] continue=false
  122. Dialplan: sofia/default/321785@cloud.masip.es Regex (PASS) [21655577909] destination_number(21655577909) =~ /21655577909/ 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=21655577909 -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(21655577909 XML default)
  129. 2024-04-24 05:04:12.874930 99.80% [DEBUG] switch_core_state_machine.c:281 (sofia/default/321785@cloud.masip.es) State Change CS_ROUTING -> CS_EXECUTE
  130. 2024-04-24 05:04:12.874930 99.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING going to sleep
  131. 2024-04-24 05:04:12.874930 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_EXECUTE (Cur 1 Tot 28)
  132. 2024-04-24 05:04:12.874930 99.80% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE
  133. 2024-04-24 05:04:12.874930 99.80% [DEBUG] mod_sofia.c:213 sofia/default/321785@cloud.masip.es SOFIA EXECUTE
  134. 2024-04-24 05:04:12.874930 99.80% [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-24 05:04:12.874930 99.80% [INFO] mod_dptools.c:1867 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=21655577909 -k)
  138. 2024-04-24 05:04:12.874930 99.80% [DEBUG] mod_curl.c:200 method: POST, url: https://cloud.masip.es/custom_curl/index, content-type: (null)
  139. 2024-04-24 05:04:12.874930 99.80% [WARNING] mod_curl.c:223 Not verifying TLS cert for https://cloud.masip.es/custom_curl/index; connection is not secure
  140. 2024-04-24 05:04:12.874930 99.80% [DEBUG] mod_curl.c:252 Post data: destination_number=21655577909
  141. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(sip_h_P-masip_custom_flag=true)
  142. 2024-04-24 05:04:12.954931 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:12.954931 99.80% [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(21655577909 XML default)
  147. 2024-04-24 05:04:15.954929 99.80% [DEBUG] switch_ivr.c:2288 (sofia/default/321785@cloud.masip.es) State Change CS_EXECUTE -> CS_ROUTING
  148. 2024-04-24 05:04:15.954929 99.80% [NOTICE] switch_ivr.c:2295 Transfer sofia/default/321785@cloud.masip.es to XML[21655577909@default]
  149. 2024-04-24 05:04:15.954929 99.80% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE going to sleep
  150. 2024-04-24 05:04:15.954929 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_ROUTING (Cur 1 Tot 28)
  151. 2024-04-24 05:04:15.954929 99.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING
  152. 2024-04-24 05:04:15.954929 99.80% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  153. 2024-04-24 05:04:15.954929 99.80% [DEBUG] mod_sofia.c:158 sofia/default/321785@cloud.masip.es SOFIA ROUTING
  154. 2024-04-24 05:04:15.954929 99.80% [DEBUG] switch_core_state_machine.c:230 sofia/default/321785@cloud.masip.es Standard ROUTING
  155. 2024-04-24 05:04:15.954929 99.80% [INFO] mod_dialplan_xml.c:639 Processing 321785 <321785>->21655577909 in context default
  156. 2024-04-24 05:04:15.954929 99.80% [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-24 05:04:15.954929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  158. 2024-04-24 05:04:15.954929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 21655577909
  159. 2024-04-24 05:04:15.954929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '21655577909' AND status=0 limit 1
  160. 2024-04-24 05:04:15.954929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 321785 / 321785
  161. 2024-04-24 05:04:15.954929 99.80% [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 ="21655577909" LIMIT 1                                                                                                                                                      
  162. 2024-04-24 05:04:15.954929 99.80% [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="21655577909" limit 1                                                                                                                                                                                                  
  163. 2024-04-24 05:04:15.974924 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  164. 2024-04-24 05:04:15.974924 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 321785]
  165. 2024-04-24 05:04:15.974924 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "321785" AND deleted = 0 limit 1
  166. 2024-04-24 05:04:15.974924 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^21655577909.*' OR blocked_patterns = '^2165557790.*' OR blocked_patterns = '^216555779.*' OR blocked_patterns = '^21655577.*' OR blocked_patterns = '^2165557.*' OR blocked_patterns = '^216555.*' OR blocked_patterns = '^21655.*' OR blocked_patterns = '^2165.*' OR blocked_patterns = '^216.*' OR blocked_patterns = '^21.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 151 limit 1                                                                        
  167. 2024-04-24 05:04:15.974924 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="21655577909" AND (accountid = 0 OR status = 1) LIMIT 1
  168. 2024-04-24 05:04:15.974924 99.80% [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 = '^21655577909.*' OR patterns = '^2165557790.*' OR patterns = '^216555779.*' OR patterns = '^21655577.*' OR patterns = '^2165557.*' OR patterns = '^216555.*' OR patterns = '^21655.*' OR patterns = '^2165.*' OR patterns = '^216.*' OR patterns = '^21.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 151 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                                                                                                                                                                            
  169. 2024-04-24 05:04:15.974924 99.80% [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 ="21655577909" AND A.accountid = '151' limit 1                                                                                                                                                                
  170. 2024-04-24 05:04:15.974924 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 21655577909
  171. 2024-04-24 05:04:15.974924 99.80% [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 ="21655577909" LIMIT 1                                                                                                                                                      
  172. 2024-04-24 05:04:15.974924 99.80% [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="21655577909" limit 1                                                                                                                                                                                                  
  173. 2024-04-24 05:04:15.974924 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  174. 2024-04-24 05:04:15.974924 99.80% [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 = '21655577909' OR number = '2165557790' OR number = '216555779' OR number = '21655577' OR number = '2165557' OR number = '216555' OR number = '21655' OR number = '2165' OR number = '216' OR number = '21' OR number = '2' OR number ='--') OR (number = '21655577909*' OR number = '2165557790*' OR number = '216555779*' OR number = '21655577*' OR number = '2165557*' OR number = '216555*' OR number = '21655*' OR number = '2165*' OR number = '216*' OR number = '21*' OR number = '2*' 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-24 05:04:15.974924 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  176. 2024-04-24 05:04:15.974924 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '21655577909' OR routing_prefix = '2165557790' OR routing_prefix = '216555779' OR routing_prefix = '21655577' OR routing_prefix = '2165557' OR routing_prefix = '216555' OR routing_prefix = '21655' OR routing_prefix = '2165' OR routing_prefix = '216' OR routing_prefix = '21' OR routing_prefix = '2' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                            
  177. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  178. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 151
  179. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 321785
  180. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 9.2776
  181. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  182. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  183. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  184. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  185. 2024-04-24 05:04:15.994929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  186. 2024-04-24 05:04:15.994929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  187. 2024-04-24 05:04:15.994929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  188. 2024-04-24 05:04:15.994929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^21655577909.*' OR pattern = '^2165557790.*' OR pattern = '^216555779.*' OR pattern = '^21655577.*' OR pattern = '^2165557.*' OR pattern = '^216555.*' OR pattern = '^21655.*' OR pattern = '^2165.*' OR pattern = '^216.*' OR pattern = '^21.*' OR pattern = '^2.*' 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-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  190. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  191. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 174680
  192. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  193. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  194. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 3.09600
  195. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Tunisia - Mobile - Orange
  196. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  197. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 151
  198. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  199. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  200. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  201. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your9.2776 balance Accountid 151 !!!
  202. 2024-04-24 05:04:15.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 2.9966408268734 minutes
  203. 2024-04-24 05:04:16.994929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Query :SELECT trunk_id,nrn,mmc FROM masip_curl_data WHERE destination_number = '21655577909' order by id desc limit 1
  204. 2024-04-24 05:04:16.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== MASIP Information Start ===================
  205. 2024-04-24 05:04:16.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP Trunk ==> 2
  206. 2024-04-24 05:04:16.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP NRN ==>
  207. 2024-04-24 05:04:16.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] MASIP MMC ==>
  208. 2024-04-24 05:04:16.994929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== MASIP Information Ends ====================
  209. 2024-04-24 05:04:16.994929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
  210. 2024-04-24 05:04:16.994929 99.80% [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-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] From DB - trunk_ids ==> 8,11,6,17
  212. 2024-04-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] masip_trunk ==> 2
  213. 2024-04-24 05:04:17.014929 99.80% [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-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] masip_trunk_id ==>
  215. 2024-04-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Final - trunk_ids ==> 8,11,6,17
  216. 2024-04-24 05:04:17.014929 99.80% [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 = '^21655577909.*' OR pattern = '^2165557790.*' OR pattern = '^216555779.*' OR pattern = '^21655577.*' OR pattern = '^2165557.*' OR pattern = '^216555.*' OR pattern = '^21655.*' OR pattern = '^2165.*' OR pattern = '^216.*' OR pattern = '^21.*' OR pattern = '^2.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (8,11,6,17) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by FIELD(TR.trunk_id,8,11,6,17),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC,TR.effective_date DESC                          
  217. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  218. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 305149
  219. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^2165.*
  220. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Tunisia - Mobile ORANGE
  221. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  222. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  223. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^2165.*
  224. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  225. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 00
  226. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 8
  227. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Aire_Ppal
  228. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  229. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway : Aire_Bckp
  230. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 113
  231. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  232. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : AIRE
  233. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  234. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
  235. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 527892
  236. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^2165.*
  237. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : Tunisia - Mobile - Orange
  238. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  239. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
  240. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^2165.*
  241. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
  242. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend : 8000
  243. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 11
  244. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : Alisys
  245. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
  246. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
  247. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 164
  248. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
  249. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk Name : ALISYS
  250. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
  251. 2024-04-24 05:04:17.014929 99.80% [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-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 2.9966408268734
  253. 2024-04-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  254. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  255. 2024-04-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  256. 2024-04-24 05:04:17.014929 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] freeswitch_xml_outbound triggered !!!
  257. 2024-04-24 05:04:17.014929 99.80% [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-24 05:04:17.014929 99.80% [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-24 05:04:17.014929 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/00.....21655577909
  260. 2024-04-24 05:04:17.014929 99.80% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 21655577909
  261. 2024-04-24 05:04:17.014929 99.80% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0021655577909
  262. 2024-04-24 05:04:17.014929 99.80% [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 ="21655577909" LIMIT 1                                                                                                                                                      
  263. 2024-04-24 05:04:17.034932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_nrn ==>
  264. 2024-04-24 05:04:17.034932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_mmc ==>
  265. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  266. 2024-04-24 05:04:17.034932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] freeswitch_xml_outbound triggered !!!
  267. 2024-04-24 05:04:17.034932 99.80% [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-24 05:04:17.034932 99.80% [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-24 05:04:17.034932 99.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :*/8000.....21655577909
  270. 2024-04-24 05:04:17.034932 99.80% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 21655577909
  271. 2024-04-24 05:04:17.034932 99.80% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 800021655577909
  272. 2024-04-24 05:04:17.034932 99.80% [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 ="21655577909" LIMIT 1                                                                                                                                                      
  273. 2024-04-24 05:04:17.034932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_nrn ==>
  274. 2024-04-24 05:04:17.034932 99.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML.LUA - XML - OUTBOUND] masip_mmc ==>
  275. 2024-04-24 05:04:17.034932 99.80% [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="21655577909">                                                                                                                                                                                    
  281. <condition field="destination_number" expression="21655577909">                                                                                                                                                    
  282. <action application="set" data="effective_destination_number=21655577909"/>                                                                                                                                        
  283. <action application="set" data="execute_on_answer_1=sched_hangup +179.7984496124 normal_clearing"/>                                                                                                                
  284. <action application="set" data="callstart=2024-04-24 05:04:17"/>                                                                                                                                                  
  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:174680|CODE:^2165.*|DESTINATION:Tunisia - Mobile - Orange|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.09600|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:305149|CODE:^2165.*|DESTINATION:Tunisia - Mobile ORANGE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.69000|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=21655577909"/>                                                                                                                                                      
  308. <action application="export" data="presence_data=x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||AIRE // ^2165.* // Tunisia - Mobile ORANGE // 0.69000 // 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/0021655577909;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/0021655577909;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:527892|CODE:^2165.*|DESTINATION:Tunisia - Mobile - Orange|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.61900|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=21655577909"/>                                                                                                                                                      
  322. <action application="export" data="presence_data=x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||ALISYS // ^2165.* // Tunisia - Mobile - Orange // 0.61900 // 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/800021655577909;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->21655577909] continue=false
  330. Dialplan: sofia/default/321785@cloud.masip.es Regex (PASS) [21655577909] destination_number(21655577909) =~ /21655577909/ break=on-false
  331. Dialplan: sofia/default/321785@cloud.masip.es Action set(effective_destination_number=21655577909)
  332. Dialplan: sofia/default/321785@cloud.masip.es Action set(execute_on_answer_1=sched_hangup +179.7984496124 normal_clearing)
  333. Dialplan: sofia/default/321785@cloud.masip.es Action set(callstart=2024-04-24 05:04:17)
  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:174680|CODE:^2165.*|DESTINATION:Tunisia - Mobile - Orange|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.09600|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:305149|CODE:^2165.*|DESTINATION:Tunisia - Mobile ORANGE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.69000|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=21655577909)
  356. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||AIRE // ^2165.* // Tunisia - Mobile ORANGE // 0.69000 // 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/0021655577909;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/0021655577909;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:527892|CODE:^2165.*|DESTINATION:Tunisia - Mobile - Orange|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.61900|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=21655577909)
  370. Dialplan: sofia/default/321785@cloud.masip.es Action export(presence_data=x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||ALISYS // ^2165.* // Tunisia - Mobile - Orange // 0.61900 // 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/800021655577909;fs_path=sip:34.252.123.120:5060)
  372. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:281 (sofia/default/321785@cloud.masip.es) State Change CS_ROUTING -> CS_EXECUTE
  373. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/321785@cloud.masip.es) State ROUTING going to sleep
  374. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_EXECUTE (Cur 1 Tot 28)
  375. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE
  376. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_sofia.c:213 sofia/default/321785@cloud.masip.es SOFIA EXECUTE
  377. 2024-04-24 05:04:17.034932 99.80% [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=21655577909)
  379. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [effective_destination_number]=[21655577909]
  380. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(execute_on_answer_1=sched_hangup +179.7984496124 normal_clearing)
  381. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [execute_on_answer_1]=[sched_hangup +179.7984496124 normal_clearing]
  382. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(callstart=2024-04-24 05:04:17)
  383. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [callstart]=[2024-04-24 05:04:17]
  384. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(hangup_after_bridge=true)
  385. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [accountname]=[default]
  400. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(origination_rates=ID:174680|CODE:^2165.*|DESTINATION:Tunisia - Mobile - Orange|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.09600|INC:1|INITIALBLOCK:1|RATEGROUP:4|MARKUP:0|CI:0|ACCID:151)                                                                                                                                                                          
  401. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [origination_rates]=[ID:174680|CODE:^2165.*|DESTINATION:Tunisia - Mobile - Orange|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.09600|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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [calltype]=[STANDARD]
  412. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es set(termination_rates=ID:305149|CODE:^2165.*|DESTINATION:Tunisia - Mobile ORANGE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.69000|INC:1|INITIALBLOCK:0|TRUNK:8|PROVIDER:113)                                                                                                                                                                                              
  413. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [termination_rates]=[ID:305149|CODE:^2165.*|DESTINATION:Tunisia - Mobile ORANGE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.69000|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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 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-24 05:04:17.034932 99.80% [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-24 05:04:17.034932 99.80% [DEBUG] mod_dptools.c:1673 SET sofia/default/321785@cloud.masip.es [intcall]=[0]
  426. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_id=21655577909)
  427. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[21655577909]
  428. EXECUTE [depth=0] sofia/default/321785@cloud.masip.es export(presence_data=x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||AIRE // ^2165.* // Tunisia - Mobile ORANGE // 0.69000 // trunk_id=8|||STD|||103.240.35.46)                                                                                                                                                                                      
  429. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||AIRE // ^2165.* // Tunisia - Mobile ORANGE // 0.69000 // 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/0021655577909;fs_path=sip:34.252.123.120:5060)
  431. 2024-04-24 05:04:17.034932 99.80% [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-24 05:04:17.034932 99.80% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_data]=[x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||AIRE // ^2165.* // Tunisia - Mobile ORANGE // 0.69000 // trunk_id=8|||STD|||103.240.35.46] to event                                                                                                            
  433. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_id]=[21655577909] to event
  434. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_channel.c:1269 sofia/default/321785@cloud.masip.es EXPORTING[export_vars] [presence_data]=[x|||INextrix(321785)|||^2165.* // Tunisia - Mobile - Orange // 3.09600 |||AIRE // ^2165.* // Tunisia - Mobile ORANGE // 0.69000 // trunk_id=8|||STD|||103.240.35.46] to event                                                                                                            
  435. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_ivr_originate.c:2291 Parsing global variables
  436. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_ivr_originate.c:2853 Parsing session specific variables
  437. 2024-04-24 05:04:17.034932 99.80% [NOTICE] switch_channel.c:1123 New Channel sofia/default/0021655577909 [910b2913-a987-4de7-8695-5c2d7509f2fc]
  438. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_sofia.c:5117 (sofia/default/0021655577909) State Change CS_NEW -> CS_INIT
  439. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0021655577909) Running State Change CS_INIT (Cur 2 Tot 29)
  440. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:624 (sofia/default/0021655577909) State INIT
  441. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_sofia.c:97 sofia/default/0021655577909 SOFIA INIT
  442. 2024-04-24 05:04:17.034932 99.80% [DEBUG] sofia_glue.c:1623 sip:34.252.123.120:5060 Setting proxy route to sofia/default/0021655577909
  443. 2024-04-24 05:04:17.034932 99.80% [INFO] sofia_glue.c:1654 sofia/default/0021655577909 sending invite call-id: (null)
  444. 2024-04-24 05:04:17.034932 99.80% [DEBUG] sofia_glue.c:1657 sofia/default/0021655577909 sending invite version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit
  445. Local SDP:                                                                                                                                                                                                        
  446. v=0                                                                                                                                                                                                                
  447. o=FreeSWITCH 1713904597 1713904598 IN IP4 54.228.192.40                                                                                                                                                            
  448. s=FreeSWITCH                                                                                                                                                                                                      
  449. c=IN IP4 54.228.192.40                                                                                                                                                                                            
  450. t=0 0                                                                                                                                                                                                              
  451. m=audio 30460 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-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:40 sofia/default/0021655577909 Standard INIT
  462. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:48 (sofia/default/0021655577909) State Change CS_INIT -> CS_ROUTING
  463. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:624 (sofia/default/0021655577909) State INIT going to sleep
  464. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0021655577909) Running State Change CS_ROUTING (Cur 2 Tot 29)
  465. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/0021655577909) State ROUTING
  466. 2024-04-24 05:04:17.034932 99.80% [DEBUG] mod_sofia.c:158 sofia/default/0021655577909 SOFIA ROUTING
  467. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_ivr_originate.c:67 (sofia/default/0021655577909) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  468. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/0021655577909) State ROUTING going to sleep
  469. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0021655577909) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 29)
  470. 2024-04-24 05:04:17.034932 99.80% [DEBUG] sofia.c:7487 Channel sofia/default/0021655577909 entering state [calling][0]
  471. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:659 (sofia/default/0021655577909) State CONSUME_MEDIA
  472. 2024-04-24 05:04:17.034932 99.80% [DEBUG] switch_core_state_machine.c:659 (sofia/default/0021655577909) State CONSUME_MEDIA going to sleep
  473. 2024-04-24 05:04:25.674928 99.80% [DEBUG] sofia.c:7487 Channel sofia/default/0021655577909 entering state [proceeding][180]
  474. 2024-04-24 05:04:25.674928 99.80% [NOTICE] sofia.c:7598 Ring-Ready sofia/default/0021655577909!
  475. 2024-04-24 05:04:25.674928 99.80% [DEBUG] switch_channel.c:3494 (sofia/default/0021655577909) Callstate Change DOWN -> RINGING
  476. 2024-04-24 05:04:25.694927 99.80% [NOTICE] mod_sofia.c:2516 Ring-Ready sofia/default/321785@cloud.masip.es!
  477. 2024-04-24 05:04:25.694927 99.80% [DEBUG] sofia.c:7487 Channel sofia/default/321785@cloud.masip.es entering state [early][180]
  478. 2024-04-24 05:04:25.694927 99.80% [NOTICE] switch_ivr_originate.c:565 Ring Ready sofia/default/321785@cloud.masip.es!
  479. 2024-04-24 05:05:17.014923 99.73% [NOTICE] switch_ivr_originate.c:3809 Hangup sofia/default/0021655577909 [CS_CONSUME_MEDIA] [NO_ANSWER]
  480. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0021655577909) Running State Change CS_HANGUP (Cur 2 Tot 29)
  481. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:844 (sofia/default/0021655577909) Callstate Change RINGING -> HANGUP
  482. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:846 (sofia/default/0021655577909) State HANGUP
  483. 2024-04-24 05:05:17.014923 99.73% [DEBUG] mod_sofia.c:468 Channel sofia/default/0021655577909 hanging up, cause: NO_ANSWER
  484. 2024-04-24 05:05:17.014923 99.73% [INFO] mod_dptools.c:3637 Originate Failed.  Cause: NO_ANSWER
  485. 2024-04-24 05:05:17.014923 99.73% [NOTICE] switch_channel.c:4993 Hangup sofia/default/321785@cloud.masip.es [CS_EXECUTE] [NO_ANSWER]
  486. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_session.c:2973 sofia/default/321785@cloud.masip.es skip receive message [PHONE_EVENT] (channel is hungup already)
  487. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:647 (sofia/default/321785@cloud.masip.es) State EXECUTE going to sleep
  488. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_HANGUP (Cur 2 Tot 29)
  489. 2024-04-24 05:05:17.014923 99.73% [DEBUG] mod_sofia.c:536 Sending CANCEL to sofia/default/0021655577909
  490. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:59 sofia/default/0021655577909 Standard HANGUP, cause: NO_ANSWER
  491. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:846 (sofia/default/0021655577909) State HANGUP going to sleep
  492. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:616 (sofia/default/0021655577909) State Change CS_HANGUP -> CS_REPORTING
  493. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:844 (sofia/default/321785@cloud.masip.es) Callstate Change RINGING -> HANGUP
  494. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0021655577909) Running State Change CS_REPORTING (Cur 2 Tot 29)
  495. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:846 (sofia/default/321785@cloud.masip.es) State HANGUP
  496. 2024-04-24 05:05:17.014923 99.73% [DEBUG] mod_sofia.c:468 Channel sofia/default/321785@cloud.masip.es hanging up, cause: NO_ANSWER
  497. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:932 (sofia/default/0021655577909) State REPORTING
  498. 2024-04-24 05:05:17.014923 99.73% [INFO] mod_json_cdr.c:272 Process [910b2913-a987-4de7-8695-5c2d7509f2fc.cdr.json]
  499. 2024-04-24 05:05:17.014923 99.73% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
  500. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:59 sofia/default/321785@cloud.masip.es Standard HANGUP, cause: NO_ANSWER
  501. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:846 (sofia/default/321785@cloud.masip.es) State HANGUP going to sleep
  502. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:616 (sofia/default/321785@cloud.masip.es) State Change CS_HANGUP -> CS_REPORTING
  503. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:581 (sofia/default/321785@cloud.masip.es) Running State Change CS_REPORTING (Cur 2 Tot 29)
  504. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:932 (sofia/default/321785@cloud.masip.es) State REPORTING
  505. 2024-04-24 05:05:17.014923 99.73% [INFO] mod_json_cdr.c:272 Process [12dd2ae7-ea0e-44e0-b792-c3ea0b8ae591.cdr.json]
  506. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:168 sofia/default/0021655577909 Standard REPORTING, cause: NO_ANSWER
  507. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:932 (sofia/default/0021655577909) State REPORTING going to sleep
  508. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_state_machine.c:607 (sofia/default/0021655577909) State Change CS_REPORTING -> CS_DESTROY
  509. 2024-04-24 05:05:17.014923 99.73% [DEBUG] switch_core_session.c:1743 Session 29 (sofia/default/0021655577909) Locked, Waiting on external entities
  510. 2024-04-24 05:05:17.014923 99.73% [NOTICE] switch_core_session.c:1761 Session 29 (sofia/default/0021655577909) Ended
  511. 2024-04-24 05:05:17.014923 99.73% [NOTICE] switch_core_session.c:1765 Close Channel sofia/default/0021655577909 [CS_DESTROY]
  512. 2024-04-24 05:05:17.034925 99.73% [DEBUG] switch_core_state_machine.c:735 (sofia/default/0021655577909) Running State Change CS_DESTROY (Cur 1 Tot 29)
  513. 2024-04-24 05:05:17.034925 99.73% [DEBUG] switch_core_state_machine.c:745 (sofia/default/0021655577909) State DESTROY
  514. 2024-04-24 05:05:17.034925 99.73% [DEBUG] mod_sofia.c:379 sofia/default/0021655577909 SOFIA DESTROY
  515. 2024-04-24 05:05:17.034925 99.73% [DEBUG] switch_core_state_machine.c:175 sofia/default/0021655577909 Standard DESTROY
  516. 2024-04-24 05:05:17.034925 99.73% [DEBUG] switch_core_state_machine.c:745 (sofia/default/0021655577909) State DESTROY going to sleep
  517. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:168 sofia/default/321785@cloud.masip.es Standard REPORTING, cause: NO_ANSWER
  518. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:932 (sofia/default/321785@cloud.masip.es) State REPORTING going to sleep
  519. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:607 (sofia/default/321785@cloud.masip.es) State Change CS_REPORTING -> CS_DESTROY
  520. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_session.c:1743 Session 28 (sofia/default/321785@cloud.masip.es) Locked, Waiting on external entities
  521. 2024-04-24 05:05:17.054924 99.73% [NOTICE] switch_core_session.c:1761 Session 28 (sofia/default/321785@cloud.masip.es) Ended
  522. 2024-04-24 05:05:17.054924 99.73% [NOTICE] switch_core_session.c:1765 Close Channel sofia/default/321785@cloud.masip.es [CS_DESTROY]
  523. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:735 (sofia/default/321785@cloud.masip.es) Running State Change CS_DESTROY (Cur 0 Tot 29)
  524. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:745 (sofia/default/321785@cloud.masip.es) State DESTROY
  525. 2024-04-24 05:05:17.054924 99.73% [DEBUG] mod_sofia.c:379 sofia/default/321785@cloud.masip.es SOFIA DESTROY
  526. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:175 sofia/default/321785@cloud.masip.es Standard DESTROY
  527. 2024-04-24 05:05:17.054924 99.73% [DEBUG] switch_core_state_machine.c:745 (sofia/default/321785@cloud.masip.es) State DESTROY going to sleep
  528. freeswitch@ip-10-0-1-201> /exit