From univasa cid issue11111, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2023-07-25 15:29:31.209555 [NOTICE] switch_channel.c:1118 New Channel sofia/default/09037542994@196.216.253.41 [d8ef5800-9b37-4cd3-893a-ed6bec1e3a4d]
  2. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_state_machine.c:585 (sofia/default/09037542994@196.216.253.41) Running State Change CS_NEW (Cur 1 Tot 4342464)
  3. 2023-07-25 15:29:31.209555 [INFO] sofia.c:10362 sofia/default/09037542994@196.216.253.41 receiving invite from 196.216.253.41:5060 version: 1.10.6 -release-18-1ff9d0a60e 64bit call-id: a43bee72-a5a1-123c-3e80-d4ae52b8c3a9
  4. 2023-07-25 15:29:31.209555 [DEBUG] sofia.c:10456 verifying acl "default" for ip/port 196.216.253.41:0.
  5. 2023-07-25 15:29:31.209555 [DEBUG] sofia.c:10485 IP 196.216.253.41 Approved by acl "default[]". Access Granted.
  6. 2023-07-25 15:29:31.209555 [DEBUG] sofia.c:7406 Channel sofia/default/09037542994@196.216.253.41 entering state [received][100]
  7. 2023-07-25 15:29:31.209555 [DEBUG] sofia.c:7416 Remote SDP:
  8. v=0
  9. o=FreeSWITCH 1690267810 1690267811 IN IP4 196.216.253.41
  10. s=FreeSWITCH
  11. c=IN IP4 196.216.253.41
  12. t=0 0
  13. m=audio 30624 RTP/AVP 8 18 101 13
  14. a=rtpmap:8 PCMA/8000
  15. a=rtpmap:18 G729/8000
  16. a=fmtp:18 annexb=no
  17. a=rtpmap:101 telephone-event/8000
  18. a=fmtp:101 0-16
  19. a=rtpmap:13 CN/8000
  20. a=ptime:20
  21.  
  22. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5601 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  23. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5656 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  24. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5601 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  25. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5601 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  26. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5601 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  27. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5601 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  28. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5601 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  29. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5656 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  30. 2023-07-25 15:29:31.209555 [DEBUG] switch_core_media.c:5517 Set telephone-event payload to 101@8000
  31. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_media.c:3847 Set Codec sofia/default/09037542994@196.216.253.41 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  32. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_codec.c:111 sofia/default/09037542994@196.216.253.41 Original read codec set to PCMA:8
  33. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_media.c:5860 Set telephone-event payload to 101@8000
  34. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_media.c:5918 sofia/default/09037542994@196.216.253.41 Set 2833 dtmf send payload to 101 recv payload to 101
  35. 2023-07-25 15:29:31.229552 [DEBUG] sofia.c:7840 (sofia/default/09037542994@196.216.253.41) State Change CS_NEW -> CS_INIT
  36. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:604 (sofia/default/09037542994@196.216.253.41) State NEW
  37. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:585 (sofia/default/09037542994@196.216.253.41) Running State Change CS_INIT (Cur 1 Tot 4342464)
  38. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:628 (sofia/default/09037542994@196.216.253.41) State INIT
  39. 2023-07-25 15:29:31.229552 [DEBUG] mod_sofia.c:93 sofia/default/09037542994@196.216.253.41 SOFIA INIT
  40. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:40 sofia/default/09037542994@196.216.253.41 Standard INIT
  41. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:48 (sofia/default/09037542994@196.216.253.41) State Change CS_INIT -> CS_ROUTING
  42. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:628 (sofia/default/09037542994@196.216.253.41) State INIT going to sleep
  43. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:585 (sofia/default/09037542994@196.216.253.41) Running State Change CS_ROUTING (Cur 1 Tot 4342464)
  44. 2023-07-25 15:29:31.229552 [DEBUG] switch_channel.c:2332 (sofia/default/09037542994@196.216.253.41) Callstate Change DOWN -> RINGING
  45. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:644 (sofia/default/09037542994@196.216.253.41) State ROUTING
  46. 2023-07-25 15:29:31.229552 [DEBUG] mod_sofia.c:154 sofia/default/09037542994@196.216.253.41 SOFIA ROUTING
  47. 2023-07-25 15:29:31.229552 [DEBUG] switch_core_state_machine.c:236 sofia/default/09037542994@196.216.253.41 Standard ROUTING
  48. 2023-07-25 15:29:31.229552 [INFO] mod_dialplan_xml.c:637 Processing 9037542994 <09037542994>->012522216 in context default
  49. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  50. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  51. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  52. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 012522216
  53. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '012522216' limit 1
  54. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '012522216' AND status=0 limit 1
  55. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '012522216' and status=0 LIMIT 1
  56. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9037542994 / 09037542994
  57. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] ANKIT CHANGES
  58. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [DIALPLAN] ANKIT CHANGES DONE
  59. 2023-07-25 15:29:31.229552 [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 ="012522216" LIMIT 1
  60. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  61. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("196.216.253.41") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "012522216"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  62. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 2330223285]
  63. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =012522216
  64. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "2330223285" AND deleted = 0 limit 1
  65. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="012522216" AND (accountid = 0 OR status = 1) LIMIT 1
  66. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  67. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 633
  68. 2023-07-25 15:29:31.229552 [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 (patterns = '^012522216.*' OR patterns = '^01252221.*' OR patterns = '^0125222.*' OR patterns = '^012522.*' OR patterns = '^01252.*' OR patterns = '^0125.*' OR patterns = '^012.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 633 ORDER BY LENGTH(PKGPTR.patterns) DESC
  69. 2023-07-25 15:29:31.229552 [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 ="012522216" AND A.accountid = '5' limit 1
  70. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 012522216
  71. 2023-07-25 15:29:31.229552 [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 ="012522216" LIMIT 1
  72. 2023-07-25 15:29:31.229552 [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  73. 2023-07-25 15:29:31.229552 [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 = '012522216' OR number = '01252221' OR number = '0125222' OR number = '012522' OR number = '01252' OR number = '0125' OR number = '012' OR number = '01' OR number = '0' OR number ='--') OR (number = '012522216*' OR number = '01252221*' OR number = '0125222*' OR number = '012522*' OR number = '01252*' OR number = '0125*' OR number = '012*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '09037542994' OR number = '0903754299' OR number = '090375429' OR number = '09037542' OR number = '0903754' OR number = '090375' OR number = '09037' OR number = '0903' OR number = '090' OR number = '09' OR number = '0' OR number ='--') OR (number = '09037542994*' OR number = '0903754299*' OR number = '090375429*' OR number = '09037542*' OR number = '0903754*' OR number = '090375*' OR number = '09037*' OR number = '0903*' OR number = '090*' OR number = '09*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  74. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  75. 2023-07-25 15:29:31.229552 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '012522216' OR routing_prefix = '01252221' OR routing_prefix = '0125222' OR routing_prefix = '012522' OR routing_prefix = '01252' OR routing_prefix = '0125' OR routing_prefix = '012' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  76. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  77. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 5
  78. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 2330223285
  79. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 913.3061
  80. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  81. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 23
  82. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  83. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  84. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 23 AND status = 0
  85. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  86. 2023-07-25 15:29:31.249559 [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 ="012522216" LIMIT 1
  87. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  88. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  89. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 550
  90. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  91. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  92. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  93. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 012522216
  94. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 141
  95. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 5
  96. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  97. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your913.3061 balance Accountid 5 !!!
  98. 2023-07-25 15:29:31.249559 [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  99. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 5
  100. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.00000
  101. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  102. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 0
  103. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 0
  104. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  105. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  106. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  107. 2023-07-25 15:29:31.249559 [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 = 5 AND status=0 LIMIT 1
  108. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "633" AND deleted = 0 limit 1
  109. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:5
  110. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:5
  111. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 5
  112. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 633 limit 1
  113. 2023-07-25 15:29:31.249559 [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : rh.ubx.univasa.com
  114. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  115. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  116. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  117. 2023-07-25 15:29:31.249559 [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  118. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "101" AND accounts.status = 0
  119. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 633 limit 1
  120. 2023-07-25 15:29:31.249559 [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : rh.ubx.univasa.com
  121. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 633  and status = 0 limit 1
  122. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  123. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="101"  AND domains.domain="rh.ubx.univasa.com" limit 1
  124. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1033 limit 1
  125. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  126. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  127. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] START:
  128. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="101"  AND domains.domain="rh.ubx.univasa.com" limit 1
  129. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1033 limit 1
  130. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="101"  AND domains.domain="rh.ubx.univasa.com" limit 1
  131. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1033 limit 1
  132. 2023-07-25 15:29:31.249559 [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  133. <document type="freeswitch/xml">
  134. <section name="dialplan" description="ASTPP Dialplan">
  135. <context name="default">
  136. <extension name="012522216">
  137. <condition field="destination_number" expression="012522216">
  138. <action application="set" data="effective_destination_number=012522216"/>
  139. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  140. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  141. <action application="set" data="nibble_account=5"/>
  142. <action application="set" data="nibble_rate=0.00000"/>
  143. <action application="set" data="nibble_increment=0"/>
  144. <action application="set" data="nibble_minimum=0.00000"/>
  145. <action application="nibblebill" data="heartbeat 30"/>
  146. <action application="set" data="callstart=2023-07-25 15:29:31"/>
  147. <action application="set" data="hangup_after_bridge=true"/>
  148. <action application="set" data="continue_on_fail=TRUE"/>
  149. <action application="set" data="account_id=5"/>
  150. <action application="set" data="parent_id=0"/>
  151. <action application="set" data="entity_id=0"/>
  152. <action application="set" data="call_processed=internal"/>
  153. <action application="set" data="call_direction=inbound"/>
  154. <action application="set" data="accountname=TruCall"/>
  155. <action application="set" data="origination_rates_did=ID:550|CODE:^012522216.*|DESTINATION:012522216|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:141|ACCID:633"/>
  156. <action application="set" data="origination_rates=0"/>
  157. <action application="set" data="original_caller_id_name=Univasa"/>
  158. <action application="set" data="original_caller_id_number=012522215"/>
  159. <action application="limit" data="db 2330223285 user_2330223285 20 "/>
  160. <action application="set" data="effective_caller_id_name=Univasa"/>
  161. <action application="set" data="effective_caller_id_number=012522215"/>
  162. <action application="set" data="receiver_accid=633"/>
  163. <action application="export" data="domain_name=rh.ubx.univasa.com"/>
  164. <action application="export" data="sip_to_host=rh.ubx.univasa.com"/>
  165. <action application="export" data="presence_data=x|||Grace(5712939)|||||||||DID|||196.216.253.41"/>
  166. <action application="export" data="call_type=5"/>
  167. <action application="set" data="calltype=SIP-DID"/>
  168. <action application="db" data="insert/pickup_any_group_${callgroup}/101/${uuid}"/>
  169. <action application="set" data="dialed_extension=transfer_call"/>
  170. <action application="export" data="dialed_extension=transfer_call"/>
  171. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  172. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  173. <action application="set" data="hangup_after_bridge=true"/>
  174. <action application="export" data="did_user_domain=rh.ubx.univasa.com"/>
  175. <action application="bridge" data="{sip_invite_params=user=LOCAL,sip_from_uri=101@${domain_name}}[leg_timeout=0]sofia/${sofia_profile_name}/012522216${regex(${sofia_contact(101@${domain_name})}|^[^@]+(.*)|%1)}"/>
  176. <action application="set" data="on_busy_flag=1"/>
  177. <action application="set" data="on_busy_destination="/>
  178. <action application="set" data="no_answer_flag=1"/>
  179. <action application="set" data="no_answer_destination="/>
  180. <action application="set" data="not_register_flag=1"/>
  181. <action application="set" data="not_register_destination="/>
  182. <action application="set" data="opensips_flag=1"/>
  183. <action application="set" data="variable_sip_to_host=rh.ubx.univasa.com"/>
  184. <action application="set" data="opensips_domain=127.0.0.1"/>
  185. <action application="set" data="leg_timeout=60"/>
  186. <action application="set" data="userinfo_id=633"/>
  187. <action application="set" data="sip_destination_number=101"/>
  188. <action application="set" data="destination_number=012522216"/>
  189. <action application="set" data="did_number=012522216"/>
  190. <action application="set" data="user_domain=rh.ubx.univasa.com"/>
  191. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  192. <condition field="${cond(${user_data 101@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  193. <action application="answer"/>
  194. <action application="export" data="voicemail_alternate_greet_id=012522216"/>
  195. <action application="voicemail" data="default $${domain_name} 101"/>
  196. <anti-action application="hangup" data="${originate_disposition}"/>
  197. </condition>
  198. </condition>
  199. </extension>
  200. </context>
  201. </section>
  202. </document>
  203. Dialplan: sofia/default/09037542994@196.216.253.41 parsing [default->012522216] continue=false
  204. Dialplan: sofia/default/09037542994@196.216.253.41 Regex (PASS) [012522216] destination_number(012522216) =~ /012522216/ break=on-false
  205. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(effective_destination_number=012522216)
  206. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  207. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  208. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(nibble_account=5)
  209. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(nibble_rate=0.00000)
  210. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(nibble_increment=0)
  211. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(nibble_minimum=0.00000)
  212. Dialplan: sofia/default/09037542994@196.216.253.41 Action nibblebill(heartbeat 30)
  213. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(callstart=2023-07-25 15:29:31)
  214. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(hangup_after_bridge=true)
  215. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(continue_on_fail=TRUE)
  216. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(account_id=5)
  217. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(parent_id=0)
  218. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(entity_id=0)
  219. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(call_processed=internal)
  220. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(call_direction=inbound)
  221. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(accountname=TruCall)
  222. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(origination_rates_did=ID:550|CODE:^012522216.*|DESTINATION:012522216|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:141|ACCID:633)
  223. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(origination_rates=0)
  224. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(original_caller_id_name=Univasa)
  225. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(original_caller_id_number=012522215)
  226. Dialplan: sofia/default/09037542994@196.216.253.41 Action limit(db 2330223285 user_2330223285 20 )
  227. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(effective_caller_id_name=Univasa)
  228. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(effective_caller_id_number=012522215)
  229. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(receiver_accid=633)
  230. Dialplan: sofia/default/09037542994@196.216.253.41 Action export(domain_name=rh.ubx.univasa.com)
  231. Dialplan: sofia/default/09037542994@196.216.253.41 Action export(sip_to_host=rh.ubx.univasa.com)
  232. Dialplan: sofia/default/09037542994@196.216.253.41 Action export(presence_data=x|||Grace(5712939)|||||||||DID|||196.216.253.41)
  233. Dialplan: sofia/default/09037542994@196.216.253.41 Action export(call_type=5)
  234. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(calltype=SIP-DID)
  235. Dialplan: sofia/default/09037542994@196.216.253.41 Action db(insert/pickup_any_group_${callgroup}/101/${uuid})
  236. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(dialed_extension=transfer_call)
  237. Dialplan: sofia/default/09037542994@196.216.253.41 Action export(dialed_extension=transfer_call)
  238. Dialplan: sofia/default/09037542994@196.216.253.41 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  239. Dialplan: sofia/default/09037542994@196.216.253.41 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  240. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(hangup_after_bridge=true)
  241. Dialplan: sofia/default/09037542994@196.216.253.41 Action export(did_user_domain=rh.ubx.univasa.com)
  242. Dialplan: sofia/default/09037542994@196.216.253.41 Action bridge({sip_invite_params=user=LOCAL,sip_from_uri=101@${domain_name}}[leg_timeout=0]sofia/${sofia_profile_name}/012522216${regex(${sofia_contact(101@${domain_name})}|^[^@]+(.*)|%1)})
  243. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(on_busy_flag=1)
  244. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(on_busy_destination=)
  245. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(no_answer_flag=1)
  246. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(no_answer_destination=)
  247. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(not_register_flag=1)
  248. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(not_register_destination=)
  249. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(opensips_flag=1)
  250. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(variable_sip_to_host=rh.ubx.univasa.com)
  251. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(opensips_domain=127.0.0.1)
  252. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(leg_timeout=60)
  253. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(userinfo_id=633)
  254. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(sip_destination_number=101)
  255. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(destination_number=012522216)
  256. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(did_number=012522216)
  257. Dialplan: sofia/default/09037542994@196.216.253.41 Action set(user_domain=rh.ubx.univasa.com)
  258. Dialplan: sofia/default/09037542994@196.216.253.41 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  259. |--- Dialplan: Processing recursive conditions level:1 [012522216_recur_1] require-nested=TRUE
  260. |--- Dialplan: sofia/default/09037542994@196.216.253.41 Regex (FAIL) [012522216_recur_1] ${cond(${user_data 101@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  261. |--- Dialplan: sofia/default/09037542994@196.216.253.41 ANTI-Action hangup(${originate_disposition})
  262. 2023-07-25 15:29:31.269556 [DEBUG] switch_core_state_machine.c:287 (sofia/default/09037542994@196.216.253.41) State Change CS_ROUTING -> CS_EXECUTE
  263. 2023-07-25 15:29:31.269556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/09037542994@196.216.253.41) State ROUTING going to sleep
  264. 2023-07-25 15:29:31.269556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/09037542994@196.216.253.41) Running State Change CS_EXECUTE (Cur 1 Tot 4342464)
  265. 2023-07-25 15:29:31.269556 [DEBUG] switch_core_state_machine.c:651 (sofia/default/09037542994@196.216.253.41) State EXECUTE
  266. 2023-07-25 15:29:31.269556 [DEBUG] mod_sofia.c:209 sofia/default/09037542994@196.216.253.41 SOFIA EXECUTE
  267. 2023-07-25 15:29:31.269556 [DEBUG] switch_core_state_machine.c:329 sofia/default/09037542994@196.216.253.41 Standard EXECUTE
  268. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(effective_destination_number=012522216)
  269. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [effective_destination_number]=[012522216]
  270. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(bridge_pre_execute_bleg_app=sched_hangup)
  271. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [bridge_pre_execute_bleg_app]=[sched_hangup]
  272. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  273. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  274. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(nibble_account=5)
  275. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [nibble_account]=[5]
  276. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(nibble_rate=0.00000)
  277. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [nibble_rate]=[0.00000]
  278. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(nibble_increment=0)
  279. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [nibble_increment]=[0]
  280. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(nibble_minimum=0.00000)
  281. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [nibble_minimum]=[0.00000]
  282. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 nibblebill(heartbeat 30)
  283. 2023-07-25 15:29:31.269556 [WARNING] switch_core_session.c:1676 sofia/default/09037542994@196.216.253.41 using scheduler due to bypass media or media is not established.
  284. 2023-07-25 15:29:31.269556 [DEBUG] switch_scheduler.c:263 Added task 1886532 switch_core_session_sched_heartbeat (d8ef5800-9b37-4cd3-893a-ed6bec1e3a4d) to run at 1690299001
  285. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(callstart=2023-07-25 15:29:31)
  286. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [callstart]=[2023-07-25 15:29:31]
  287. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(hangup_after_bridge=true)
  288. 2023-07-25 15:29:31.269556 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [hangup_after_bridge]=[true]
  289. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(continue_on_fail=TRUE)
  290. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [continue_on_fail]=[TRUE]
  291. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(account_id=5)
  292. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [account_id]=[5]
  293. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(parent_id=0)
  294. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [parent_id]=[0]
  295. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(entity_id=0)
  296. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [entity_id]=[0]
  297. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(call_processed=internal)
  298. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [call_processed]=[internal]
  299. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(call_direction=inbound)
  300. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [call_direction]=[inbound]
  301. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(accountname=TruCall)
  302. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [accountname]=[TruCall]
  303. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(origination_rates_did=ID:550|CODE:^012522216.*|DESTINATION:012522216|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:141|ACCID:633)
  304. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [origination_rates_did]=[ID:550|CODE:^012522216.*|DESTINATION:012522216|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:141|ACCID:633]
  305. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(origination_rates=0)
  306. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [origination_rates]=[0]
  307. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(original_caller_id_name=Univasa)
  308. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [original_caller_id_name]=[Univasa]
  309. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(original_caller_id_number=012522215)
  310. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [original_caller_id_number]=[012522215]
  311. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 limit(db 2330223285 user_2330223285 20 )
  312. 2023-07-25 15:29:31.289545 [DEBUG] switch_limit.c:124 incr called: 2330223285_user_2330223285 max:20, interval:0
  313. 2023-07-25 15:29:31.289545 [DEBUG] mod_db.c:194 Usage for 2330223285_user_2330223285 is now 1/20
  314. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(effective_caller_id_name=Univasa)
  315. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [effective_caller_id_name]=[Univasa]
  316. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(effective_caller_id_number=012522215)
  317. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [effective_caller_id_number]=[012522215]
  318. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(receiver_accid=633)
  319. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [receiver_accid]=[633]
  320. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 export(domain_name=rh.ubx.univasa.com)
  321. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[rh.ubx.univasa.com]
  322. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 export(sip_to_host=rh.ubx.univasa.com)
  323. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[rh.ubx.univasa.com]
  324. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 export(presence_data=x|||Grace(5712939)|||||||||DID|||196.216.253.41)
  325. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||Grace(5712939)|||||||||DID|||196.216.253.41]
  326. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 export(call_type=5)
  327. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[5]
  328. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(calltype=SIP-DID)
  329. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [calltype]=[SIP-DID]
  330. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 db(insert/pickup_any_group_/101/d8ef5800-9b37-4cd3-893a-ed6bec1e3a4d)
  331. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(dialed_extension=transfer_call)
  332. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [dialed_extension]=[transfer_call]
  333. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 export(dialed_extension=transfer_call)
  334. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  335. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  336. 2023-07-25 15:29:31.289545 [INFO] switch_ivr_async.c:4678 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  337. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  338. 2023-07-25 15:29:31.289545 [INFO] switch_ivr_async.c:4678 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  339. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 set(hangup_after_bridge=true)
  340. 2023-07-25 15:29:31.289545 [DEBUG] mod_dptools.c:1685 SET sofia/default/09037542994@196.216.253.41 [hangup_after_bridge]=[true]
  341. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 export(did_user_domain=rh.ubx.univasa.com)
  342. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [did_user_domain]=[rh.ubx.univasa.com]
  343. EXECUTE [depth=0] sofia/default/09037542994@196.216.253.41 bridge({sip_invite_params=user=LOCAL,sip_from_uri=101@rh.ubx.univasa.com}[leg_timeout=0]sofia/default/012522216@10.130.100.132:59880;rinstance=9035099b5146f998;fs_nat=yes;fs_path=sip%3A101%40102.88.62.200%3A59880%3Brinstance%3D9035099b5146f998)
  344. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1264 sofia/default/09037542994@196.216.253.41 EXPORTING[export_vars] [domain_name]=[rh.ubx.univasa.com] to event
  345. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1264 sofia/default/09037542994@196.216.253.41 EXPORTING[export_vars] [sip_to_host]=[rh.ubx.univasa.com] to event
  346. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1264 sofia/default/09037542994@196.216.253.41 EXPORTING[export_vars] [presence_data]=[x|||Grace(5712939)|||||||||DID|||196.216.253.41] to event
  347. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1264 sofia/default/09037542994@196.216.253.41 EXPORTING[export_vars] [call_type]=[5] to event
  348. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1264 sofia/default/09037542994@196.216.253.41 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  349. 2023-07-25 15:29:31.289545 [DEBUG] switch_channel.c:1264 sofia/default/09037542994@196.216.253.41 EXPORTING[export_vars] [did_user_domain]=[rh.ubx.univasa.com] to event
  350. 2023-07-25 15:29:31.289545 [DEBUG] switch_ivr_originate.c:2272 Parsing global variables
  351. 2023-07-25 15:29:31.289545 [DEBUG] switch_ivr_originate.c:2834 Parsing session specific variables
  352. 2023-07-25 15:29:31.289545 [NOTICE] switch_channel.c:1118 New Channel sofia/default/012522216@10.130.100.132:59880 [a15794b3-9a22-4fe6-9f2f-7f6efafbc77d]
  353. 2023-07-25 15:29:31.289545 [DEBUG] mod_sofia.c:5102 (sofia/default/012522216@10.130.100.132:59880) State Change CS_NEW -> CS_INIT
  354. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:585 (sofia/default/012522216@10.130.100.132:59880) Running State Change CS_INIT (Cur 2 Tot 4342465)
  355. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:628 (sofia/default/012522216@10.130.100.132:59880) State INIT
  356. 2023-07-25 15:29:31.289545 [DEBUG] mod_sofia.c:93 sofia/default/012522216@10.130.100.132:59880 SOFIA INIT
  357. 2023-07-25 15:29:31.289545 [DEBUG] sofia_glue.c:1590 sip:101@102.88.62.200:59880;rinstance=9035099b5146f998 Setting proxy route to sofia/default/012522216@10.130.100.132:59880
  358. 2023-07-25 15:29:31.289545 [INFO] sofia_glue.c:1621 sofia/default/012522216@10.130.100.132:59880 sending invite call-id: (null)
  359. 2023-07-25 15:29:31.289545 [DEBUG] sofia_glue.c:1624 sofia/default/012522216@10.130.100.132:59880 sending invite version: 1.10.6 -release-18-1ff9d0a60e 64bit
  360. Local SDP:
  361. v=0
  362. o=FreeSWITCH 1690268997 1690268998 IN IP4 116.203.52.230
  363. s=FreeSWITCH
  364. c=IN IP4 116.203.52.230
  365. t=0 0
  366. m=audio 29974 RTP/AVP 8 101
  367. a=rtpmap:8 PCMA/8000
  368. a=rtpmap:101 telephone-event/8000
  369. a=fmtp:101 0-16
  370. a=ptime:20
  371. a=sendrecv
  372.  
  373. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:40 sofia/default/012522216@10.130.100.132:59880 Standard INIT
  374. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:48 (sofia/default/012522216@10.130.100.132:59880) State Change CS_INIT -> CS_ROUTING
  375. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:628 (sofia/default/012522216@10.130.100.132:59880) State INIT going to sleep
  376. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:585 (sofia/default/012522216@10.130.100.132:59880) Running State Change CS_ROUTING (Cur 2 Tot 4342465)
  377. 2023-07-25 15:29:31.289545 [DEBUG] sofia.c:7406 Channel sofia/default/012522216@10.130.100.132:59880 entering state [calling][0]
  378. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:644 (sofia/default/012522216@10.130.100.132:59880) State ROUTING
  379. 2023-07-25 15:29:31.289545 [DEBUG] mod_sofia.c:154 sofia/default/012522216@10.130.100.132:59880 SOFIA ROUTING
  380. 2023-07-25 15:29:31.289545 [DEBUG] switch_ivr_originate.c:67 (sofia/default/012522216@10.130.100.132:59880) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  381. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:644 (sofia/default/012522216@10.130.100.132:59880) State ROUTING going to sleep
  382. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:585 (sofia/default/012522216@10.130.100.132:59880) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 4342465)
  383. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:663 (sofia/default/012522216@10.130.100.132:59880) State CONSUME_MEDIA
  384. 2023-07-25 15:29:31.289545 [DEBUG] switch_core_state_machine.c:663 (sofia/default/012522216@10.130.100.132:59880) State CONSUME_MEDIA going to sleep
  385. 2023-07-25 15:29:31.569556 [DEBUG] sofia.c:7406 Channel sofia/default/012522216@10.130.100.132:59880 entering state [proceeding][180]
  386. 2023-07-25 15:29:31.569556 [NOTICE] sofia.c:7517 Ring-Ready sofia/default/012522216@10.130.100.132:59880!
  387. 2023-07-25 15:29:31.569556 [DEBUG] switch_channel.c:3437 (sofia/default/012522216@10.130.100.132:59880) Callstate Change DOWN -> RINGING
  388. 2023-07-25 15:29:31.569556 [NOTICE] mod_sofia.c:2498 Ring-Ready sofia/default/09037542994@196.216.253.41!
  389. 2023-07-25 15:29:31.569556 [DEBUG] sofia.c:7406 Channel sofia/default/09037542994@196.216.253.41 entering state [early][180]
  390. 2023-07-25 15:29:31.569556 [NOTICE] switch_ivr_originate.c:564 Ring Ready sofia/default/09037542994@196.216.253.41!
  391. 2023-07-25 15:30:01.029544 [DEBUG] sofia.c:7406 Channel sofia/default/09037542994@196.216.253.41 entering state [terminated][487]
  392. 2023-07-25 15:30:01.029544 [NOTICE] sofia.c:8641 Hangup sofia/default/09037542994@196.216.253.41 [CS_EXECUTE] [ORIGINATOR_CANCEL]
  393. 2023-07-25 15:30:01.049543 [NOTICE] switch_ivr_originate.c:3790 Hangup sofia/default/012522216@10.130.100.132:59880 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
  394. 2023-07-25 15:30:01.049543 [DEBUG] switch_ivr_originate.c:4015 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
  395. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:585 (sofia/default/012522216@10.130.100.132:59880) Running State Change CS_HANGUP (Cur 2 Tot 4342465)
  396. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:848 (sofia/default/012522216@10.130.100.132:59880) Callstate Change RINGING -> HANGUP
  397. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:850 (sofia/default/012522216@10.130.100.132:59880) State HANGUP
  398. 2023-07-25 15:30:01.049543 [DEBUG] mod_sofia.c:447 sofia/default/012522216@10.130.100.132:59880 Overriding SIP cause 487 with 487 from the other leg
  399. 2023-07-25 15:30:01.049543 [DEBUG] mod_sofia.c:453 Channel sofia/default/012522216@10.130.100.132:59880 hanging up, cause: ORIGINATOR_CANCEL
  400. 2023-07-25 15:30:01.049543 [INFO] mod_dptools.c:3643 Originate Failed.  Cause: ORIGINATOR_CANCEL
  401. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_session.c:2914 sofia/default/09037542994@196.216.253.41 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  402. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:651 (sofia/default/09037542994@196.216.253.41) State EXECUTE going to sleep
  403. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:585 (sofia/default/09037542994@196.216.253.41) Running State Change CS_HANGUP (Cur 2 Tot 4342465)
  404. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:848 (sofia/default/09037542994@196.216.253.41) Callstate Change RINGING -> HANGUP
  405. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:850 (sofia/default/09037542994@196.216.253.41) State HANGUP
  406. 2023-07-25 15:30:01.049543 [DEBUG] mod_sofia.c:453 Channel sofia/default/09037542994@196.216.253.41 hanging up, cause: ORIGINATOR_CANCEL
  407. 2023-07-25 15:30:01.049543 [DEBUG] mod_sofia.c:521 Sending CANCEL to sofia/default/012522216@10.130.100.132:59880
  408. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:60 sofia/default/012522216@10.130.100.132:59880 Standard HANGUP, cause: ORIGINATOR_CANCEL
  409. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:850 (sofia/default/012522216@10.130.100.132:59880) State HANGUP going to sleep
  410. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:620 (sofia/default/012522216@10.130.100.132:59880) State Change CS_HANGUP -> CS_REPORTING
  411. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:585 (sofia/default/012522216@10.130.100.132:59880) Running State Change CS_REPORTING (Cur 2 Tot 4342465)
  412. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:936 (sofia/default/012522216@10.130.100.132:59880) State REPORTING
  413. 2023-07-25 15:30:01.049543 [INFO] mod_json_cdr.c:271 Process [a15794b3-9a22-4fe6-9f2f-7f6efafbc77d.cdr.json]
  414. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.00000 per minute to account 5
  415. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:518 Not billing 5 - call is not in answered state
  416. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:422 Doing lookup query
  417. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='5']
  418. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 5 (balance = 913.306100)
  419. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:523 Comparing 913.306100 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  420. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:422 Doing lookup query
  421. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='5']
  422. 2023-07-25 15:30:01.049543 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 5 (balance = 913.306100)
  423. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:60 sofia/default/09037542994@196.216.253.41 Standard HANGUP, cause: ORIGINATOR_CANCEL
  424. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:850 (sofia/default/09037542994@196.216.253.41) State HANGUP going to sleep
  425. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:620 (sofia/default/09037542994@196.216.253.41) State Change CS_HANGUP -> CS_REPORTING
  426. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:585 (sofia/default/09037542994@196.216.253.41) Running State Change CS_REPORTING (Cur 2 Tot 4342465)
  427. 2023-07-25 15:30:01.049543 [DEBUG] switch_core_state_machine.c:936 (sofia/default/09037542994@196.216.253.41) State REPORTING
  428. 2023-07-25 15:30:01.049543 [INFO] mod_json_cdr.c:271 Process [d8ef5800-9b37-4cd3-893a-ed6bec1e3a4d.cdr.json]
  429. 2023-07-25 15:30:01.069543 [DEBUG] switch_core_state_machine.c:174 sofia/default/012522216@10.130.100.132:59880 S