From Scorching Madrill, 9 Months ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: goldenrod; font-weight: bold;"> 2024-03-22 07:53:14.464174 [DEBUG] switch_scheduler.c:144 Deleting task 232825 switch_ivr_schedule_hangup (35fba62e-e821-11ee-8d5a-d17fbcf33421)
  2. 2024-03-22 07:53:14.484168 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0104938458@41.160.32.115:5060 [3cb1055e-e821-11ee-8d66-d17fbcf33421]
  3. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_NEW (Cur 73 Tot 574962)
  4. 2024-03-22 07:53:14.484168 [DEBUG] sofia.c:9873 sofia/default/0104938458@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  5. 2024-03-22 07:53:14.484168 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  6. 2024-03-22 07:53:14.484168 [DEBUG] sofia.c:7084 Channel sofia/default/0104938458@41.160.32.115:5060 entering state [received][100]
  7. 2024-03-22 07:53:14.484168 [DEBUG] sofia.c:7094 Remote SDP:
  8. v=0
  9. o=HuaweiSoftX3000 135550446157835 135550446157835 IN IP4 41.160.32.115
  10. s=-
  11. c=IN IP4 41.160.32.115
  12. t=0 0
  13. m=audio 24770 RTP/AVP 18 8 101
  14. a=rtpmap:18 G729/8000
  15. a=fmtp:18 annexb=no
  16. a=rtpmap:8 PCMA/8000
  17. a=rtpmap:101 telephone-event/8000
  18. a=fmtp:101 0-15
  19. a=ptime:20
  20.  
  21. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  22. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  23. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  24. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  25. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  26. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  27. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  28. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  29. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  30. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  31. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  32. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  33. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0104938458@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  34. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_codec.c:111 sofia/default/0104938458@41.160.32.115:5060 Original read codec set to G729:18
  35. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  36. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4767 sofia/default/0104938458@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  37. 2024-03-22 07:53:14.484168 [DEBUG] sofia.c:7507 (sofia/default/0104938458@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  38. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0104938458@41.160.32.115:5060) State NEW
  39. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_INIT (Cur 73 Tot 574962)
  40. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0104938458@41.160.32.115:5060) State INIT
  41. 2024-03-22 07:53:14.484168 [DEBUG] mod_sofia.c:90 sofia/default/0104938458@41.160.32.115:5060 SOFIA INIT
  42. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:40 sofia/default/0104938458@41.160.32.115:5060 Standard INIT
  43. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0104938458@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  44. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0104938458@41.160.32.115:5060) State INIT going to sleep
  45. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 73 Tot 574962)
  46. 2024-03-22 07:53:14.484168 [DEBUG] switch_channel.c:2249 (sofia/default/0104938458@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  47. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0104938458@41.160.32.115:5060) State ROUTING
  48. 2024-03-22 07:53:14.484168 [DEBUG] mod_sofia.c:143 sofia/default/0104938458@41.160.32.115:5060 SOFIA ROUTING
  49. 2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:236 sofia/default/0104938458@41.160.32.115:5060 Standard ROUTING
  50. 2024-03-22 07:53:14.484168 [INFO] mod_dialplan_xml.c:637 Processing 0104938458 <0104938458>->D9570397275081 in context default
  51. 2024-03-22 07:53:14.484168 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  52. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  53. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  54. 2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  55. 2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570397275081
  56. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570397275081' limit 1
  57. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570397275081' AND status=0 limit 1
  58. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570397275081' and status=0 LIMIT 1                                                                                                                                                                                                      
  59. 2024-03-22 07:53:14.484168 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  60. 2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0104938458 / <null>
  61. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570397275081" LIMIT 1                                                                                                                                                          
  62. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [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="D9570397275081"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  63. 2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  64. 2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  65. 2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  66. 2024-03-22 07:53:14.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570397275081.*' OR blocked_patterns = '^D957039727508.*' OR blocked_patterns = '^D95703972750.*' OR blocked_patterns = '^D9570397275.*' OR blocked_patterns = '^D957039727.*' OR blocked_patterns = '^D95703972.*' OR blocked_patterns = '^D9570397.*' OR blocked_patterns = '^D957039.*' OR blocked_patterns = '^D95703.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  67. 2024-03-22 07:53:14.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570397275081" AND (accountid = 0 OR status = 1) LIMIT 1
  68. 2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  69. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  70. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570397275081
  71. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570397275081
  72. 2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570397275081
  73. 2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0397275081
  74. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [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 = '^0397275081.*' OR patterns = '^039727508.*' OR patterns = '^03972750.*' OR patterns = '^0397275.*' OR patterns = '^039727.*' OR patterns = '^03972.*' OR patterns = '^0397.*' OR patterns = '^039.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  75. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [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 ="0397275081" AND A.accountid = '3' limit 1                                                                                                                                                                          
  76. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0397275081
  77. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [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 ="0397275081" LIMIT 1                                                                                                                                                              
  78. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  79. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0397275081' OR number = '039727508' OR number = '03972750' OR number = '0397275' OR number = '039727' OR number = '03972' OR number = '0397' OR number = '039' OR number = '03' OR number = '0' OR number ='--') OR (number = '0397275081*' OR number = '039727508*' OR number = '03972750*' OR number = '0397275*' OR number = '039727*' OR number = '03972*' OR number = '0397*' OR number = '039*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  80. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  81. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0397275081' OR routing_prefix = '039727508' OR routing_prefix = '03972750' OR routing_prefix = '0397275' OR routing_prefix = '039727' OR routing_prefix = '03972' OR routing_prefix = '0397' OR routing_prefix = '039' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  82. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  83. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  84. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  85. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  86. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  87. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  88. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  89. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  90. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  91. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  92. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [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 ="0397275081" LIMIT 1                                                                                                                                                              
  93. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  94. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  95. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9281
  96. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  97. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  98. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  99. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0397275081
  100. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  101. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  102. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  103. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  104. 2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  105. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  106. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  107. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  108. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  109. 2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  110. 2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  111. 2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  112. 2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  113. 2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  114. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  115. 2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  116. 2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  117. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  118. 2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  119. 2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  120. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0104938458
  121. 2024-03-22 07:53:14.544160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0104938458
  122. 2024-03-22 07:53:14.544160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27104938458
  123. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  124. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  125. 2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  126. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  127. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [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="9851635928"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  128. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1535 limit 1
  129. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  130. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  131. 2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  132. 2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  133. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  134. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  135. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='9851635928' and uuid = '3cb1055e-e821-11ee-8d66-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  136. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='9851635928' order by id desc limit 1
  137. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [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="9851635928"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  138. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1535 limit 1
  139. 2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  140. <document type="freeswitch/xml">                                                                                                                                                                                  
  141. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  142. <context name="default">                                                                                                                                                                                          
  143. <extension name="0397275081">                                                                                                                                                                                      
  144. <condition field="destination_number" expression="D9570397275081">                                                                                                                                                
  145. <action application="set" data="effective_destination_number=0397275081"/>                                                                                                                                        
  146. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  147. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  148. <action application="set" data="callstart=2024-03-22 07:53:14"/>                                                                                                                                                  
  149. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  150. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  151. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  152. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  153. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  154. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  155. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  156. <action application="set" data="accountname=default"/>                                                                                                                                                            
  157. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  158. <action application="set" data="origination_rates_did=ID:9281|CODE:^0397275081.*|DESTINATION:0397275081|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  159. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  160. <action application="set" data="original_caller_id_name=0104938458"/>                                                                                                                                              
  161. <action application="set" data="effective_caller_id_name=27104938458"/>                                                                                                                                            
  162. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  163. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  164. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  165. <action application="export" data="presence_data=x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  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}/9851635928/${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=legalaidsa.nebular.co.za"/>                                                                                                                                    
  175. <action application="sleep" data="1000"/>                                                                                                                                                                          
  176. <action application="ring_ready"/>                                                                                                                                                                                
  177. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/9851635928@legalaidsa.nebular.co.za^0397275081"/>                                                      
  178. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  179. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  180. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  181. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  182. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  183. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  184. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  185. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  186. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  187. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  188. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  189. <action application="set" data="sip_destination_number=9851635928"/>                                                                                                                                              
  190. <action application="set" data="destination_number=0397275081"/>                                                                                                                                                  
  191. <action application="set" data="did_number=0397275081"/>                                                                                                                                                          
  192. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  193. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  194. <condition field="${cond(${user_data 9851635928@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  195. <action application="answer"/>                                                                                                                                                                                    
  196. <action application="export" data="voicemail_alternate_greet_id=0397275081"/>                                                                                                                                      
  197. <action application="voicemail" data="default $${domain_name} 9851635928"/>                                                                                                                                        
  198. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  199. </condition>                                                                                                                                                                                                      
  200. </condition>                                                                                                                                                                                                      
  201. </extension>                                                                                                                                                                                                      
  202. </context>                                                                                                                                                                                                        
  203. </section>                                                                                                                                                                                                        
  204. </document>                                                                                                                                                                                                        
  205. 2024-03-22 07:53:14.544160 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  206. Dialplan: sofia/default/0104938458@41.160.32.115:5060 parsing [default->0397275081] continue=false
  207. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Regex (PASS) [0397275081] destination_number(D9570397275081) =~ /D9570397275081/ break=on-false
  208. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(effective_destination_number=0397275081)
  209. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  210. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  211. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:14)
  212. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  213. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  214. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(account_id=3)
  215. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(parent_id=0)
  216. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(entity_id=3)
  217. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(call_processed=internal)
  218. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(call_direction=inbound)
  219. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(accountname=default)
  220. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  221. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(origination_rates_did=ID:9281|CODE:^0397275081.*|DESTINATION:0397275081|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  222. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(origination_rates=0)
  223. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(original_caller_id_name=0104938458)
  224. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(effective_caller_id_name=27104938458)
  225. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(receiver_accid=109)
  226. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  227. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  228. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115)
  229. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(call_type=5)
  230. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(calltype=SIP-DID)
  231. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/9851635928/${uuid})
  232. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  233. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  234. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  235. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  236. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  237. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  238. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action sleep(1000)
  239. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action ring_ready()
  240. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/9851635928@legalaidsa.nebular.co.za^0397275081)
  241. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(on_busy_flag=1)
  242. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(on_busy_destination=)
  243. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(no_answer_flag=1)
  244. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(no_answer_destination=)
  245. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(not_register_flag=1)
  246. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(not_register_destination=)
  247. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(opensips_flag=0)
  248. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  249. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  250. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(leg_timeout=20)
  251. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(userinfo_id=109)
  252. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(sip_destination_number=9851635928)
  253. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(destination_number=0397275081)
  254. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(did_number=0397275081)
  255. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  256. Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  257. |--- Dialplan: Processing recursive conditions level:1 [0397275081_recur_1] require-nested=TRUE
  258. |--- Dialplan: sofia/default/0104938458@41.160.32.115:5060 Regex (FAIL) [0397275081_recur_1] ${cond(${user_data 9851635928@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  259. |--- Dialplan: sofia/default/0104938458@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  260. 2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0104938458@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  261. 2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0104938458@41.160.32.115:5060) State ROUTING going to sleep
  262. 2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 73 Tot 574962)
  263. 2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0104938458@41.160.32.115:5060) State EXECUTE
  264. 2024-03-22 07:53:14.584157 [DEBUG] mod_sofia.c:198 sofia/default/0104938458@41.160.32.115:5060 SOFIA EXECUTE
  265. 2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:328 sofia/default/0104938458@41.160.32.115:5060 Standard EXECUTE
  266. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(effective_destination_number=0397275081)
  267. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [effective_destination_number]=[0397275081]
  268. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  269. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  270. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  271. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  272. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(callstart=2024-03-22 07:53:14)
  273. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:14]
  274. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(hangup_after_bridge=true)
  275. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [hangup_after_bridge]=[true]
  276. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(continue_on_fail=TRUE)
  277. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  278. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(account_id=3)
  279. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [account_id]=[3]
  280. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(parent_id=0)
  281. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [parent_id]=[0]
  282. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(entity_id=3)
  283. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [entity_id]=[3]
  284. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(call_processed=internal)
  285. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [call_processed]=[internal]
  286. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(call_direction=inbound)
  287. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [call_direction]=[inbound]
  288. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(accountname=default)
  289. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [accountname]=[default]
  290. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  291. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  292. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(origination_rates_did=ID:9281|CODE:^0397275081.*|DESTINATION:0397275081|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  293. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [origination_rates_did]=[ID:9281|CODE:^0397275081.*|DESTINATION:0397275081|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  294. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(origination_rates=0)
  295. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [origination_rates]=[0]
  296. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(original_caller_id_name=0104938458)
  297. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [original_caller_id_name]=[0104938458]
  298. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(effective_caller_id_name=27104938458)
  299. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [effective_caller_id_name]=[27104938458]
  300. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(receiver_accid=109)
  301. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [receiver_accid]=[109]
  302. EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  303. 2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  304. EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  305. 2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  306. EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115)
  307. 2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115]
  308. EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(call_type=5)
  309. 2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  310. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(calltype=SIP-DID)
  311. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [calltype]=[SIP-DID]
  312. EXECUTE sofia/default/0104938458@41.160.32.115:5060 db(insert/pickup_any_group_/9851635928/3cb1055e-e821-11ee-8d66-d17fbcf33421)
  313. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(dialed_extension=transfer_call)
  314. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  315. EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(dialed_extension=transfer_call)
  316. 2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  317. EXECUTE sofia/default/0104938458@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  318. 2024-03-22 07:53:14.584157 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  319. EXECUTE sofia/default/0104938458@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  320. 2024-03-22 07:53:14.584157 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  321. EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(hangup_after_bridge=true)
  322. 2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [hangup_after_bridge]=[true]
  323. EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  324. 2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  325. EXECUTE sofia/default/0104938458@41.160.32.115:5060 sleep(1000)
  326. 2024-03-22 07:53:15.184483 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [3d1b8f1e-e821-11ee-8d89-d17fbcf33421]
  327. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 74 Tot 574963)
  328. 2024-03-22 07:53:15.184483 [DEBUG] sofia.c:9873 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  329. 2024-03-22 07:53:15.184483 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  330. 2024-03-22 07:53:15.184483 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [received][100]
  331. 2024-03-22 07:53:15.184483 [DEBUG] sofia.c:7094 Remote SDP:
  332. v=0                                                                                                                                                                                                                
  333. o=3cxPS 221090152448 340560707585 IN IP4 156.38.150.6                                                                                                                                                              
  334. s=3cxPS Audio call                                                                                                                                                                                                
  335. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  336. t=0 0                                                                                                                                                                                                              
  337. m=audio 10450 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  338. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  339. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  340. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  341. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  342. a=fmtp:18 annexb=no                                                                                                                                                                                                
  343. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  344.  
  345. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  346. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  347. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  348. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  349. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  350. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  351. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  352. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  353. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  354. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  355. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  356. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  357. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  358. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  359. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  360. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  361. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  362. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  363. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  364. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  365. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  366. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0488814867@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  367. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_codec.c:111 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  368. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  369. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4767 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  370. 2024-03-22 07:53:15.184483 [DEBUG] sofia.c:7507 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  371. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State NEW
  372. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 74 Tot 574963)
  373. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State INIT
  374. 2024-03-22 07:53:15.184483 [DEBUG] mod_sofia.c:90 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA INIT
  375. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:40 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard INIT
  376. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  377. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  378. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 74 Tot 574963)
  379. 2024-03-22 07:53:15.184483 [DEBUG] switch_channel.c:2249 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  380. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State ROUTING
  381. 2024-03-22 07:53:15.184483 [DEBUG] mod_sofia.c:143 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  382. 2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:236 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard ROUTING
  383. 2024-03-22 07:53:15.184483 [INFO] mod_dialplan_xml.c:637 Processing 0488814867 <0488814867>->0604893575 in context default
  384. 2024-03-22 07:53:15.184483 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  385. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  386. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  387. 2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  388. 2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0604893575
  389. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0604893575' limit 1
  390. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0604893575' AND status=0 limit 1
  391. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0604893575' and status=0 LIMIT 1                                                                                                                                                                                                          
  392. 2024-03-22 07:53:15.184483 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  393. 2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0488814867 / 0488814867
  394. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [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 ="0604893575" LIMIT 1                                                                                                                                                              
  395. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [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="0604893575"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  396. 2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  397. 2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  398. 2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  399. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0604893575.*' OR blocked_patterns = '^060489357.*' OR blocked_patterns = '^06048935.*' OR blocked_patterns = '^0604893.*' OR blocked_patterns = '^060489.*' OR blocked_patterns = '^06048.*' OR blocked_patterns = '^0604.*' OR blocked_patterns = '^060.*' OR blocked_patterns = '^06.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  400. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0604893575" AND (accountid = 0 OR status = 1) LIMIT 1
  401. 2024-03-22 07:53:15.204188 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  402. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  403. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0604893575
  404. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0604893575
  405. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [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 = '^0604893575.*' OR patterns = '^060489357.*' OR patterns = '^06048935.*' OR patterns = '^0604893.*' OR patterns = '^060489.*' OR patterns = '^06048.*' OR patterns = '^0604.*' OR patterns = '^060.*' OR patterns = '^06.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  406. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [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 ="0604893575" AND A.accountid = '109' limit 1                                                                                                                                                                        
  407. 2024-03-22 07:53:15.204188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0604893575
  408. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [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 ="0604893575" LIMIT 1                                                                                                                                                              
  409. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [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="0604893575"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  410. 2024-03-22 07:53:15.204188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  411. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0604893575' OR number = '060489357' OR number = '06048935' OR number = '0604893' OR number = '060489' OR number = '06048' OR number = '0604' OR number = '060' OR number = '06' OR number = '0' OR number ='--') OR (number = '0604893575*' OR number = '060489357*' OR number = '06048935*' OR number = '0604893*' OR number = '060489*' OR number = '06048*' OR number = '0604*' OR number = '060*' OR number = '06*' OR number = '0*' OR number ='--') OR (number = '0488814867' OR number = '048881486' OR number = '04888148' OR number = '0488814' OR number = '048881' OR number = '04888' OR number = '0488' OR number = '048' OR number = '04' OR number = '0' OR number ='--') OR (number = '0488814867*' OR number = '048881486*' OR number = '04888148*' OR number = '0488814*' OR number = '048881*' OR number = '04888*' OR number = '0488*' OR number = '048*' OR number = '04*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  412. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  413. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0604893575' OR routing_prefix = '060489357' OR routing_prefix = '06048935' OR routing_prefix = '0604893' OR routing_prefix = '060489' OR routing_prefix = '06048' OR routing_prefix = '0604' OR routing_prefix = '060' OR routing_prefix = '06' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  414. 2024-03-22 07:53:15.204188 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0604893575)!!!!
  415. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27604893575
  416. 2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27604893575' limit 1
  417. 2024-03-22 07:53:15.224218 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0604893575)!!!!
  418. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  419. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  420. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  421. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19932.1335
  422. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  423. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  424. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  425. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  426. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  427. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  428. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  429. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  430. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  431. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  432. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  433. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  434. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  435. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  436. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  437. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
  438. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  439. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  440. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  441. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0604893575.*' OR pattern = '^060489357.*' OR pattern = '^06048935.*' OR pattern = '^0604893.*' OR pattern = '^060489.*' OR pattern = '^06048.*' OR pattern = '^0604.*' OR pattern = '^060.*' OR pattern = '^06.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  442. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  443. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  444. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148273
  445. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  446. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  447. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  448. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
  449. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  450. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  451. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  452. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  453. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  454. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19932.1335 balance Accountid 109 !!!
  455. 2024-03-22 07:53:15.224218 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  456. 2024-03-22 07:53:15.224218 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  457. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  458. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0604893575.*' OR blocked_patterns = '^060489357.*' OR blocked_patterns = '^06048935.*' OR blocked_patterns = '^0604893.*' OR blocked_patterns = '^060489.*' OR blocked_patterns = '^06048.*' OR blocked_patterns = '^0604.*' OR blocked_patterns = '^060.*' OR blocked_patterns = '^06.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  459. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  460. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  461. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  462. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9959.4983
  463. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  464. 2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  465. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  466. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  467. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  468. 2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0604893575.*' OR pattern = '^060489357.*' OR pattern = '^06048935.*' OR pattern = '^0604893.*' OR pattern = '^060489.*' OR pattern = '^06048.*' OR pattern = '^0604.*' OR pattern = '^060.*' OR pattern = '^06.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  469. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  470. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  471. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426173
  472. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  473. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Incluudedseconds : 0
  474. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  475. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
  476. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  477. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  478. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  479. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  480. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  481. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9959.4983 balance Accountid 13 !!!
  482. 2024-03-22 07:53:15.244168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  483. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148273|CODE:^0604.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426173|CODE:^0604.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                            
  484. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  485. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  486. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  487. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148273
  488. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  489. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  490. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0604893575.*' OR pattern = '^060489357.*' OR pattern = '^06048935.*' OR pattern = '^0604893.*' OR pattern = '^060489.*' OR pattern = '^06048.*' OR pattern = '^0604.*' OR pattern = '^060.*' OR pattern = '^06.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  491. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  492. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  493. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  494. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  495. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  496. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  497. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  498. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  499. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  500. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  501. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  502. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  503. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  504. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  505. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  506. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  507. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  508. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  509. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  510. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  511. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  512. 2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  513. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  514. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  515. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0604893575
  516. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  517. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [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 ="0604893575" LIMIT 1                                                                                                                                                              
  518. 2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  519. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  520. <document type="freeswitch/xml">                                                                                                                                                                                  
  521. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  522. <context name="default">                                                                                                                                                                                          
  523. <extension name="0604893575">                                                                                                                                                                                      
  524. <condition field="destination_number" expression="0604893575">                                                                                                                                                    
  525. <action application="set" data="effective_destination_number=0604893575"/>                                                                                                                                        
  526. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  527. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  528. <action application="set" data="callstart=2024-03-22 07:53:15"/>                                                                                                                                                  
  529. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  530. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  531. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  532. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  533. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  534. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  535. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  536. <action application="set" data="accountname=default"/>                                                                                                                                                            
  537. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  538. <action application="set" data="origination_rates=ID:2148273|CODE:^0604.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426173|CODE:^0604.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                            
  539. <action application="set" data="original_caller_id_name=0488814867"/>                                                                                                                                              
  540. <action application="set" data="original_caller_id_number=0488814867"/>                                                                                                                                            
  541. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  542. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  543. <action application="set" data="effective_caller_id_name=0488814867"/>                                                                                                                                            
  544. <action application="set" data="effective_caller_id_number=0488814867"/>                                                                                                                                          
  545. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  546. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  547. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  548. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  549. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  550. <action application="set" data="force_trunk_flag=2148273"/>                                                                                                                                                        
  551. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  552. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  553. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^0604.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0604.* // D083-MTN"/>                                                                                                                                                                  
  554. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0604893575;fs_path=sip:156.38.231.106:5060"/>                                              
  555. </condition>                                                                                                                                                                                                      
  556. </extension>                                                                                                                                                                                                      
  557. </context>                                                                                                                                                                                                        
  558. </section>                                                                                                                                                                                                        
  559. </document>                                                                                                                                                                                                        
  560. 2024-03-22 07:53:15.244168 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  561. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 parsing [default->0604893575] continue=false
  562. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Regex (PASS) [0604893575] destination_number(0604893575) =~ /0604893575/ break=on-false
  563. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0604893575)
  564. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  565. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  566. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:15)
  567. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  568. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  569. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  570. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  571. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  572. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  573. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  574. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  575. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  576. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148273|CODE:^0604.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426173|CODE:^0604.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                      
  577. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0488814867)
  578. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0488814867)
  579. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  580. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  581. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0488814867)
  582. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0488814867)
  583. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  584. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  585. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  586. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  587. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  588. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148273)
  589. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  590. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  591. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0604.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0604.* // D083-MTN)                                                                                                                        
  592. Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0604893575;fs_path=sip:156.38.231.106:5060)
  593. 2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  594. 2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  595. 2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 74 Tot 574963)
  596. 2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State EXECUTE
  597. 2024-03-22 07:53:15.244168 [DEBUG] mod_sofia.c:198 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  598. 2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:328 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  599. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0604893575)
  600. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0604893575]
  601. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  602. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  603. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  604. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  605. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:15)
  606. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:53:15]
  607. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  608. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  609. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  610. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  611. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(account_id=109)
  612. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  613. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  614. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  615. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  616. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  617. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  618. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  619. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  620. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  621. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(accountname=default)
  622. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  623. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  624. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  625. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148273|CODE:^0604.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426173|CODE:^0604.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                              
  626. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148273|CODE:^0604.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426173|CODE:^0604.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                              
  627. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0488814867)
  628. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0488814867]
  629. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0488814867)
  630. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0488814867]
  631. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  632. 2024-03-22 07:53:15.244168 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  633. 2024-03-22 07:53:15.244168 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
  634. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  635. 2024-03-22 07:53:15.244168 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  636. 2024-03-22 07:53:15.244168 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 15/800
  637. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0488814867)
  638. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0488814867]
  639. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0488814867)
  640. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0488814867]
  641. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  642. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  643. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  644. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  645. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  646. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  647. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  648. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  649. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  650. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  651. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148273)
  652. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148273]
  653. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  654. 2024-03-22 07:53:15.244168 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  655. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(intcall=0)
  656. 2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  657. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0604.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0604.* // D083-MTN)                                                                                                                                
  658. 2024-03-22 07:53:15.244168 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0604.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0604.* // D083-MTN]                                                                                                                      
  659. EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0604893575;fs_path=sip:156.38.231.106:5060)
  660. 2024-03-22 07:53:15.264182 [DEBUG] switch_channel.c:1250 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0604.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0604.* // D083-MTN] to event                                                    
  661. 2024-03-22 07:53:15.264182 [DEBUG] switch_channel.c:1250 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0604.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0604.* // D083-MTN] to event                                                    
  662. 2024-03-22 07:53:15.264182 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  663. 2024-03-22 07:53:15.264182 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  664. 2024-03-22 07:53:15.264182 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0604893575 [3d27e37c-e821-11ee-8dac-d17fbcf33421]
  665. 2024-03-22 07:53:15.264182 [DEBUG] mod_sofia.c:4819 (sofia/default/0604893575) State Change CS_NEW -> CS_INIT
  666. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604893575) Running State Change CS_INIT (Cur 75 Tot 574964)
  667. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604893575) State INIT
  668. 2024-03-22 07:53:15.264182 [DEBUG] mod_sofia.c:90 sofia/default/0604893575 SOFIA INIT
  669. 2024-03-22 07:53:15.264182 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0604893575
  670. 2024-03-22 07:53:15.264182 [DEBUG] sofia_glue.c:1295 sofia/default/0604893575 sending invite version: 1.6.20  64bit
  671. Local SDP:                                                                                                                                                                                                        
  672. v=0                                                                                                                                                                                                                
  673. o=FreeSWITCH 1711067645 1711067646 IN IP4 156.38.231.107                                                                                                                                                          
  674. s=FreeSWITCH                                                                                                                                                                                                      
  675. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  676. t=0 0                                                                                                                                                                                                              
  677. m=audio 26350 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  678. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  679. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  680. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  681. a=fmtp:18 annexb=no                                                                                                                                                                                                
  682. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  683. a=fmtp:101 0-16                                                                                                                                                                                                    
  684. a=ptime:20                                                                                                                                                                                                        
  685. a=sendrecv                                                                                                                                                                                                        
  686.  
  687. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:40 sofia/default/0604893575 Standard INIT
  688. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0604893575) State Change CS_INIT -> CS_ROUTING
  689. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604893575) State INIT going to sleep
  690. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604893575) Running State Change CS_ROUTING (Cur 75 Tot 574964)
  691. 2024-03-22 07:53:15.264182 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [calling][0]
  692. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604893575) State ROUTING
  693. 2024-03-22 07:53:15.264182 [DEBUG] mod_sofia.c:143 sofia/default/0604893575 SOFIA ROUTING
  694. 2024-03-22 07:53:15.264182 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0604893575) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  695. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604893575) State ROUTING going to sleep
  696. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604893575) Running State Change CS_CONSUME_MEDIA (Cur 75 Tot 574964)
  697. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0604893575) State CONSUME_MEDIA
  698. 2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0604893575) State CONSUME_MEDIA going to sleep
  699. EXECUTE sofia/default/0104938458@41.160.32.115:5060 ring_ready()
  700. 2024-03-22 07:53:15.584190 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0104938458@41.160.32.115:5060!
  701. 2024-03-22 07:53:15.604168 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0104938458@41.160.32.115:5060!
  702. 2024-03-22 07:53:15.604168 [DEBUG] sofia.c:7084 Channel sofia/default/0104938458@41.160.32.115:5060 entering state [early][180]
  703. EXECUTE sofia/default/0104938458@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/9851635928@legalaidsa.nebular.co.za^0397275081)
  704. 2024-03-22 07:53:15.604168 [DEBUG] switch_channel.c:1250 sofia/default/0104938458@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  705. 2024-03-22 07:53:15.604168 [DEBUG] switch_channel.c:1250 sofia/default/0104938458@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  706. 2024-03-22 07:53:15.604168 [DEBUG] switch_channel.c:1250 sofia/default/0104938458@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  707. 2024-03-22 07:53:15.604168 [DEBUG] switch_channel.c:1250 sofia/default/0104938458@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  708. 2024-03-22 07:53:15.604168 [DEBUG] switch_channel.c:1250 sofia/default/0104938458@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  709. 2024-03-22 07:53:15.604168 [DEBUG] switch_channel.c:1250 sofia/default/0104938458@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  710. 2024-03-22 07:53:15.604168 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  711. 2024-03-22 07:53:15.604168 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  712. 2024-03-22 07:53:15.604168 [NOTICE] switch_channel.c:1104 New Channel sofia/default/9851635928@legalaidsa.nebular.co.za [3d5bbc88-e821-11ee-8db5-d17fbcf33421]
  713. 2024-03-22 07:53:15.604168 [DEBUG] mod_sofia.c:4819 (sofia/default/9851635928@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  714. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9851635928@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 76 Tot 574965)
  715. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/9851635928@legalaidsa.nebular.co.za) State INIT
  716. 2024-03-22 07:53:15.604168 [DEBUG] mod_sofia.c:90 sofia/default/9851635928@legalaidsa.nebular.co.za SOFIA INIT
  717. 2024-03-22 07:53:15.604168 [DEBUG] sofia_glue.c:1295 sofia/default/9851635928@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  718. Local SDP:                                                                                                                                                                                                        
  719. v=0                                                                                                                                                                                                                
  720. o=FreeSWITCH 1711071755 1711071756 IN IP4 156.38.231.107                                                                                                                                                          
  721. s=FreeSWITCH                                                                                                                                                                                                      
  722. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  723. t=0 0                                                                                                                                                                                                              
  724. m=audio 22240 RTP/AVP 18 101                                                                                                                                                                                      
  725. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  726. a=fmtp:18 annexb=no                                                                                                                                                                                                
  727. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  728. a=fmtp:101 0-16                                                                                                                                                                                                    
  729. a=ptime:20                                                                                                                                                                                                        
  730. a=sendrecv                                                                                                                                                                                                        
  731.  
  732. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:40 sofia/default/9851635928@legalaidsa.nebular.co.za Standard INIT
  733. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:48 (sofia/default/9851635928@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  734. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/9851635928@legalaidsa.nebular.co.za) State INIT going to sleep
  735. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9851635928@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 76 Tot 574965)
  736. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/9851635928@legalaidsa.nebular.co.za) State ROUTING
  737. 2024-03-22 07:53:15.604168 [DEBUG] mod_sofia.c:143 sofia/default/9851635928@legalaidsa.nebular.co.za SOFIA ROUTING
  738. 2024-03-22 07:53:15.604168 [DEBUG] switch_ivr_originate.c:67 (sofia/default/9851635928@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  739. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/9851635928@legalaidsa.nebular.co.za) State ROUTING going to sleep
  740. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9851635928@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 76 Tot 574965)
  741. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:662 (sofia/default/9851635928@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  742. 2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:662 (sofia/default/9851635928@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  743. 2024-03-22 07:53:15.604168 [DEBUG] sofia.c:7084 Channel sofia/default/9851635928@legalaidsa.nebular.co.za entering state [calling][0]
  744. 2024-03-22 07:53:15.704188 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0788023267@41.160.32.115:5060 [3d6c7d3e-e821-11ee-8db9-d17fbcf33421]
  745. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_NEW (Cur 77 Tot 574966)
  746. 2024-03-22 07:53:15.704188 [DEBUG] sofia.c:9873 sofia/default/0788023267@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  747. 2024-03-22 07:53:15.704188 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  748. 2024-03-22 07:53:15.704188 [DEBUG] sofia.c:7084 Channel sofia/default/0788023267@41.160.32.115:5060 entering state [received][100]
  749. 2024-03-22 07:53:15.704188 [DEBUG] sofia.c:7094 Remote SDP:
  750. v=0                                                                                                                                                                                                                
  751. o=HuaweiSoftX3000 52056281924824 52056281924824 IN IP4 41.160.32.115                                                                                                                                              
  752. s=-                                                                                                                                                                                                                
  753. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  754. t=0 0                                                                                                                                                                                                              
  755. m=audio 24774 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  756. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  757. a=fmtp:18 annexb=no                                                                                                                                                                                                
  758. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  759. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  760. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  761. a=fmtp:101 0-15                                                                                                                                                                                                    
  762. a=ptime:20                                                                                                                                                                                                        
  763.  
  764. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  765. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  766. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  767. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  768. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  769. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  770. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  771. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  772. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  773. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  774. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  775. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  776. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  777. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  778. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  779. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  780. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  781. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0788023267@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  782. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_codec.c:111 sofia/default/0788023267@41.160.32.115:5060 Original read codec set to G729:18
  783. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  784. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4767 sofia/default/0788023267@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  785. 2024-03-22 07:53:15.704188 [DEBUG] sofia.c:7507 (sofia/default/0788023267@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  786. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0788023267@41.160.32.115:5060) State NEW
  787. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_INIT (Cur 77 Tot 574966)
  788. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0788023267@41.160.32.115:5060) State INIT
  789. 2024-03-22 07:53:15.704188 [DEBUG] mod_sofia.c:90 sofia/default/0788023267@41.160.32.115:5060 SOFIA INIT
  790. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:40 sofia/default/0788023267@41.160.32.115:5060 Standard INIT
  791. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0788023267@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  792. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0788023267@41.160.32.115:5060) State INIT going to sleep
  793. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 77 Tot 574966)
  794. 2024-03-22 07:53:15.704188 [DEBUG] switch_channel.c:2249 (sofia/default/0788023267@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  795. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0788023267@41.160.32.115:5060) State ROUTING
  796. 2024-03-22 07:53:15.704188 [DEBUG] mod_sofia.c:143 sofia/default/0788023267@41.160.32.115:5060 SOFIA ROUTING
  797. 2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:236 sofia/default/0788023267@41.160.32.115:5060 Standard ROUTING
  798. 2024-03-22 07:53:15.704188 [INFO] mod_dialplan_xml.c:637 Processing 0788023267 <0788023267>->0103130010 in context default
  799. 2024-03-22 07:53:15.704188 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  800. 2024-03-22 07:53:15.704188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  801. 2024-03-22 07:53:15.704188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  802. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  803. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0103130010
  804. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0103130010' limit 1
  805. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0103130010' AND status=0 limit 1
  806. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0103130010' and status=0 LIMIT 1                                                                                                                                                                                                          
  807. 2024-03-22 07:53:15.724160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  808. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0788023267 / <null>
  809. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130010" LIMIT 1                                                                                                                                                              
  810. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  811. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  812. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  813. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0103130010" AND (accountid = 0 OR status = 1) LIMIT 1
  814. 2024-03-22 07:53:15.724160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  815. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  816. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  817. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 15
  818. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [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 = '^0103130010.*' OR patterns = '^010313001.*' OR patterns = '^01031300.*' OR patterns = '^0103130.*' OR patterns = '^010313.*' OR patterns = '^01031.*' OR patterns = '^0103.*' OR patterns = '^010.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 15 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  819. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130010" AND A.accountid = '3' limit 1                                                                                                                                                                          
  820. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0103130010
  821. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130010" LIMIT 1                                                                                                                                                              
  822. 2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  823. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0103130010' OR number = '010313001' OR number = '01031300' OR number = '0103130' OR number = '010313' OR number = '01031' OR number = '0103' OR number = '010' OR number = '01' OR number = '0' OR number ='--') OR (number = '0103130010*' OR number = '010313001*' OR number = '01031300*' OR number = '0103130*' OR number = '010313*' OR number = '01031*' OR number = '0103*' OR number = '010*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  824. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  825. 2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0103130010' OR routing_prefix = '010313001' OR routing_prefix = '01031300' OR routing_prefix = '0103130' OR routing_prefix = '010313' OR routing_prefix = '01031' OR routing_prefix = '0103' OR routing_prefix = '010' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  826. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  827. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  828. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  829. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  830. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  831. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  832. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  833. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  834. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  835. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  836. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130010" LIMIT 1                                                                                                                                                              
  837. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  838. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  839. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2025
  840. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  841. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  842. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  843. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0103130010
  844. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  845. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  846. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  847. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  848. 2024-03-22 07:53:15.744187 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  849. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  850. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  851. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  852. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  853. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++15
  854. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "15" AND deleted = 0 limit 1
  855. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  856. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  857. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  858. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 15 limit 1
  859. 2024-03-22 07:53:15.744187 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : karlovac.nebular.co.za
  860. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  861. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  862. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  863. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  864. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0788023267
  865. 2024-03-22 07:53:15.744187 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0788023267
  866. 2024-03-22 07:53:15.744187 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27788023267
  867. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  868. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 15 limit 1
  869. 2024-03-22 07:53:15.744187 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : karlovac.nebular.co.za
  870. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_10
  871. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2025
  872. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : 10
  873. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : IVR
  874. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_IVR_INFO] Query :SELECT * from pbx_ivr_specification WHERE id = 13 and status=0 LIMIT 1
  875. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '37' LIMIT 1
  876. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== announcement=File name==================ThistreeRe_.wav
  877. 2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== sandip here===========================
  878. 2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  879. <document type="freeswitch/xml">                                                                                                                                                                                  
  880. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  881. <context name="default">                                                                                                                                                                                          
  882. <extension name="0103130010">                                                                                                                                                                                      
  883. <condition field="destination_number" expression="0103130010">                                                                                                                                                    
  884. <action application="set" data="effective_destination_number=0103130010"/>                                                                                                                                        
  885. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  886. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  887. <action application="set" data="callstart=2024-03-22 07:53:15"/>                                                                                                                                                  
  888. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  889. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  890. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  891. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  892. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  893. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  894. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  895. <action application="set" data="accountname=default"/>                                                                                                                                                            
  896. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  897. <action application="set" data="origination_rates_did=ID:2025|CODE:^0103130010.*|DESTINATION:0103130010|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:15"/>                                                                                                                                                                                                      
  898. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  899. <action application="set" data="original_caller_id_name=0788023267"/>                                                                                                                                              
  900. <action application="set" data="effective_caller_id_name=27788023267"/>                                                                                                                                            
  901. <action application="set" data="receiver_accid=15"/>                                                                                                                                                              
  902. <action application="export" data="domain_name=karlovac.nebular.co.za"/>                                                                                                                                          
  903. <action application="export" data="sip_to_host=karlovac.nebular.co.za"/>                                                                                                                                          
  904. <action application="export" data="presence_data=x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  905. <action application="export" data="call_type=10"/>                                                                                                                                                                
  906. <action application="set" data="did_calltype=10"/>                                                                                                                                                                
  907. <action application="set" data="did_extensions=13"/>                                                                                                                                                              
  908. <action application="set" data="ringback=/var/www/html/astpp//upload/pbx/ThistreeRe_.wav"/>                                                                                                                        
  909. <action application="set" data="module_name=pbx"/>                                                                                                                                                                
  910. <action application="set" data="sip_h_P-call_type=custom_forward"/>                                                                                                                                                
  911. <action application="set" data="sip_h_P-Accountcode=15"/>                                                                                                                                                          
  912. <action application="set" data="no_answer_number=145"/>                                                                                                                                                            
  913. <action application="export" data="no_answer_number=145"/>                                                                                                                                                        
  914. <action application="set" data="no_answer_call_type=extension"/>                                                                                                                                                  
  915. <action application="set" data="no_answer_call_type_value=145"/>                                                                                                                                                  
  916. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  917. <action application="set" data="originate_disposition=no_key_press"/>                                                                                                                                              
  918. <action application="set" data="variable_sip_to_host=karlovac.nebular.co.za"/>                                                                                                                                    
  919. <action application="set" data="userinfo_id=3"/>                                                                                                                                                                  
  920. <action application="set" data="variable_sip_to_host=karlovac.nebular.co.za"/>                                                                                                                                    
  921. <action application="set" data="original_did_number=0103130010"/>                                                                                                                                                  
  922. <action application="set" data="absolute_codec_string=PCMU,PCMA,G729"/>                                                                                                                                            
  923.     <action application="answer"/>                                                                                                                                                                                
  924. <action application="ivr" data="ThisTree IVR13"/>                                                                                                                                                                  
  925. <action application="lua" data="astpp/lib/pbx/astpp-failover_ivr_destination.lua"/>                                                                                                                                
  926. </condition>                                                                                                                                                                                                      
  927. </extension>                                                                                                                                                                                                      
  928. </context>                                                                                                                                                                                                        
  929. </section>                                                                                                                                                                                                        
  930. </document>                                                                                                                                                                                                        
  931. 2024-03-22 07:53:15.744187 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  932. Dialplan: sofia/default/0788023267@41.160.32.115:5060 parsing [default->0103130010] continue=false
  933. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Regex (PASS) [0103130010] destination_number(0103130010) =~ /0103130010/ break=on-false
  934. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(effective_destination_number=0103130010)
  935. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  936. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  937. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:15)
  938. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  939. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  940. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(account_id=3)
  941. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(parent_id=0)
  942. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(entity_id=3)
  943. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(call_processed=internal)
  944. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(call_direction=inbound)
  945. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(accountname=default)
  946. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  947. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(origination_rates_did=ID:2025|CODE:^0103130010.*|DESTINATION:0103130010|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:15)                                                                                                                                                                      
  948. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(origination_rates=0)
  949. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(original_caller_id_name=0788023267)
  950. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(effective_caller_id_name=27788023267)
  951. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(receiver_accid=15)
  952. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(domain_name=karlovac.nebular.co.za)
  953. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(sip_to_host=karlovac.nebular.co.za)
  954. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115)
  955. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(call_type=10)
  956. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(did_calltype=10)
  957. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(did_extensions=13)
  958. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(ringback=/var/www/html/astpp//upload/pbx/ThistreeRe_.wav)
  959. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(module_name=pbx)
  960. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(sip_h_P-call_type=custom_forward)
  961. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(sip_h_P-Accountcode=15)
  962. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(no_answer_number=145)
  963. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(no_answer_number=145)
  964. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(no_answer_call_type=extension)
  965. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(no_answer_call_type_value=145)
  966. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(opensips_flag=0)
  967. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(originate_disposition=no_key_press)
  968. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(variable_sip_to_host=karlovac.nebular.co.za)
  969. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(userinfo_id=3)
  970. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(variable_sip_to_host=karlovac.nebular.co.za)
  971. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(original_did_number=0103130010)
  972. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(absolute_codec_string=PCMU,PCMA,G729)
  973. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action answer()
  974. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action ivr(ThisTree IVR13)
  975. Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-failover_ivr_destination.lua)
  976. 2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0788023267@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  977. 2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0788023267@41.160.32.115:5060) State ROUTING going to sleep
  978. 2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 77 Tot 574966)
  979. 2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0788023267@41.160.32.115:5060) State EXECUTE
  980. 2024-03-22 07:53:15.744187 [DEBUG] mod_sofia.c:198 sofia/default/0788023267@41.160.32.115:5060 SOFIA EXECUTE
  981. 2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:328 sofia/default/0788023267@41.160.32.115:5060 Standard EXECUTE
  982. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(effective_destination_number=0103130010)
  983. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [effective_destination_number]=[0103130010]
  984. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  985. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  986. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  987. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  988. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(callstart=2024-03-22 07:53:15)
  989. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:15]
  990. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(hangup_after_bridge=true)
  991. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [hangup_after_bridge]=[true]
  992. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(continue_on_fail=TRUE)
  993. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  994. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(account_id=3)
  995. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [account_id]=[3]
  996. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(parent_id=0)
  997. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [parent_id]=[0]
  998. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(entity_id=3)
  999. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [entity_id]=[3]
  1000. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(call_processed=internal)
  1001. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [call_processed]=[internal]
  1002. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(call_direction=inbound)
  1003. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [call_direction]=[inbound]
  1004. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(accountname=default)
  1005. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [accountname]=[default]
  1006. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  1007. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  1008. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(origination_rates_did=ID:2025|CODE:^0103130010.*|DESTINATION:0103130010|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:15)                                                                                                                                                                                
  1009. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [origination_rates_did]=[ID:2025|CODE:^0103130010.*|DESTINATION:0103130010|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:10|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:15]                                                                                                                              
  1010. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(origination_rates=0)
  1011. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [origination_rates]=[0]
  1012. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(original_caller_id_name=0788023267)
  1013. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [original_caller_id_name]=[0788023267]
  1014. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(effective_caller_id_name=27788023267)
  1015. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [effective_caller_id_name]=[27788023267]
  1016. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(receiver_accid=15)
  1017. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [receiver_accid]=[15]
  1018. EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(domain_name=karlovac.nebular.co.za)
  1019. 2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[karlovac.nebular.co.za]
  1020. EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(sip_to_host=karlovac.nebular.co.za)
  1021. 2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[karlovac.nebular.co.za]
  1022. EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115)
  1023. 2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115]
  1024. EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(call_type=10)
  1025. 2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[10]
  1026. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(did_calltype=10)
  1027. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [did_calltype]=[10]
  1028. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(did_extensions=13)
  1029. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [did_extensions]=[13]
  1030. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(ringback=/var/www/html/astpp//upload/pbx/ThistreeRe_.wav)
  1031. 2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [ringback]=[/var/www/html/astpp//upload/pbx/ThistreeRe_.wav]
  1032. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(module_name=pbx)
  1033. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [module_name]=[pbx]
  1034. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(sip_h_P-call_type=custom_forward)
  1035. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [sip_h_P-call_type]=[custom_forward]
  1036. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(sip_h_P-Accountcode=15)
  1037. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [sip_h_P-Accountcode]=[15]
  1038. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(no_answer_number=145)
  1039. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [no_answer_number]=[145]
  1040. EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(no_answer_number=145)
  1041. 2024-03-22 07:53:15.764174 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [no_answer_number]=[145]
  1042. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(no_answer_call_type=extension)
  1043. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [no_answer_call_type]=[extension]
  1044. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(no_answer_call_type_value=145)
  1045. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [no_answer_call_type_value]=[145]
  1046. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(opensips_flag=0)
  1047. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [opensips_flag]=[0]
  1048. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(originate_disposition=no_key_press)
  1049. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [originate_disposition]=[no_key_press]
  1050. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(variable_sip_to_host=karlovac.nebular.co.za)
  1051. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [variable_sip_to_host]=[karlovac.nebular.co.za]
  1052. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(userinfo_id=3)
  1053. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [userinfo_id]=[3]
  1054. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(variable_sip_to_host=karlovac.nebular.co.za)
  1055. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [variable_sip_to_host]=[karlovac.nebular.co.za]
  1056. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(original_did_number=0103130010)
  1057. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [original_did_number]=[0103130010]
  1058. EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(absolute_codec_string=PCMU,PCMA,G729)
  1059. 2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [absolute_codec_string]=[PCMU,PCMA,G729]
  1060. EXECUTE sofia/default/0788023267@41.160.32.115:5060 answer()
  1061. 2024-03-22 07:53:15.764174 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0788023267@41.160.32.115:5060] 156.38.231.107 port 18360 -> 41.160.32.115 port 24774 codec: 18 ms: 20
  1062. 2024-03-22 07:53:15.764174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  1063. 2024-03-22 07:53:15.764174 [DEBUG] switch_core_media.c:7180 sofia/default/0788023267@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  1064. 2024-03-22 07:53:15.764174 [DEBUG] switch_core_media.c:7187 sofia/default/0788023267@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  1065. 2024-03-22 07:53:15.764174 [DEBUG] switch_core_media.c:7210 sofia/default/0788023267@41.160.32.115:5060 Set rtp dtmf delay to 40
  1066. 2024-03-22 07:53:15.764174 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0788023267@41.160.32.115:5060:
  1067. v=0                                                                                                                                                                                                                
  1068. o=FreeSWITCH 1711075635 1711075636 IN IP4 156.38.231.107                                                                                                                                                          
  1069. s=FreeSWITCH                                                                                                                                                                                                      
  1070. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  1071. t=0 0                                                                                                                                                                                                              
  1072. m=audio 18360 RTP/AVP 18 101                                                                                                                                                                                      
  1073. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  1074. a=fmtp:18 annexb=no                                                                                                                                                                                                
  1075. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1076. a=fmtp:101 0-16                                                                                                                                                                                                    
  1077. a=ptime:20                                                                                                                                                                                                        
  1078. a=sendrecv                                                                                                                                                                                                        
  1079.  
  1080. 2024-03-22 07:53:15.764174 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/0788023267@41.160.32.115:5060] has been answered
  1081. 2024-03-22 07:53:15.764174 [DEBUG] switch_channel.c:3773 (sofia/default/0788023267@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  1082. EXECUTE sofia/default/0788023267@41.160.32.115:5060 ivr(ThisTree IVR13)
  1083. 2024-03-22 07:53:15.784192 [DEBUG] sofia.c:7084 Channel sofia/default/9851635928@legalaidsa.nebular.co.za entering state [proceeding][180]
  1084. 2024-03-22 07:53:15.784192 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/9851635928@legalaidsa.nebular.co.za!
  1085. 2024-03-22 07:53:15.784192 [DEBUG] switch_channel.c:3346 (sofia/default/9851635928@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  1086. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit'
  1087. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub'
  1088. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app'
  1089. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound'
  1090. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back'
  1091. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top'
  1092. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:880 building menu 'ThisTree IVR13'
  1093. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1'
  1094. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '2'
  1095. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,20})$/'
  1096. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu ThisTree IVR13
  1097. 2024-03-22 07:53:15.784192 [DEBUG] sofia.c:7084 Channel sofia/default/0788023267@41.160.32.115:5060 entering state [completed][200]
  1098. 2024-03-22 07:53:15.784192 [DEBUG] switch_core_file.c:342 File /var/www/html/astpp/upload/pbx/ThistreeRe_.wav sample rate 44100 doesn't match requested rate 8000
  1099. 2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  1100. 2024-03-22 07:53:15.784192 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda8225978 0x7feda8225978
  1101. 2024-03-22 07:53:15.784192 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda8225978 0x7feda8225978
  1102. 2024-03-22 07:53:15.804153 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0104938458@41.160.32.115:5060!
  1103. 2024-03-22 07:53:15.944348 [DEBUG] sofia.c:7084 Channel sofia/default/0788023267@41.160.32.115:5060 entering state [ready][200]
  1104. 2024-03-22 07:53:16.404221 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  1105. 2024-03-22 07:53:17.584203 [NOTICE] sofia.c:1012 Hangup sofia/default/27123676133@saws.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  1106. 2024-03-22 07:53:17.584203 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27123676133@saws.nebular.co.za:5060]
  1107. 2024-03-22 07:53:17.604157 [DEBUG] switch_ivr_bridge.c:706 sofia/default/27123676133@saws.nebular.co.za:5060 ending bridge by request from write function
  1108. 2024-03-22 07:53:17.604157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/5923718012@saws.nebular.co.za]
  1109. 2024-03-22 07:53:17.604157 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/5923718012@saws.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  1110. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:653 (sofia/default/5923718012@saws.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  1111. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5923718012@saws.nebular.co.za) Running State Change CS_HANGUP (Cur 77 Tot 574966)
  1112. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/5923718012@saws.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  1113. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5923718012@saws.nebular.co.za) State HANGUP
  1114. 2024-03-22 07:53:17.604157 [DEBUG] mod_sofia.c:432 sofia/default/5923718012@saws.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  1115. 2024-03-22 07:53:17.604157 [DEBUG] mod_sofia.c:438 Channel sofia/default/5923718012@saws.nebular.co.za hanging up, cause: NORMAL_CLEARING
  1116. 2024-03-22 07:53:17.604157 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/5923718012@saws.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  1117. 2024-03-22 07:53:17.604157 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/27123676133@saws.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  1118. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_session.c:2815 sofia/default/27123676133@saws.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  1119. 2024-03-22 07:53:17.604157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/5923718012@saws.nebular.co.za
  1120. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27123676133@saws.nebular.co.za:5060) State EXECUTE going to sleep
  1121. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27123676133@saws.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 77 Tot 574966)
  1122. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:60 sofia/default/5923718012@saws.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  1123. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5923718012@saws.nebular.co.za) State HANGUP going to sleep
  1124. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/5923718012@saws.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  1125. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5923718012@saws.nebular.co.za) Running State Change CS_REPORTING (Cur 77 Tot 574966)
  1126. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/27123676133@saws.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  1127. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5923718012@saws.nebular.co.za) State REPORTING
  1128. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27123676133@saws.nebular.co.za:5060) State HANGUP
  1129. 2024-03-22 07:53:17.604157 [DEBUG] mod_sofia.c:438 Channel sofia/default/27123676133@saws.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  1130. 2024-03-22 07:53:17.604157 [INFO] mod_json_cdr.c:271 Process [f1827de2-e820-11ee-85ab-d17fbcf33421.cdr.json]
  1131. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:60 sofia/default/27123676133@saws.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  1132. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27123676133@saws.nebular.co.za:5060) State HANGUP going to sleep
  1133. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/27123676133@saws.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  1134. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27123676133@saws.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 77 Tot 574966)
  1135. 2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27123676133@saws.nebular.co.za:5060) State REPORTING
  1136. 2024-03-22 07:53:17.604157 [INFO] mod_json_cdr.c:271 Process [f0d9378c-e820-11ee-856e-d17fbcf33421.cdr.json]
  1137. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:174 sofia/default/5923718012@saws.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  1138. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5923718012@saws.nebular.co.za) State REPORTING going to sleep
  1139. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/5923718012@saws.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  1140. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_session.c:1665 Session 574870 (sofia/default/5923718012@saws.nebular.co.za) Locked, Waiting on external entities
  1141. 2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1683 Session 574870 (sofia/default/5923718012@saws.nebular.co.za) Ended
  1142. 2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5923718012@saws.nebular.co.za [CS_DESTROY]
  1143. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/5923718012@saws.nebular.co.za) Running State Change CS_DESTROY (Cur 76 Tot 574966)
  1144. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5923718012@saws.nebular.co.za) State DESTROY
  1145. 2024-03-22 07:53:17.624159 [DEBUG] mod_sofia.c:343 sofia/default/5923718012@saws.nebular.co.za SOFIA DESTROY
  1146. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:181 sofia/default/5923718012@saws.nebular.co.za Standard DESTROY
  1147. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5923718012@saws.nebular.co.za) State DESTROY going to sleep
  1148. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:174 sofia/default/27123676133@saws.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  1149. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27123676133@saws.nebular.co.za:5060) State REPORTING going to sleep
  1150. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/27123676133@saws.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  1151. 2024-03-22 07:53:17.624159 [DEBUG] switch_core_session.c:1665 Session 574867 (sofia/default/27123676133@saws.nebular.co.za:5060) Locked, Waiting on external entities
  1152. 2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1683 Session 574867 (sofia/default/27123676133@saws.nebular.co.za:5060) Ended
  1153. 2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/27123676133@saws.nebular.co.za:5060 [CS_DESTROY]
  1154. 2024-03-22 07:53:17.644373 [DEBUG] switch_core_state_machine.c:741 (sofia/default/27123676133@saws.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 75 Tot 574966)
  1155. 2024-03-22 07:53:17.644373 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27123676133@saws.nebular.co.za:5060) State DESTROY
  1156. 2024-03-22 07:53:17.644373 [DEBUG] mod_sofia.c:343 sofia/default/27123676133@saws.nebular.co.za:5060 SOFIA DESTROY
  1157. 2024-03-22 07:53:17.644373 [DEBUG] switch_core_state_machine.c:181 sofia/default/27123676133@saws.nebular.co.za:5060 Standard DESTROY
  1158. 2024-03-22 07:53:17.644373 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27123676133@saws.nebular.co.za:5060) State DESTROY going to sleep
  1159. 2024-03-22 07:53:17.964188 [DEBUG] switch_scheduler.c:144 Deleting task 232786 switch_ivr_schedule_hangup (f1827de2-e820-11ee-85ab-d17fbcf33421)
  1160. 2024-03-22 07:53:18.344182 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [proceeding][183]
  1161. 2024-03-22 07:53:18.344182 [DEBUG] sofia.c:7094 Remote SDP:
  1162. v=0                                                                                                                                                                                                                
  1163. o=HuaweiSoftX3000 86115372584755 86115372584755 IN IP4 41.160.32.115                                                                                                                                              
  1164. s=-                                                                                                                                                                                                                
  1165. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  1166. t=0 0                                                                                                                                                                                                              
  1167. m=audio 24772 RTP/AVP 8 101                                                                                                                                                                                        
  1168. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1169. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1170. a=fmtp:101 0-15                                                                                                                                                                                                    
  1171. a=ptime:20                                                                                                                                                                                                        
  1172.  
  1173. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1174. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  1175. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1176. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1177. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  1178. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0604893575 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  1179. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_codec.c:111 sofia/default/0604893575 Original read codec set to PCMA:8
  1180. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  1181. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4767 sofia/default/0604893575 Set 2833 dtmf send payload to 101 recv payload to 101
  1182. 2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0604893575] 156.38.231.107 port 26350 -> 41.160.32.115 port 24772 codec: 8 ms: 20
  1183. 2024-03-22 07:53:18.364187 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  1184. 2024-03-22 07:53:18.364187 [DEBUG] switch_core_media.c:7180 sofia/default/0604893575 Set 2833 dtmf send payload to 101
  1185. 2024-03-22 07:53:18.364187 [DEBUG] switch_core_media.c:7187 sofia/default/0604893575 Set 2833 dtmf receive payload to 101
  1186. 2024-03-22 07:53:18.364187 [DEBUG] switch_core_media.c:7210 sofia/default/0604893575 Set rtp dtmf delay to 40
  1187. 2024-03-22 07:53:18.364187 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0604893575!
  1188. 2024-03-22 07:53:18.364187 [DEBUG] switch_channel.c:3474 (sofia/default/0604893575) Callstate Change DOWN -> EARLY
  1189. 2024-03-22 07:53:18.384171 [INFO] switch_ivr_originate.c:3654 Sending early media
  1190. 2024-03-22 07:53:18.384171 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0488814867@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 29474 -> 156.38.150.6 port 10450 codec: 8 ms: 20
  1191. 2024-03-22 07:53:18.384171 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  1192. 2024-03-22 07:53:18.384171 [DEBUG] switch_core_media.c:7180 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  1193. 2024-03-22 07:53:18.384171 [DEBUG] switch_core_media.c:7187 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  1194. 2024-03-22 07:53:18.384171 [DEBUG] switch_core_media.c:7210 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  1195. 2024-03-22 07:53:18.384171 [DEBUG] mod_sofia.c:2364 Ring SDP:
  1196. v=0                                                                                                                                                                                                                
  1197. o=FreeSWITCH 1711064524 1711064525 IN IP4 156.38.231.107                                                                                                                                                          
  1198. s=FreeSWITCH                                                                                                                                                                                                      
  1199. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  1200. t=0 0                                                                                                                                                                                                              
  1201. m=audio 29474 RTP/AVP 8 101                                                                                                                                                                                        
  1202. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1203. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1204. a=fmtp:101 0-16                                                                                                                                                                                                    
  1205. a=ptime:20                                                                                                                                                                                                        
  1206. a=sendrecv                                                                                                                                                                                                        
  1207.  
  1208. 2024-03-22 07:53:18.384171 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0488814867@legalaidsa.nebular.co.za:5060!
  1209. 2024-03-22 07:53:18.384171 [DEBUG] switch_channel.c:3474 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  1210. 2024-03-22 07:53:18.384171 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0604893575]
  1211. 2024-03-22 07:53:18.384171 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [early][183]
  1212. 2024-03-22 07:53:18.384171 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0604893575) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  1213. 2024-03-22 07:53:18.384171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604893575) Running State Change CS_EXCHANGE_MEDIA (Cur 75 Tot 574966)
  1214. 2024-03-22 07:53:18.384171 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0604893575) State EXCHANGE_MEDIA
  1215. 2024-03-22 07:53:18.384171 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  1216. 2024-03-22 07:53:18.544168 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0604893575 Bridge execute app sched_hangup(+6000 normal_clearing)
  1217. 2024-03-22 07:53:18.564594 [DEBUG] switch_ivr.c:623 sofia/default/0604893575 Command Execute sched_hangup(+6000 normal_clearing)
  1218. EXECUTE sofia/default/0604893575 sched_hangup(+6000 normal_clearing)
  1219. 2024-03-22 07:53:18.584323 [DEBUG] switch_scheduler.c:249 Added task 232827 switch_ivr_schedule_hangup (3d27e37c-e821-11ee-8dac-d17fbcf33421) to run at 1711099998
  1220. 2024-03-22 07:53:18.664173 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10450 to 156.38.231.105:10450
  1221. 2024-03-22 07:53:19.444164 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  1222. 2024-03-22 07:53:19.524162 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [proceeding][180]
  1223. 2024-03-22 07:53:19.524162 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0604893575!
  1224. 2024-03-22 07:53:19.524162 [DEBUG] switch_channel.c:3346 (sofia/default/0604893575) Callstate Change EARLY -> RINGING
  1225. 2024-03-22 07:53:20.364173 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [4033e20a-e821-11ee-8de7-d17fbcf33421]
  1226. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 76 Tot 574967)
  1227. 2024-03-22 07:53:20.364173 [DEBUG] sofia.c:9873 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  1228. 2024-03-22 07:53:20.364173 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  1229. 2024-03-22 07:53:20.364173 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [received][100]
  1230. 2024-03-22 07:53:20.364173 [DEBUG] sofia.c:7094 Remote SDP:
  1231. v=0                                                                                                                                                                                                                
  1232. o=3cxPS 506856472576 5637144577 IN IP4 156.38.150.6                                                                                                                                                                
  1233. s=3cxPS Audio call                                                                                                                                                                                                
  1234. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  1235. t=0 0                                                                                                                                                                                                              
  1236. m=audio 10456 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  1237. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1238. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  1239. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  1240. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  1241. a=fmtp:18 annexb=no                                                                                                                                                                                                
  1242. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1243.  
  1244. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  1245. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1246. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1247. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  1248. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1249. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  1250. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1251. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1252. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1253. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  1254. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  1255. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1256. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1257. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1258. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  1259. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  1260. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  1261. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  1262. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  1263. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  1264. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  1265. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0333942190@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  1266. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_codec.c:111 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  1267. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  1268. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4767 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  1269. 2024-03-22 07:53:20.364173 [DEBUG] sofia.c:7507 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  1270. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State NEW
  1271. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 76 Tot 574967)
  1272. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State INIT
  1273. 2024-03-22 07:53:20.364173 [DEBUG] mod_sofia.c:90 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA INIT
  1274. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:40 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard INIT
  1275. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  1276. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  1277. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 76 Tot 574967)
  1278. 2024-03-22 07:53:20.364173 [DEBUG] switch_channel.c:2249 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  1279. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State ROUTING
  1280. 2024-03-22 07:53:20.364173 [DEBUG] mod_sofia.c:143 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  1281. 2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:236 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard ROUTING
  1282. 2024-03-22 07:53:20.364173 [INFO] mod_dialplan_xml.c:637 Processing 0333942190 <0333942190>->0721916283 in context default
  1283. 2024-03-22 07:53:20.364173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  1284. 2024-03-22 07:53:20.364173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  1285. 2024-03-22 07:53:20.364173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1286. 2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  1287. 2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0721916283
  1288. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0721916283' limit 1
  1289. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0721916283' AND status=0 limit 1
  1290. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0721916283' and status=0 LIMIT 1                                                                                                                                                                                                          
  1291. 2024-03-22 07:53:20.384154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  1292. 2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0333942190 / 0333942190
  1293. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [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 ="0721916283" LIMIT 1                                                                                                                                                              
  1294. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [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="0721916283"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  1295. 2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  1296. 2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  1297. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  1298. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0721916283.*' OR blocked_patterns = '^072191628.*' OR blocked_patterns = '^07219162.*' OR blocked_patterns = '^0721916.*' OR blocked_patterns = '^072191.*' OR blocked_patterns = '^07219.*' OR blocked_patterns = '^0721.*' OR blocked_patterns = '^072.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  1299. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0721916283" AND (accountid = 0 OR status = 1) LIMIT 1
  1300. 2024-03-22 07:53:20.384154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  1301. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  1302. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721916283
  1303. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721916283
  1304. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [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 = '^0721916283.*' OR patterns = '^072191628.*' OR patterns = '^07219162.*' OR patterns = '^0721916.*' OR patterns = '^072191.*' OR patterns = '^07219.*' OR patterns = '^0721.*' OR patterns = '^072.*' OR patterns = '^07.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  1305. 2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [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 ="0721916283" AND A.accountid = '109' limit 1                                                                                                                                                                        
  1306. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0721916283
  1307. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [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 ="0721916283" LIMIT 1                                                                                                                                                              
  1308. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [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="0721916283"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  1309. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  1310. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0721916283' OR number = '072191628' OR number = '07219162' OR number = '0721916' OR number = '072191' OR number = '07219' OR number = '0721' OR number = '072' OR number = '07' OR number = '0' OR number ='--') OR (number = '0721916283*' OR number = '072191628*' OR number = '07219162*' OR number = '0721916*' OR number = '072191*' OR number = '07219*' OR number = '0721*' OR number = '072*' OR number = '07*' OR number = '0*' OR number ='--') OR (number = '0333942190' OR number = '033394219' OR number = '03339421' OR number = '0333942' OR number = '033394' OR number = '03339' OR number = '0333' OR number = '033' OR number = '03' OR number = '0' OR number ='--') OR (number = '0333942190*' OR number = '033394219*' OR number = '03339421*' OR number = '0333942*' OR number = '033394*' OR number = '03339*' OR number = '0333*' OR number = '033*' OR number = '03*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  1311. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  1312. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0721916283' OR routing_prefix = '072191628' OR routing_prefix = '07219162' OR routing_prefix = '0721916' OR routing_prefix = '072191' OR routing_prefix = '07219' OR routing_prefix = '0721' OR routing_prefix = '072' OR routing_prefix = '07' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  1313. 2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0721916283)!!!!
  1314. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27721916283
  1315. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27721916283' limit 1
  1316. 2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0721916283)!!!!
  1317. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  1318. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  1319. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  1320. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19932.1335
  1321. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  1322. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  1323. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  1324. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  1325. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1326. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1327. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1328. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1329. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1330. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1331. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1332. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1333. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1334. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1335. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1336. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  1337. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  1338. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  1339. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  1340. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0721916283.*' OR pattern = '^072191628.*' OR pattern = '^07219162.*' OR pattern = '^0721916.*' OR pattern = '^072191.*' OR pattern = '^07219.*' OR pattern = '^0721.*' OR pattern = '^072.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  1341. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  1342. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  1343. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148455
  1344. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  1345. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  1346. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  1347. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - MOBILE
  1348. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  1349. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  1350. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  1351. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  1352. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  1353. 2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19932.1335 balance Accountid 109 !!!
  1354. 2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  1355. 2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  1356. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  1357. 2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0721916283.*' OR blocked_patterns = '^072191628.*' OR blocked_patterns = '^07219162.*' OR blocked_patterns = '^0721916.*' OR blocked_patterns = '^072191.*' OR blocked_patterns = '^07219.*' OR blocked_patterns = '^0721.*' OR blocked_patterns = '^072.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  1358. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  1359. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  1360. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  1361. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9959.4983
  1362. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  1363. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  1364. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  1365. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  1366. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  1367. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0721916283.*' OR pattern = '^072191628.*' OR pattern = '^07219162.*' OR pattern = '^0721916.*' OR pattern = '^072191.*' OR pattern = '^07219.*' OR pattern = '^0721.*' OR pattern = '^072.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  1368. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  1369. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  1370. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426357
  1371. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  1372. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  1373. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  1374. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D082-VODACOM
  1375. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  1376. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  1377. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  1378. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  1379. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  1380. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9959.4983 balance Accountid 13 !!!
  1381. 2024-03-22 07:53:20.426217 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  1382. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                      
  1383. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  1384. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  1385. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  1386. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148455
  1387. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  1388. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  1389. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0721916283.*' OR pattern = '^072191628.*' OR pattern = '^07219162.*' OR pattern = '^0721916.*' OR pattern = '^072191.*' OR pattern = '^07219.*' OR pattern = '^0721.*' OR pattern = '^072.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  1390. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  1391. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  1392. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  1393. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  1394. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  1395. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  1396. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  1397. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  1398. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  1399. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  1400. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  1401. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  1402. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  1403. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  1404. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  1405. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  1406. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  1407. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  1408. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  1409. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1410. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  1411. 2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  1412. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  1413. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  1414. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0721916283
  1415. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  1416. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [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 ="0721916283" LIMIT 1                                                                                                                                                              
  1417. 2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  1418. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  1419. <document type="freeswitch/xml">                                                                                                                                                                                  
  1420. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  1421. <context name="default">                                                                                                                                                                                          
  1422. <extension name="0721916283">                                                                                                                                                                                      
  1423. <condition field="destination_number" expression="0721916283">                                                                                                                                                    
  1424. <action application="set" data="effective_destination_number=0721916283"/>                                                                                                                                        
  1425. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  1426. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  1427. <action application="set" data="callstart=2024-03-22 07:53:20"/>                                                                                                                                                  
  1428. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  1429. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  1430. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  1431. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  1432. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  1433. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  1434. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  1435. <action application="set" data="accountname=default"/>                                                                                                                                                            
  1436. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  1437. <action application="set" data="origination_rates=ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                      
  1438. <action application="set" data="original_caller_id_name=0333942190"/>                                                                                                                                              
  1439. <action application="set" data="original_caller_id_number=0333942190"/>                                                                                                                                            
  1440. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  1441. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  1442. <action application="set" data="effective_caller_id_name=0333942190"/>                                                                                                                                            
  1443. <action application="set" data="effective_caller_id_number=0333942190"/>                                                                                                                                          
  1444. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  1445. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  1446. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  1447. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  1448. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  1449. <action application="set" data="force_trunk_flag=2148455"/>                                                                                                                                                        
  1450. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  1451. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  1452. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM"/>                                                                                                                                                            
  1453. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0721916283;fs_path=sip:156.38.231.106:5060"/>                                              
  1454. </condition>                                                                                                                                                                                                      
  1455. </extension>                                                                                                                                                                                                      
  1456. </context>                                                                                                                                                                                                        
  1457. </section>                                                                                                                                                                                                        
  1458. </document>                                                                                                                                                                                                        
  1459. 2024-03-22 07:53:20.426217 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  1460. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 parsing [default->0721916283] continue=false
  1461. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Regex (PASS) [0721916283] destination_number(0721916283) =~ /0721916283/ break=on-false
  1462. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0721916283)
  1463. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  1464. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1465. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:20)
  1466. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  1467. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  1468. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  1469. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  1470. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  1471. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  1472. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  1473. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  1474. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  1475. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                
  1476. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0333942190)
  1477. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0333942190)
  1478. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  1479. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  1480. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0333942190)
  1481. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0333942190)
  1482. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  1483. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  1484. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  1485. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  1486. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  1487. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148455)
  1488. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  1489. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  1490. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM)                                                                                                                  
  1491. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0721916283;fs_path=sip:156.38.231.106:5060)
  1492. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  1493. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  1494. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 76 Tot 574967)
  1495. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State EXECUTE
  1496. 2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:198 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  1497. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:328 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  1498. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0721916283)
  1499. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0721916283]
  1500. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  1501. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  1502. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1503. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  1504. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:20)
  1505. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:53:20]
  1506. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  1507. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  1508. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  1509. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  1510. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(account_id=109)
  1511. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  1512. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  1513. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  1514. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  1515. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  1516. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  1517. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  1518. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  1519. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  1520. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(accountname=default)
  1521. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  1522. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  1523. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  1524. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                        
  1525. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                        
  1526. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0333942190)
  1527. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0333942190]
  1528. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0333942190)
  1529. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0333942190]
  1530. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  1531. 2024-03-22 07:53:20.426217 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  1532. 2024-03-22 07:53:20.426217 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 14/200
  1533. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  1534. 2024-03-22 07:53:20.426217 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  1535. 2024-03-22 07:53:20.426217 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 16/800
  1536. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0333942190)
  1537. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0333942190]
  1538. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0333942190)
  1539. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0333942190]
  1540. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  1541. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  1542. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  1543. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  1544. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  1545. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  1546. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  1547. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  1548. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  1549. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  1550. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148455)
  1551. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148455]
  1552. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  1553. 2024-03-22 07:53:20.426217 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  1554. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(intcall=0)
  1555. 2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  1556. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM)                                                                                                                          
  1557. 2024-03-22 07:53:20.426217 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM]                                                                                                                
  1558. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0721916283;fs_path=sip:156.38.231.106:5060)
  1559. 2024-03-22 07:53:20.426217 [DEBUG] switch_channel.c:1250 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM] to event                                              
  1560. 2024-03-22 07:53:20.426217 [DEBUG] switch_channel.c:1250 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM] to event                                              
  1561. 2024-03-22 07:53:20.426217 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  1562. 2024-03-22 07:53:20.426217 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  1563. 2024-03-22 07:53:20.426217 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0721916283 [403edfb6-e821-11ee-8e0a-d17fbcf33421]
  1564. 2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:4819 (sofia/default/0721916283) State Change CS_NEW -> CS_INIT
  1565. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721916283) Running State Change CS_INIT (Cur 77 Tot 574968)
  1566. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721916283) State INIT
  1567. 2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:90 sofia/default/0721916283 SOFIA INIT
  1568. 2024-03-22 07:53:20.426217 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0721916283
  1569. 2024-03-22 07:53:20.426217 [DEBUG] sofia_glue.c:1295 sofia/default/0721916283 sending invite version: 1.6.20  64bit
  1570. Local SDP:                                                                                                                                                                                                        
  1571. v=0                                                                                                                                                                                                                
  1572. o=FreeSWITCH 1711065154 1711065155 IN IP4 156.38.231.107                                                                                                                                                          
  1573. s=FreeSWITCH                                                                                                                                                                                                      
  1574. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  1575. t=0 0                                                                                                                                                                                                              
  1576. m=audio 28846 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  1577. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1578. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  1579. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  1580. a=fmtp:18 annexb=no                                                                                                                                                                                                
  1581. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1582. a=fmtp:101 0-16                                                                                                                                                                                                    
  1583. a=ptime:20                                                                                                                                                                                                        
  1584. a=sendrecv                                                                                                                                                                                                        
  1585.  
  1586. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:40 sofia/default/0721916283 Standard INIT
  1587. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0721916283) State Change CS_INIT -> CS_ROUTING
  1588. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721916283) State INIT going to sleep
  1589. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721916283) Running State Change CS_ROUTING (Cur 77 Tot 574968)
  1590. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721916283) State ROUTING
  1591. 2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:143 sofia/default/0721916283 SOFIA ROUTING
  1592. 2024-03-22 07:53:20.426217 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0721916283) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  1593. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721916283) State ROUTING going to sleep
  1594. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721916283) Running State Change CS_CONSUME_MEDIA (Cur 77 Tot 574968)
  1595. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721916283) State CONSUME_MEDIA
  1596. 2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721916283) State CONSUME_MEDIA going to sleep
  1597. 2024-03-22 07:53:20.426217 [DEBUG] sofia.c:7084 Channel sofia/default/0721916283 entering state [calling][0]
  1598. 2024-03-22 07:53:21.744204 [DEBUG] sofia.c:7084 Channel sofia/default/0648339420 entering state [completing][200]
  1599. 2024-03-22 07:53:21.764378 [DEBUG] sofia.c:7091 Duplicate SDP
  1600. v=0                                                                                                                                                                                                                
  1601. o=HuaweiSoftX3000 6409369483067 6409369483067 IN IP4 41.160.32.115                                                                                                                                                
  1602. s=-                                                                                                                                                                                                                
  1603. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  1604. t=0 0                                                                                                                                                                                                              
  1605. m=audio 24756 RTP/AVP 8 101                                                                                                                                                                                        
  1606. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1607. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1608. a=fmtp:101 0-15                                                                                                                                                                                                    
  1609. a=ptime:20                                                                                                                                                                                                        
  1610.  
  1611. 2024-03-22 07:53:21.764378 [DEBUG] sofia.c:7084 Channel sofia/default/0648339420 entering state [ready][200]
  1612. 2024-03-22 07:53:21.764378 [NOTICE] sofia.c:8159 Channel [sofia/default/0648339420] has been answered
  1613. 2024-03-22 07:53:21.764378 [DEBUG] switch_channel.c:3773 (sofia/default/0648339420) Callstate Change EARLY -> ACTIVE
  1614. 2024-03-22 07:53:21.784170 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0543379200@legalaidsa.nebular.co.za:5060.
  1615. 2024-03-22 07:53:21.784170 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0543379200@legalaidsa.nebular.co.za:5060:
  1616. v=0                                                                                                                                                                                                                
  1617. o=FreeSWITCH 1711067551 1711067553 IN IP4 156.38.231.107                                                                                                                                                          
  1618. s=FreeSWITCH                                                                                                                                                                                                      
  1619. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  1620. t=0 0                                                                                                                                                                                                              
  1621. m=audio 26424 RTP/AVP 8 101                                                                                                                                                                                        
  1622. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1623. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1624. a=fmtp:101 0-16                                                                                                                                                                                                    
  1625. a=ptime:20                                                                                                                                                                                                        
  1626. a=sendrecv                                                                                                                                                                                                        
  1627.  
  1628. 2024-03-22 07:53:21.784170 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0543379200@legalaidsa.nebular.co.za:5060] has been answered
  1629. 2024-03-22 07:53:21.784170 [DEBUG] switch_channel.c:3773 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  1630. 2024-03-22 07:53:21.784170 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  1631. 2024-03-22 07:53:21.824177 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  1632. 2024-03-22 07:53:21.844209 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  1633. 2024-03-22 07:53:21.844209 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  1634. 2024-03-22 07:53:22.104168 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [413d6fea-e821-11ee-8e0e-d17fbcf33421]
  1635. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 78 Tot 574969)
  1636. 2024-03-22 07:53:22.104168 [DEBUG] sofia.c:9873 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  1637. 2024-03-22 07:53:22.104168 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  1638. 2024-03-22 07:53:22.104168 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [received][100]
  1639. 2024-03-22 07:53:22.104168 [DEBUG] sofia.c:7094 Remote SDP:
  1640. v=0                                                                                                                                                                                                                
  1641. o=3cxPS 52328136704 174600486913 IN IP4 156.38.150.6                                                                                                                                                              
  1642. s=3cxPS Audio call                                                                                                                                                                                                
  1643. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  1644. t=0 0                                                                                                                                                                                                              
  1645. m=audio 10458 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  1646. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1647. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  1648. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  1649. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  1650. a=fmtp:18 annexb=no                                                                                                                                                                                                
  1651. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1652.  
  1653. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  1654. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1655. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1656. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  1657. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1658. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  1659. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1660. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1661. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1662. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  1663. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  1664. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  1665. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  1666. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  1667. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  1668. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  1669. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  1670. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  1671. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  1672. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  1673. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  1674. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0155191100@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  1675. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_codec.c:111 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  1676. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  1677. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4767 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  1678. 2024-03-22 07:53:22.104168 [DEBUG] sofia.c:7507 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  1679. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State NEW
  1680. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 78 Tot 574969)
  1681. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State INIT
  1682. 2024-03-22 07:53:22.104168 [DEBUG] mod_sofia.c:90 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA INIT
  1683. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:40 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard INIT
  1684. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  1685. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  1686. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 78 Tot 574969)
  1687. 2024-03-22 07:53:22.104168 [DEBUG] switch_channel.c:2249 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  1688. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State ROUTING
  1689. 2024-03-22 07:53:22.104168 [DEBUG] mod_sofia.c:143 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  1690. 2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:236 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard ROUTING
  1691. 2024-03-22 07:53:22.104168 [INFO] mod_dialplan_xml.c:637 Processing 0155191100 <0155191100>->0837207317 in context default
  1692. 2024-03-22 07:53:22.104168 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  1693. 2024-03-22 07:53:22.104168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  1694. 2024-03-22 07:53:22.104168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1695. 2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  1696. 2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0837207317
  1697. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0837207317' limit 1
  1698. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0837207317' AND status=0 limit 1
  1699. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0837207317' and status=0 LIMIT 1                                                                                                                                                                                                          
  1700. 2024-03-22 07:53:22.124151 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  1701. 2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0155191100 / 0155191100
  1702. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [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 ="0837207317" LIMIT 1                                                                                                                                                              
  1703. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [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="0837207317"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  1704. 2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  1705. 2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  1706. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  1707. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0837207317.*' OR blocked_patterns = '^083720731.*' OR blocked_patterns = '^08372073.*' OR blocked_patterns = '^0837207.*' OR blocked_patterns = '^083720.*' OR blocked_patterns = '^08372.*' OR blocked_patterns = '^0837.*' OR blocked_patterns = '^083.*' OR blocked_patterns = '^08.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  1708. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0837207317" AND (accountid = 0 OR status = 1) LIMIT 1
  1709. 2024-03-22 07:53:22.124151 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  1710. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  1711. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0837207317
  1712. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0837207317
  1713. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [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 = '^0837207317.*' OR patterns = '^083720731.*' OR patterns = '^08372073.*' OR patterns = '^0837207.*' OR patterns = '^083720.*' OR patterns = '^08372.*' OR patterns = '^0837.*' OR patterns = '^083.*' OR patterns = '^08.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  1714. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [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 ="0837207317" AND A.accountid = '109' limit 1                                                                                                                                                                        
  1715. 2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0837207317
  1716. 2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [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 ="0837207317" LIMIT 1                                                                                                                                                              
  1717. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [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="0837207317"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  1718. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  1719. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0837207317' OR number = '083720731' OR number = '08372073' OR number = '0837207' OR number = '083720' OR number = '08372' OR number = '0837' OR number = '083' OR number = '08' OR number = '0' OR number ='--') OR (number = '0837207317*' OR number = '083720731*' OR number = '08372073*' OR number = '0837207*' OR number = '083720*' OR number = '08372*' OR number = '0837*' OR number = '083*' OR number = '08*' OR number = '0*' OR number ='--') OR (number = '0155191100' OR number = '015519110' OR number = '01551911' OR number = '0155191' OR number = '015519' OR number = '01551' OR number = '0155' OR number = '015' OR number = '01' OR number = '0' OR number ='--') OR (number = '0155191100*' OR number = '015519110*' OR number = '01551911*' OR number = '0155191*' OR number = '015519*' OR number = '01551*' OR number = '0155*' OR number = '015*' OR number = '01*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  1720. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  1721. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0837207317' OR routing_prefix = '083720731' OR routing_prefix = '08372073' OR routing_prefix = '0837207' OR routing_prefix = '083720' OR routing_prefix = '08372' OR routing_prefix = '0837' OR routing_prefix = '083' OR routing_prefix = '08' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  1722. 2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0837207317)!!!!
  1723. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27837207317
  1724. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27837207317' limit 1
  1725. 2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0837207317)!!!!
  1726. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  1727. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  1728. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  1729. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19932.1335
  1730. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  1731. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  1732. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  1733. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  1734. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1735. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1736. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1737. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1738. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1739. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1740. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1741. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1742. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1743. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1744. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1745. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
  1746. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  1747. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  1748. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  1749. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0837207317.*' OR pattern = '^083720731.*' OR pattern = '^08372073.*' OR pattern = '^0837207.*' OR pattern = '^083720.*' OR pattern = '^08372.*' OR pattern = '^0837.*' OR pattern = '^083.*' OR pattern = '^08.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  1750. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  1751. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  1752. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148495
  1753. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  1754. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  1755. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  1756. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
  1757. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  1758. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  1759. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  1760. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  1761. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  1762. 2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19932.1335 balance Accountid 109 !!!
  1763. 2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  1764. 2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  1765. 2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  1766. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0837207317.*' OR blocked_patterns = '^083720731.*' OR blocked_patterns = '^08372073.*' OR blocked_patterns = '^0837207.*' OR blocked_patterns = '^083720.*' OR blocked_patterns = '^08372.*' OR blocked_patterns = '^0837.*' OR blocked_patterns = '^083.*' OR blocked_patterns = '^08.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  1767. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  1768. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  1769. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  1770. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9959.4983
  1771. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  1772. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  1773. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  1774. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  1775. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  1776. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0837207317.*' OR pattern = '^083720731.*' OR pattern = '^08372073.*' OR pattern = '^0837207.*' OR pattern = '^083720.*' OR pattern = '^08372.*' OR pattern = '^0837.*' OR pattern = '^083.*' OR pattern = '^08.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  1777. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  1778. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  1779. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426397
  1780. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  1781. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  1782. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  1783. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
  1784. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  1785. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  1786. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  1787. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  1788. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  1789. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9959.4983 balance Accountid 13 !!!
  1790. 2024-03-22 07:53:22.164173 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  1791. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148495|CODE:^083.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426397|CODE:^083.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                              
  1792. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  1793. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  1794. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  1795. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148495
  1796. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  1797. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  1798. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0837207317.*' OR pattern = '^083720731.*' OR pattern = '^08372073.*' OR pattern = '^0837207.*' OR pattern = '^083720.*' OR pattern = '^08372.*' OR pattern = '^0837.*' OR pattern = '^083.*' OR pattern = '^08.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  1799. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  1800. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  1801. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  1802. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  1803. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  1804. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  1805. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  1806. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  1807. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  1808. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  1809. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  1810. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  1811. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  1812. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  1813. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  1814. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  1815. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  1816. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  1817. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  1818. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1819. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  1820. 2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  1821. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  1822. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  1823. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0837207317
  1824. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  1825. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [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 ="0837207317" LIMIT 1                                                                                                                                                              
  1826. 2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  1827. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  1828. <document type="freeswitch/xml">                                                                                                                                                                                  
  1829. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  1830. <context name="default">                                                                                                                                                                                          
  1831. <extension name="0837207317">                                                                                                                                                                                      
  1832. <condition field="destination_number" expression="0837207317">                                                                                                                                                    
  1833. <action application="set" data="effective_destination_number=0837207317"/>                                                                                                                                        
  1834. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  1835. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  1836. <action application="set" data="callstart=2024-03-22 07:53:22"/>                                                                                                                                                  
  1837. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  1838. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  1839. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  1840. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  1841. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  1842. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  1843. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  1844. <action application="set" data="accountname=default"/>                                                                                                                                                            
  1845. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  1846. <action application="set" data="origination_rates=ID:2148495|CODE:^083.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426397|CODE:^083.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                              
  1847. <action application="set" data="original_caller_id_name=0155191100"/>                                                                                                                                              
  1848. <action application="set" data="original_caller_id_number=0155191100"/>                                                                                                                                            
  1849. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  1850. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  1851. <action application="set" data="effective_caller_id_name=0155191100"/>                                                                                                                                            
  1852. <action application="set" data="effective_caller_id_number=0155191100"/>                                                                                                                                          
  1853. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  1854. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  1855. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  1856. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  1857. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  1858. <action application="set" data="force_trunk_flag=2148495"/>                                                                                                                                                        
  1859. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  1860. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  1861. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^083.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^083.* // D083-MTN"/>                                                                                                                                                                    
  1862. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0837207317;fs_path=sip:156.38.231.106:5060"/>                                              
  1863. </condition>                                                                                                                                                                                                      
  1864. </extension>                                                                                                                                                                                                      
  1865. </context>                                                                                                                                                                                                        
  1866. </section>                                                                                                                                                                                                        
  1867. </document>                                                                                                                                                                                                        
  1868. 2024-03-22 07:53:22.164173 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  1869. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 parsing [default->0837207317] continue=false
  1870. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Regex (PASS) [0837207317] destination_number(0837207317) =~ /0837207317/ break=on-false
  1871. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0837207317)
  1872. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  1873. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1874. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:22)
  1875. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  1876. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  1877. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  1878. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  1879. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  1880. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  1881. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  1882. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  1883. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  1884. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148495|CODE:^083.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426397|CODE:^083.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                        
  1885. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0155191100)
  1886. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0155191100)
  1887. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  1888. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  1889. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0155191100)
  1890. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0155191100)
  1891. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  1892. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  1893. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  1894. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  1895. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  1896. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148495)
  1897. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  1898. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  1899. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^083.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^083.* // D083-MTN)                                                                                                                          
  1900. Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0837207317;fs_path=sip:156.38.231.106:5060)
  1901. 2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  1902. 2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  1903. 2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 78 Tot 574969)
  1904. 2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State EXECUTE
  1905. 2024-03-22 07:53:22.164173 [DEBUG] mod_sofia.c:198 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  1906. 2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:328 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  1907. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0837207317)
  1908. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0837207317]
  1909. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  1910. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  1911. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1912. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  1913. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:22)
  1914. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:53:22]
  1915. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  1916. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  1917. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  1918. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  1919. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(account_id=109)
  1920. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  1921. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  1922. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  1923. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  1924. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  1925. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  1926. 2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  1927. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  1928. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  1929. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(accountname=default)
  1930. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  1931. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  1932. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  1933. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148495|CODE:^083.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426397|CODE:^083.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                                
  1934. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148495|CODE:^083.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426397|CODE:^083.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                                
  1935. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0155191100)
  1936. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0155191100]
  1937. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0155191100)
  1938. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0155191100]
  1939. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  1940. 2024-03-22 07:53:22.184160 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  1941. 2024-03-22 07:53:22.184160 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 15/200
  1942. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  1943. 2024-03-22 07:53:22.184160 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  1944. 2024-03-22 07:53:22.184160 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 17/800
  1945. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0155191100)
  1946. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0155191100]
  1947. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0155191100)
  1948. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0155191100]
  1949. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  1950. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  1951. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  1952. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  1953. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  1954. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  1955. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  1956. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  1957. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  1958. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  1959. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148495)
  1960. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148495]
  1961. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  1962. 2024-03-22 07:53:22.184160 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  1963. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(intcall=0)
  1964. 2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  1965. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^083.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^083.* // D083-MTN)                                                                                                                                  
  1966. 2024-03-22 07:53:22.184160 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^083.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^083.* // D083-MTN]                                                                                                                        
  1967. EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0837207317;fs_path=sip:156.38.231.106:5060)
  1968. 2024-03-22 07:53:22.184160 [DEBUG] switch_channel.c:1250 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^083.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^083.* // D083-MTN] to event                                                      
  1969. 2024-03-22 07:53:22.184160 [DEBUG] switch_channel.c:1250 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^083.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^083.* // D083-MTN] to event                                                      
  1970. 2024-03-22 07:53:22.184160 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  1971. 2024-03-22 07:53:22.184160 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  1972. 2024-03-22 07:53:22.184160 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0837207317 [41489e38-e821-11ee-8e31-d17fbcf33421]
  1973. 2024-03-22 07:53:22.184160 [DEBUG] mod_sofia.c:4819 (sofia/default/0837207317) State Change CS_NEW -> CS_INIT
  1974. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837207317) Running State Change CS_INIT (Cur 79 Tot 574970)
  1975. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837207317) State INIT
  1976. 2024-03-22 07:53:22.184160 [DEBUG] mod_sofia.c:90 sofia/default/0837207317 SOFIA INIT
  1977. 2024-03-22 07:53:22.184160 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0837207317
  1978. 2024-03-22 07:53:22.184160 [DEBUG] sofia_glue.c:1295 sofia/default/0837207317 sending invite version: 1.6.20  64bit
  1979. Local SDP:                                                                                                                                                                                                        
  1980. v=0                                                                                                                                                                                                                
  1981. o=FreeSWITCH 1711071748 1711071749 IN IP4 156.38.231.107                                                                                                                                                          
  1982. s=FreeSWITCH                                                                                                                                                                                                      
  1983. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  1984. t=0 0                                                                                                                                                                                                              
  1985. m=audio 22254 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  1986. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  1987. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  1988. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  1989. a=fmtp:18 annexb=no                                                                                                                                                                                                
  1990. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  1991. a=fmtp:101 0-16                                                                                                                                                                                                    
  1992. a=ptime:20                                                                                                                                                                                                        
  1993. a=sendrecv                                                                                                                                                                                                        
  1994.  
  1995. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:40 sofia/default/0837207317 Standard INIT
  1996. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0837207317) State Change CS_INIT -> CS_ROUTING
  1997. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837207317) State INIT going to sleep
  1998. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837207317) Running State Change CS_ROUTING (Cur 79 Tot 574970)
  1999. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837207317) State ROUTING
  2000. 2024-03-22 07:53:22.184160 [DEBUG] mod_sofia.c:143 sofia/default/0837207317 SOFIA ROUTING
  2001. 2024-03-22 07:53:22.184160 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0837207317) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  2002. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837207317) State ROUTING going to sleep
  2003. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837207317) Running State Change CS_CONSUME_MEDIA (Cur 79 Tot 574970)
  2004. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0837207317) State CONSUME_MEDIA
  2005. 2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0837207317) State CONSUME_MEDIA going to sleep
  2006. 2024-03-22 07:53:22.184160 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [calling][0]
  2007. 2024-03-22 07:53:23.164241 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [proceeding][183]
  2008. 2024-03-22 07:53:23.164241 [DEBUG] sofia.c:7094 Remote SDP:
  2009. v=0                                                                                                                                                                                                                
  2010. o=HuaweiSoftX3000 18744515584518 18744515584518 IN IP4 41.160.32.115                                                                                                                                              
  2011. s=-                                                                                                                                                                                                                
  2012. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  2013. t=0 0                                                                                                                                                                                                              
  2014. m=audio 24778 RTP/AVP 8 101                                                                                                                                                                                        
  2015. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2016. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2017. a=fmtp:101 0-15                                                                                                                                                                                                    
  2018. a=ptime:20                                                                                                                                                                                                        
  2019.  
  2020. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  2021. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  2022. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  2023. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  2024. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  2025. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0837207317 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  2026. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_codec.c:111 sofia/default/0837207317 Original read codec set to PCMA:8
  2027. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  2028. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4767 sofia/default/0837207317 Set 2833 dtmf send payload to 101 recv payload to 101
  2029. 2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0837207317] 156.38.231.107 port 22254 -> 41.160.32.115 port 24778 codec: 8 ms: 20
  2030. 2024-03-22 07:53:23.164241 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  2031. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7180 sofia/default/0837207317 Set 2833 dtmf send payload to 101
  2032. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7187 sofia/default/0837207317 Set 2833 dtmf receive payload to 101
  2033. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7210 sofia/default/0837207317 Set rtp dtmf delay to 40
  2034. 2024-03-22 07:53:23.184172 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0837207317!
  2035. 2024-03-22 07:53:23.184172 [DEBUG] switch_channel.c:3474 (sofia/default/0837207317) Callstate Change DOWN -> EARLY
  2036. 2024-03-22 07:53:23.184172 [INFO] switch_ivr_originate.c:3654 Sending early media
  2037. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0155191100@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 30298 -> 156.38.150.6 port 10458 codec: 8 ms: 20
  2038. 2024-03-22 07:53:23.184172 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  2039. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7180 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  2040. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7187 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  2041. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7210 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  2042. 2024-03-22 07:53:23.184172 [DEBUG] mod_sofia.c:2364 Ring SDP:
  2043. v=0                                                                                                                                                                                                                
  2044. o=FreeSWITCH 1711063705 1711063706 IN IP4 156.38.231.107                                                                                                                                                          
  2045. s=FreeSWITCH                                                                                                                                                                                                      
  2046. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  2047. t=0 0                                                                                                                                                                                                              
  2048. m=audio 30298 RTP/AVP 8 101                                                                                                                                                                                        
  2049. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2050. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2051. a=fmtp:101 0-16                                                                                                                                                                                                    
  2052. a=ptime:20                                                                                                                                                                                                        
  2053. a=sendrecv                                                                                                                                                                                                        
  2054.  
  2055. 2024-03-22 07:53:23.184172 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0155191100@legalaidsa.nebular.co.za:5060!
  2056. 2024-03-22 07:53:23.184172 [DEBUG] switch_channel.c:3474 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  2057. 2024-03-22 07:53:23.184172 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0837207317]
  2058. 2024-03-22 07:53:23.184172 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0837207317) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  2059. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837207317) Running State Change CS_EXCHANGE_MEDIA (Cur 79 Tot 574970)
  2060. 2024-03-22 07:53:23.184172 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0837207317) State EXCHANGE_MEDIA
  2061. 2024-03-22 07:53:23.184172 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  2062. 2024-03-22 07:53:23.184172 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [early][183]
  2063. 2024-03-22 07:53:23.224165 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [proceeding][180]
  2064. 2024-03-22 07:53:23.224165 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0837207317!
  2065. 2024-03-22 07:53:23.224165 [DEBUG] switch_channel.c:3346 (sofia/default/0837207317) Callstate Change EARLY -> RINGING
  2066. 2024-03-22 07:53:23.324183 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  2067. 2024-03-22 07:53:23.364194 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0837207317 Bridge execute app sched_hangup(+6000 normal_clearing)
  2068. 2024-03-22 07:53:23.384224 [DEBUG] switch_ivr.c:623 sofia/default/0837207317 Command Execute sched_hangup(+6000 normal_clearing)
  2069. EXECUTE sofia/default/0837207317 sched_hangup(+6000 normal_clearing)
  2070. 2024-03-22 07:53:23.384224 [DEBUG] switch_scheduler.c:249 Added task 232828 switch_ivr_schedule_hangup (41489e38-e821-11ee-8e31-d17fbcf33421) to run at 1711100003
  2071. 2024-03-22 07:53:23.484168 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10458 to 156.38.231.105:10458
  2072. 2024-03-22 07:53:23.564165 [NOTICE] sofia.c:1012 Hangup sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  2073. 2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0543379200@legalaidsa.nebular.co.za:5060]
  2074. 2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  2075. 2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0648339420]
  2076. 2024-03-22 07:53:23.564165 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0648339420 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  2077. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0648339420) State EXCHANGE_MEDIA going to sleep
  2078. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0648339420) Running State Change CS_HANGUP (Cur 79 Tot 574970)
  2079. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0648339420) Callstate Change ACTIVE -> HANGUP
  2080. 2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0648339420 skip receive message [UNBRIDGE] (channel is hungup already)
  2081. 2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  2082. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_session.c:2815 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  2083. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  2084. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 79 Tot 574970)
  2085. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  2086. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State HANGUP
  2087. 2024-03-22 07:53:23.564165 [DEBUG] mod_sofia.c:438 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  2088. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:60 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  2089. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  2090. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  2091. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 79 Tot 574970)
  2092. 2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State REPORTING
  2093. 2024-03-22 07:53:23.584166 [INFO] mod_json_cdr.c:271 Process [30078d28-e821-11ee-8c0a-d17fbcf33421.cdr.json]
  2094. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0648339420) State HANGUP
  2095. 2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:432 sofia/default/0648339420 Overriding SIP cause 480 with 200 from the other leg
  2096. 2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:438 Channel sofia/default/0648339420 hanging up, cause: NORMAL_CLEARING
  2097. 2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0648339420
  2098. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:60 sofia/default/0648339420 Standard HANGUP, cause: NORMAL_CLEARING
  2099. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0648339420) State HANGUP going to sleep
  2100. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0648339420) State Change CS_HANGUP -> CS_REPORTING
  2101. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0648339420) Running State Change CS_REPORTING (Cur 79 Tot 574970)
  2102. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0648339420) State REPORTING
  2103. 2024-03-22 07:53:23.584166 [INFO] mod_json_cdr.c:271 Process [30151470-e821-11ee-8c2d-d17fbcf33421.cdr.json]
  2104. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:174 sofia/default/0648339420 Standard REPORTING, cause: NORMAL_CLEARING
  2105. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0648339420) State REPORTING going to sleep
  2106. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0648339420) State Change CS_REPORTING -> CS_DESTROY
  2107. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_session.c:1665 Session 574947 (sofia/default/0648339420) Locked, Waiting on external entities
  2108. 2024-03-22 07:53:23.584166 [NOTICE] switch_core_session.c:1683 Session 574947 (sofia/default/0648339420) Ended
  2109. 2024-03-22 07:53:23.584166 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0648339420 [CS_DESTROY]
  2110. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0648339420) Running State Change CS_DESTROY (Cur 78 Tot 574970)
  2111. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0648339420) State DESTROY
  2112. 2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:343 sofia/default/0648339420 SOFIA DESTROY
  2113. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:181 sofia/default/0648339420 Standard DESTROY
  2114. 2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0648339420) State DESTROY going to sleep
  2115. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:174 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  2116. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  2117. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  2118. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_session.c:1665 Session 574946 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  2119. 2024-03-22 07:53:23.604153 [NOTICE] switch_core_session.c:1683 Session 574946 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Ended
  2120. 2024-03-22 07:53:23.604153 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  2121. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 77 Tot 574970)
  2122. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State DESTROY
  2123. 2024-03-22 07:53:23.604153 [DEBUG] mod_sofia.c:343 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  2124. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:181 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard DESTROY
  2125. 2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  2126. 2024-03-22 07:53:23.824180 [DEBUG] sofia.c:7084 Channel sofia/default/7623690379@legalaidsa.nebular.co.za entering state [received][100]
  2127. 2024-03-22 07:53:23.824180 [DEBUG] sofia.c:7094 Remote SDP:
  2128. v=0                                                                                                                                                                                                                
  2129. o=3cxPS 194934472704 319421415427 IN IP4 156.38.150.6                                                                                                                                                              
  2130. s=3cxPS Audio call                                                                                                                                                                                                
  2131. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  2132. t=0 0                                                                                                                                                                                                              
  2133. m=audio 10436 RTP/AVP 8 101                                                                                                                                                                                        
  2134. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2135. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2136.  
  2137. 2024-03-22 07:53:23.884172 [DEBUG] switch_scheduler.c:144 Deleting task 232819 switch_ivr_schedule_hangup (30151470-e821-11ee-8c2d-d17fbcf33421)
  2138. 2024-03-22 07:53:23.984159 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0604746864@41.160.32.115:5060 [425cf9f4-e821-11ee-8e37-d17fbcf33421]
  2139. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_NEW (Cur 78 Tot 574971)
  2140. 2024-03-22 07:53:23.984159 [DEBUG] sofia.c:9873 sofia/default/0604746864@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  2141. 2024-03-22 07:53:23.984159 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  2142. 2024-03-22 07:53:23.984159 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [received][100]
  2143. 2024-03-22 07:53:23.984159 [DEBUG] sofia.c:7094 Remote SDP:
  2144. v=0                                                                                                                                                                                                                
  2145. o=HuaweiSoftX3000 15922722071859 15922722071859 IN IP4 41.160.32.115                                                                                                                                              
  2146. s=-                                                                                                                                                                                                                
  2147. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  2148. t=0 0                                                                                                                                                                                                              
  2149. m=audio 24780 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  2150. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  2151. a=fmtp:18 annexb=no                                                                                                                                                                                                
  2152. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2153. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  2154. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2155. a=fmtp:101 0-15                                                                                                                                                                                                    
  2156. a=ptime:20                                                                                                                                                                                                        
  2157.  
  2158. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  2159. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  2160. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  2161. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  2162. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  2163. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  2164. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  2165. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  2166. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  2167. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  2168. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  2169. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  2170. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  2171. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  2172. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  2173. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  2174. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  2175. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0604746864@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  2176. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_codec.c:111 sofia/default/0604746864@41.160.32.115:5060 Original read codec set to G729:18
  2177. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  2178. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4767 sofia/default/0604746864@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  2179. 2024-03-22 07:53:23.984159 [DEBUG] sofia.c:7507 (sofia/default/0604746864@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  2180. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0604746864@41.160.32.115:5060) State NEW
  2181. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_INIT (Cur 78 Tot 574971)
  2182. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604746864@41.160.32.115:5060) State INIT
  2183. 2024-03-22 07:53:23.984159 [DEBUG] mod_sofia.c:90 sofia/default/0604746864@41.160.32.115:5060 SOFIA INIT
  2184. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:40 sofia/default/0604746864@41.160.32.115:5060 Standard INIT
  2185. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0604746864@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  2186. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604746864@41.160.32.115:5060) State INIT going to sleep
  2187. 2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 78 Tot 574971)
  2188. 2024-03-22 07:53:23.984159 [DEBUG] switch_channel.c:2249 (sofia/default/0604746864@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  2189. 2024-03-22 07:53:24.004151 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604746864@41.160.32.115:5060) State ROUTING
  2190. 2024-03-22 07:53:24.004151 [DEBUG] mod_sofia.c:143 sofia/default/0604746864@41.160.32.115:5060 SOFIA ROUTING
  2191. 2024-03-22 07:53:24.004151 [DEBUG] switch_core_state_machine.c:236 sofia/default/0604746864@41.160.32.115:5060 Standard ROUTING
  2192. 2024-03-22 07:53:24.004151 [INFO] mod_dialplan_xml.c:637 Processing 0604746864 <0604746864>->D9570214264126 in context default
  2193. 2024-03-22 07:53:24.004151 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  2194. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  2195. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  2196. 2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  2197. 2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570214264126
  2198. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570214264126' limit 1
  2199. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570214264126' AND status=0 limit 1
  2200. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570214264126' and status=0 LIMIT 1                                                                                                                                                                                                      
  2201. 2024-03-22 07:53:24.004151 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  2202. 2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0604746864 / <null>
  2203. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570214264126" LIMIT 1                                                                                                                                                          
  2204. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [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="D9570214264126"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  2205. 2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  2206. 2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  2207. 2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  2208. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570214264126.*' OR blocked_patterns = '^D957021426412.*' OR blocked_patterns = '^D95702142641.*' OR blocked_patterns = '^D9570214264.*' OR blocked_patterns = '^D957021426.*' OR blocked_patterns = '^D95702142.*' OR blocked_patterns = '^D9570214.*' OR blocked_patterns = '^D957021.*' OR blocked_patterns = '^D95702.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  2209. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570214264126" AND (accountid = 0 OR status = 1) LIMIT 1
  2210. 2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  2211. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  2212. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570214264126
  2213. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570214264126
  2214. 2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570214264126
  2215. 2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0214264126
  2216. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [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 = '^0214264126.*' OR patterns = '^021426412.*' OR patterns = '^02142641.*' OR patterns = '^0214264.*' OR patterns = '^021426.*' OR patterns = '^02142.*' OR patterns = '^0214.*' OR patterns = '^021.*' OR patterns = '^02.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  2217. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [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 ="0214264126" AND A.accountid = '3' limit 1                                                                                                                                                                          
  2218. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0214264126
  2219. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [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 ="0214264126" LIMIT 1                                                                                                                                                              
  2220. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  2221. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0214264126' OR number = '021426412' OR number = '02142641' OR number = '0214264' OR number = '021426' OR number = '02142' OR number = '0214' OR number = '021' OR number = '02' OR number = '0' OR number ='--') OR (number = '0214264126*' OR number = '021426412*' OR number = '02142641*' OR number = '0214264*' OR number = '021426*' OR number = '02142*' OR number = '0214*' OR number = '021*' OR number = '02*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  2222. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  2223. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0214264126' OR routing_prefix = '021426412' OR routing_prefix = '02142641' OR routing_prefix = '0214264' OR routing_prefix = '021426' OR routing_prefix = '02142' OR routing_prefix = '0214' OR routing_prefix = '021' OR routing_prefix = '02' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  2224. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  2225. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  2226. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  2227. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  2228. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  2229. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  2230. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  2231. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  2232. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  2233. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  2234. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [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 ="0214264126" LIMIT 1                                                                                                                                                              
  2235. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  2236. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  2237. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9171
  2238. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  2239. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  2240. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  2241. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0214264126
  2242. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  2243. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  2244. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  2245. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  2246. 2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  2247. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  2248. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  2249. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  2250. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  2251. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  2252. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  2253. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  2254. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  2255. 2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  2256. 2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  2257. 2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  2258. 2024-03-22 07:53:24.044213 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  2259. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  2260. 2024-03-22 07:53:24.044213 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  2261. 2024-03-22 07:53:24.044213 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  2262. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0604746864
  2263. 2024-03-22 07:53:24.044213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0604746864
  2264. 2024-03-22 07:53:24.044213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27604746864
  2265. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  2266. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  2267. 2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  2268. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  2269. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [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="2693458380"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  2270. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1489 limit 1
  2271. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  2272. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  2273. 2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  2274. 2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  2275. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  2276. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  2277. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='2693458380' and uuid = '425cf9f4-e821-11ee-8e37-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  2278. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='2693458380' order by id desc limit 1
  2279. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [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="2693458380"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  2280. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1489 limit 1
  2281. 2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2282. <document type="freeswitch/xml">                                                                                                                                                                                  
  2283. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  2284. <context name="default">                                                                                                                                                                                          
  2285. <extension name="0214264126">                                                                                                                                                                                      
  2286. <condition field="destination_number" expression="D9570214264126">                                                                                                                                                
  2287. <action application="set" data="effective_destination_number=0214264126"/>                                                                                                                                        
  2288. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  2289. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  2290. <action application="set" data="callstart=2024-03-22 07:53:24"/>                                                                                                                                                  
  2291. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  2292. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  2293. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  2294. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  2295. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  2296. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  2297. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  2298. <action application="set" data="accountname=default"/>                                                                                                                                                            
  2299. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  2300. <action application="set" data="origination_rates_did=ID:9171|CODE:^0214264126.*|DESTINATION:0214264126|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  2301. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  2302. <action application="set" data="original_caller_id_name=0604746864"/>                                                                                                                                              
  2303. <action application="set" data="effective_caller_id_name=27604746864"/>                                                                                                                                            
  2304. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  2305. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  2306. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  2307. <action application="export" data="presence_data=x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  2308. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  2309. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  2310. <action application="db" data="insert/pickup_any_group_${callgroup}/2693458380/${uuid}"/>                                                                                                                          
  2311. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  2312. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  2313. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  2314. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  2315. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  2316. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  2317. <action application="sleep" data="1000"/>                                                                                                                                                                          
  2318. <action application="ring_ready"/>                                                                                                                                                                                
  2319. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/2693458380@legalaidsa.nebular.co.za^0214264126"/>                                                      
  2320. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  2321. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  2322. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  2323. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  2324. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  2325. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  2326. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  2327. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  2328. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  2329. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  2330. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  2331. <action application="set" data="sip_destination_number=2693458380"/>                                                                                                                                              
  2332. <action application="set" data="destination_number=0214264126"/>                                                                                                                                                  
  2333. <action application="set" data="did_number=0214264126"/>                                                                                                                                                          
  2334. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  2335. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  2336. <condition field="${cond(${user_data 2693458380@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  2337. <action application="answer"/>                                                                                                                                                                                    
  2338. <action application="export" data="voicemail_alternate_greet_id=0214264126"/>                                                                                                                                      
  2339. <action application="voicemail" data="default $${domain_name} 2693458380"/>                                                                                                                                        
  2340. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  2341. </condition>                                                                                                                                                                                                      
  2342. </condition>                                                                                                                                                                                                      
  2343. </extension>                                                                                                                                                                                                      
  2344. </context>                                                                                                                                                                                                        
  2345. </section>                                                                                                                                                                                                        
  2346. </document>                                                                                                                                                                                                        
  2347. 2024-03-22 07:53:24.044213 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  2348. Dialplan: sofia/default/0604746864@41.160.32.115:5060 parsing [default->0214264126] continue=false
  2349. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Regex (PASS) [0214264126] destination_number(D9570214264126) =~ /D9570214264126/ break=on-false
  2350. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(effective_destination_number=0214264126)
  2351. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  2352. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  2353. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:24)
  2354. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  2355. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  2356. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(account_id=3)
  2357. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(parent_id=0)
  2358. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(entity_id=3)
  2359. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(call_processed=internal)
  2360. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(call_direction=inbound)
  2361. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(accountname=default)
  2362. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  2363. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(origination_rates_did=ID:9171|CODE:^0214264126.*|DESTINATION:0214264126|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  2364. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(origination_rates=0)
  2365. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(original_caller_id_name=0604746864)
  2366. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(effective_caller_id_name=27604746864)
  2367. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(receiver_accid=109)
  2368. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  2369. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  2370. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115)
  2371. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(call_type=5)
  2372. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(calltype=SIP-DID)
  2373. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/2693458380/${uuid})
  2374. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  2375. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  2376. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  2377. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  2378. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  2379. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  2380. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action sleep(1000)
  2381. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action ring_ready()
  2382. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/2693458380@legalaidsa.nebular.co.za^0214264126)
  2383. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(on_busy_flag=1)
  2384. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(on_busy_destination=)
  2385. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(no_answer_flag=1)
  2386. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(no_answer_destination=)
  2387. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(not_register_flag=1)
  2388. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(not_register_destination=)
  2389. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(opensips_flag=0)
  2390. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  2391. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  2392. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(leg_timeout=20)
  2393. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(userinfo_id=109)
  2394. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(sip_destination_number=2693458380)
  2395. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(destination_number=0214264126)
  2396. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(did_number=0214264126)
  2397. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  2398. Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  2399. |--- Dialplan: Processing recursive conditions level:1 [0214264126_recur_1] require-nested=TRUE
  2400. |--- Dialplan: sofia/default/0604746864@41.160.32.115:5060 Regex (FAIL) [0214264126_recur_1] ${cond(${user_data 2693458380@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  2401. |--- Dialplan: sofia/default/0604746864@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  2402. 2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0604746864@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  2403. 2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604746864@41.160.32.115:5060) State ROUTING going to sleep
  2404. 2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 78 Tot 574971)
  2405. 2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0604746864@41.160.32.115:5060) State EXECUTE
  2406. 2024-03-22 07:53:24.064214 [DEBUG] mod_sofia.c:198 sofia/default/0604746864@41.160.32.115:5060 SOFIA EXECUTE
  2407. 2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:328 sofia/default/0604746864@41.160.32.115:5060 Standard EXECUTE
  2408. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(effective_destination_number=0214264126)
  2409. 2024-03-22 07:53:24.064214 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [effective_destination_number]=[0214264126]
  2410. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  2411. 2024-03-22 07:53:24.064214 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  2412. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  2413. 2024-03-22 07:53:24.064214 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  2414. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(callstart=2024-03-22 07:53:24)
  2415. 2024-03-22 07:53:24.064214 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:24]
  2416. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(hangup_after_bridge=true)
  2417. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [hangup_after_bridge]=[true]
  2418. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(continue_on_fail=TRUE)
  2419. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  2420. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(account_id=3)
  2421. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [account_id]=[3]
  2422. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(parent_id=0)
  2423. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [parent_id]=[0]
  2424. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(entity_id=3)
  2425. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [entity_id]=[3]
  2426. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(call_processed=internal)
  2427. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [call_processed]=[internal]
  2428. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(call_direction=inbound)
  2429. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [call_direction]=[inbound]
  2430. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(accountname=default)
  2431. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [accountname]=[default]
  2432. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  2433. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  2434. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(origination_rates_did=ID:9171|CODE:^0214264126.*|DESTINATION:0214264126|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  2435. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [origination_rates_did]=[ID:9171|CODE:^0214264126.*|DESTINATION:0214264126|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  2436. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(origination_rates=0)
  2437. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [origination_rates]=[0]
  2438. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(original_caller_id_name=0604746864)
  2439. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [original_caller_id_name]=[0604746864]
  2440. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(effective_caller_id_name=27604746864)
  2441. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [effective_caller_id_name]=[27604746864]
  2442. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(receiver_accid=109)
  2443. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [receiver_accid]=[109]
  2444. EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  2445. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  2446. EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  2447. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  2448. EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115)
  2449. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115]
  2450. EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(call_type=5)
  2451. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  2452. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(calltype=SIP-DID)
  2453. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [calltype]=[SIP-DID]
  2454. EXECUTE sofia/default/0604746864@41.160.32.115:5060 db(insert/pickup_any_group_/2693458380/425cf9f4-e821-11ee-8e37-d17fbcf33421)
  2455. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(dialed_extension=transfer_call)
  2456. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  2457. EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(dialed_extension=transfer_call)
  2458. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  2459. EXECUTE sofia/default/0604746864@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  2460. 2024-03-22 07:53:24.084306 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  2461. EXECUTE sofia/default/0604746864@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  2462. 2024-03-22 07:53:24.084306 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  2463. EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(hangup_after_bridge=true)
  2464. 2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [hangup_after_bridge]=[true]
  2465. EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  2466. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  2467. EXECUTE sofia/default/0604746864@41.160.32.115:5060 sleep(1000)
  2468. 2024-03-22 07:53:24.084306 [DEBUG] switch_ivr_play_say.c:1942 done playing file local_stream://moh
  2469. 2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:2029 (sofia/default/7623690379@legalaidsa.nebular.co.za) Callstate Change HELD -> UNHELD
  2470. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  2471. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  2472. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  2473. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  2474. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4767 sofia/default/7623690379@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  2475. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/7623690379@legalaidsa.nebular.co.za.
  2476. 2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7999 Processing updated SDP
  2477. 2024-03-22 07:53:24.084306 [DEBUG] switch_core_io.c:941 (sofia/default/7623690379@legalaidsa.nebular.co.za) Callstate Change UNHELD -> ACTIVE
  2478. 2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7084 Channel sofia/default/7623690379@legalaidsa.nebular.co.za entering state [completed][200]
  2479. 2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7084 Channel sofia/default/0713596820 entering state [completing][200]
  2480. 2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7091 Duplicate SDP
  2481. v=0                                                                                                                                                                                                                
  2482. o=HuaweiSoftX3000 68789474499152 68789474499152 IN IP4 41.160.32.115                                                                                                                                              
  2483. s=-                                                                                                                                                                                                                
  2484. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  2485. t=0 0                                                                                                                                                                                                              
  2486. m=audio 24766 RTP/AVP 8 101                                                                                                                                                                                        
  2487. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2488. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2489. a=fmtp:101 0-15                                                                                                                                                                                                    
  2490. a=ptime:20                                                                                                                                                                                                        
  2491.  
  2492. 2024-03-22 07:53:24.105550 [DEBUG] sofia.c:7084 Channel sofia/default/0713596820 entering state [ready][200]
  2493. 2024-03-22 07:53:24.105550 [NOTICE] sofia.c:8159 Channel [sofia/default/0713596820] has been answered
  2494. 2024-03-22 07:53:24.105550 [DEBUG] switch_channel.c:3773 (sofia/default/0713596820) Callstate Change EARLY -> ACTIVE
  2495. 2024-03-22 07:53:24.124153 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/27124315120@saqa.nebular.co.za:5060.
  2496. 2024-03-22 07:53:24.124153 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/27124315120@saqa.nebular.co.za:5060:
  2497. v=0                                                                                                                                                                                                                
  2498. o=FreeSWITCH 1711067758 1711067760 IN IP4 156.38.231.107                                                                                                                                                          
  2499. s=FreeSWITCH                                                                                                                                                                                                      
  2500. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  2501. t=0 0                                                                                                                                                                                                              
  2502. m=audio 26226 RTP/AVP 8 101                                                                                                                                                                                        
  2503. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2504. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2505. a=fmtp:101 0-16                                                                                                                                                                                                    
  2506. a=ptime:20                                                                                                                                                                                                        
  2507. a=sendrecv                                                                                                                                                                                                        
  2508.  
  2509. 2024-03-22 07:53:24.124153 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/27124315120@saqa.nebular.co.za:5060] has been answered
  2510. 2024-03-22 07:53:24.124153 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  2511. 2024-03-22 07:53:24.124153 [DEBUG] switch_channel.c:3773 (sofia/default/27124315120@saqa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  2512. 2024-03-22 07:53:24.124153 [DEBUG] sofia.c:7084 Channel sofia/default/27124315120@saqa.nebular.co.za:5060 entering state [completed][200]
  2513. 2024-03-22 07:53:24.144162 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  2514. 2024-03-22 07:53:24.164163 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  2515. 2024-03-22 07:53:24.164163 [DEBUG] sofia.c:7084 Channel sofia/default/7623690379@legalaidsa.nebular.co.za entering state [ready][200]
  2516. 2024-03-22 07:53:24.244157 [DEBUG] sofia.c:7084 Channel sofia/default/27124315120@saqa.nebular.co.za:5060 entering state [ready][200]
  2517. 2024-03-22 07:53:24.744161 [NOTICE] sofia.c:1012 Hangup sofia/default/0437044700@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  2518. 2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0437044700@legalaidsa.nebular.co.za:5060]
  2519. 2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  2520. 2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0116621444]
  2521. 2024-03-22 07:53:24.744161 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0116621444 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  2522. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0116621444) State EXCHANGE_MEDIA going to sleep
  2523. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0116621444) Running State Change CS_HANGUP (Cur 78 Tot 574971)
  2524. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0116621444) Callstate Change ACTIVE -> HANGUP
  2525. 2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0116621444 skip receive message [UNBRIDGE] (channel is hungup already)
  2526. 2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  2527. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0116621444) State HANGUP
  2528. 2024-03-22 07:53:24.744161 [DEBUG] mod_sofia.c:432 sofia/default/0116621444 Overriding SIP cause 480 with 200 from the other leg
  2529. 2024-03-22 07:53:24.744161 [DEBUG] mod_sofia.c:438 Channel sofia/default/0116621444 hanging up, cause: NORMAL_CLEARING
  2530. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_session.c:2815 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  2531. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  2532. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 78 Tot 574971)
  2533. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  2534. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State HANGUP
  2535. 2024-03-22 07:53:24.744161 [DEBUG] mod_sofia.c:438 Channel sofia/default/0437044700@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  2536. 2024-03-22 07:53:24.744161 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0116621444
  2537. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:60 sofia/default/0116621444 Standard HANGUP, cause: NORMAL_CLEARING
  2538. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0116621444) State HANGUP going to sleep
  2539. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0116621444) State Change CS_HANGUP -> CS_REPORTING
  2540. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0116621444) Running State Change CS_REPORTING (Cur 78 Tot 574971)
  2541. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0116621444) State REPORTING
  2542. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:60 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  2543. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  2544. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  2545. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 78 Tot 574971)
  2546. 2024-03-22 07:53:24.744161 [INFO] mod_json_cdr.c:271 Process [d0d3d3fc-e820-11ee-834a-d17fbcf33421.cdr.json]
  2547. 2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State REPORTING
  2548. 2024-03-22 07:53:24.744161 [INFO] mod_json_cdr.c:271 Process [d0c69048-e820-11ee-8327-d17fbcf33421.cdr.json]
  2549. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:174 sofia/default/0116621444 Standard REPORTING, cause: NORMAL_CLEARING
  2550. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0116621444) State REPORTING going to sleep
  2551. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0116621444) State Change CS_REPORTING -> CS_DESTROY
  2552. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_session.c:1665 Session 574841 (sofia/default/0116621444) Locked, Waiting on external entities
  2553. 2024-03-22 07:53:24.764191 [NOTICE] switch_core_session.c:1683 Session 574841 (sofia/default/0116621444) Ended
  2554. 2024-03-22 07:53:24.764191 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0116621444 [CS_DESTROY]
  2555. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0116621444) Running State Change CS_DESTROY (Cur 77 Tot 574971)
  2556. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0116621444) State DESTROY
  2557. 2024-03-22 07:53:24.764191 [DEBUG] mod_sofia.c:343 sofia/default/0116621444 SOFIA DESTROY
  2558. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:181 sofia/default/0116621444 Standard DESTROY
  2559. 2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0116621444) State DESTROY going to sleep
  2560. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:174 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  2561. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  2562. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  2563. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_session.c:1665 Session 574840 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  2564. 2024-03-22 07:53:24.784170 [NOTICE] switch_core_session.c:1683 Session 574840 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Ended
  2565. 2024-03-22 07:53:24.784170 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0437044700@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  2566. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 76 Tot 574971)
  2567. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State DESTROY
  2568. 2024-03-22 07:53:24.784170 [DEBUG] mod_sofia.c:343 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  2569. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:181 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 Standard DESTROY
  2570. 2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  2571. 2024-03-22 07:53:24.904176 [DEBUG] switch_scheduler.c:144 Deleting task 232775 switch_ivr_schedule_hangup (d0d3d3fc-e820-11ee-834a-d17fbcf33421)
  2572. 2024-03-22 07:53:25.024163 [NOTICE] sofia.c:1012 Hangup sofia/default/3242002977@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  2573. 2024-03-22 07:53:25.044157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/3242002977@legalaidsa.nebular.co.za]
  2574. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:653 (sofia/default/3242002977@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  2575. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 76 Tot 574971)
  2576. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/3242002977@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  2577. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3242002977@legalaidsa.nebular.co.za) State HANGUP
  2578. 2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:438 Channel sofia/default/3242002977@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  2579. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:60 sofia/default/3242002977@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  2580. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3242002977@legalaidsa.nebular.co.za) State HANGUP going to sleep
  2581. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  2582. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 76 Tot 574971)
  2583. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3242002977@legalaidsa.nebular.co.za) State REPORTING
  2584. 2024-03-22 07:53:25.044157 [INFO] mod_json_cdr.c:271 Process [2f5fddda-e821-11ee-8c06-d17fbcf33421.cdr.json]
  2585. 2024-03-22 07:53:25.044157 [DEBUG] switch_ivr_bridge.c:706 sofia/default/3242002977@legalaidsa.nebular.co.za ending bridge by request from write function
  2586. 2024-03-22 07:53:25.044157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0640547054@41.160.32.115:5060]
  2587. 2024-03-22 07:53:25.044157 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/3242002977@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  2588. 2024-03-22 07:53:25.044157 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0640547054@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  2589. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_session.c:2815 sofia/default/0640547054@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  2590. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0640547054@41.160.32.115:5060) State EXECUTE going to sleep
  2591. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 76 Tot 574971)
  2592. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0640547054@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  2593. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0640547054@41.160.32.115:5060) State HANGUP
  2594. 2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:432 sofia/default/0640547054@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  2595. 2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:438 Channel sofia/default/0640547054@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  2596. 2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0640547054@41.160.32.115:5060
  2597. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:60 sofia/default/0640547054@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  2598. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0640547054@41.160.32.115:5060) State HANGUP going to sleep
  2599. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  2600. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 76 Tot 574971)
  2601. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0640547054@41.160.32.115:5060) State REPORTING
  2602. 2024-03-22 07:53:25.044157 [INFO] mod_json_cdr.c:271 Process [2eb40c44-e821-11ee-8bb5-d17fbcf33421.cdr.json]
  2603. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:174 sofia/default/3242002977@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  2604. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3242002977@legalaidsa.nebular.co.za) State REPORTING going to sleep
  2605. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:610 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  2606. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_session.c:1665 Session 574945 (sofia/default/3242002977@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  2607. 2024-03-22 07:53:25.044157 [NOTICE] switch_core_session.c:1683 Session 574945 (sofia/default/3242002977@legalaidsa.nebular.co.za) Ended
  2608. 2024-03-22 07:53:25.044157 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/3242002977@legalaidsa.nebular.co.za [CS_DESTROY]
  2609. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:741 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 75 Tot 574971)
  2610. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3242002977@legalaidsa.nebular.co.za) State DESTROY
  2611. 2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:343 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA DESTROY
  2612. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:181 sofia/default/3242002977@legalaidsa.nebular.co.za Standard DESTROY
  2613. 2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3242002977@legalaidsa.nebular.co.za) State DESTROY going to sleep
  2614. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:174 sofia/default/0640547054@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  2615. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0640547054@41.160.32.115:5060) State REPORTING going to sleep
  2616. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  2617. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_session.c:1665 Session 574942 (sofia/default/0640547054@41.160.32.115:5060) Locked, Waiting on external entities
  2618. 2024-03-22 07:53:25.064293 [NOTICE] switch_core_session.c:1683 Session 574942 (sofia/default/0640547054@41.160.32.115:5060) Ended
  2619. 2024-03-22 07:53:25.064293 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0640547054@41.160.32.115:5060 [CS_DESTROY]
  2620. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 74 Tot 574971)
  2621. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0640547054@41.160.32.115:5060) State DESTROY
  2622. 2024-03-22 07:53:25.064293 [DEBUG] mod_sofia.c:343 sofia/default/0640547054@41.160.32.115:5060 SOFIA DESTROY
  2623. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:181 sofia/default/0640547054@41.160.32.115:5060 Standard DESTROY
  2624. 2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0640547054@41.160.32.115:5060) State DESTROY going to sleep
  2625. EXECUTE sofia/default/0604746864@41.160.32.115:5060 ring_ready()
  2626. 2024-03-22 07:53:25.084169 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0604746864@41.160.32.115:5060!
  2627. 2024-03-22 07:53:25.084169 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [early][180]
  2628. 2024-03-22 07:53:25.084169 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0604746864@41.160.32.115:5060!
  2629. EXECUTE sofia/default/0604746864@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/2693458380@legalaidsa.nebular.co.za^0214264126)
  2630. 2024-03-22 07:53:25.084169 [DEBUG] switch_channel.c:1250 sofia/default/0604746864@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  2631. 2024-03-22 07:53:25.084169 [DEBUG] switch_channel.c:1250 sofia/default/0604746864@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  2632. 2024-03-22 07:53:25.084169 [DEBUG] switch_channel.c:1250 sofia/default/0604746864@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  2633. 2024-03-22 07:53:25.084169 [DEBUG] switch_channel.c:1250 sofia/default/0604746864@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  2634. 2024-03-22 07:53:25.084169 [DEBUG] switch_channel.c:1250 sofia/default/0604746864@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  2635. 2024-03-22 07:53:25.084169 [DEBUG] switch_channel.c:1250 sofia/default/0604746864@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  2636. 2024-03-22 07:53:25.084169 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  2637. 2024-03-22 07:53:25.084169 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  2638. 2024-03-22 07:53:25.084169 [NOTICE] switch_channel.c:1104 New Channel sofia/default/2693458380@legalaidsa.nebular.co.za [4304b7de-e821-11ee-8e5f-d17fbcf33421]
  2639. 2024-03-22 07:53:25.084169 [DEBUG] mod_sofia.c:4819 (sofia/default/2693458380@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  2640. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 75 Tot 574972)
  2641. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2693458380@legalaidsa.nebular.co.za) State INIT
  2642. 2024-03-22 07:53:25.084169 [DEBUG] mod_sofia.c:90 sofia/default/2693458380@legalaidsa.nebular.co.za SOFIA INIT
  2643. 2024-03-22 07:53:25.084169 [DEBUG] sofia_glue.c:1295 sofia/default/2693458380@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  2644. Local SDP:                                                                                                                                                                                                        
  2645. v=0                                                                                                                                                                                                                
  2646. o=FreeSWITCH 1711063237 1711063238 IN IP4 156.38.231.107                                                                                                                                                          
  2647. s=FreeSWITCH                                                                                                                                                                                                      
  2648. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  2649. t=0 0                                                                                                                                                                                                              
  2650. m=audio 30768 RTP/AVP 18 101                                                                                                                                                                                      
  2651. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  2652. a=fmtp:18 annexb=no                                                                                                                                                                                                
  2653. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2654. a=fmtp:101 0-16                                                                                                                                                                                                    
  2655. a=ptime:20                                                                                                                                                                                                        
  2656. a=sendrecv                                                                                                                                                                                                        
  2657.  
  2658. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:40 sofia/default/2693458380@legalaidsa.nebular.co.za Standard INIT
  2659. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:48 (sofia/default/2693458380@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  2660. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2693458380@legalaidsa.nebular.co.za) State INIT going to sleep
  2661. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 75 Tot 574972)
  2662. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2693458380@legalaidsa.nebular.co.za) State ROUTING
  2663. 2024-03-22 07:53:25.084169 [DEBUG] mod_sofia.c:143 sofia/default/2693458380@legalaidsa.nebular.co.za SOFIA ROUTING
  2664. 2024-03-22 07:53:25.084169 [DEBUG] switch_ivr_originate.c:67 (sofia/default/2693458380@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  2665. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2693458380@legalaidsa.nebular.co.za) State ROUTING going to sleep
  2666. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 75 Tot 574972)
  2667. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/2693458380@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  2668. 2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/2693458380@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  2669. 2024-03-22 07:53:25.084169 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [calling][0]
  2670. 2024-03-22 07:53:25.324190 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [proceeding][180]
  2671. 2024-03-22 07:53:25.324190 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/2693458380@legalaidsa.nebular.co.za!
  2672. 2024-03-22 07:53:25.324190 [DEBUG] switch_channel.c:3346 (sofia/default/2693458380@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  2673. 2024-03-22 07:53:25.344163 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0604746864@41.160.32.115:5060!
  2674. 2024-03-22 07:53:25.404161 [DEBUG] switch_scheduler.c:144 Deleting task 232821 switch_ivr_schedule_hangup (2f5fddda-e821-11ee-8c06-d17fbcf33421)
  2675. 2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [received][100]
  2676. 2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7094 Remote SDP:
  2677. v=0                                                                                                                                                                                                                
  2678. o=3cxPS 29578231808 444814327810 IN IP4 156.38.150.6                                                                                                                                                              
  2679. s=3cxPS Audio call                                                                                                                                                                                                
  2680. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  2681. t=0 0                                                                                                                                                                                                              
  2682. m=audio 10442 RTP/AVP 18 101                                                                                                                                                                                      
  2683. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  2684. a=fmtp:18 annexb=no                                                                                                                                                                                                
  2685. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2686. a=sendonly                                                                                                                                                                                                        
  2687.  
  2688. 2024-03-22 07:53:25.544218 [DEBUG] switch_channel.c:1844 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HELD
  2689. 2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [received][100]
  2690. 2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7094 Remote SDP:
  2691. v=0                                                                                                                                                                                                                
  2692. o=3cxPS 21122514944 531619643395 IN IP4 156.38.150.6                                                                                                                                                              
  2693. s=3cxPS Audio call                                                                                                                                                                                                
  2694. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  2695. t=0 0                                                                                                                                                                                                              
  2696. m=audio 10424 RTP/AVP 18 101                                                                                                                                                                                      
  2697. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  2698. a=fmtp:18 annexb=no                                                                                                                                                                                                
  2699. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  2700.  
  2701. 2024-03-22 07:53:25.604165 [NOTICE] sofia.c:1012 Hangup sofia/default/27118772122@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  2702. 2024-03-22 07:53:25.604165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27118772122@legalaidsa.nebular.co.za:5060]
  2703. 2024-03-22 07:53:25.625043 [DEBUG] switch_ivr_bridge.c:706 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  2704. 2024-03-22 07:53:25.625043 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0837846909]
  2705. 2024-03-22 07:53:25.625043 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0837846909 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  2706. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0837846909) State EXCHANGE_MEDIA going to sleep
  2707. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837846909) Running State Change CS_HANGUP (Cur 75 Tot 574972)
  2708. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0837846909) Callstate Change ACTIVE -> HANGUP
  2709. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837846909) State HANGUP
  2710. 2024-03-22 07:53:25.625043 [DEBUG] mod_sofia.c:432 sofia/default/0837846909 Overriding SIP cause 480 with 200 from the other leg
  2711. 2024-03-22 07:53:25.625043 [DEBUG] mod_sofia.c:438 Channel sofia/default/0837846909 hanging up, cause: NORMAL_CLEARING
  2712. 2024-03-22 07:53:25.625043 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0837846909 skip receive message [UNBRIDGE] (channel is hungup already)
  2713. 2024-03-22 07:53:25.625043 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  2714. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_session.c:2815 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  2715. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  2716. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 75 Tot 574972)
  2717. 2024-03-22 07:53:25.625043 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0837846909
  2718. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:60 sofia/default/0837846909 Standard HANGUP, cause: NORMAL_CLEARING
  2719. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837846909) State HANGUP going to sleep
  2720. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0837846909) State Change CS_HANGUP -> CS_REPORTING
  2721. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837846909) Running State Change CS_REPORTING (Cur 75 Tot 574972)
  2722. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:850 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  2723. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837846909) State REPORTING
  2724. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State HANGUP
  2725. 2024-03-22 07:53:25.625043 [DEBUG] mod_sofia.c:438 Channel sofia/default/27118772122@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  2726. 2024-03-22 07:53:25.625043 [INFO] mod_json_cdr.c:271 Process [ac189f30-e81f-11ee-a16c-d17fbcf33421.cdr.json]
  2727. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:60 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  2728. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  2729. 2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:619 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  2730. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 75 Tot 574972)
  2731. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State REPORTING
  2732. 2024-03-22 07:53:25.644155 [INFO] mod_json_cdr.c:271 Process [ac0d38b6-e81f-11ee-a149-d17fbcf33421.cdr.json]
  2733. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:174 sofia/default/0837846909 Standard REPORTING, cause: NORMAL_CLEARING
  2734. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837846909) State REPORTING going to sleep
  2735. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0837846909) State Change CS_REPORTING -> CS_DESTROY
  2736. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_session.c:1665 Session 574446 (sofia/default/0837846909) Locked, Waiting on external entities
  2737. 2024-03-22 07:53:25.644155 [NOTICE] switch_core_session.c:1683 Session 574446 (sofia/default/0837846909) Ended
  2738. 2024-03-22 07:53:25.644155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0837846909 [CS_DESTROY]
  2739. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0837846909) Running State Change CS_DESTROY (Cur 74 Tot 574972)
  2740. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837846909) State DESTROY
  2741. 2024-03-22 07:53:25.644155 [DEBUG] mod_sofia.c:343 sofia/default/0837846909 SOFIA DESTROY
  2742. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:181 sofia/default/0837846909 Standard DESTROY
  2743. 2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837846909) State DESTROY going to sleep
  2744. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:174 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  2745. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  2746. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  2747. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_session.c:1665 Session 574445 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  2748. 2024-03-22 07:53:25.664159 [NOTICE] switch_core_session.c:1683 Session 574445 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Ended
  2749. 2024-03-22 07:53:25.664159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/27118772122@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  2750. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 73 Tot 574972)
  2751. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State DESTROY
  2752. 2024-03-22 07:53:25.664159 [DEBUG] mod_sofia.c:343 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  2753. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:181 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 Standard DESTROY
  2754. 2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  2755. 2024-03-22 07:53:25.724162 [DEBUG] switch_ivr.c:623 sofia/default/Anonymous@41.160.32.115:5060 Command Execute playback(local_stream://moh)
  2756. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 playback(local_stream://moh)
  2757. 2024-03-22 07:53:25.724162 [DEBUG] mod_local_stream.c:871 Opening Stream [moh/8000] 8000hz
  2758. 2024-03-22 07:53:25.724162 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  2759. 2024-03-22 07:53:25.744162 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda8489dc0 0x7feda8489dc0
  2760. 2024-03-22 07:53:25.744162 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda8489dc0 0x7feda8489dc0
  2761. 2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  2762. 2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  2763. 2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  2764. 2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  2765. 2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4767 sofia/default/4607597910@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  2766. 2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/4607597910@legalaidsa.nebular.co.za.
  2767. 2024-03-22 07:53:25.784203 [DEBUG] sofia.c:7999 Processing updated SDP
  2768. 2024-03-22 07:53:25.804192 [DEBUG] switch_ivr_play_say.c:1942 done playing file local_stream://moh
  2769. 2024-03-22 07:53:25.804192 [DEBUG] switch_channel.c:2029 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change HELD -> UNHELD
  2770. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  2771. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  2772. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  2773. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  2774. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4767 sofia/default/4607597910@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  2775. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/4607597910@legalaidsa.nebular.co.za.
  2776. 2024-03-22 07:53:25.804192 [DEBUG] sofia.c:7999 Processing updated SDP
  2777. 2024-03-22 07:53:25.804192 [DEBUG] switch_core_io.c:941 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change UNHELD -> ACTIVE
  2778. 2024-03-22 07:53:25.824154 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [completed][200]
  2779. 2024-03-22 07:53:25.824154 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [completed][200]
  2780. 2024-03-22 07:53:25.824154 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [ready][200]
  2781. 2024-03-22 07:53:25.844167 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [ready][200]
  2782. 2024-03-22 07:53:25.844167 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  2783. 2024-03-22 07:53:25.904162 [DEBUG] switch_scheduler.c:144 Deleting task 232616 switch_ivr_schedule_hangup (ac189f30-e81f-11ee-a16c-d17fbcf33421)
  2784. 2024-03-22 07:53:26.944171 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0613423198@41.160.32.115:5060 [4420f560-e821-11ee-8e64-d17fbcf33421]
  2785. 2024-03-22 07:53:26.944171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_NEW (Cur 74 Tot 574973)
  2786. 2024-03-22 07:53:26.944171 [DEBUG] sofia.c:9873 sofia/default/0613423198@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  2787. 2024-03-22 07:53:26.944171 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  2788. 2024-03-22 07:53:26.964519 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [received][100]
  2789. 2024-03-22 07:53:26.964519 [DEBUG] sofia.c:7094 Remote SDP:
  2790. v=0                                                                                                                                                                                                                
  2791. o=HuaweiSoftX3000 92373139943625 92373139943625 IN IP4 41.160.32.115                                                                                                                                              
  2792. s=-                                                                                                                                                                                                                
  2793. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  2794. t=0 0                                                                                                                                                                                                              
  2795. m=audio 24782 RTP/AVP 102 8 18 102 102 116                                                                                                                                                                        
  2796. a=rtpmap:102 AMR/8000                                                                                                                                                                                              
  2797. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  2798. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  2799. a=fmtp:18 annexb=no                                                                                                                                                                                                
  2800. a=rtpmap:116 telephone-event/8000                                                                                                                                                                                  
  2801. a=fmtp:116 0-15                                                                                                                                                                                                    
  2802. a=ptime:20                                                                                                                                                                                                        
  2803.  
  2804. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [AMR:102:8000:20:0:1]/[G729:18:8000:60:8000:1]
  2805. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [AMR:102:8000:20:0:1]/[G729:18:8000:20:8000:1]
  2806. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [AMR:102:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  2807. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [AMR:102:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  2808. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  2809. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  2810. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  2811. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  2812. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  2813. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  2814. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  2815. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  2816. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  2817. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  2818. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  2819. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[G729:18:8000:60:8000:1]
  2820. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[G729:18:8000:20:8000:1]
  2821. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[PCMA:8:8000:20:64000:1]
  2822. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[PCMU:0:8000:20:64000:1]
  2823. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[G729:18:8000:60:8000:1]
  2824. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[G729:18:8000:20:8000:1]
  2825. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[PCMA:8:8000:20:64000:1]
  2826. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [:102:0:20:0:1]/[PCMU:0:8000:20:64000:1]
  2827. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 116@8000
  2828. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0613423198@41.160.32.115:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  2829. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_codec.c:111 sofia/default/0613423198@41.160.32.115:5060 Original read codec set to PCMA:8
  2830. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 116@8000
  2831. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4767 sofia/default/0613423198@41.160.32.115:5060 Set 2833 dtmf send payload to 116 recv payload to 116
  2832. 2024-03-22 07:53:26.964519 [DEBUG] sofia.c:7507 (sofia/default/0613423198@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  2833. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0613423198@41.160.32.115:5060) State NEW
  2834. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_INIT (Cur 74 Tot 574973)
  2835. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0613423198@41.160.32.115:5060) State INIT
  2836. 2024-03-22 07:53:26.964519 [DEBUG] mod_sofia.c:90 sofia/default/0613423198@41.160.32.115:5060 SOFIA INIT
  2837. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:40 sofia/default/0613423198@41.160.32.115:5060 Standard INIT
  2838. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0613423198@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  2839. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0613423198@41.160.32.115:5060) State INIT going to sleep
  2840. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 74 Tot 574973)
  2841. 2024-03-22 07:53:26.964519 [DEBUG] switch_channel.c:2249 (sofia/default/0613423198@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  2842. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0613423198@41.160.32.115:5060) State ROUTING
  2843. 2024-03-22 07:53:26.964519 [DEBUG] mod_sofia.c:143 sofia/default/0613423198@41.160.32.115:5060 SOFIA ROUTING
  2844. 2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:236 sofia/default/0613423198@41.160.32.115:5060 Standard ROUTING
  2845. 2024-03-22 07:53:26.964519 [INFO] mod_dialplan_xml.c:637 Processing 0613423198 <0613423198>->D9570414082800 in context default
  2846. 2024-03-22 07:53:26.964519 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  2847. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  2848. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  2849. 2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  2850. 2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570414082800
  2851. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570414082800' limit 1
  2852. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570414082800' AND status=0 limit 1
  2853. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570414082800' and status=0 LIMIT 1                                                                                                                                                                                                      
  2854. 2024-03-22 07:53:26.964519 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  2855. 2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0613423198 / <null>
  2856. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570414082800" LIMIT 1                                                                                                                                                          
  2857. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [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="D9570414082800"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  2858. 2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  2859. 2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  2860. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  2861. 2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570414082800.*' OR blocked_patterns = '^D957041408280.*' OR blocked_patterns = '^D95704140828.*' OR blocked_patterns = '^D9570414082.*' OR blocked_patterns = '^D957041408.*' OR blocked_patterns = '^D95704140.*' OR blocked_patterns = '^D9570414.*' OR blocked_patterns = '^D957041.*' OR blocked_patterns = '^D95704.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  2862. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570414082800" AND (accountid = 0 OR status = 1) LIMIT 1
  2863. 2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  2864. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  2865. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570414082800
  2866. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570414082800
  2867. 2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570414082800
  2868. 2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0414082800
  2869. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [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 = '^0414082800.*' OR patterns = '^041408280.*' OR patterns = '^04140828.*' OR patterns = '^0414082.*' OR patterns = '^041408.*' OR patterns = '^04140.*' OR patterns = '^0414.*' OR patterns = '^041.*' OR patterns = '^04.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  2870. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [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 ="0414082800" AND A.accountid = '3' limit 1                                                                                                                                                                          
  2871. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0414082800
  2872. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [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 ="0414082800" LIMIT 1                                                                                                                                                              
  2873. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  2874. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0414082800' OR number = '041408280' OR number = '04140828' OR number = '0414082' OR number = '041408' OR number = '04140' OR number = '0414' OR number = '041' OR number = '04' OR number = '0' OR number ='--') OR (number = '0414082800*' OR number = '041408280*' OR number = '04140828*' OR number = '0414082*' OR number = '041408*' OR number = '04140*' OR number = '0414*' OR number = '041*' OR number = '04*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  2875. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  2876. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0414082800' OR routing_prefix = '041408280' OR routing_prefix = '04140828' OR routing_prefix = '0414082' OR routing_prefix = '041408' OR routing_prefix = '04140' OR routing_prefix = '0414' OR routing_prefix = '041' OR routing_prefix = '04' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  2877. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  2878. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  2879. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  2880. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  2881. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  2882. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  2883. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  2884. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  2885. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  2886. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  2887. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [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 ="0414082800" LIMIT 1                                                                                                                                                              
  2888. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  2889. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  2890. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9693
  2891. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  2892. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  2893. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  2894. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0414082800
  2895. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  2896. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  2897. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  2898. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  2899. 2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  2900. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  2901. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  2902. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  2903. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  2904. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  2905. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  2906. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  2907. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  2908. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  2909. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  2910. 2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  2911. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  2912. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  2913. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  2914. 2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  2915. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0613423198
  2916. 2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0613423198
  2917. 2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27613423198
  2918. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  2919. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  2920. 2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  2921. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  2922. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [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="6085507138"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  2923. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1501 limit 1
  2924. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  2925. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  2926. 2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  2927. 2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  2928. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  2929. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  2930. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='6085507138' and uuid = '4420f560-e821-11ee-8e64-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  2931. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='6085507138' order by id desc limit 1
  2932. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [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="6085507138"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  2933. 2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1501 limit 1
  2934. 2024-03-22 07:53:27.024177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2935. <document type="freeswitch/xml">                                                                                                                                                                                  
  2936. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  2937. <context name="default">                                                                                                                                                                                          
  2938. <extension name="0414082800">                                                                                                                                                                                      
  2939. <condition field="destination_number" expression="D9570414082800">                                                                                                                                                
  2940. <action application="set" data="effective_destination_number=0414082800"/>                                                                                                                                        
  2941. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  2942. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  2943. <action application="set" data="callstart=2024-03-22 07:53:27"/>                                                                                                                                                  
  2944. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  2945. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  2946. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  2947. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  2948. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  2949. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  2950. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  2951. <action application="set" data="accountname=default"/>                                                                                                                                                            
  2952. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  2953. <action application="set" data="origination_rates_did=ID:9693|CODE:^0414082800.*|DESTINATION:0414082800|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  2954. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  2955. <action application="set" data="original_caller_id_name=0613423198"/>                                                                                                                                              
  2956. <action application="set" data="effective_caller_id_name=27613423198"/>                                                                                                                                            
  2957. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  2958. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  2959. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  2960. <action application="export" data="presence_data=x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  2961. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  2962. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  2963. <action application="db" data="insert/pickup_any_group_${callgroup}/6085507138/${uuid}"/>                                                                                                                          
  2964. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  2965. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  2966. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  2967. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  2968. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  2969. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  2970. <action application="sleep" data="1000"/>                                                                                                                                                                          
  2971. <action application="ring_ready"/>                                                                                                                                                                                
  2972. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/6085507138@legalaidsa.nebular.co.za^0414082800"/>                                                    
  2973. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  2974. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  2975. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  2976. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  2977. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  2978. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  2979. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  2980. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  2981. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  2982. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  2983. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  2984. <action application="set" data="sip_destination_number=6085507138"/>                                                                                                                                              
  2985. <action application="set" data="destination_number=0414082800"/>                                                                                                                                                  
  2986. <action application="set" data="did_number=0414082800"/>                                                                                                                                                          
  2987. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  2988. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  2989. <condition field="${cond(${user_data 6085507138@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  2990. <action application="answer"/>                                                                                                                                                                                    
  2991. <action application="export" data="voicemail_alternate_greet_id=0414082800"/>                                                                                                                                      
  2992. <action application="voicemail" data="default $${domain_name} 6085507138"/>                                                                                                                                        
  2993. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  2994. </condition>                                                                                                                                                                                                      
  2995. </condition>                                                                                                                                                                                                      
  2996. </extension>                                                                                                                                                                                                      
  2997. </context>                                                                                                                                                                                                        
  2998. </section>                                                                                                                                                                                                        
  2999. </document>                                                                                                                                                                                                        
  3000. 2024-03-22 07:53:27.024177 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  3001. Dialplan: sofia/default/0613423198@41.160.32.115:5060 parsing [default->0414082800] continue=false
  3002. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Regex (PASS) [0414082800] destination_number(D9570414082800) =~ /D9570414082800/ break=on-false
  3003. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(effective_destination_number=0414082800)
  3004. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  3005. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  3006. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:27)
  3007. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  3008. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  3009. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(account_id=3)
  3010. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(parent_id=0)
  3011. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(entity_id=3)
  3012. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(call_processed=internal)
  3013. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(call_direction=inbound)
  3014. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(accountname=default)
  3015. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  3016. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(origination_rates_did=ID:9693|CODE:^0414082800.*|DESTINATION:0414082800|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  3017. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(origination_rates=0)
  3018. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(original_caller_id_name=0613423198)
  3019. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(effective_caller_id_name=27613423198)
  3020. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(receiver_accid=109)
  3021. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  3022. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  3023. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115)
  3024. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(call_type=5)
  3025. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(calltype=SIP-DID)
  3026. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/6085507138/${uuid})
  3027. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  3028. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  3029. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  3030. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  3031. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  3032. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  3033. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action sleep(1000)
  3034. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action ring_ready()
  3035. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/6085507138@legalaidsa.nebular.co.za^0414082800)
  3036. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(on_busy_flag=1)
  3037. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(on_busy_destination=)
  3038. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(no_answer_flag=1)
  3039. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(no_answer_destination=)
  3040. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(not_register_flag=1)
  3041. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(not_register_destination=)
  3042. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(opensips_flag=0)
  3043. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  3044. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  3045. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(leg_timeout=20)
  3046. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(userinfo_id=109)
  3047. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(sip_destination_number=6085507138)
  3048. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(destination_number=0414082800)
  3049. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(did_number=0414082800)
  3050. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  3051. Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  3052. |--- Dialplan: Processing recursive conditions level:1 [0414082800_recur_1] require-nested=TRUE
  3053. |--- Dialplan: sofia/default/0613423198@41.160.32.115:5060 Regex (FAIL) [0414082800_recur_1] ${cond(${user_data 6085507138@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  3054. |--- Dialplan: sofia/default/0613423198@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  3055. 2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0613423198@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  3056. 2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0613423198@41.160.32.115:5060) State ROUTING going to sleep
  3057. 2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 74 Tot 574973)
  3058. 2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0613423198@41.160.32.115:5060) State EXECUTE
  3059. 2024-03-22 07:53:27.044403 [DEBUG] mod_sofia.c:198 sofia/default/0613423198@41.160.32.115:5060 SOFIA EXECUTE
  3060. 2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:328 sofia/default/0613423198@41.160.32.115:5060 Standard EXECUTE
  3061. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(effective_destination_number=0414082800)
  3062. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [effective_destination_number]=[0414082800]
  3063. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  3064. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  3065. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  3066. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  3067. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(callstart=2024-03-22 07:53:27)
  3068. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:27]
  3069. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(hangup_after_bridge=true)
  3070. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [hangup_after_bridge]=[true]
  3071. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(continue_on_fail=TRUE)
  3072. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  3073. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(account_id=3)
  3074. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [account_id]=[3]
  3075. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(parent_id=0)
  3076. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [parent_id]=[0]
  3077. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(entity_id=3)
  3078. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [entity_id]=[3]
  3079. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(call_processed=internal)
  3080. 2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [call_processed]=[internal]
  3081. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(call_direction=inbound)
  3082. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [call_direction]=[inbound]
  3083. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(accountname=default)
  3084. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [accountname]=[default]
  3085. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  3086. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  3087. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(origination_rates_did=ID:9693|CODE:^0414082800.*|DESTINATION:0414082800|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  3088. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [origination_rates_did]=[ID:9693|CODE:^0414082800.*|DESTINATION:0414082800|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  3089. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(origination_rates=0)
  3090. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [origination_rates]=[0]
  3091. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(original_caller_id_name=0613423198)
  3092. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [original_caller_id_name]=[0613423198]
  3093. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(effective_caller_id_name=27613423198)
  3094. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [effective_caller_id_name]=[27613423198]
  3095. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(receiver_accid=109)
  3096. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [receiver_accid]=[109]
  3097. EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  3098. 2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  3099. EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  3100. 2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  3101. EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115)
  3102. 2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115]
  3103. EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(call_type=5)
  3104. 2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  3105. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(calltype=SIP-DID)
  3106. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [calltype]=[SIP-DID]
  3107. EXECUTE sofia/default/0613423198@41.160.32.115:5060 db(insert/pickup_any_group_/6085507138/4420f560-e821-11ee-8e64-d17fbcf33421)
  3108. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(dialed_extension=transfer_call)
  3109. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  3110. EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(dialed_extension=transfer_call)
  3111. 2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  3112. EXECUTE sofia/default/0613423198@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  3113. 2024-03-22 07:53:27.064152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  3114. EXECUTE sofia/default/0613423198@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  3115. 2024-03-22 07:53:27.064152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  3116. EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(hangup_after_bridge=true)
  3117. 2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [hangup_after_bridge]=[true]
  3118. EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  3119. 2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  3120. EXECUTE sofia/default/0613423198@41.160.32.115:5060 sleep(1000)
  3121. EXECUTE sofia/default/0613423198@41.160.32.115:5060 ring_ready()
  3122. 2024-03-22 07:53:28.064176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0613423198@41.160.32.115:5060!
  3123. 2024-03-22 07:53:28.064176 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [early][180]
  3124. 2024-03-22 07:53:28.064176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0613423198@41.160.32.115:5060!
  3125. EXECUTE sofia/default/0613423198@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/default/6085507138@legalaidsa.nebular.co.za^0414082800)
  3126. 2024-03-22 07:53:28.064176 [DEBUG] switch_channel.c:1250 sofia/default/0613423198@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  3127. 2024-03-22 07:53:28.064176 [DEBUG] switch_channel.c:1250 sofia/default/0613423198@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  3128. 2024-03-22 07:53:28.064176 [DEBUG] switch_channel.c:1250 sofia/default/0613423198@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  3129. 2024-03-22 07:53:28.064176 [DEBUG] switch_channel.c:1250 sofia/default/0613423198@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  3130. 2024-03-22 07:53:28.064176 [DEBUG] switch_channel.c:1250 sofia/default/0613423198@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  3131. 2024-03-22 07:53:28.064176 [DEBUG] switch_channel.c:1250 sofia/default/0613423198@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  3132. 2024-03-22 07:53:28.064176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  3133. 2024-03-22 07:53:28.064176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  3134. 2024-03-22 07:53:28.084235 [NOTICE] switch_channel.c:1104 New Channel sofia/default/6085507138@legalaidsa.nebular.co.za [44cbe970-e821-11ee-8e8c-d17fbcf33421]
  3135. 2024-03-22 07:53:28.084235 [DEBUG] mod_sofia.c:4819 (sofia/default/6085507138@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  3136. 2024-03-22 07:53:28.084235 [DEBUG] switch_ivr_originate.c:2963 sofia/default/6085507138@legalaidsa.nebular.co.za Setting leg timeout to 30
  3137. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 75 Tot 574974)
  3138. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6085507138@legalaidsa.nebular.co.za) State INIT
  3139. 2024-03-22 07:53:28.084235 [DEBUG] mod_sofia.c:90 sofia/default/6085507138@legalaidsa.nebular.co.za SOFIA INIT
  3140. 2024-03-22 07:53:28.084235 [DEBUG] sofia_glue.c:1295 sofia/default/6085507138@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  3141. Local SDP:                                                                                                                                                                                                        
  3142. v=0                                                                                                                                                                                                                
  3143. o=FreeSWITCH 1711061946 1711061947 IN IP4 156.38.231.107                                                                                                                                                          
  3144. s=FreeSWITCH                                                                                                                                                                                                      
  3145. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  3146. t=0 0                                                                                                                                                                                                              
  3147. m=audio 32062 RTP/AVP 8 101                                                                                                                                                                                        
  3148. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3149. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3150. a=fmtp:101 0-16                                                                                                                                                                                                    
  3151. a=ptime:20                                                                                                                                                                                                        
  3152. a=sendrecv                                                                                                                                                                                                        
  3153.  
  3154. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:40 sofia/default/6085507138@legalaidsa.nebular.co.za Standard INIT
  3155. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:48 (sofia/default/6085507138@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  3156. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6085507138@legalaidsa.nebular.co.za) State INIT going to sleep
  3157. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 75 Tot 574974)
  3158. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6085507138@legalaidsa.nebular.co.za) State ROUTING
  3159. 2024-03-22 07:53:28.084235 [DEBUG] mod_sofia.c:143 sofia/default/6085507138@legalaidsa.nebular.co.za SOFIA ROUTING
  3160. 2024-03-22 07:53:28.084235 [DEBUG] switch_ivr_originate.c:67 (sofia/default/6085507138@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  3161. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6085507138@legalaidsa.nebular.co.za) State ROUTING going to sleep
  3162. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 75 Tot 574974)
  3163. 2024-03-22 07:53:28.084235 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [calling][0]
  3164. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:662 (sofia/default/6085507138@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  3165. 2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:662 (sofia/default/6085507138@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  3166. 2024-03-22 07:53:29.044172 [DEBUG] sofia.c:7084 Channel sofia/default/0721916283 entering state [proceeding][183]
  3167. 2024-03-22 07:53:29.044172 [DEBUG] sofia.c:7094 Remote SDP:
  3168. v=0                                                                                                                                                                                                                
  3169. o=HuaweiSoftX3000 19788192643317 19788192643317 IN IP4 41.160.32.115                                                                                                                                              
  3170. s=-                                                                                                                                                                                                                
  3171. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  3172. t=0 0                                                                                                                                                                                                              
  3173. m=audio 24776 RTP/AVP 8 101                                                                                                                                                                                        
  3174. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3175. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3176. a=fmtp:101 0-15                                                                                                                                                                                                    
  3177. a=ptime:20                                                                                                                                                                                                        
  3178.  
  3179. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3180. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  3181. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  3182. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  3183. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  3184. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0721916283 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  3185. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_codec.c:111 sofia/default/0721916283 Original read codec set to PCMA:8
  3186. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  3187. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4767 sofia/default/0721916283 Set 2833 dtmf send payload to 101 recv payload to 101
  3188. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0721916283] 156.38.231.107 port 28846 -> 41.160.32.115 port 24776 codec: 8 ms: 20
  3189. 2024-03-22 07:53:29.044172 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  3190. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:7180 sofia/default/0721916283 Set 2833 dtmf send payload to 101
  3191. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:7187 sofia/default/0721916283 Set 2833 dtmf receive payload to 101
  3192. 2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:7210 sofia/default/0721916283 Set rtp dtmf delay to 40
  3193. 2024-03-22 07:53:29.044172 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0721916283!
  3194. 2024-03-22 07:53:29.044172 [DEBUG] switch_channel.c:3474 (sofia/default/0721916283) Callstate Change DOWN -> EARLY
  3195. 2024-03-22 07:53:29.064171 [INFO] switch_ivr_originate.c:3654 Sending early media
  3196. 2024-03-22 07:53:29.064171 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0333942190@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 23944 -> 156.38.150.6 port 10456 codec: 8 ms: 20
  3197. 2024-03-22 07:53:29.064171 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  3198. 2024-03-22 07:53:29.064171 [DEBUG] switch_core_media.c:7180 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  3199. 2024-03-22 07:53:29.064171 [DEBUG] switch_core_media.c:7187 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  3200. 2024-03-22 07:53:29.064171 [DEBUG] switch_core_media.c:7210 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  3201. 2024-03-22 07:53:29.064171 [DEBUG] mod_sofia.c:2364 Ring SDP:
  3202. v=0                                                                                                                                                                                                                
  3203. o=FreeSWITCH 1711070065 1711070066 IN IP4 156.38.231.107                                                                                                                                                          
  3204. s=FreeSWITCH                                                                                                                                                                                                      
  3205. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  3206. t=0 0                                                                                                                                                                                                              
  3207. m=audio 23944 RTP/AVP 8 101                                                                                                                                                                                        
  3208. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3209. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3210. a=fmtp:101 0-16                                                                                                                                                                                                    
  3211. a=ptime:20                                                                                                                                                                                                        
  3212. a=sendrecv                                                                                                                                                                                                        
  3213.  
  3214. 2024-03-22 07:53:29.064171 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0333942190@legalaidsa.nebular.co.za:5060!
  3215. 2024-03-22 07:53:29.064171 [DEBUG] switch_channel.c:3474 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  3216. 2024-03-22 07:53:29.064171 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0721916283]
  3217. 2024-03-22 07:53:29.064171 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [early][183]
  3218. 2024-03-22 07:53:29.064171 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0721916283) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  3219. 2024-03-22 07:53:29.064171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721916283) Running State Change CS_EXCHANGE_MEDIA (Cur 75 Tot 574974)
  3220. 2024-03-22 07:53:29.064171 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721916283) State EXCHANGE_MEDIA
  3221. 2024-03-22 07:53:29.064171 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  3222. 2024-03-22 07:53:29.184157 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  3223. 2024-03-22 07:53:29.244178 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0721916283 Bridge execute app sched_hangup(+6000 normal_clearing)
  3224. 2024-03-22 07:53:29.264183 [DEBUG] switch_ivr.c:623 sofia/default/0721916283 Command Execute sched_hangup(+6000 normal_clearing)
  3225. EXECUTE sofia/default/0721916283 sched_hangup(+6000 normal_clearing)
  3226. 2024-03-22 07:53:29.264183 [DEBUG] switch_scheduler.c:249 Added task 232829 switch_ivr_schedule_hangup (403edfb6-e821-11ee-8e0a-d17fbcf33421) to run at 1711100009
  3227. 2024-03-22 07:53:29.325367 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [proceeding][180]
  3228. 2024-03-22 07:53:29.325367 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/6085507138@legalaidsa.nebular.co.za!
  3229. 2024-03-22 07:53:29.325367 [DEBUG] switch_channel.c:3346 (sofia/default/6085507138@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  3230. 2024-03-22 07:53:29.325367 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0613423198@41.160.32.115:5060!
  3231. 2024-03-22 07:53:29.344162 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10456 to 156.38.231.105:10456
  3232. 2024-03-22 07:53:29.844172 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0640547054@41.160.32.115:5060 [45da2232-e821-11ee-8e92-d17fbcf33421]
  3233. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_NEW (Cur 76 Tot 574975)
  3234. 2024-03-22 07:53:29.844172 [DEBUG] sofia.c:9873 sofia/default/0640547054@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  3235. 2024-03-22 07:53:29.844172 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  3236. 2024-03-22 07:53:29.844172 [DEBUG] sofia.c:7084 Channel sofia/default/0640547054@41.160.32.115:5060 entering state [received][100]
  3237. 2024-03-22 07:53:29.844172 [DEBUG] sofia.c:7094 Remote SDP:
  3238. v=0                                                                                                                                                                                                                
  3239. o=HuaweiSoftX3000 15205462539285 15205462539285 IN IP4 41.160.32.115                                                                                                                                              
  3240. s=-                                                                                                                                                                                                                
  3241. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  3242. t=0 0                                                                                                                                                                                                              
  3243. m=audio 24784 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  3244. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  3245. a=fmtp:18 annexb=no                                                                                                                                                                                                
  3246. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3247. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  3248. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3249. a=fmtp:101 0-15                                                                                                                                                                                                    
  3250. a=ptime:20                                                                                                                                                                                                        
  3251.  
  3252. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  3253. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  3254. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  3255. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  3256. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  3257. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  3258. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  3259. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  3260. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3261. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  3262. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  3263. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  3264. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  3265. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3266. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  3267. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  3268. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  3269. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0640547054@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  3270. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_codec.c:111 sofia/default/0640547054@41.160.32.115:5060 Original read codec set to G729:18
  3271. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  3272. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4767 sofia/default/0640547054@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  3273. 2024-03-22 07:53:29.844172 [DEBUG] sofia.c:7507 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  3274. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0640547054@41.160.32.115:5060) State NEW
  3275. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_INIT (Cur 76 Tot 574975)
  3276. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0640547054@41.160.32.115:5060) State INIT
  3277. 2024-03-22 07:53:29.844172 [DEBUG] mod_sofia.c:90 sofia/default/0640547054@41.160.32.115:5060 SOFIA INIT
  3278. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:40 sofia/default/0640547054@41.160.32.115:5060 Standard INIT
  3279. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  3280. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0640547054@41.160.32.115:5060) State INIT going to sleep
  3281. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 76 Tot 574975)
  3282. 2024-03-22 07:53:29.844172 [DEBUG] switch_channel.c:2249 (sofia/default/0640547054@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  3283. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0640547054@41.160.32.115:5060) State ROUTING
  3284. 2024-03-22 07:53:29.844172 [DEBUG] mod_sofia.c:143 sofia/default/0640547054@41.160.32.115:5060 SOFIA ROUTING
  3285. 2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:236 sofia/default/0640547054@41.160.32.115:5060 Standard ROUTING
  3286. 2024-03-22 07:53:29.844172 [INFO] mod_dialplan_xml.c:637 Processing 0640547054 <0640547054>->D9570216975252 in context default
  3287. 2024-03-22 07:53:29.844172 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  3288. 2024-03-22 07:53:29.844172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  3289. 2024-03-22 07:53:29.844172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  3290. 2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  3291. 2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570216975252
  3292. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570216975252' limit 1
  3293. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570216975252' AND status=0 limit 1
  3294. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570216975252' and status=0 LIMIT 1                                                                                                                                                                                                      
  3295. 2024-03-22 07:53:29.864286 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  3296. 2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0640547054 / <null>
  3297. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570216975252" LIMIT 1                                                                                                                                                          
  3298. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [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="D9570216975252"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  3299. 2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  3300. 2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  3301. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  3302. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570216975252.*' OR blocked_patterns = '^D957021697525.*' OR blocked_patterns = '^D95702169752.*' OR blocked_patterns = '^D9570216975.*' OR blocked_patterns = '^D957021697.*' OR blocked_patterns = '^D95702169.*' OR blocked_patterns = '^D9570216.*' OR blocked_patterns = '^D957021.*' OR blocked_patterns = '^D95702.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  3303. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570216975252" AND (accountid = 0 OR status = 1) LIMIT 1
  3304. 2024-03-22 07:53:29.864286 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  3305. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  3306. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570216975252
  3307. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570216975252
  3308. 2024-03-22 07:53:29.864286 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570216975252
  3309. 2024-03-22 07:53:29.864286 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0216975252
  3310. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [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 = '^0216975252.*' OR patterns = '^021697525.*' OR patterns = '^02169752.*' OR patterns = '^0216975.*' OR patterns = '^021697.*' OR patterns = '^02169.*' OR patterns = '^0216.*' OR patterns = '^021.*' OR patterns = '^02.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  3311. 2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [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 ="0216975252" AND A.accountid = '3' limit 1                                                                                                                                                                          
  3312. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0216975252
  3313. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [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 ="0216975252" LIMIT 1                                                                                                                                                              
  3314. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  3315. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0216975252' OR number = '021697525' OR number = '02169752' OR number = '0216975' OR number = '021697' OR number = '02169' OR number = '0216' OR number = '021' OR number = '02' OR number = '0' OR number ='--') OR (number = '0216975252*' OR number = '021697525*' OR number = '02169752*' OR number = '0216975*' OR number = '021697*' OR number = '02169*' OR number = '0216*' OR number = '021*' OR number = '02*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  3316. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  3317. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0216975252' OR routing_prefix = '021697525' OR routing_prefix = '02169752' OR routing_prefix = '0216975' OR routing_prefix = '021697' OR routing_prefix = '02169' OR routing_prefix = '0216' OR routing_prefix = '021' OR routing_prefix = '02' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  3318. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  3319. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  3320. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  3321. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  3322. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  3323. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  3324. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  3325. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  3326. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  3327. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  3328. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [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 ="0216975252" LIMIT 1                                                                                                                                                              
  3329. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  3330. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  3331. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9115
  3332. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  3333. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  3334. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  3335. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0216975252
  3336. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  3337. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  3338. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  3339. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  3340. 2024-03-22 07:53:29.884180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  3341. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  3342. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  3343. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  3344. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  3345. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  3346. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  3347. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  3348. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  3349. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  3350. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  3351. 2024-03-22 07:53:29.884180 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  3352. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  3353. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  3354. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  3355. 2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  3356. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0640547054
  3357. 2024-03-22 07:53:29.884180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0640547054
  3358. 2024-03-22 07:53:29.884180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27640547054
  3359. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  3360. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  3361. 2024-03-22 07:53:29.884180 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  3362. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  3363. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [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="3242002977"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  3364. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1481 limit 1
  3365. 2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  3366. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  3367. 2024-03-22 07:53:29.904207 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  3368. 2024-03-22 07:53:29.904207 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  3369. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  3370. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  3371. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='3242002977' and uuid = '45da2232-e821-11ee-8e92-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  3372. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='3242002977' order by id desc limit 1
  3373. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [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="3242002977"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  3374. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1481 limit 1
  3375. 2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  3376. <document type="freeswitch/xml">                                                                                                                                                                                  
  3377. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  3378. <context name="default">                                                                                                                                                                                          
  3379. <extension name="0216975252">                                                                                                                                                                                      
  3380. <condition field="destination_number" expression="D9570216975252">                                                                                                                                                
  3381. <action application="set" data="effective_destination_number=0216975252"/>                                                                                                                                        
  3382. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  3383. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  3384. <action application="set" data="callstart=2024-03-22 07:53:29"/>                                                                                                                                                  
  3385. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  3386. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  3387. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  3388. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  3389. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  3390. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  3391. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  3392. <action application="set" data="accountname=default"/>                                                                                                                                                            
  3393. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  3394. <action application="set" data="origination_rates_did=ID:9115|CODE:^0216975252.*|DESTINATION:0216975252|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  3395. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  3396. <action application="set" data="original_caller_id_name=0640547054"/>                                                                                                                                              
  3397. <action application="set" data="effective_caller_id_name=27640547054"/>                                                                                                                                            
  3398. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  3399. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  3400. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  3401. <action application="export" data="presence_data=x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  3402. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  3403. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  3404. <action application="db" data="insert/pickup_any_group_${callgroup}/3242002977/${uuid}"/>                                                                                                                          
  3405. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  3406. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  3407. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  3408. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  3409. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  3410. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  3411. <action application="sleep" data="1000"/>                                                                                                                                                                          
  3412. <action application="ring_ready"/>                                                                                                                                                                                
  3413. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/3242002977@legalaidsa.nebular.co.za^0216975252"/>                                                      
  3414. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  3415. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  3416. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  3417. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  3418. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  3419. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  3420. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  3421. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  3422. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  3423. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  3424. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  3425. <action application="set" data="sip_destination_number=3242002977"/>                                                                                                                                              
  3426. <action application="set" data="destination_number=0216975252"/>                                                                                                                                                  
  3427. <action application="set" data="did_number=0216975252"/>                                                                                                                                                          
  3428. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  3429. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  3430. <condition field="${cond(${user_data 3242002977@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  3431. <action application="answer"/>                                                                                                                                                                                    
  3432. <action application="export" data="voicemail_alternate_greet_id=0216975252"/>                                                                                                                                      
  3433. <action application="voicemail" data="default $${domain_name} 3242002977"/>                                                                                                                                        
  3434. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  3435. </condition>                                                                                                                                                                                                      
  3436. </condition>                                                                                                                                                                                                      
  3437. </extension>                                                                                                                                                                                                      
  3438. </context>                                                                                                                                                                                                        
  3439. </section>                                                                                                                                                                                                        
  3440. </document>                                                                                                                                                                                                        
  3441. 2024-03-22 07:53:29.904207 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  3442. Dialplan: sofia/default/0640547054@41.160.32.115:5060 parsing [default->0216975252] continue=false
  3443. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Regex (PASS) [0216975252] destination_number(D9570216975252) =~ /D9570216975252/ break=on-false
  3444. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(effective_destination_number=0216975252)
  3445. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  3446. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  3447. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:29)
  3448. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  3449. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  3450. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(account_id=3)
  3451. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(parent_id=0)
  3452. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(entity_id=3)
  3453. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(call_processed=internal)
  3454. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(call_direction=inbound)
  3455. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(accountname=default)
  3456. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  3457. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(origination_rates_did=ID:9115|CODE:^0216975252.*|DESTINATION:0216975252|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  3458. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(origination_rates=0)
  3459. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(original_caller_id_name=0640547054)
  3460. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(effective_caller_id_name=27640547054)
  3461. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(receiver_accid=109)
  3462. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  3463. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  3464. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115)
  3465. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(call_type=5)
  3466. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(calltype=SIP-DID)
  3467. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/3242002977/${uuid})
  3468. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  3469. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  3470. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  3471. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  3472. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  3473. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  3474. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action sleep(1000)
  3475. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action ring_ready()
  3476. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/3242002977@legalaidsa.nebular.co.za^0216975252)
  3477. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(on_busy_flag=1)
  3478. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(on_busy_destination=)
  3479. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(no_answer_flag=1)
  3480. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(no_answer_destination=)
  3481. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(not_register_flag=1)
  3482. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(not_register_destination=)
  3483. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(opensips_flag=0)
  3484. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  3485. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  3486. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(leg_timeout=20)
  3487. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(userinfo_id=109)
  3488. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(sip_destination_number=3242002977)
  3489. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(destination_number=0216975252)
  3490. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(did_number=0216975252)
  3491. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  3492. Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  3493. |--- Dialplan: Processing recursive conditions level:1 [0216975252_recur_1] require-nested=TRUE
  3494. |--- Dialplan: sofia/default/0640547054@41.160.32.115:5060 Regex (FAIL) [0216975252_recur_1] ${cond(${user_data 3242002977@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  3495. |--- Dialplan: sofia/default/0640547054@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  3496. 2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  3497. 2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0640547054@41.160.32.115:5060) State ROUTING going to sleep
  3498. 2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 76 Tot 574975)
  3499. 2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0640547054@41.160.32.115:5060) State EXECUTE
  3500. 2024-03-22 07:53:29.925517 [DEBUG] mod_sofia.c:198 sofia/default/0640547054@41.160.32.115:5060 SOFIA EXECUTE
  3501. 2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:328 sofia/default/0640547054@41.160.32.115:5060 Standard EXECUTE
  3502. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(effective_destination_number=0216975252)
  3503. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [effective_destination_number]=[0216975252]
  3504. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  3505. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  3506. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  3507. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  3508. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(callstart=2024-03-22 07:53:29)
  3509. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:29]
  3510. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(hangup_after_bridge=true)
  3511. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [hangup_after_bridge]=[true]
  3512. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(continue_on_fail=TRUE)
  3513. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  3514. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(account_id=3)
  3515. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [account_id]=[3]
  3516. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(parent_id=0)
  3517. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [parent_id]=[0]
  3518. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(entity_id=3)
  3519. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [entity_id]=[3]
  3520. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(call_processed=internal)
  3521. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [call_processed]=[internal]
  3522. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(call_direction=inbound)
  3523. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [call_direction]=[inbound]
  3524. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(accountname=default)
  3525. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [accountname]=[default]
  3526. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  3527. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  3528. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(origination_rates_did=ID:9115|CODE:^0216975252.*|DESTINATION:0216975252|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  3529. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [origination_rates_did]=[ID:9115|CODE:^0216975252.*|DESTINATION:0216975252|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  3530. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(origination_rates=0)
  3531. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [origination_rates]=[0]
  3532. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(original_caller_id_name=0640547054)
  3533. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [original_caller_id_name]=[0640547054]
  3534. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(effective_caller_id_name=27640547054)
  3535. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [effective_caller_id_name]=[27640547054]
  3536. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(receiver_accid=109)
  3537. 2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [receiver_accid]=[109]
  3538. EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  3539. 2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  3540. EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  3541. 2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  3542. EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115)
  3543. 2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115]
  3544. EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(call_type=5)
  3545. 2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  3546. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(calltype=SIP-DID)
  3547. 2024-03-22 07:53:29.944277 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [calltype]=[SIP-DID]
  3548. EXECUTE sofia/default/0640547054@41.160.32.115:5060 db(insert/pickup_any_group_/3242002977/45da2232-e821-11ee-8e92-d17fbcf33421)
  3549. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(dialed_extension=transfer_call)
  3550. 2024-03-22 07:53:29.944277 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  3551. EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(dialed_extension=transfer_call)
  3552. 2024-03-22 07:53:29.944277 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  3553. EXECUTE sofia/default/0640547054@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  3554. 2024-03-22 07:53:29.944277 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  3555. EXECUTE sofia/default/0640547054@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  3556. 2024-03-22 07:53:29.944277 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  3557. EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(hangup_after_bridge=true)
  3558. 2024-03-22 07:53:29.944277 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [hangup_after_bridge]=[true]
  3559. EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  3560. 2024-03-22 07:53:29.944277 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  3561. EXECUTE sofia/default/0640547054@41.160.32.115:5060 sleep(1000)
  3562. 2024-03-22 07:53:30.604181 [DEBUG] switch_ivr_play_say.c:1942 done playing file /var/www/html/astpp/upload/pbx/ThistreeRe_.wav
  3563. 2024-03-22 07:53:30.604181 [DEBUG] switch_ivr_menu.c:377 waiting for 20/20 digits t/o 2000
  3564. 2024-03-22 07:53:30.804163 [DEBUG] sofia.c:7084 Channel sofia/default/0104938458@41.160.32.115:5060 entering state [terminated][487]
  3565. 2024-03-22 07:53:30.804163 [NOTICE] sofia.c:8273 Hangup sofia/default/0104938458@41.160.32.115:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
  3566. 2024-03-22 07:53:30.824159 [NOTICE] switch_ivr_originate.c:3612 Hangup sofia/default/9851635928@legalaidsa.nebular.co.za [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
  3567. 2024-03-22 07:53:30.824159 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
  3568. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9851635928@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 76 Tot 574975)
  3569. 2024-03-22 07:53:30.824159 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: ORIGINATOR_CANCEL
  3570. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9851635928@legalaidsa.nebular.co.za) Callstate Change RINGING -> HANGUP
  3571. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/9851635928@legalaidsa.nebular.co.za) State HANGUP
  3572. 2024-03-22 07:53:30.824159 [DEBUG] mod_sofia.c:432 sofia/default/9851635928@legalaidsa.nebular.co.za Overriding SIP cause 487 with 487 from the other leg
  3573. 2024-03-22 07:53:30.824159 [DEBUG] mod_sofia.c:438 Channel sofia/default/9851635928@legalaidsa.nebular.co.za hanging up, cause: ORIGINATOR_CANCEL
  3574. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_session.c:2815 sofia/default/0104938458@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  3575. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0104938458@41.160.32.115:5060) State EXECUTE going to sleep
  3576. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 76 Tot 574975)
  3577. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0104938458@41.160.32.115:5060) Callstate Change RINGING -> HANGUP
  3578. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0104938458@41.160.32.115:5060) State HANGUP
  3579. 2024-03-22 07:53:30.824159 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/9851635928@legalaidsa.nebular.co.za
  3580. 2024-03-22 07:53:30.824159 [DEBUG] mod_sofia.c:438 Channel sofia/default/0104938458@41.160.32.115:5060 hanging up, cause: ORIGINATOR_CANCEL
  3581. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:60 sofia/default/9851635928@legalaidsa.nebular.co.za Standard HANGUP, cause: ORIGINATOR_CANCEL
  3582. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/9851635928@legalaidsa.nebular.co.za) State HANGUP going to sleep
  3583. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:619 (sofia/default/9851635928@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  3584. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/9851635928@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 76 Tot 574975)
  3585. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/9851635928@legalaidsa.nebular.co.za) State REPORTING
  3586. 2024-03-22 07:53:30.824159 [INFO] mod_json_cdr.c:271 Process [3d5bbc88-e821-11ee-8db5-d17fbcf33421.cdr.json]
  3587. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:60 sofia/default/0104938458@41.160.32.115:5060 Standard HANGUP, cause: ORIGINATOR_CANCEL
  3588. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0104938458@41.160.32.115:5060) State HANGUP going to sleep
  3589. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0104938458@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  3590. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 76 Tot 574975)
  3591. 2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0104938458@41.160.32.115:5060) State REPORTING
  3592. 2024-03-22 07:53:30.824159 [INFO] mod_json_cdr.c:271 Process [3cb1055e-e821-11ee-8d66-d17fbcf33421.cdr.json]
  3593. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:174 sofia/default/9851635928@legalaidsa.nebular.co.za Standard REPORTING, cause: ORIGINATOR_CANCEL
  3594. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/9851635928@legalaidsa.nebular.co.za) State REPORTING going to sleep
  3595. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/9851635928@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  3596. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_session.c:1665 Session 574965 (sofia/default/9851635928@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  3597. 2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1683 Session 574965 (sofia/default/9851635928@legalaidsa.nebular.co.za) Ended
  3598. 2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/9851635928@legalaidsa.nebular.co.za [CS_DESTROY]
  3599. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/9851635928@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 75 Tot 574975)
  3600. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/9851635928@legalaidsa.nebular.co.za) State DESTROY
  3601. 2024-03-22 07:53:30.844159 [DEBUG] mod_sofia.c:343 sofia/default/9851635928@legalaidsa.nebular.co.za SOFIA DESTROY
  3602. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:181 sofia/default/9851635928@legalaidsa.nebular.co.za Standard DESTROY
  3603. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/9851635928@legalaidsa.nebular.co.za) State DESTROY going to sleep
  3604. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:174 sofia/default/0104938458@41.160.32.115:5060 Standard REPORTING, cause: ORIGINATOR_CANCEL
  3605. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0104938458@41.160.32.115:5060) State REPORTING going to sleep
  3606. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0104938458@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  3607. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_session.c:1665 Session 574962 (sofia/default/0104938458@41.160.32.115:5060) Locked, Waiting on external entities
  3608. 2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1683 Session 574962 (sofia/default/0104938458@41.160.32.115:5060) Ended
  3609. 2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0104938458@41.160.32.115:5060 [CS_DESTROY]
  3610. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0104938458@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 74 Tot 574975)
  3611. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0104938458@41.160.32.115:5060) State DESTROY
  3612. 2024-03-22 07:53:30.844159 [DEBUG] mod_sofia.c:343 sofia/default/0104938458@41.160.32.115:5060 SOFIA DESTROY
  3613. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:181 sofia/default/0104938458@41.160.32.115:5060 Standard DESTROY
  3614. 2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0104938458@41.160.32.115:5060) State DESTROY going to sleep
  3615. EXECUTE sofia/default/0640547054@41.160.32.115:5060 ring_ready()
  3616. 2024-03-22 07:53:30.944163 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0640547054@41.160.32.115:5060!
  3617. 2024-03-22 07:53:30.944163 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0640547054@41.160.32.115:5060!
  3618. EXECUTE sofia/default/0640547054@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/3242002977@legalaidsa.nebular.co.za^0216975252)
  3619. 2024-03-22 07:53:30.944163 [DEBUG] sofia.c:7084 Channel sofia/default/0640547054@41.160.32.115:5060 entering state [early][180]
  3620. 2024-03-22 07:53:30.944163 [DEBUG] switch_channel.c:1250 sofia/default/0640547054@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  3621. 2024-03-22 07:53:30.944163 [DEBUG] switch_channel.c:1250 sofia/default/0640547054@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  3622. 2024-03-22 07:53:30.944163 [DEBUG] switch_channel.c:1250 sofia/default/0640547054@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  3623. 2024-03-22 07:53:30.944163 [DEBUG] switch_channel.c:1250 sofia/default/0640547054@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  3624. 2024-03-22 07:53:30.944163 [DEBUG] switch_channel.c:1250 sofia/default/0640547054@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  3625. 2024-03-22 07:53:30.944163 [DEBUG] switch_channel.c:1250 sofia/default/0640547054@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  3626. 2024-03-22 07:53:30.944163 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  3627. 2024-03-22 07:53:30.944163 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  3628. 2024-03-22 07:53:30.944163 [NOTICE] switch_channel.c:1104 New Channel sofia/default/3242002977@legalaidsa.nebular.co.za [4681e846-e821-11ee-8eba-d17fbcf33421]
  3629. 2024-03-22 07:53:30.944163 [DEBUG] mod_sofia.c:4819 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  3630. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 75 Tot 574976)
  3631. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:627 (sofia/default/3242002977@legalaidsa.nebular.co.za) State INIT
  3632. 2024-03-22 07:53:30.944163 [DEBUG] mod_sofia.c:90 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA INIT
  3633. 2024-03-22 07:53:30.944163 [DEBUG] sofia_glue.c:1295 sofia/default/3242002977@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  3634. Local SDP:                                                                                                                                                                                                        
  3635. v=0                                                                                                                                                                                                                
  3636. o=FreeSWITCH 1711067102 1711067103 IN IP4 156.38.231.107                                                                                                                                                          
  3637. s=FreeSWITCH                                                                                                                                                                                                      
  3638. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  3639. t=0 0                                                                                                                                                                                                              
  3640. m=audio 26908 RTP/AVP 18 101                                                                                                                                                                                      
  3641. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  3642. a=fmtp:18 annexb=no                                                                                                                                                                                                
  3643. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3644. a=fmtp:101 0-16                                                                                                                                                                                                    
  3645. a=ptime:20                                                                                                                                                                                                        
  3646. a=sendrecv                                                                                                                                                                                                        
  3647.  
  3648. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:40 sofia/default/3242002977@legalaidsa.nebular.co.za Standard INIT
  3649. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:48 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  3650. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:627 (sofia/default/3242002977@legalaidsa.nebular.co.za) State INIT going to sleep
  3651. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 75 Tot 574976)
  3652. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:643 (sofia/default/3242002977@legalaidsa.nebular.co.za) State ROUTING
  3653. 2024-03-22 07:53:30.944163 [DEBUG] mod_sofia.c:143 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA ROUTING
  3654. 2024-03-22 07:53:30.944163 [DEBUG] switch_ivr_originate.c:67 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  3655. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:643 (sofia/default/3242002977@legalaidsa.nebular.co.za) State ROUTING going to sleep
  3656. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 75 Tot 574976)
  3657. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:662 (sofia/default/3242002977@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  3658. 2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:662 (sofia/default/3242002977@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  3659. 2024-03-22 07:53:30.944163 [DEBUG] sofia.c:7084 Channel sofia/default/3242002977@legalaidsa.nebular.co.za entering state [calling][0]
  3660. 2024-03-22 07:53:31.004181 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [terminated][487]
  3661. 2024-03-22 07:53:31.004181 [NOTICE] sofia.c:8273 Hangup sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
  3662. 2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:712 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 ending bridge by request from read function
  3663. 2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0333942190@legalaidsa.nebular.co.za:5060]
  3664. 2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  3665. 2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0721916283]
  3666. 2024-03-22 07:53:31.004181 [NOTICE] switch_ivr_bridge.c:900 Hangup sofia/default/0721916283 [CS_EXCHANGE_MEDIA] [ORIGINATOR_CANCEL]
  3667. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721916283) State EXCHANGE_MEDIA going to sleep
  3668. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721916283) Running State Change CS_HANGUP (Cur 75 Tot 574976)
  3669. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0721916283) Callstate Change EARLY -> HANGUP
  3670. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721916283) State HANGUP
  3671. 2024-03-22 07:53:31.004181 [DEBUG] mod_sofia.c:432 sofia/default/0721916283 Overriding SIP cause 487 with 487 from the other leg
  3672. 2024-03-22 07:53:31.004181 [DEBUG] mod_sofia.c:438 Channel sofia/default/0721916283 hanging up, cause: ORIGINATOR_CANCEL
  3673. 2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0721916283 skip receive message [UNBRIDGE] (channel is hungup already)
  3674. 2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  3675. 2024-03-22 07:53:31.004181 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/0721916283
  3676. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_session.c:2815 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  3677. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  3678. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 75 Tot 574976)
  3679. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:60 sofia/default/0721916283 Standard HANGUP, cause: ORIGINATOR_CANCEL
  3680. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721916283) State HANGUP going to sleep
  3681. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0721916283) State Change CS_HANGUP -> CS_REPORTING
  3682. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721916283) Running State Change CS_REPORTING (Cur 75 Tot 574976)
  3683. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721916283) State REPORTING
  3684. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> HANGUP
  3685. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State HANGUP
  3686. 2024-03-22 07:53:31.004181 [DEBUG] mod_sofia.c:438 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 hanging up, cause: ORIGINATOR_CANCEL
  3687. 2024-03-22 07:53:31.004181 [INFO] mod_json_cdr.c:271 Process [403edfb6-e821-11ee-8e0a-d17fbcf33421.cdr.json]
  3688. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:60 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: ORIGINATOR_CANCEL
  3689. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  3690. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  3691. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 75 Tot 574976)
  3692. 2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State REPORTING
  3693. 2024-03-22 07:53:31.004181 [INFO] mod_json_cdr.c:271 Process [4033e20a-e821-11ee-8de7-d17fbcf33421.cdr.json]
  3694. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:174 sofia/default/0721916283 Standard REPORTING, cause: ORIGINATOR_CANCEL
  3695. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721916283) State REPORTING going to sleep
  3696. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0721916283) State Change CS_REPORTING -> CS_DESTROY
  3697. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_session.c:1665 Session 574968 (sofia/default/0721916283) Locked, Waiting on external entities
  3698. 2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1683 Session 574968 (sofia/default/0721916283) Ended
  3699. 2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0721916283 [CS_DESTROY]
  3700. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0721916283) Running State Change CS_DESTROY (Cur 74 Tot 574976)
  3701. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721916283) State DESTROY
  3702. 2024-03-22 07:53:31.026409 [DEBUG] mod_sofia.c:343 sofia/default/0721916283 SOFIA DESTROY
  3703. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:181 sofia/default/0721916283 Standard DESTROY
  3704. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721916283) State DESTROY going to sleep
  3705. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:174 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: ORIGINATOR_CANCEL
  3706. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  3707. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  3708. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_session.c:1665 Session 574967 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  3709. 2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1683 Session 574967 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Ended
  3710. 2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  3711. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 73 Tot 574976)
  3712. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State DESTROY
  3713. 2024-03-22 07:53:31.026409 [DEBUG] mod_sofia.c:343 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  3714. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:181 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard DESTROY
  3715. 2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  3716. 2024-03-22 07:53:31.224166 [DEBUG] sofia.c:7084 Channel sofia/default/3242002977@legalaidsa.nebular.co.za entering state [proceeding][180]
  3717. 2024-03-22 07:53:31.224166 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/3242002977@legalaidsa.nebular.co.za!
  3718. 2024-03-22 07:53:31.224166 [DEBUG] switch_channel.c:3346 (sofia/default/3242002977@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  3719. 2024-03-22 07:53:31.224166 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0640547054@41.160.32.115:5060!
  3720. 2024-03-22 07:53:31.264164 [DEBUG] switch_scheduler.c:144 Deleting task 232829 switch_ivr_schedule_hangup (403edfb6-e821-11ee-8e0a-d17fbcf33421)
  3721. 2024-03-22 07:53:32.884165 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [completing][200]
  3722. 2024-03-22 07:53:32.884165 [DEBUG] sofia.c:7094 Remote SDP:
  3723. v=0                                                                                                                                                                                                                
  3724. o=3cxPS 384064028672 457078472705 IN IP4 156.38.150.6                                                                                                                                                              
  3725. s=3cxPS Audio call                                                                                                                                                                                                
  3726. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  3727. t=0 0                                                                                                                                                                                                              
  3728. m=audio 10462 RTP/AVP 8 101                                                                                                                                                                                        
  3729. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3730. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3731.  
  3732. 2024-03-22 07:53:32.884165 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [ready][200]
  3733. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3734. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  3735. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  3736. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/6085507138@legalaidsa.nebular.co.za PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  3737. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_codec.c:111 sofia/default/6085507138@legalaidsa.nebular.co.za Original read codec set to PCMA:8
  3738. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  3739. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4767 sofia/default/6085507138@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  3740. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/6085507138@legalaidsa.nebular.co.za] 156.38.231.107 port 32062 -> 156.38.150.6 port 10462 codec: 8 ms: 20
  3741. 2024-03-22 07:53:32.904591 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  3742. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:7180 sofia/default/6085507138@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  3743. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:7187 sofia/default/6085507138@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  3744. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:7210 sofia/default/6085507138@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  3745. 2024-03-22 07:53:32.904591 [NOTICE] sofia.c:8218 Channel [sofia/default/6085507138@legalaidsa.nebular.co.za] has been answered
  3746. 2024-03-22 07:53:32.904591 [DEBUG] switch_channel.c:3773 (sofia/default/6085507138@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  3747. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0613423198@41.160.32.115:5060] 156.38.231.107 port 32134 -> 41.160.32.115 port 24782 codec: 8 ms: 20
  3748. 2024-03-22 07:53:32.904591 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  3749. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:7180 sofia/default/0613423198@41.160.32.115:5060 Set 2833 dtmf send payload to 116
  3750. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:7187 sofia/default/0613423198@41.160.32.115:5060 Set 2833 dtmf receive payload to 116
  3751. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:7210 sofia/default/0613423198@41.160.32.115:5060 Set rtp dtmf delay to 40
  3752. 2024-03-22 07:53:32.904591 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0613423198@41.160.32.115:5060:
  3753. v=0                                                                                                                                                                                                                
  3754. o=FreeSWITCH 1711061878 1711061879 IN IP4 156.38.231.107                                                                                                                                                          
  3755. s=FreeSWITCH                                                                                                                                                                                                      
  3756. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  3757. t=0 0                                                                                                                                                                                                              
  3758. m=audio 32134 RTP/AVP 8 116                                                                                                                                                                                        
  3759. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3760. a=rtpmap:116 telephone-event/8000                                                                                                                                                                                  
  3761. a=fmtp:116 0-16                                                                                                                                                                                                    
  3762. a=ptime:20                                                                                                                                                                                                        
  3763. a=sendrecv                                                                                                                                                                                                        
  3764.  
  3765. 2024-03-22 07:53:32.904591 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0613423198@41.160.32.115:5060] has been answered
  3766. 2024-03-22 07:53:32.904591 [DEBUG] switch_channel.c:3773 (sofia/default/0613423198@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  3767. 2024-03-22 07:53:32.904591 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [completed][200]
  3768. 2024-03-22 07:53:32.904591 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/6085507138@legalaidsa.nebular.co.za]
  3769. 2024-03-22 07:53:32.904591 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/6085507138@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  3770. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 73 Tot 574976)
  3771. 2024-03-22 07:53:32.904591 [DEBUG] switch_core_state_machine.c:653 (sofia/default/6085507138@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  3772. 2024-03-22 07:53:32.904591 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  3773. 2024-03-22 07:53:33.064196 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [ready][200]
  3774. 2024-03-22 07:53:33.084315 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  3775. 2024-03-22 07:53:33.104169 [DEBUG] switch_ivr_bridge.c:546 sofia/default/6085507138@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  3776. 2024-03-22 07:53:33.124173 [DEBUG] switch_ivr.c:623 sofia/default/6085507138@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  3777. EXECUTE sofia/default/6085507138@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  3778. 2024-03-22 07:53:33.124173 [DEBUG] switch_scheduler.c:249 Added task 232830 switch_ivr_schedule_hangup (44cbe970-e821-11ee-8e8c-d17fbcf33421) to run at 1711100013
  3779. 2024-03-22 07:53:33.184152 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10462 to 156.38.231.105:10462
  3780. 2024-03-22 07:53:34.304174 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [received][100]
  3781. 2024-03-22 07:53:34.304174 [DEBUG] sofia.c:7094 Remote SDP:
  3782. v=0                                                                                                                                                                                                                
  3783. o=3cxPS 61471719424 232347664387 IN IP4 156.38.150.6                                                                                                                                                              
  3784. s=3cxPS Audio call                                                                                                                                                                                                
  3785. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  3786. t=0 0                                                                                                                                                                                                              
  3787. m=audio 10376 RTP/AVP 8 101                                                                                                                                                                                        
  3788. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3789. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3790.  
  3791. 2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3792. 2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  3793. 2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  3794. 2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  3795. 2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4767 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  3796. 2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/7682330505@legalaidsa.nebular.co.za.
  3797. 2024-03-22 07:53:34.304174 [DEBUG] sofia.c:7999 Processing updated SDP
  3798. 2024-03-22 07:53:34.324160 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [completed][200]
  3799. 2024-03-22 07:53:34.344169 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [ready][200]
  3800. 2024-03-22 07:53:34.624173 [DEBUG] switch_ivr_menu.c:424 digits ''
  3801. 2024-03-22 07:53:34.624173 [DEBUG] switch_ivr_menu.c:513 Maximum timeouts
  3802. 2024-03-22 07:53:34.624173 [DEBUG] switch_ivr_menu.c:673 exit-sound '(null)'
  3803. EXECUTE sofia/default/0788023267@41.160.32.115:5060 lua(astpp/lib/pbx/astpp-failover_ivr_destination.lua)
  3804. 2024-03-22 07:53:34.624173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  3805. 2024-03-22 07:53:34.624173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  3806. 2024-03-22 07:53:34.704173 [WARNING] switch_cpp.cpp:1365 [ASTPP] This is last dispositions no_key_press This is No Answer Number : 145
  3807. 2024-03-22 07:53:34.704173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET multidomain] Query :SELECT username FROM sip_devices WHERE id = 145 limit 1
  3808. 2024-03-22 07:53:34.724209 [WARNING] switch_cpp.cpp:1365 [ASTPP]  Bridge no_answer_number : {sip_invite_params=user=LOCAL,ignore_early_media=true,absolute_codec_string=^^:G729:PCMU:PCMA}sofia/${sofia_profile_name}/5805@karlovac.nebular.co.za                                                                                                                                                                                    
  3809. EXECUTE sofia/default/0788023267@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,absolute_codec_string=^^:G729:PCMU:PCMA}sofia/default/5805@karlovac.nebular.co.za)
  3810. 2024-03-22 07:53:34.724209 [DEBUG] switch_channel.c:1823 (sofia/default/0788023267@41.160.32.115:5060) Callstate Change ACTIVE -> RING_WAIT
  3811. 2024-03-22 07:53:34.724209 [DEBUG] switch_channel.c:1250 sofia/default/0788023267@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[karlovac.nebular.co.za] to event
  3812. 2024-03-22 07:53:34.724209 [DEBUG] switch_channel.c:1250 sofia/default/0788023267@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[karlovac.nebular.co.za] to event
  3813. 2024-03-22 07:53:34.724209 [DEBUG] switch_channel.c:1250 sofia/default/0788023267@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  3814. 2024-03-22 07:53:34.724209 [DEBUG] switch_channel.c:1250 sofia/default/0788023267@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[10] to event
  3815. 2024-03-22 07:53:34.724209 [DEBUG] switch_channel.c:1250 sofia/default/0788023267@41.160.32.115:5060 EXPORTING[export_vars] [no_answer_number]=[145] to event
  3816. 2024-03-22 07:53:34.724209 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  3817. 2024-03-22 07:53:34.724209 [NOTICE] switch_channel.c:1104 New Channel sofia/default/5805@karlovac.nebular.co.za [48c173ec-e821-11ee-8ec5-d17fbcf33421]
  3818. 2024-03-22 07:53:34.724209 [DEBUG] mod_sofia.c:4819 (sofia/default/5805@karlovac.nebular.co.za) State Change CS_NEW -> CS_INIT
  3819. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5805@karlovac.nebular.co.za) Running State Change CS_INIT (Cur 74 Tot 574977)
  3820. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5805@karlovac.nebular.co.za) State INIT
  3821. 2024-03-22 07:53:34.724209 [DEBUG] mod_sofia.c:90 sofia/default/5805@karlovac.nebular.co.za SOFIA INIT
  3822. 2024-03-22 07:53:34.724209 [DEBUG] sofia_glue.c:1295 sofia/default/5805@karlovac.nebular.co.za sending invite version: 1.6.20  64bit
  3823. Local SDP:                                                                                                                                                                                                        
  3824. v=0                                                                                                                                                                                                                
  3825. o=FreeSWITCH 1711061272 1711061273 IN IP4 156.38.231.107                                                                                                                                                          
  3826. s=FreeSWITCH                                                                                                                                                                                                      
  3827. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  3828. t=0 0                                                                                                                                                                                                              
  3829. m=audio 32742 RTP/AVP 18 0 8 101                                                                                                                                                                                  
  3830. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  3831. a=fmtp:18 annexb=no                                                                                                                                                                                                
  3832. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  3833. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3834. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  3835. a=fmtp:101 0-16                                                                                                                                                                                                    
  3836. a=ptime:20                                                                                                                                                                                                        
  3837. a=sendrecv                                                                                                                                                                                                        
  3838.  
  3839. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:40 sofia/default/5805@karlovac.nebular.co.za Standard INIT
  3840. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:48 (sofia/default/5805@karlovac.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  3841. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5805@karlovac.nebular.co.za) State INIT going to sleep
  3842. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5805@karlovac.nebular.co.za) Running State Change CS_ROUTING (Cur 74 Tot 574977)
  3843. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5805@karlovac.nebular.co.za) State ROUTING
  3844. 2024-03-22 07:53:34.724209 [DEBUG] mod_sofia.c:143 sofia/default/5805@karlovac.nebular.co.za SOFIA ROUTING
  3845. 2024-03-22 07:53:34.724209 [DEBUG] switch_ivr_originate.c:67 (sofia/default/5805@karlovac.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  3846. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5805@karlovac.nebular.co.za) State ROUTING going to sleep
  3847. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5805@karlovac.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 74 Tot 574977)
  3848. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:662 (sofia/default/5805@karlovac.nebular.co.za) State CONSUME_MEDIA
  3849. 2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:662 (sofia/default/5805@karlovac.nebular.co.za) State CONSUME_MEDIA going to sleep
  3850. 2024-03-22 07:53:34.724209 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [calling][0]
  3851. 2024-03-22 07:53:34.824170 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [proceeding][180]
  3852. 2024-03-22 07:53:34.824170 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/5805@karlovac.nebular.co.za!
  3853. 2024-03-22 07:53:34.824170 [DEBUG] switch_channel.c:3346 (sofia/default/5805@karlovac.nebular.co.za) Callstate Change DOWN -> RINGING
  3854. 2024-03-22 07:53:34.844168 [DEBUG] switch_ivr_originate.c:1273 Raw Codec Activation Success L16@8000hz 1 channel 20ms
  3855. 2024-03-22 07:53:34.844168 [DEBUG] switch_core_codec.c:223 sofia/default/0788023267@41.160.32.115:5060 Push codec L16:100
  3856. 2024-03-22 07:53:34.844168 [DEBUG] switch_ivr_originate.c:1305 Play Ringback File [/var/www/html/astpp//upload/pbx/ThistreeRe_.wav]
  3857. 2024-03-22 07:53:34.844168 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [proceeding][180]
  3858. 2024-03-22 07:53:34.844168 [DEBUG] switch_core_file.c:342 File /var/www/html/astpp//upload/pbx/ThistreeRe_.wav sample rate 44100 doesn't match requested rate 8000
  3859. 2024-03-22 07:53:34.864161 [INFO] mod_com_g729.c:178 DECODER LICENSE ALLOCATED--->0x7feda82258f8 0x7feda8225900
  3860. 2024-03-22 07:53:34.864161 [INFO] mod_com_g729.c:185 DECODER CREATED------------->0x7feda82258f8 0x7feda8225900
  3861. 2024-03-22 07:53:34.944167 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [proceeding][180]
  3862. 2024-03-22 07:53:35.825247 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0728413043@41.160.32.115:5060 [496939ba-e821-11ee-8ec9-d17fbcf33421]
  3863. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_NEW (Cur 75 Tot 574978)
  3864. 2024-03-22 07:53:35.825247 [DEBUG] sofia.c:9873 sofia/default/0728413043@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  3865. 2024-03-22 07:53:35.825247 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  3866. 2024-03-22 07:53:35.825247 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [received][100]
  3867. 2024-03-22 07:53:35.825247 [DEBUG] sofia.c:7094 Remote SDP:
  3868. v=0                                                                                                                                                                                                                
  3869. o=HuaweiSoftX3000 32694569374566 32694569374566 IN IP4 41.160.32.115                                                                                                                                              
  3870. s=-                                                                                                                                                                                                                
  3871. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  3872. t=0 0                                                                                                                                                                                                              
  3873. m=audio 24786 RTP/AVP 18 8 0 96                                                                                                                                                                                    
  3874. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  3875. a=fmtp:18 annexb=no                                                                                                                                                                                                
  3876. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  3877. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  3878. a=rtpmap:96 telephone-event/8000                                                                                                                                                                                  
  3879. a=fmtp:96 0-15                                                                                                                                                                                                    
  3880. a=ptime:20                                                                                                                                                                                                        
  3881.  
  3882. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  3883. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  3884. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  3885. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  3886. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  3887. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  3888. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  3889. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  3890. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3891. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  3892. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  3893. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  3894. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  3895. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3896. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  3897. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  3898. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 96@8000
  3899. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0728413043@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  3900. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_codec.c:111 sofia/default/0728413043@41.160.32.115:5060 Original read codec set to G729:18
  3901. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 96@8000
  3902. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4767 sofia/default/0728413043@41.160.32.115:5060 Set 2833 dtmf send payload to 96 recv payload to 96
  3903. 2024-03-22 07:53:35.825247 [DEBUG] sofia.c:7507 (sofia/default/0728413043@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  3904. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0728413043@41.160.32.115:5060) State NEW
  3905. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_INIT (Cur 75 Tot 574978)
  3906. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0728413043@41.160.32.115:5060) State INIT
  3907. 2024-03-22 07:53:35.825247 [DEBUG] mod_sofia.c:90 sofia/default/0728413043@41.160.32.115:5060 SOFIA INIT
  3908. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:40 sofia/default/0728413043@41.160.32.115:5060 Standard INIT
  3909. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0728413043@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  3910. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0728413043@41.160.32.115:5060) State INIT going to sleep
  3911. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 75 Tot 574978)
  3912. 2024-03-22 07:53:35.825247 [DEBUG] switch_channel.c:2249 (sofia/default/0728413043@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  3913. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0728413043@41.160.32.115:5060) State ROUTING
  3914. 2024-03-22 07:53:35.825247 [DEBUG] mod_sofia.c:143 sofia/default/0728413043@41.160.32.115:5060 SOFIA ROUTING
  3915. 2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:236 sofia/default/0728413043@41.160.32.115:5060 Standard ROUTING
  3916. 2024-03-22 07:53:35.825247 [INFO] mod_dialplan_xml.c:637 Processing 0728413043 <0728413043>->D9570514479915 in context default
  3917. 2024-03-22 07:53:35.825247 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
  3918. 2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  3919. 2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  3920. 2024-03-22 07:53:35.825247 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  3921. 2024-03-22 07:53:35.825247 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570514479915
  3922. 2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570514479915' limit 1
  3923. 2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570514479915' AND status=0 limit 1
  3924. 2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570514479915' and status=0 LIMIT 1                                                                                                                                                                                                      
  3925. 2024-03-22 07:53:35.825247 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  3926. 2024-03-22 07:53:35.825247 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0728413043 / <null>
  3927. 2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570514479915" LIMIT 1                                                                                                                                                          
  3928. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [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="D9570514479915"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  3929. 2024-03-22 07:53:35.844329 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  3930. 2024-03-22 07:53:35.844329 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  3931. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  3932. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570514479915.*' OR blocked_patterns = '^D957051447991.*' OR blocked_patterns = '^D95705144799.*' OR blocked_patterns = '^D9570514479.*' OR blocked_patterns = '^D957051447.*' OR blocked_patterns = '^D95705144.*' OR blocked_patterns = '^D9570514.*' OR blocked_patterns = '^D957051.*' OR blocked_patterns = '^D95705.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  3933. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570514479915" AND (accountid = 0 OR status = 1) LIMIT 1
  3934. 2024-03-22 07:53:35.844329 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  3935. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  3936. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
  3937. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
  3938. 2024-03-22 07:53:35.844329 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570514479915
  3939. 2024-03-22 07:53:35.844329 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0514479915
  3940. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [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 = '^0514479915.*' OR patterns = '^051447991.*' OR patterns = '^05144799.*' OR patterns = '^0514479.*' OR patterns = '^051447.*' OR patterns = '^05144.*' OR patterns = '^0514.*' OR patterns = '^051.*' OR patterns = '^05.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  3941. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [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 ="0514479915" AND A.accountid = '3' limit 1                                                                                                                                                                          
  3942. 2024-03-22 07:53:35.844329 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0514479915
  3943. 2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [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 ="0514479915" LIMIT 1                                                                                                                                                              
  3944. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  3945. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0514479915' OR number = '051447991' OR number = '05144799' OR number = '0514479' OR number = '051447' OR number = '05144' OR number = '0514' OR number = '051' OR number = '05' OR number = '0' OR number ='--') OR (number = '0514479915*' OR number = '051447991*' OR number = '05144799*' OR number = '0514479*' OR number = '051447*' OR number = '05144*' OR number = '0514*' OR number = '051*' OR number = '05*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  3946. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  3947. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0514479915' OR routing_prefix = '051447991' OR routing_prefix = '05144799' OR routing_prefix = '0514479' OR routing_prefix = '051447' OR routing_prefix = '05144' OR routing_prefix = '0514' OR routing_prefix = '051' OR routing_prefix = '05' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  3948. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  3949. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  3950. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  3951. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  3952. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  3953. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  3954. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  3955. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  3956. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  3957. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  3958. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [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 ="0514479915" LIMIT 1                                                                                                                                                              
  3959. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  3960. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  3961. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8199
  3962. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  3963. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  3964. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  3965. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0514479915
  3966. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  3967. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  3968. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  3969. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  3970. 2024-03-22 07:53:35.864628 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  3971. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  3972. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  3973. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  3974. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  3975. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  3976. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  3977. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  3978. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  3979. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  3980. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  3981. 2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  3982. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  3983. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  3984. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  3985. 2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  3986. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0728413043
  3987. 2024-03-22 07:53:35.864628 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0728413043
  3988. 2024-03-22 07:53:35.864628 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27728413043
  3989. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  3990. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  3991. 2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  3992. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  3993. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [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="1730119070"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  3994. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1379 limit 1
  3995. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  3996. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  3997. 2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  3998. 2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  3999. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  4000. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  4001. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='1730119070' and uuid = '496939ba-e821-11ee-8ec9-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  4002. 2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='1730119070' order by id desc limit 1
  4003. 2024-03-22 07:53:35.886011 [DEBUG] switch_cpp.cpp:1365 [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="1730119070"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  4004. 2024-03-22 07:53:35.886011 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1379 limit 1
  4005. 2024-03-22 07:53:35.886011 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  4006. <document type="freeswitch/xml">                                                                                                                                                                                  
  4007. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  4008. <context name="default">                                                                                                                                                                                          
  4009. <extension name="0514479915">                                                                                                                                                                                      
  4010. <condition field="destination_number" expression="D9570514479915">                                                                                                                                                
  4011. <action application="set" data="effective_destination_number=0514479915"/>                                                                                                                                        
  4012. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  4013. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  4014. <action application="set" data="callstart=2024-03-22 07:53:35"/>                                                                                                                                                  
  4015. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  4016. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  4017. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  4018. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  4019. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  4020. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  4021. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  4022. <action application="set" data="accountname=default"/>                                                                                                                                                            
  4023. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  4024. <action application="set" data="origination_rates_did=ID:8199|CODE:^0514479915.*|DESTINATION:0514479915|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  4025. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  4026. <action application="set" data="original_caller_id_name=0728413043"/>                                                                                                                                              
  4027. <action application="set" data="effective_caller_id_name=27728413043"/>                                                                                                                                            
  4028. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  4029. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  4030. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  4031. <action application="export" data="presence_data=x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  4032. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  4033. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  4034. <action application="db" data="insert/pickup_any_group_${callgroup}/1730119070/${uuid}"/>                                                                                                                          
  4035. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  4036. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  4037. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  4038. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  4039. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  4040. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  4041. <action application="sleep" data="1000"/>                                                                                                                                                                          
  4042. <action application="ring_ready"/>                                                                                                                                                                                
  4043. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1730119070@legalaidsa.nebular.co.za^0514479915"/>                                                      
  4044. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  4045. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  4046. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  4047. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  4048. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  4049. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  4050. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  4051. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  4052. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  4053. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  4054. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  4055. <action application="set" data="sip_destination_number=1730119070"/>                                                                                                                                              
  4056. <action application="set" data="destination_number=0514479915"/>                                                                                                                                                  
  4057. <action application="set" data="did_number=0514479915"/>                                                                                                                                                          
  4058. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  4059. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  4060. <condition field="${cond(${user_data 1730119070@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  4061. <action application="answer"/>                                                                                                                                                                                    
  4062. <action application="export" data="voicemail_alternate_greet_id=0514479915"/>                                                                                                                                      
  4063. <action application="voicemail" data="default $${domain_name} 1730119070"/>                                                                                                                                        
  4064. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  4065. </condition>                                                                                                                                                                                                      
  4066. </condition>                                                                                                                                                                                                      
  4067. </extension>                                                                                                                                                                                                      
  4068. </context>                                                                                                                                                                                                        
  4069. </section>                                                                                                                                                                                                        
  4070. </document>                                                                                                                                                                                                        
  4071. 2024-03-22 07:53:35.886011 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
  4072. Dialplan: sofia/default/0728413043@41.160.32.115:5060 parsing [default->0514479915] continue=false
  4073. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Regex (PASS) [0514479915] destination_number(D9570514479915) =~ /D9570514479915/ break=on-false
  4074. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(effective_destination_number=0514479915)
  4075. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  4076. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  4077. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:35)
  4078. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  4079. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  4080. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(account_id=3)
  4081. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(parent_id=0)
  4082. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(entity_id=3)
  4083. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(call_processed=internal)
  4084. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(call_direction=inbound)
  4085. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(accountname=default)
  4086. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  4087. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(origination_rates_did=ID:8199|CODE:^0514479915.*|DESTINATION:0514479915|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  4088. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(origination_rates=0)
  4089. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(original_caller_id_name=0728413043)
  4090. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(effective_caller_id_name=27728413043)
  4091. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(receiver_accid=109)
  4092. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  4093. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  4094. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115)
  4095. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(call_type=5)
  4096. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(calltype=SIP-DID)
  4097. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/1730119070/${uuid})
  4098. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  4099. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  4100. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  4101. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  4102. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  4103. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  4104. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action sleep(1000)
  4105. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action ring_ready()
  4106. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1730119070@legalaidsa.nebular.co.za^0514479915)
  4107. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(on_busy_flag=1)
  4108. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(on_busy_destination=)
  4109. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(no_answer_flag=1)
  4110. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(no_answer_destination=)
  4111. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(not_register_flag=1)
  4112. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(not_register_destination=)
  4113. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(opensips_flag=0)
  4114. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  4115. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  4116. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(leg_timeout=20)
  4117. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(userinfo_id=109)
  4118. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(sip_destination_number=1730119070)
  4119. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(destination_number=0514479915)
  4120. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(did_number=0514479915)
  4121. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  4122. Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  4123. |--- Dialplan: Processing recursive conditions level:1 [0514479915_recur_1] require-nested=TRUE
  4124. |--- Dialplan: sofia/default/0728413043@41.160.32.115:5060 Regex (FAIL) [0514479915_recur_1] ${cond(${user_data 1730119070@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  4125. |--- Dialplan: sofia/default/0728413043@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  4126. 2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0728413043@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  4127. 2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0728413043@41.160.32.115:5060) State ROUTING going to sleep
  4128. 2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 75 Tot 574978)
  4129. 2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0728413043@41.160.32.115:5060) State EXECUTE
  4130. 2024-03-22 07:53:35.886011 [DEBUG] mod_sofia.c:198 sofia/default/0728413043@41.160.32.115:5060 SOFIA EXECUTE
  4131. 2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:328 sofia/default/0728413043@41.160.32.115:5060 Standard EXECUTE
  4132. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(effective_destination_number=0514479915)
  4133. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [effective_destination_number]=[0514479915]
  4134. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  4135. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  4136. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  4137. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  4138. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(callstart=2024-03-22 07:53:35)
  4139. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:35]
  4140. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(hangup_after_bridge=true)
  4141. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [hangup_after_bridge]=[true]
  4142. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(continue_on_fail=TRUE)
  4143. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  4144. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(account_id=3)
  4145. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [account_id]=[3]
  4146. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(parent_id=0)
  4147. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [parent_id]=[0]
  4148. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(entity_id=3)
  4149. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [entity_id]=[3]
  4150. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(call_processed=internal)
  4151. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [call_processed]=[internal]
  4152. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(call_direction=inbound)
  4153. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [call_direction]=[inbound]
  4154. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(accountname=default)
  4155. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [accountname]=[default]
  4156. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  4157. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  4158. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(origination_rates_did=ID:8199|CODE:^0514479915.*|DESTINATION:0514479915|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  4159. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [origination_rates_did]=[ID:8199|CODE:^0514479915.*|DESTINATION:0514479915|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  4160. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(origination_rates=0)
  4161. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [origination_rates]=[0]
  4162. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(original_caller_id_name=0728413043)
  4163. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [original_caller_id_name]=[0728413043]
  4164. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(effective_caller_id_name=27728413043)
  4165. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [effective_caller_id_name]=[27728413043]
  4166. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(receiver_accid=109)
  4167. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [receiver_accid]=[109]
  4168. EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  4169. 2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  4170. EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  4171. 2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  4172. EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115)
  4173. 2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115]
  4174. EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(call_type=5)
  4175. 2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  4176. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(calltype=SIP-DID)
  4177. 2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [calltype]=[SIP-DID]
  4178. EXECUTE sofia/default/0728413043@41.160.32.115:5060 db(insert/pickup_any_group_/1730119070/496939ba-e821-11ee-8ec9-d17fbcf33421)
  4179. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(dialed_extension=transfer_call)
  4180. 2024-03-22 07:53:35.924152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  4181. EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(dialed_extension=transfer_call)
  4182. 2024-03-22 07:53:35.924152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  4183. EXECUTE sofia/default/0728413043@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  4184. 2024-03-22 07:53:35.924152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  4185. EXECUTE sofia/default/0728413043@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  4186. 2024-03-22 07:53:35.924152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  4187. EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(hangup_after_bridge=true)
  4188. 2024-03-22 07:53:35.924152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [hangup_after_bridge]=[true]
  4189. EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  4190. 2024-03-22 07:53:35.924152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  4191. EXECUTE sofia/default/0728413043@41.160.32.115:5060 sleep(1000)
  4192. 2024-03-22 07:53:36.144158 [DEBUG] sofia.c:7084 Channel sofia/default/0640547054@41.160.32.115:5060 entering state [terminated][487]
  4193. 2024-03-22 07:53:36.144158 [NOTICE] sofia.c:8273 Hangup sofia/default/0640547054@41.160.32.115:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
  4194. 2024-03-22 07:53:36.144158 [NOTICE] switch_ivr_originate.c:3612 Hangup sofia/default/3242002977@legalaidsa.nebular.co.za [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
  4195. 2024-03-22 07:53:36.144158 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
  4196. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 75 Tot 574978)
  4197. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:850 (sofia/default/3242002977@legalaidsa.nebular.co.za) Callstate Change RINGING -> HANGUP
  4198. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3242002977@legalaidsa.nebular.co.za) State HANGUP
  4199. 2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:432 sofia/default/3242002977@legalaidsa.nebular.co.za Overriding SIP cause 487 with 487 from the other leg
  4200. 2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:438 Channel sofia/default/3242002977@legalaidsa.nebular.co.za hanging up, cause: ORIGINATOR_CANCEL
  4201. 2024-03-22 07:53:36.144158 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: ORIGINATOR_CANCEL
  4202. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_session.c:2815 sofia/default/0640547054@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  4203. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0640547054@41.160.32.115:5060) State EXECUTE going to sleep
  4204. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 75 Tot 574978)
  4205. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0640547054@41.160.32.115:5060) Callstate Change RINGING -> HANGUP
  4206. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0640547054@41.160.32.115:5060) State HANGUP
  4207. 2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:438 Channel sofia/default/0640547054@41.160.32.115:5060 hanging up, cause: ORIGINATOR_CANCEL
  4208. 2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/3242002977@legalaidsa.nebular.co.za
  4209. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:60 sofia/default/0640547054@41.160.32.115:5060 Standard HANGUP, cause: ORIGINATOR_CANCEL
  4210. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0640547054@41.160.32.115:5060) State HANGUP going to sleep
  4211. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  4212. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 75 Tot 574978)
  4213. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:60 sofia/default/3242002977@legalaidsa.nebular.co.za Standard HANGUP, cause: ORIGINATOR_CANCEL
  4214. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3242002977@legalaidsa.nebular.co.za) State HANGUP going to sleep
  4215. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:619 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  4216. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 75 Tot 574978)
  4217. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3242002977@legalaidsa.nebular.co.za) State REPORTING
  4218. 2024-03-22 07:53:36.144158 [INFO] mod_json_cdr.c:271 Process [4681e846-e821-11ee-8eba-d17fbcf33421.cdr.json]
  4219. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0640547054@41.160.32.115:5060) State REPORTING
  4220. 2024-03-22 07:53:36.144158 [INFO] mod_json_cdr.c:271 Process [45da2232-e821-11ee-8e92-d17fbcf33421.cdr.json]
  4221. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:174 sofia/default/3242002977@legalaidsa.nebular.co.za Standard REPORTING, cause: ORIGINATOR_CANCEL
  4222. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3242002977@legalaidsa.nebular.co.za) State REPORTING going to sleep
  4223. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:610 (sofia/default/3242002977@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  4224. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_session.c:1665 Session 574976 (sofia/default/3242002977@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  4225. 2024-03-22 07:53:36.144158 [NOTICE] switch_core_session.c:1683 Session 574976 (sofia/default/3242002977@legalaidsa.nebular.co.za) Ended
  4226. 2024-03-22 07:53:36.144158 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/3242002977@legalaidsa.nebular.co.za [CS_DESTROY]
  4227. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:741 (sofia/default/3242002977@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 74 Tot 574978)
  4228. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3242002977@legalaidsa.nebular.co.za) State DESTROY
  4229. 2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:343 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA DESTROY
  4230. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:181 sofia/default/3242002977@legalaidsa.nebular.co.za Standard DESTROY
  4231. 2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3242002977@legalaidsa.nebular.co.za) State DESTROY going to sleep
  4232. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:174 sofia/default/0640547054@41.160.32.115:5060 Standard REPORTING, cause: ORIGINATOR_CANCEL
  4233. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0640547054@41.160.32.115:5060) State REPORTING going to sleep
  4234. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0640547054@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  4235. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_session.c:1665 Session 574975 (sofia/default/0640547054@41.160.32.115:5060) Locked, Waiting on external entities
  4236. 2024-03-22 07:53:36.164154 [NOTICE] switch_core_session.c:1683 Session 574975 (sofia/default/0640547054@41.160.32.115:5060) Ended
  4237. 2024-03-22 07:53:36.164154 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0640547054@41.160.32.115:5060 [CS_DESTROY]
  4238. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0640547054@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 73 Tot 574978)
  4239. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0640547054@41.160.32.115:5060) State DESTROY
  4240. 2024-03-22 07:53:36.164154 [DEBUG] mod_sofia.c:343 sofia/default/0640547054@41.160.32.115:5060 SOFIA DESTROY
  4241. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:181 sofia/default/0640547054@41.160.32.115:5060 Standard DESTROY
  4242. 2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0640547054@41.160.32.115:5060) State DESTROY going to sleep
  4243. EXECUTE sofia/default/0728413043@41.160.32.115:5060 ring_ready()
  4244. 2024-03-22 07:53:36.924167 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0728413043@41.160.32.115:5060!
  4245. 2024-03-22 07:53:36.924167 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [early][180]
  4246. 2024-03-22 07:53:36.924167 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0728413043@41.160.32.115:5060!
  4247. EXECUTE sofia/default/0728413043@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/1730119070@legalaidsa.nebular.co.za^0514479915)
  4248. 2024-03-22 07:53:36.924167 [DEBUG] switch_channel.c:1250 sofia/default/0728413043@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  4249. 2024-03-22 07:53:36.924167 [DEBUG] switch_channel.c:1250 sofia/default/0728413043@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  4250. 2024-03-22 07:53:36.924167 [DEBUG] switch_channel.c:1250 sofia/default/0728413043@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  4251. 2024-03-22 07:53:36.924167 [DEBUG] switch_channel.c:1250 sofia/default/0728413043@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  4252. 2024-03-22 07:53:36.924167 [DEBUG] switch_channel.c:1250 sofia/default/0728413043@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  4253. 2024-03-22 07:53:36.924167 [DEBUG] switch_channel.c:1250 sofia/default/0728413043@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  4254. 2024-03-22 07:53:36.924167 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  4255. 2024-03-22 07:53:36.924167 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  4256. 2024-03-22 07:53:36.924167 [NOTICE] switch_channel.c:1104 New Channel sofia/default/1730119070@legalaidsa.nebular.co.za [4a128f4c-e821-11ee-8ef1-d17fbcf33421]
  4257. 2024-03-22 07:53:36.924167 [DEBUG] mod_sofia.c:4819 (sofia/default/1730119070@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  4258. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 74 Tot 574979)
  4259. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1730119070@legalaidsa.nebular.co.za) State INIT
  4260. 2024-03-22 07:53:36.924167 [DEBUG] mod_sofia.c:90 sofia/default/1730119070@legalaidsa.nebular.co.za SOFIA INIT
  4261. 2024-03-22 07:53:36.924167 [DEBUG] sofia_glue.c:1295 sofia/default/1730119070@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  4262. Local SDP:                                                                                                                                                                                                        
  4263. v=0                                                                                                                                                                                                                
  4264. o=FreeSWITCH 1711065534 1711065535 IN IP4 156.38.231.107                                                                                                                                                          
  4265. s=FreeSWITCH                                                                                                                                                                                                      
  4266. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  4267. t=0 0                                                                                                                                                                                                              
  4268. m=audio 28482 RTP/AVP 18 101                                                                                                                                                                                      
  4269. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  4270. a=fmtp:18 annexb=no                                                                                                                                                                                                
  4271. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4272. a=fmtp:101 0-16                                                                                                                                                                                                    
  4273. a=ptime:20                                                                                                                                                                                                        
  4274. a=sendrecv                                                                                                                                                                                                        
  4275.  
  4276. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:40 sofia/default/1730119070@legalaidsa.nebular.co.za Standard INIT
  4277. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1730119070@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  4278. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1730119070@legalaidsa.nebular.co.za) State INIT going to sleep
  4279. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 74 Tot 574979)
  4280. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1730119070@legalaidsa.nebular.co.za) State ROUTING
  4281. 2024-03-22 07:53:36.924167 [DEBUG] mod_sofia.c:143 sofia/default/1730119070@legalaidsa.nebular.co.za SOFIA ROUTING
  4282. 2024-03-22 07:53:36.924167 [DEBUG] switch_ivr_originate.c:67 (sofia/default/1730119070@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  4283. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1730119070@legalaidsa.nebular.co.za) State ROUTING going to sleep
  4284. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 74 Tot 574979)
  4285. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1730119070@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  4286. 2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1730119070@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  4287. 2024-03-22 07:53:36.924167 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [calling][0]
  4288. 2024-03-22 07:53:37.124188 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [proceeding][180]
  4289. 2024-03-22 07:53:37.124188 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/1730119070@legalaidsa.nebular.co.za!
  4290. 2024-03-22 07:53:37.124188 [DEBUG] switch_channel.c:3346 (sofia/default/1730119070@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  4291. 2024-03-22 07:53:37.124188 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0728413043@41.160.32.115:5060!
  4292. 2024-03-22 07:53:38.084247 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [4ac3b448-e821-11ee-8ef5-d17fbcf33421]
  4293. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 75 Tot 574980)
  4294. 2024-03-22 07:53:38.084247 [DEBUG] sofia.c:9873 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  4295. 2024-03-22 07:53:38.084247 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  4296. 2024-03-22 07:53:38.084247 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [received][100]
  4297. 2024-03-22 07:53:38.084247 [DEBUG] sofia.c:7094 Remote SDP:
  4298. v=0                                                                                                                                                                                                                
  4299. o=3cxPS 378124894208 16374562817 IN IP4 156.38.150.6                                                                                                                                                              
  4300. s=3cxPS Audio call                                                                                                                                                                                                
  4301. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  4302. t=0 0                                                                                                                                                                                                              
  4303. m=audio 10470 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  4304. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4305. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  4306. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  4307. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  4308. a=fmtp:18 annexb=no                                                                                                                                                                                                
  4309. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4310.  
  4311. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4312. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4313. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4314. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  4315. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4316. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4317. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4318. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4319. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4320. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  4321. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4322. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4323. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4324. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4325. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  4326. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  4327. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  4328. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  4329. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  4330. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  4331. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  4332. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0514479915@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  4333. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_codec.c:111 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  4334. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  4335. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4767 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  4336. 2024-03-22 07:53:38.084247 [DEBUG] sofia.c:7507 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  4337. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State NEW
  4338. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 75 Tot 574980)
  4339. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State INIT
  4340. 2024-03-22 07:53:38.084247 [DEBUG] mod_sofia.c:90 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA INIT
  4341. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:40 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard INIT
  4342. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  4343. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  4344. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 75 Tot 574980)
  4345. 2024-03-22 07:53:38.084247 [DEBUG] switch_channel.c:2249 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  4346. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State ROUTING
  4347. 2024-03-22 07:53:38.084247 [DEBUG] mod_sofia.c:143 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  4348. 2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:236 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard ROUTING
  4349. 2024-03-22 07:53:38.084247 [INFO] mod_dialplan_xml.c:637 Processing 0514479915 <0514479915>->0514924654 in context default
  4350. 2024-03-22 07:53:38.104157 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
  4351. 2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  4352. 2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  4353. 2024-03-22 07:53:38.104157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  4354. 2024-03-22 07:53:38.104157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0514924654
  4355. 2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0514924654' limit 1
  4356. 2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0514924654' AND status=0 limit 1
  4357. 2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0514924654' and status=0 LIMIT 1                                                                                                                                                                                                          
  4358. 2024-03-22 07:53:38.104157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  4359. 2024-03-22 07:53:38.104157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0514479915 / 0514479915
  4360. 2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [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 ="0514924654" LIMIT 1                                                                                                                                                              
  4361. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [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="0514924654"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  4362. 2024-03-22 07:53:38.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  4363. 2024-03-22 07:53:38.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  4364. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  4365. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0514924654.*' OR blocked_patterns = '^051492465.*' OR blocked_patterns = '^05149246.*' OR blocked_patterns = '^0514924.*' OR blocked_patterns = '^051492.*' OR blocked_patterns = '^05149.*' OR blocked_patterns = '^0514.*' OR blocked_patterns = '^051.*' OR blocked_patterns = '^05.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  4366. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0514924654" AND (accountid = 0 OR status = 1) LIMIT 1
  4367. 2024-03-22 07:53:38.124151 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  4368. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  4369. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0514924654
  4370. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0514924654
  4371. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [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 = '^0514924654.*' OR patterns = '^051492465.*' OR patterns = '^05149246.*' OR patterns = '^0514924.*' OR patterns = '^051492.*' OR patterns = '^05149.*' OR patterns = '^0514.*' OR patterns = '^051.*' OR patterns = '^05.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  4372. 2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [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 ="0514924654" AND A.accountid = '109' limit 1                                                                                                                                                                        
  4373. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0514924654
  4374. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [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 ="0514924654" LIMIT 1                                                                                                                                                              
  4375. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [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="0514924654"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  4376. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  4377. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0514924654' OR number = '051492465' OR number = '05149246' OR number = '0514924' OR number = '051492' OR number = '05149' OR number = '0514' OR number = '051' OR number = '05' OR number = '0' OR number ='--') OR (number = '0514924654*' OR number = '051492465*' OR number = '05149246*' OR number = '0514924*' OR number = '051492*' OR number = '05149*' OR number = '0514*' OR number = '051*' OR number = '05*' OR number = '0*' OR number ='--') OR (number = '0514479915' OR number = '051447991' OR number = '05144799' OR number = '0514479' OR number = '051447' OR number = '05144' OR number = '0514' OR number = '051' OR number = '05' OR number = '0' OR number ='--') OR (number = '0514479915*' OR number = '051447991*' OR number = '05144799*' OR number = '0514479*' OR number = '051447*' OR number = '05144*' OR number = '0514*' OR number = '051*' OR number = '05*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  4378. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  4379. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0514924654' OR routing_prefix = '051492465' OR routing_prefix = '05149246' OR routing_prefix = '0514924' OR routing_prefix = '051492' OR routing_prefix = '05149' OR routing_prefix = '0514' OR routing_prefix = '051' OR routing_prefix = '05' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  4380. 2024-03-22 07:53:38.144158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0514924654)!!!!
  4381. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27514924654
  4382. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27514924654' limit 1
  4383. 2024-03-22 07:53:38.144158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0514924654)!!!!
  4384. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  4385. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  4386. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  4387. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19925.8335
  4388. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  4389. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  4390. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  4391. 2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  4392. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4393. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4394. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4395. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4396. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4397. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4398. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4399. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4400. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4401. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4402. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4403. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  4404. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  4405. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  4406. 2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  4407. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0514924654.*' OR pattern = '^051492465.*' OR pattern = '^05149246.*' OR pattern = '^0514924.*' OR pattern = '^051492.*' OR pattern = '^05149.*' OR pattern = '^0514.*' OR pattern = '^051.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  4408. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  4409. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  4410. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2146841
  4411. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  4412. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  4413. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  4414. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - GEOGRAPHIC
  4415. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  4416. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  4417. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  4418. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  4419. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  4420. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19925.8335 balance Accountid 109 !!!
  4421. 2024-03-22 07:53:38.165025 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  4422. 2024-03-22 07:53:38.165025 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  4423. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  4424. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0514924654.*' OR blocked_patterns = '^051492465.*' OR blocked_patterns = '^05149246.*' OR blocked_patterns = '^0514924.*' OR blocked_patterns = '^051492.*' OR blocked_patterns = '^05149.*' OR blocked_patterns = '^0514.*' OR blocked_patterns = '^051.*' OR blocked_patterns = '^05.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  4425. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  4426. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  4427. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  4428. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9955.3483
  4429. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  4430. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  4431. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  4432. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  4433. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  4434. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0514924654.*' OR pattern = '^051492465.*' OR pattern = '^05149246.*' OR pattern = '^0514924.*' OR pattern = '^051492.*' OR pattern = '^05149.*' OR pattern = '^0514.*' OR pattern = '^051.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  4435. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  4436. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  4437. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1424969
  4438. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  4439. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  4440. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  4441. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D864-VODAGNP
  4442. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  4443. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  4444. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  4445. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  4446. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  4447. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9955.3483 balance Accountid 13 !!!
  4448. 2024-03-22 07:53:38.165025 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  4449. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2146841|CODE:^051492.*|DESTINATION:SOUTH AFRICA - VODACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1424969|CODE:^051492.*|DESTINATION:D864-VODAGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                            
  4450. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  4451. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  4452. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  4453. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2146841
  4454. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  4455. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  4456. 2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0514924654.*' OR pattern = '^051492465.*' OR pattern = '^05149246.*' OR pattern = '^0514924.*' OR pattern = '^051492.*' OR pattern = '^05149.*' OR pattern = '^0514.*' OR pattern = '^051.*' OR pattern = '^05.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  4457. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  4458. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  4459. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  4460. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  4461. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  4462. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  4463. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  4464. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  4465. 2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  4466. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  4467. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  4468. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  4469. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  4470. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  4471. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  4472. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  4473. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  4474. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  4475. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  4476. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  4477. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  4478. 2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  4479. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  4480. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  4481. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0514924654
  4482. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  4483. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [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 ="0514924654" LIMIT 1                                                                                                                                                              
  4484. 2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  4485. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  4486. <document type="freeswitch/xml">                                                                                                                                                                                  
  4487. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  4488. <context name="default">                                                                                                                                                                                          
  4489. <extension name="0514924654">                                                                                                                                                                                      
  4490. <condition field="destination_number" expression="0514924654">                                                                                                                                                    
  4491. <action application="set" data="effective_destination_number=0514924654"/>                                                                                                                                        
  4492. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  4493. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  4494. <action application="set" data="callstart=2024-03-22 07:53:38"/>                                                                                                                                                  
  4495. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  4496. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  4497. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  4498. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  4499. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  4500. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  4501. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  4502. <action application="set" data="accountname=default"/>                                                                                                                                                            
  4503. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  4504. <action application="set" data="origination_rates=ID:2146841|CODE:^051492.*|DESTINATION:SOUTH AFRICA - VODACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1424969|CODE:^051492.*|DESTINATION:D864-VODAGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>            
  4505. <action application="set" data="original_caller_id_name=0514479915"/>                                                                                                                                              
  4506. <action application="set" data="original_caller_id_number=0514479915"/>                                                                                                                                            
  4507. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  4508. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  4509. <action application="set" data="effective_caller_id_name=0514479915"/>                                                                                                                                            
  4510. <action application="set" data="effective_caller_id_number=0514479915"/>                                                                                                                                          
  4511. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  4512. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  4513. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  4514. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  4515. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  4516. <action application="set" data="force_trunk_flag=2146841"/>                                                                                                                                                        
  4517. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  4518. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  4519. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^051492.* // SOUTH AFRICA - VODACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^051492.* // D864-VODAGNP"/>                                                                                                                                                  
  4520. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0514924654;fs_path=sip:156.38.231.106:5060"/>                                              
  4521. </condition>                                                                                                                                                                                                      
  4522. </extension>                                                                                                                                                                                                      
  4523. </context>                                                                                                                                                                                                        
  4524. </section>                                                                                                                                                                                                        
  4525. </document>                                                                                                                                                                                                        
  4526. 2024-03-22 07:53:38.184169 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
  4527. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 parsing [default->0514924654] continue=false
  4528. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Regex (PASS) [0514924654] destination_number(0514924654) =~ /0514924654/ break=on-false
  4529. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0514924654)
  4530. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  4531. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  4532. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:38)
  4533. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  4534. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  4535. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  4536. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  4537. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  4538. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  4539. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  4540. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  4541. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  4542. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2146841|CODE:^051492.*|DESTINATION:SOUTH AFRICA - VODACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1424969|CODE:^051492.*|DESTINATION:D864-VODAGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                      
  4543. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0514479915)
  4544. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0514479915)
  4545. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  4546. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  4547. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0514479915)
  4548. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0514479915)
  4549. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  4550. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  4551. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  4552. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  4553. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  4554. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2146841)
  4555. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  4556. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  4557. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^051492.* // SOUTH AFRICA - VODACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^051492.* // D864-VODAGNP)                                                                                                        
  4558. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0514924654;fs_path=sip:156.38.231.106:5060)
  4559. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  4560. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  4561. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 75 Tot 574980)
  4562. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State EXECUTE
  4563. 2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:198 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  4564. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:328 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  4565. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0514924654)
  4566. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0514924654]
  4567. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  4568. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  4569. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  4570. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  4571. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:38)
  4572. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:53:38]
  4573. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  4574. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  4575. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  4576. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  4577. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(account_id=109)
  4578. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  4579. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  4580. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  4581. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  4582. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  4583. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  4584. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  4585. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  4586. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  4587. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(accountname=default)
  4588. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  4589. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  4590. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  4591. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2146841|CODE:^051492.*|DESTINATION:SOUTH AFRICA - VODACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1424969|CODE:^051492.*|DESTINATION:D864-VODAGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                              
  4592. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2146841|CODE:^051492.*|DESTINATION:SOUTH AFRICA - VODACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1424969|CODE:^051492.*|DESTINATION:D864-VODAGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                              
  4593. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0514479915)
  4594. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0514479915]
  4595. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0514479915)
  4596. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0514479915]
  4597. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  4598. 2024-03-22 07:53:38.184169 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  4599. 2024-03-22 07:53:38.184169 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 12/200
  4600. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  4601. 2024-03-22 07:53:38.184169 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  4602. 2024-03-22 07:53:38.184169 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 14/800
  4603. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0514479915)
  4604. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0514479915]
  4605. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0514479915)
  4606. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0514479915]
  4607. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  4608. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  4609. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  4610. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  4611. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  4612. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  4613. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  4614. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  4615. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  4616. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  4617. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2146841)
  4618. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2146841]
  4619. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  4620. 2024-03-22 07:53:38.184169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  4621. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(intcall=0)
  4622. 2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  4623. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^051492.* // SOUTH AFRICA - VODACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^051492.* // D864-VODAGNP)                                                                                                                
  4624. 2024-03-22 07:53:38.184169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^051492.* // SOUTH AFRICA - VODACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^051492.* // D864-VODAGNP]                                                                                                      
  4625. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0514924654;fs_path=sip:156.38.231.106:5060)
  4626. 2024-03-22 07:53:38.184169 [DEBUG] switch_channel.c:1250 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^051492.* // SOUTH AFRICA - VODACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^051492.* // D864-VODAGNP] to event                                    
  4627. 2024-03-22 07:53:38.184169 [DEBUG] switch_channel.c:1250 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^051492.* // SOUTH AFRICA - VODACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^051492.* // D864-VODAGNP] to event                                    
  4628. 2024-03-22 07:53:38.184169 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  4629. 2024-03-22 07:53:38.184169 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  4630. 2024-03-22 07:53:38.184169 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0514924654 [4ad36154-e821-11ee-8f18-d17fbcf33421]
  4631. 2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:4819 (sofia/default/0514924654) State Change CS_NEW -> CS_INIT
  4632. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514924654) Running State Change CS_INIT (Cur 76 Tot 574981)
  4633. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514924654) State INIT
  4634. 2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:90 sofia/default/0514924654 SOFIA INIT
  4635. 2024-03-22 07:53:38.184169 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0514924654
  4636. 2024-03-22 07:53:38.184169 [DEBUG] sofia_glue.c:1295 sofia/default/0514924654 sending invite version: 1.6.20  64bit
  4637. Local SDP:                                                                                                                                                                                                        
  4638. v=0                                                                                                                                                                                                                
  4639. o=FreeSWITCH 1711068522 1711068523 IN IP4 156.38.231.107                                                                                                                                                          
  4640. s=FreeSWITCH                                                                                                                                                                                                      
  4641. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  4642. t=0 0                                                                                                                                                                                                              
  4643. m=audio 25496 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  4644. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4645. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  4646. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  4647. a=fmtp:18 annexb=no                                                                                                                                                                                                
  4648. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4649. a=fmtp:101 0-16                                                                                                                                                                                                    
  4650. a=ptime:20                                                                                                                                                                                                        
  4651. a=sendrecv                                                                                                                                                                                                        
  4652.  
  4653. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:40 sofia/default/0514924654 Standard INIT
  4654. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0514924654) State Change CS_INIT -> CS_ROUTING
  4655. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514924654) State INIT going to sleep
  4656. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514924654) Running State Change CS_ROUTING (Cur 76 Tot 574981)
  4657. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514924654) State ROUTING
  4658. 2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:143 sofia/default/0514924654 SOFIA ROUTING
  4659. 2024-03-22 07:53:38.184169 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0514924654) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  4660. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514924654) State ROUTING going to sleep
  4661. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514924654) Running State Change CS_CONSUME_MEDIA (Cur 76 Tot 574981)
  4662. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0514924654) State CONSUME_MEDIA
  4663. 2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0514924654) State CONSUME_MEDIA going to sleep
  4664. 2024-03-22 07:53:38.184169 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [calling][0]
  4665. 2024-03-22 07:53:38.644169 [NOTICE] switch_channel.c:1104 New Channel sofia/default/5835@karlovac.nebular.co.za:5060 [4b18f43a-e821-11ee-8f1c-d17fbcf33421]
  4666. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_NEW (Cur 77 Tot 574982)
  4667. 2024-03-22 07:53:38.644169 [DEBUG] sofia.c:9873 sofia/default/5835@karlovac.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  4668. 2024-03-22 07:53:38.644169 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  4669. 2024-03-22 07:53:38.644169 [DEBUG] sofia.c:7084 Channel sofia/default/5835@karlovac.nebular.co.za:5060 entering state [received][100]
  4670. 2024-03-22 07:53:38.644169 [DEBUG] sofia.c:7094 Remote SDP:
  4671. v=0                                                                                                                                                                                                                
  4672. o=- 20004 20004 IN IP4 102.219.180.81                                                                                                                                                                              
  4673. s=SDP data                                                                                                                                                                                                        
  4674. i=(o=IN IP4 102.219.180.66)                                                                                                                                                                                        
  4675. c=IN IP4 102.219.180.81                                                                                                                                                                                            
  4676. t=0 0                                                                                                                                                                                                              
  4677. m=audio 38030 RTP/AVP 9 0 8 18 101                                                                                                                                                                                
  4678. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  4679. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  4680. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4681. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  4682. a=fmtp:18 annexb=no                                                                                                                                                                                                
  4683. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4684. a=fmtp:101 0-15                                                                                                                                                                                                    
  4685. a=ptime:20                                                                                                                                                                                                        
  4686.  
  4687. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4688. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4689. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4690. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4691. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4692. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4693. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4694. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4695. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  4696. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4697. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4698. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4699. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  4700. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4701. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  4702. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  4703. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  4704. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  4705. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  4706. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  4707. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  4708. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/5835@karlovac.nebular.co.za:5060 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  4709. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_codec.c:111 sofia/default/5835@karlovac.nebular.co.za:5060 Original read codec set to PCMU:0
  4710. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  4711. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4767 sofia/default/5835@karlovac.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  4712. 2024-03-22 07:53:38.644169 [DEBUG] sofia.c:7507 (sofia/default/5835@karlovac.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  4713. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:603 (sofia/default/5835@karlovac.nebular.co.za:5060) State NEW
  4714. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_INIT (Cur 77 Tot 574982)
  4715. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5835@karlovac.nebular.co.za:5060) State INIT
  4716. 2024-03-22 07:53:38.644169 [DEBUG] mod_sofia.c:90 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA INIT
  4717. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:40 sofia/default/5835@karlovac.nebular.co.za:5060 Standard INIT
  4718. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:48 (sofia/default/5835@karlovac.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  4719. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5835@karlovac.nebular.co.za:5060) State INIT going to sleep
  4720. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 77 Tot 574982)
  4721. 2024-03-22 07:53:38.644169 [DEBUG] switch_channel.c:2249 (sofia/default/5835@karlovac.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  4722. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5835@karlovac.nebular.co.za:5060) State ROUTING
  4723. 2024-03-22 07:53:38.644169 [DEBUG] mod_sofia.c:143 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA ROUTING
  4724. 2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:236 sofia/default/5835@karlovac.nebular.co.za:5060 Standard ROUTING
  4725. 2024-03-22 07:53:38.644169 [INFO] mod_dialplan_xml.c:637 Processing 5835 <5835>->*100 in context default
  4726. 2024-03-22 07:53:38.644169 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
  4727. 2024-03-22 07:53:38.644169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  4728. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  4729. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  4730. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] TRAN user_domain: karlovac.nebular.co.za
  4731. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] hunt_destination_number: *100
  4732. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  4733. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  4734. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Cod..transfer_blind_value*2
  4735. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code blind_value_two_digit*2
  4736. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code destination_number_two_digit*1
  4737. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code transfer_attended_two_digit*3
  4738. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : *100
  4739. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '*100' limit 1
  4740. 2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code Action :::: call_pickup_all_group
  4741. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [FEATURE_CODE] sip_number :5835
  4742. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_sip_accountcode] Query :SELECT sip_devices.accountid from sip_devices,domains where sip_devices.accountid=domains.accountid and sip_devices.username = '5835' and domain = 'karlovac.nebular.co.za' limit 1                                                                                                                                                      
  4743. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [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="5835"  AND domains.domain="karlovac.nebular.co.za" limit 1                                                                                              
  4744. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [FEATURE_CODE] sip_info id :1647
  4745. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [FEATURE_CODE] feature_code_action :call_pickup_all_group
  4746. 2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
  4747. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  4748. <document type="freeswitch/xml">                                                                                                                                                                                  
  4749. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  4750. <context name="default">                                                                                                                                                                                          
  4751. <extension name="\*100">                                                                                                                                                                                          
  4752. <condition field="destination_number" expression="\*100">                                                                                                                                                          
  4753. <action application="export" data="did_user_domain=karlovac.nebular.co.za"/>                                                                                                                                      
  4754. <action application="answer"/>                                                                                                                                                                                    
  4755. <action application="play_and_get_digits" data="2 15 3 7000 # /usr/share/freeswitch/sounds/en/us/callie/astpp-pbx-extension-number.wav /invalid.wav foobar \d+"/>                                                  
  4756. <action application="intercept" data="${db(select/pickup_any_group_${callgroup}/${foobar})}"/>                                                                                                                    
  4757. <action application="sleep" data="2000"/>                                                                                                                                                                          
  4758. </condition>                                                                                                                                                                                                      
  4759. </extension>                                                                                                                                                                                                      
  4760. </context>                                                                                                                                                                                                        
  4761. </section>                                                                                                                                                                                                        
  4762. </document>                                                                                                                                                                                                        
  4763. 2024-03-22 07:53:38.664159 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
  4764. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 parsing [default->\*100] continue=false
  4765. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Regex (PASS) [\*100] destination_number(*100) =~ /\*100/ break=on-false
  4766. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action export(did_user_domain=karlovac.nebular.co.za)
  4767. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action answer()
  4768. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action play_and_get_digits(2 15 3 7000 # /usr/share/freeswitch/sounds/en/us/callie/astpp-pbx-extension-number.wav /invalid.wav foobar \d+)
  4769. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action intercept(${db(select/pickup_any_group_${callgroup}/${foobar})})
  4770. Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action sleep(2000)
  4771. 2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:286 (sofia/default/5835@karlovac.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  4772. 2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5835@karlovac.nebular.co.za:5060) State ROUTING going to sleep
  4773. 2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 77 Tot 574982)
  4774. 2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:650 (sofia/default/5835@karlovac.nebular.co.za:5060) State EXECUTE
  4775. 2024-03-22 07:53:38.664159 [DEBUG] mod_sofia.c:198 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA EXECUTE
  4776. 2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:328 sofia/default/5835@karlovac.nebular.co.za:5060 Standard EXECUTE
  4777. EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 export(did_user_domain=karlovac.nebular.co.za)
  4778. 2024-03-22 07:53:38.664159 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[karlovac.nebular.co.za]
  4779. EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 answer()
  4780. 2024-03-22 07:53:38.664159 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/5835@karlovac.nebular.co.za:5060] 156.38.231.107 port 17406 -> 102.219.180.81 port 38030 codec: 0 ms: 20
  4781. 2024-03-22 07:53:38.684279 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  4782. 2024-03-22 07:53:38.684279 [DEBUG] switch_core_media.c:7180 sofia/default/5835@karlovac.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  4783. 2024-03-22 07:53:38.684279 [DEBUG] switch_core_media.c:7187 sofia/default/5835@karlovac.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  4784. 2024-03-22 07:53:38.684279 [DEBUG] switch_core_media.c:7210 sofia/default/5835@karlovac.nebular.co.za:5060 Set rtp dtmf delay to 40
  4785. 2024-03-22 07:53:38.684279 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/5835@karlovac.nebular.co.za:5060:
  4786. v=0                                                                                                                                                                                                                
  4787. o=FreeSWITCH 1711076612 1711076613 IN IP4 156.38.231.107                                                                                                                                                          
  4788. s=FreeSWITCH                                                                                                                                                                                                      
  4789. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  4790. t=0 0                                                                                                                                                                                                              
  4791. m=audio 17406 RTP/AVP 0 101                                                                                                                                                                                        
  4792. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  4793. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4794. a=fmtp:101 0-16                                                                                                                                                                                                    
  4795. a=ptime:20                                                                                                                                                                                                        
  4796. a=sendrecv                                                                                                                                                                                                        
  4797.  
  4798. 2024-03-22 07:53:38.684279 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/5835@karlovac.nebular.co.za:5060] has been answered
  4799. 2024-03-22 07:53:38.684279 [DEBUG] switch_channel.c:3773 (sofia/default/5835@karlovac.nebular.co.za:5060) Callstate Change RINGING -> ACTIVE
  4800. 2024-03-22 07:53:38.684279 [DEBUG] sofia.c:7084 Channel sofia/default/5835@karlovac.nebular.co.za:5060 entering state [completed][200]
  4801. EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 play_and_get_digits(2 15 3 7000 # /usr/share/freeswitch/sounds/en/us/callie/astpp-pbx-extension-number.wav /invalid.wav foobar \d+)
  4802. span style="color: goldenrod; font-weight: bold;"> 2024-03-22 07:53:38.684279 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-pbx-extension-number.wav sample rate 22050 doesn't match requested rate 8000
  4803. 2024-03-22 07:53:38.684279 [WARNING] switch_core_file.c:360 File has 2 channels, muxing to 1 channel will occur.
  4804. 2024-03-22 07:53:38.684279 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  4805. 2024-03-22 07:53:38.724177 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [proceeding][183]
  4806. 2024-03-22 07:53:38.724177 [DEBUG] sofia.c:7094 Remote SDP:
  4807. v=0                                                                                                                                                                                                                
  4808. o=HuaweiSoftX3000 137251253231303 137251253231303 IN IP4 41.160.32.115                                                                                                                                            
  4809. s=-                                                                                                                                                                                                                
  4810. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  4811. t=0 0                                                                                                                                                                                                              
  4812. m=audio 24788 RTP/AVP 8 101                                                                                                                                                                                        
  4813. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4814. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4815. a=fmtp:101 0-15                                                                                                                                                                                                    
  4816. a=ptime:20                                                                                                                                                                                                        
  4817.  
  4818. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4819. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  4820. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4821. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4822. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  4823. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0514924654 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  4824. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_codec.c:111 sofia/default/0514924654 Original read codec set to PCMA:8
  4825. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  4826. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4767 sofia/default/0514924654 Set 2833 dtmf send payload to 101 recv payload to 101
  4827. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0514924654] 156.38.231.107 port 25496 -> 41.160.32.115 port 24788 codec: 8 ms: 20
  4828. 2024-03-22 07:53:38.724177 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  4829. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:7180 sofia/default/0514924654 Set 2833 dtmf send payload to 101
  4830. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:7187 sofia/default/0514924654 Set 2833 dtmf receive payload to 101
  4831. 2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:7210 sofia/default/0514924654 Set rtp dtmf delay to 40
  4832. 2024-03-22 07:53:38.724177 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0514924654!
  4833. 2024-03-22 07:53:38.724177 [DEBUG] switch_channel.c:3474 (sofia/default/0514924654) Callstate Change DOWN -> EARLY
  4834. 2024-03-22 07:53:38.744162 [DEBUG] sofia.c:7084 Channel sofia/default/5835@karlovac.nebular.co.za:5060 entering state [ready][200]
  4835. 2024-03-22 07:53:38.744162 [INFO] switch_ivr_originate.c:3654 Sending early media
  4836. 2024-03-22 07:53:38.744162 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0514479915@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 23970 -> 156.38.150.6 port 10470 codec: 8 ms: 20
  4837. 2024-03-22 07:53:38.744162 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  4838. 2024-03-22 07:53:38.744162 [DEBUG] switch_core_media.c:7180 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  4839. 2024-03-22 07:53:38.744162 [DEBUG] switch_core_media.c:7187 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  4840. 2024-03-22 07:53:38.744162 [DEBUG] switch_core_media.c:7210 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  4841. 2024-03-22 07:53:38.744162 [DEBUG] mod_sofia.c:2364 Ring SDP:
  4842. v=0                                                                                                                                                                                                                
  4843. o=FreeSWITCH 1711070048 1711070049 IN IP4 156.38.231.107                                                                                                                                                          
  4844. s=FreeSWITCH                                                                                                                                                                                                      
  4845. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  4846. t=0 0                                                                                                                                                                                                              
  4847. m=audio 23970 RTP/AVP 8 101                                                                                                                                                                                        
  4848. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4849. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4850. a=fmtp:101 0-16                                                                                                                                                                                                    
  4851. a=ptime:20                                                                                                                                                                                                        
  4852. a=sendrecv                                                                                                                                                                                                        
  4853.  
  4854. 2024-03-22 07:53:38.744162 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0514479915@legalaidsa.nebular.co.za:5060!
  4855. 2024-03-22 07:53:38.744162 [DEBUG] switch_channel.c:3474 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  4856. 2024-03-22 07:53:38.744162 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0514924654]
  4857. 2024-03-22 07:53:38.744162 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [early][183]
  4858. 2024-03-22 07:53:38.744162 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0514924654) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  4859. 2024-03-22 07:53:38.744162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514924654) Running State Change CS_EXCHANGE_MEDIA (Cur 77 Tot 574982)
  4860. 2024-03-22 07:53:38.744162 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0514924654) State EXCHANGE_MEDIA
  4861. 2024-03-22 07:53:38.744162 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  4862. 2024-03-22 07:53:38.864225 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  4863. 2024-03-22 07:53:38.924172 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0514924654 Bridge execute app sched_hangup(+6000 normal_clearing)
  4864. 2024-03-22 07:53:38.944165 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  4865. 2024-03-22 07:53:38.944165 [DEBUG] switch_ivr.c:623 sofia/default/0514924654 Command Execute sched_hangup(+6000 normal_clearing)
  4866. EXECUTE sofia/default/0514924654 sched_hangup(+6000 normal_clearing)
  4867. 2024-03-22 07:53:38.944165 [DEBUG] switch_scheduler.c:249 Added task 232831 switch_ivr_schedule_hangup (4ad36154-e821-11ee-8f18-d17fbcf33421) to run at 1711100018
  4868. 2024-03-22 07:53:38.984174 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [proceeding][180]
  4869. 2024-03-22 07:53:38.984174 [DEBUG] sofia.c:7091 Duplicate SDP
  4870. v=0                                                                                                                                                                                                                
  4871. o=HuaweiSoftX3000 137251253231303 137251253231303 IN IP4 41.160.32.115                                                                                                                                            
  4872. s=-                                                                                                                                                                                                                
  4873. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  4874. t=0 0                                                                                                                                                                                                              
  4875. m=audio 24788 RTP/AVP 8 101                                                                                                                                                                                        
  4876. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4877. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4878. a=fmtp:101 0-15                                                                                                                                                                                                    
  4879. a=ptime:20                                                                                                                                                                                                        
  4880.  
  4881. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4882. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  4883. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4884. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4885. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  4886. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  4887. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4767 sofia/default/0514924654 Set 2833 dtmf send payload to 101 recv payload to 101
  4888. 2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0514924654.
  4889. 2024-03-22 07:53:39.024170 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10470 to 156.38.231.105:10470
  4890. 2024-03-22 07:53:39.944220 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0837792192@41.160.32.115:5060 [4bdf885c-e821-11ee-8f23-d17fbcf33421]
  4891. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_NEW (Cur 78 Tot 574983)
  4892. 2024-03-22 07:53:39.944220 [DEBUG] sofia.c:9873 sofia/default/0837792192@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  4893. 2024-03-22 07:53:39.944220 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  4894. 2024-03-22 07:53:39.944220 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [received][100]
  4895. 2024-03-22 07:53:39.944220 [DEBUG] sofia.c:7094 Remote SDP:
  4896. v=0                                                                                                                                                                                                                
  4897. o=HuaweiSoftX3000 43139929842571 43139929842571 IN IP4 41.160.32.115                                                                                                                                              
  4898. s=-                                                                                                                                                                                                                
  4899. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  4900. t=0 0                                                                                                                                                                                                              
  4901. m=audio 24790 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  4902. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  4903. a=fmtp:18 annexb=no                                                                                                                                                                                                
  4904. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  4905. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  4906. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  4907. a=fmtp:101 0-15                                                                                                                                                                                                    
  4908. a=ptime:20                                                                                                                                                                                                        
  4909.  
  4910. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  4911. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  4912. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  4913. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  4914. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  4915. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  4916. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4917. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4918. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4919. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  4920. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4921. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  4922. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  4923. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  4924. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4925. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  4926. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  4927. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0837792192@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  4928. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_codec.c:111 sofia/default/0837792192@41.160.32.115:5060 Original read codec set to G729:18
  4929. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  4930. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4767 sofia/default/0837792192@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  4931. 2024-03-22 07:53:39.944220 [DEBUG] sofia.c:7507 (sofia/default/0837792192@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  4932. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0837792192@41.160.32.115:5060) State NEW
  4933. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_INIT (Cur 78 Tot 574983)
  4934. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837792192@41.160.32.115:5060) State INIT
  4935. 2024-03-22 07:53:39.944220 [DEBUG] mod_sofia.c:90 sofia/default/0837792192@41.160.32.115:5060 SOFIA INIT
  4936. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:40 sofia/default/0837792192@41.160.32.115:5060 Standard INIT
  4937. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0837792192@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  4938. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837792192@41.160.32.115:5060) State INIT going to sleep
  4939. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 78 Tot 574983)
  4940. 2024-03-22 07:53:39.944220 [DEBUG] switch_channel.c:2249 (sofia/default/0837792192@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  4941. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837792192@41.160.32.115:5060) State ROUTING
  4942. 2024-03-22 07:53:39.944220 [DEBUG] mod_sofia.c:143 sofia/default/0837792192@41.160.32.115:5060 SOFIA ROUTING
  4943. 2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:236 sofia/default/0837792192@41.160.32.115:5060 Standard ROUTING
  4944. 2024-03-22 07:53:39.944220 [INFO] mod_dialplan_xml.c:637 Processing 0837792192 <0837792192>->D9570319188110 in context default
  4945. 2024-03-22 07:53:39.944220 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
  4946. 2024-03-22 07:53:39.944220 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  4947. 2024-03-22 07:53:39.944220 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  4948. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  4949. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570319188110
  4950. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570319188110' limit 1
  4951. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570319188110' AND status=0 limit 1
  4952. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570319188110' and status=0 LIMIT 1                                                                                                                                                                                                      
  4953. 2024-03-22 07:53:39.966197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  4954. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0837792192 / <null>
  4955. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570319188110" LIMIT 1                                                                                                                                                          
  4956. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [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="D9570319188110"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  4957. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  4958. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  4959. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  4960. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570319188110.*' OR blocked_patterns = '^D957031918811.*' OR blocked_patterns = '^D95703191881.*' OR blocked_patterns = '^D9570319188.*' OR blocked_patterns = '^D957031918.*' OR blocked_patterns = '^D95703191.*' OR blocked_patterns = '^D9570319.*' OR blocked_patterns = '^D957031.*' OR blocked_patterns = '^D95703.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  4961. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570319188110" AND (accountid = 0 OR status = 1) LIMIT 1
  4962. 2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  4963. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  4964. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570319188110
  4965. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570319188110
  4966. 2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570319188110
  4967. 2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0319188110
  4968. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [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 = '^0319188110.*' OR patterns = '^031918811.*' OR patterns = '^03191881.*' OR patterns = '^0319188.*' OR patterns = '^031918.*' OR patterns = '^03191.*' OR patterns = '^0319.*' OR patterns = '^031.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  4969. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [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 ="0319188110" AND A.accountid = '3' limit 1                                                                                                                                                                          
  4970. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0319188110
  4971. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [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 ="0319188110" LIMIT 1                                                                                                                                                              
  4972. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  4973. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0319188110' OR number = '031918811' OR number = '03191881' OR number = '0319188' OR number = '031918' OR number = '03191' OR number = '0319' OR number = '031' OR number = '03' OR number = '0' OR number ='--') OR (number = '0319188110*' OR number = '031918811*' OR number = '03191881*' OR number = '0319188*' OR number = '031918*' OR number = '03191*' OR number = '0319*' OR number = '031*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  4974. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  4975. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0319188110' OR routing_prefix = '031918811' OR routing_prefix = '03191881' OR routing_prefix = '0319188' OR routing_prefix = '031918' OR routing_prefix = '03191' OR routing_prefix = '0319' OR routing_prefix = '031' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  4976. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  4977. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  4978. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  4979. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  4980. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  4981. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  4982. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  4983. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  4984. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  4985. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  4986. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [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 ="0319188110" LIMIT 1                                                                                                                                                              
  4987. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  4988. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  4989. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 11518
  4990. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  4991. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  4992. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  4993. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0319188110
  4994. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  4995. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  4996. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  4997. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  4998. 2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  4999. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  5000. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  5001. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  5002. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  5003. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  5004. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  5005. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  5006. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  5007. 2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  5008. 2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  5009. 2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  5010. 2024-03-22 07:53:40.004250 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  5011. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  5012. 2024-03-22 07:53:40.004250 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  5013. 2024-03-22 07:53:40.004250 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  5014. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0837792192
  5015. 2024-03-22 07:53:40.004250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0837792192
  5016. 2024-03-22 07:53:40.004250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27837792192
  5017. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  5018. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  5019. 2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  5020. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  5021. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [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="1033021106"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  5022. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1453 limit 1
  5023. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  5024. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  5025. 2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  5026. 2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  5027. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  5028. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  5029. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='1033021106' and uuid = '4bdf885c-e821-11ee-8f23-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  5030. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='1033021106' order by id desc limit 1
  5031. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [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="1033021106"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  5032. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1453 limit 1
  5033. 2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  5034. <document type="freeswitch/xml">                                                                                                                                                                                  
  5035. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  5036. <context name="default">                                                                                                                                                                                          
  5037. <extension name="0319188110">                                                                                                                                                                                      
  5038. <condition field="destination_number" expression="D9570319188110">                                                                                                                                                
  5039. <action application="set" data="effective_destination_number=0319188110"/>                                                                                                                                        
  5040. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  5041. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  5042. <action application="set" data="callstart=2024-03-22 07:53:40"/>                                                                                                                                                  
  5043. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  5044. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  5045. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  5046. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  5047. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  5048. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  5049. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  5050. <action application="set" data="accountname=default"/>                                                                                                                                                            
  5051. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  5052. <action application="set" data="origination_rates_did=ID:11518|CODE:^0319188110.*|DESTINATION:0319188110|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                    
  5053. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  5054. <action application="set" data="original_caller_id_name=0837792192"/>                                                                                                                                              
  5055. <action application="set" data="effective_caller_id_name=27837792192"/>                                                                                                                                            
  5056. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  5057. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  5058. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  5059. <action application="export" data="presence_data=x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  5060. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  5061. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  5062. <action application="db" data="insert/pickup_any_group_${callgroup}/1033021106/${uuid}"/>                                                                                                                          
  5063. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  5064. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  5065. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  5066. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  5067. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  5068. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  5069. <action application="sleep" data="1000"/>                                                                                                                                                                          
  5070. <action application="ring_ready"/>                                                                                                                                                                                
  5071. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1033021106@legalaidsa.nebular.co.za^0319188110"/>                                                      
  5072. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  5073. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  5074. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  5075. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  5076. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  5077. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  5078. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  5079. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  5080. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  5081. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  5082. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  5083. <action application="set" data="sip_destination_number=1033021106"/>                                                                                                                                              
  5084. <action application="set" data="destination_number=0319188110"/>                                                                                                                                                  
  5085. <action application="set" data="did_number=0319188110"/>                                                                                                                                                          
  5086. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  5087. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  5088. <condition field="${cond(${user_data 1033021106@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  5089. <action application="answer"/>                                                                                                                                                                                    
  5090. <action application="export" data="voicemail_alternate_greet_id=0319188110"/>                                                                                                                                      
  5091. <action application="voicemail" data="default $${domain_name} 1033021106"/>                                                                                                                                        
  5092. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  5093. </condition>                                                                                                                                                                                                      
  5094. </condition>                                                                                                                                                                                                      
  5095. </extension>                                                                                                                                                                                                      
  5096. </context>                                                                                                                                                                                                        
  5097. </section>                                                                                                                                                                                                        
  5098. </document>                                                                                                                                                                                                        
  5099. 2024-03-22 07:53:40.004250 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
  5100. Dialplan: sofia/default/0837792192@41.160.32.115:5060 parsing [default->0319188110] continue=false
  5101. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Regex (PASS) [0319188110] destination_number(D9570319188110) =~ /D9570319188110/ break=on-false
  5102. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(effective_destination_number=0319188110)
  5103. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  5104. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  5105. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:40)
  5106. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  5107. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  5108. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(account_id=3)
  5109. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(parent_id=0)
  5110. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(entity_id=3)
  5111. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(call_processed=internal)
  5112. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(call_direction=inbound)
  5113. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(accountname=default)
  5114. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  5115. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(origination_rates_did=ID:11518|CODE:^0319188110.*|DESTINATION:0319188110|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  5116. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(origination_rates=0)
  5117. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(original_caller_id_name=0837792192)
  5118. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(effective_caller_id_name=27837792192)
  5119. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(receiver_accid=109)
  5120. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  5121. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  5122. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115)
  5123. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(call_type=5)
  5124. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(calltype=SIP-DID)
  5125. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/1033021106/${uuid})
  5126. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  5127. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  5128. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  5129. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  5130. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  5131. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  5132. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action sleep(1000)
  5133. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action ring_ready()
  5134. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1033021106@legalaidsa.nebular.co.za^0319188110)
  5135. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(on_busy_flag=1)
  5136. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(on_busy_destination=)
  5137. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(no_answer_flag=1)
  5138. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(no_answer_destination=)
  5139. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(not_register_flag=1)
  5140. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(not_register_destination=)
  5141. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(opensips_flag=0)
  5142. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  5143. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  5144. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(leg_timeout=20)
  5145. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(userinfo_id=109)
  5146. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(sip_destination_number=1033021106)
  5147. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(destination_number=0319188110)
  5148. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(did_number=0319188110)
  5149. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  5150. Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  5151. |--- Dialplan: Processing recursive conditions level:1 [0319188110_recur_1] require-nested=TRUE
  5152. |--- Dialplan: sofia/default/0837792192@41.160.32.115:5060 Regex (FAIL) [0319188110_recur_1] ${cond(${user_data 1033021106@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  5153. |--- Dialplan: sofia/default/0837792192@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  5154. 2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0837792192@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  5155. 2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837792192@41.160.32.115:5060) State ROUTING going to sleep
  5156. 2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 78 Tot 574983)
  5157. 2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0837792192@41.160.32.115:5060) State EXECUTE
  5158. 2024-03-22 07:53:40.044169 [DEBUG] mod_sofia.c:198 sofia/default/0837792192@41.160.32.115:5060 SOFIA EXECUTE
  5159. 2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:328 sofia/default/0837792192@41.160.32.115:5060 Standard EXECUTE
  5160. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(effective_destination_number=0319188110)
  5161. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [effective_destination_number]=[0319188110]
  5162. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  5163. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  5164. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  5165. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  5166. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(callstart=2024-03-22 07:53:40)
  5167. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:40]
  5168. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(hangup_after_bridge=true)
  5169. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [hangup_after_bridge]=[true]
  5170. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(continue_on_fail=TRUE)
  5171. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  5172. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(account_id=3)
  5173. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [account_id]=[3]
  5174. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(parent_id=0)
  5175. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [parent_id]=[0]
  5176. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(entity_id=3)
  5177. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [entity_id]=[3]
  5178. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(call_processed=internal)
  5179. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [call_processed]=[internal]
  5180. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(call_direction=inbound)
  5181. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [call_direction]=[inbound]
  5182. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(accountname=default)
  5183. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [accountname]=[default]
  5184. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  5185. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  5186. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(origination_rates_did=ID:11518|CODE:^0319188110.*|DESTINATION:0319188110|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                              
  5187. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [origination_rates_did]=[ID:11518|CODE:^0319188110.*|DESTINATION:0319188110|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  5188. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(origination_rates=0)
  5189. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [origination_rates]=[0]
  5190. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(original_caller_id_name=0837792192)
  5191. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [original_caller_id_name]=[0837792192]
  5192. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(effective_caller_id_name=27837792192)
  5193. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [effective_caller_id_name]=[27837792192]
  5194. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(receiver_accid=109)
  5195. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [receiver_accid]=[109]
  5196. EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  5197. 2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  5198. EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  5199. 2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  5200. EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115)
  5201. 2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115]
  5202. EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(call_type=5)
  5203. 2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  5204. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(calltype=SIP-DID)
  5205. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [calltype]=[SIP-DID]
  5206. EXECUTE sofia/default/0837792192@41.160.32.115:5060 db(insert/pickup_any_group_/1033021106/4bdf885c-e821-11ee-8f23-d17fbcf33421)
  5207. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(dialed_extension=transfer_call)
  5208. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  5209. EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(dialed_extension=transfer_call)
  5210. 2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  5211. EXECUTE sofia/default/0837792192@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  5212. 2024-03-22 07:53:40.044169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  5213. EXECUTE sofia/default/0837792192@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  5214. 2024-03-22 07:53:40.044169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  5215. EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(hangup_after_bridge=true)
  5216. 2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [hangup_after_bridge]=[true]
  5217. EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  5218. 2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  5219. EXECUTE sofia/default/0837792192@41.160.32.115:5060 sleep(1000)
  5220. 2024-03-22 07:53:40.284199 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0104988840@41.160.32.115:5060 [4c13c2e8-e821-11ee-8f46-d17fbcf33421]
  5221. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_NEW (Cur 79 Tot 574984)
  5222. 2024-03-22 07:53:40.284199 [DEBUG] sofia.c:9873 sofia/default/0104988840@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  5223. 2024-03-22 07:53:40.284199 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  5224. 2024-03-22 07:53:40.284199 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [received][100]
  5225. 2024-03-22 07:53:40.284199 [DEBUG] sofia.c:7094 Remote SDP:
  5226. v=0                                                                                                                                                                                                                
  5227. o=HuaweiSoftX3000 23112497341663 23112497341663 IN IP4 41.160.32.115                                                                                                                                              
  5228. s=-                                                                                                                                                                                                                
  5229. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  5230. t=0 0                                                                                                                                                                                                              
  5231. m=audio 24792 RTP/AVP 18 8 101                                                                                                                                                                                    
  5232. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  5233. a=fmtp:18 annexb=no                                                                                                                                                                                                
  5234. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  5235. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5236. a=fmtp:101 0-15                                                                                                                                                                                                    
  5237. a=ptime:20                                                                                                                                                                                                        
  5238.  
  5239. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  5240. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  5241. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  5242. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  5243. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  5244. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  5245. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  5246. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  5247. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  5248. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  5249. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  5250. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  5251. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0104988840@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  5252. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_codec.c:111 sofia/default/0104988840@41.160.32.115:5060 Original read codec set to G729:18
  5253. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  5254. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4767 sofia/default/0104988840@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  5255. 2024-03-22 07:53:40.284199 [DEBUG] sofia.c:7507 (sofia/default/0104988840@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  5256. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0104988840@41.160.32.115:5060) State NEW
  5257. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_INIT (Cur 79 Tot 574984)
  5258. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0104988840@41.160.32.115:5060) State INIT
  5259. 2024-03-22 07:53:40.284199 [DEBUG] mod_sofia.c:90 sofia/default/0104988840@41.160.32.115:5060 SOFIA INIT
  5260. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:40 sofia/default/0104988840@41.160.32.115:5060 Standard INIT
  5261. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0104988840@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  5262. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0104988840@41.160.32.115:5060) State INIT going to sleep
  5263. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 79 Tot 574984)
  5264. 2024-03-22 07:53:40.284199 [DEBUG] switch_channel.c:2249 (sofia/default/0104988840@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  5265. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0104988840@41.160.32.115:5060) State ROUTING
  5266. 2024-03-22 07:53:40.284199 [DEBUG] mod_sofia.c:143 sofia/default/0104988840@41.160.32.115:5060 SOFIA ROUTING
  5267. 2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:236 sofia/default/0104988840@41.160.32.115:5060 Standard ROUTING
  5268. 2024-03-22 07:53:40.284199 [INFO] mod_dialplan_xml.c:637 Processing 0104988840 <0104988840>->D9570119383547 in context default
  5269. 2024-03-22 07:53:40.284199 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
  5270. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  5271. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  5272. 2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  5273. 2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570119383547
  5274. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570119383547' limit 1
  5275. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570119383547' AND status=0 limit 1
  5276. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570119383547' and status=0 LIMIT 1                                                                                                                                                                                                      
  5277. 2024-03-22 07:53:40.304172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  5278. 2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0104988840 / <null>
  5279. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570119383547" LIMIT 1                                                                                                                                                          
  5280. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [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="D9570119383547"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  5281. 2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  5282. 2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  5283. 2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  5284. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570119383547.*' OR blocked_patterns = '^D957011938354.*' OR blocked_patterns = '^D95701193835.*' OR blocked_patterns = '^D9570119383.*' OR blocked_patterns = '^D957011938.*' OR blocked_patterns = '^D95701193.*' OR blocked_patterns = '^D9570119.*' OR blocked_patterns = '^D957011.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  5285. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570119383547" AND (accountid = 0 OR status = 1) LIMIT 1
  5286. 2024-03-22 07:53:40.324179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  5287. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  5288. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
  5289. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
  5290. 2024-03-22 07:53:40.324179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570119383547
  5291. 2024-03-22 07:53:40.324179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0119383547
  5292. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [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 = '^0119383547.*' OR patterns = '^011938354.*' OR patterns = '^01193835.*' OR patterns = '^0119383.*' OR patterns = '^011938.*' OR patterns = '^01193.*' OR patterns = '^0119.*' OR patterns = '^011.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  5293. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [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 ="0119383547" AND A.accountid = '3' limit 1                                                                                                                                                                          
  5294. 2024-03-22 07:53:40.324179 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0119383547
  5295. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [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 ="0119383547" LIMIT 1                                                                                                                                                              
  5296. 2024-03-22 07:53:40.324179 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  5297. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0119383547' OR number = '011938354' OR number = '01193835' OR number = '0119383' OR number = '011938' OR number = '01193' OR number = '0119' OR number = '011' OR number = '01' OR number = '0' OR number ='--') OR (number = '0119383547*' OR number = '011938354*' OR number = '01193835*' OR number = '0119383*' OR number = '011938*' OR number = '01193*' OR number = '0119*' OR number = '011*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  5298. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  5299. 2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0119383547' OR routing_prefix = '011938354' OR routing_prefix = '01193835' OR routing_prefix = '0119383' OR routing_prefix = '011938' OR routing_prefix = '01193' OR routing_prefix = '0119' OR routing_prefix = '011' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  5300. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  5301. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  5302. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  5303. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  5304. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  5305. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  5306. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  5307. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  5308. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  5309. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  5310. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [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 ="0119383547" LIMIT 1                                                                                                                                                              
  5311. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  5312. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  5313. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 7969
  5314. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  5315. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  5316. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  5317. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0119383547
  5318. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  5319. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  5320. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  5321. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  5322. 2024-03-22 07:53:40.344191 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  5323. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  5324. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  5325. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  5326. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  5327. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  5328. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  5329. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  5330. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  5331. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  5332. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  5333. 2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  5334. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  5335. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  5336. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  5337. 2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  5338. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0104988840
  5339. 2024-03-22 07:53:40.344191 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0104988840
  5340. 2024-03-22 07:53:40.344191 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27104988840
  5341. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  5342. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  5343. 2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  5344. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  5345. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [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="7106027339"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  5346. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1137 limit 1
  5347. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  5348. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  5349. 2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  5350. 2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  5351. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  5352. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  5353. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7106027339' and uuid = '4c13c2e8-e821-11ee-8f46-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  5354. 2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7106027339' order by id desc limit 1
  5355. 2024-03-22 07:53:40.364160 [DEBUG] switch_cpp.cpp:1365 [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="7106027339"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  5356. 2024-03-22 07:53:40.364160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1137 limit 1
  5357. 2024-03-22 07:53:40.364160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  5358. <document type="freeswitch/xml">                                                                                                                                                                                  
  5359. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  5360. <context name="default">                                                                                                                                                                                          
  5361. <extension name="0119383547">                                                                                                                                                                                      
  5362. <condition field="destination_number" expression="D9570119383547">                                                                                                                                                
  5363. <action application="set" data="effective_destination_number=0119383547"/>                                                                                                                                        
  5364. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  5365. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  5366. <action application="set" data="callstart=2024-03-22 07:53:40"/>                                                                                                                                                  
  5367. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  5368. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  5369. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  5370. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  5371. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  5372. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  5373. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  5374. <action application="set" data="accountname=default"/>                                                                                                                                                            
  5375. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  5376. <action application="set" data="origination_rates_did=ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  5377. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  5378. <action application="set" data="original_caller_id_name=0104988840"/>                                                                                                                                              
  5379. <action application="set" data="effective_caller_id_name=27104988840"/>                                                                                                                                            
  5380. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  5381. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  5382. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  5383. <action application="export" data="presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  5384. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  5385. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  5386. <action application="db" data="insert/pickup_any_group_${callgroup}/7106027339/${uuid}"/>                                                                                                                          
  5387. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  5388. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  5389. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  5390. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  5391. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  5392. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  5393. <action application="sleep" data="1000"/>                                                                                                                                                                          
  5394. <action application="ring_ready"/>                                                                                                                                                                                
  5395. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7106027339@legalaidsa.nebular.co.za^0119383547"/>                                                    
  5396. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  5397. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  5398. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  5399. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  5400. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  5401. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  5402. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  5403. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  5404. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  5405. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  5406. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  5407. <action application="set" data="sip_destination_number=7106027339"/>                                                                                                                                              
  5408. <action application="set" data="destination_number=0119383547"/>                                                                                                                                                  
  5409. <action application="set" data="did_number=0119383547"/>                                                                                                                                                          
  5410. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  5411. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  5412. <condition field="${cond(${user_data 7106027339@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  5413. <action application="answer"/>                                                                                                                                                                                    
  5414. <action application="export" data="voicemail_alternate_greet_id=0119383547"/>                                                                                                                                      
  5415. <action application="voicemail" data="default $${domain_name} 7106027339"/>                                                                                                                                        
  5416. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  5417. </condition>                                                                                                                                                                                                      
  5418. </condition>                                                                                                                                                                                                      
  5419. </extension>                                                                                                                                                                                                      
  5420. </context>                                                                                                                                                                                                        
  5421. </section>                                                                                                                                                                                                        
  5422. </document>                                                                                                                                                                                                        
  5423. 2024-03-22 07:53:40.364160 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
  5424. Dialplan: sofia/default/0104988840@41.160.32.115:5060 parsing [default->0119383547] continue=false
  5425. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Regex (PASS) [0119383547] destination_number(D9570119383547) =~ /D9570119383547/ break=on-false
  5426. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(effective_destination_number=0119383547)
  5427. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  5428. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  5429. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:40)
  5430. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  5431. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  5432. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(account_id=3)
  5433. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(parent_id=0)
  5434. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(entity_id=3)
  5435. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(call_processed=internal)
  5436. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(call_direction=inbound)
  5437. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(accountname=default)
  5438. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  5439. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(origination_rates_did=ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  5440. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(origination_rates=0)
  5441. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(original_caller_id_name=0104988840)
  5442. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(effective_caller_id_name=27104988840)
  5443. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(receiver_accid=109)
  5444. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  5445. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  5446. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115)
  5447. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(call_type=5)
  5448. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(calltype=SIP-DID)
  5449. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7106027339/${uuid})
  5450. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  5451. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  5452. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  5453. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  5454. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  5455. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  5456. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action sleep(1000)
  5457. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action ring_ready()
  5458. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7106027339@legalaidsa.nebular.co.za^0119383547)
  5459. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(on_busy_flag=1)
  5460. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(on_busy_destination=)
  5461. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(no_answer_flag=1)
  5462. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(no_answer_destination=)
  5463. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(not_register_flag=1)
  5464. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(not_register_destination=)
  5465. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(opensips_flag=0)
  5466. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  5467. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  5468. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(leg_timeout=20)
  5469. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(userinfo_id=109)
  5470. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(sip_destination_number=7106027339)
  5471. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(destination_number=0119383547)
  5472. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(did_number=0119383547)
  5473. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  5474. Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  5475. |--- Dialplan: Processing recursive conditions level:1 [0119383547_recur_1] require-nested=TRUE
  5476. |--- Dialplan: sofia/default/0104988840@41.160.32.115:5060 Regex (FAIL) [0119383547_recur_1] ${cond(${user_data 7106027339@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  5477. |--- Dialplan: sofia/default/0104988840@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  5478. 2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0104988840@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  5479. 2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0104988840@41.160.32.115:5060) State ROUTING going to sleep
  5480. 2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 79 Tot 574984)
  5481. 2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0104988840@41.160.32.115:5060) State EXECUTE
  5482. 2024-03-22 07:53:40.384158 [DEBUG] mod_sofia.c:198 sofia/default/0104988840@41.160.32.115:5060 SOFIA EXECUTE
  5483. 2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:328 sofia/default/0104988840@41.160.32.115:5060 Standard EXECUTE
  5484. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(effective_destination_number=0119383547)
  5485. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [effective_destination_number]=[0119383547]
  5486. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  5487. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  5488. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  5489. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  5490. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(callstart=2024-03-22 07:53:40)
  5491. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:40]
  5492. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(hangup_after_bridge=true)
  5493. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [hangup_after_bridge]=[true]
  5494. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(continue_on_fail=TRUE)
  5495. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  5496. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(account_id=3)
  5497. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [account_id]=[3]
  5498. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(parent_id=0)
  5499. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [parent_id]=[0]
  5500. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(entity_id=3)
  5501. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [entity_id]=[3]
  5502. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(call_processed=internal)
  5503. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [call_processed]=[internal]
  5504. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(call_direction=inbound)
  5505. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [call_direction]=[inbound]
  5506. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(accountname=default)
  5507. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [accountname]=[default]
  5508. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  5509. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  5510. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(origination_rates_did=ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  5511. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [origination_rates_did]=[ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  5512. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(origination_rates=0)
  5513. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [origination_rates]=[0]
  5514. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(original_caller_id_name=0104988840)
  5515. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [original_caller_id_name]=[0104988840]
  5516. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(effective_caller_id_name=27104988840)
  5517. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [effective_caller_id_name]=[27104988840]
  5518. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(receiver_accid=109)
  5519. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [receiver_accid]=[109]
  5520. EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  5521. 2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  5522. EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  5523. 2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  5524. EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115)
  5525. 2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115]
  5526. EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(call_type=5)
  5527. 2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  5528. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(calltype=SIP-DID)
  5529. 2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [calltype]=[SIP-DID]
  5530. EXECUTE sofia/default/0104988840@41.160.32.115:5060 db(insert/pickup_any_group_/7106027339/4c13c2e8-e821-11ee-8f46-d17fbcf33421)
  5531. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(dialed_extension=transfer_call)
  5532. 2024-03-22 07:53:40.404169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  5533. EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(dialed_extension=transfer_call)
  5534. 2024-03-22 07:53:40.404169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  5535. EXECUTE sofia/default/0104988840@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  5536. 2024-03-22 07:53:40.404169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  5537. EXECUTE sofia/default/0104988840@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  5538. 2024-03-22 07:53:40.404169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  5539. EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(hangup_after_bridge=true)
  5540. 2024-03-22 07:53:40.404169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [hangup_after_bridge]=[true]
  5541. EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  5542. 2024-03-22 07:53:40.404169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  5543. EXECUTE sofia/default/0104988840@41.160.32.115:5060 sleep(1000)
  5544. EXECUTE sofia/default/0837792192@41.160.32.115:5060 ring_ready()
  5545. 2024-03-22 07:53:41.044198 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0837792192@41.160.32.115:5060!
  5546. 2024-03-22 07:53:41.044198 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [early][180]
  5547. 2024-03-22 07:53:41.044198 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0837792192@41.160.32.115:5060!
  5548. EXECUTE sofia/default/0837792192@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/1033021106@legalaidsa.nebular.co.za^0319188110)
  5549. 2024-03-22 07:53:41.044198 [DEBUG] switch_channel.c:1250 sofia/default/0837792192@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  5550. 2024-03-22 07:53:41.044198 [DEBUG] switch_channel.c:1250 sofia/default/0837792192@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  5551. 2024-03-22 07:53:41.044198 [DEBUG] switch_channel.c:1250 sofia/default/0837792192@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  5552. 2024-03-22 07:53:41.044198 [DEBUG] switch_channel.c:1250 sofia/default/0837792192@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  5553. 2024-03-22 07:53:41.044198 [DEBUG] switch_channel.c:1250 sofia/default/0837792192@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  5554. 2024-03-22 07:53:41.044198 [DEBUG] switch_channel.c:1250 sofia/default/0837792192@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  5555. 2024-03-22 07:53:41.044198 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  5556. 2024-03-22 07:53:41.044198 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  5557. 2024-03-22 07:53:41.064368 [NOTICE] switch_channel.c:1104 New Channel sofia/default/1033021106@legalaidsa.nebular.co.za [4c888538-e821-11ee-8f6e-d17fbcf33421]
  5558. 2024-03-22 07:53:41.064368 [DEBUG] mod_sofia.c:4819 (sofia/default/1033021106@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  5559. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 80 Tot 574985)
  5560. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1033021106@legalaidsa.nebular.co.za) State INIT
  5561. 2024-03-22 07:53:41.064368 [DEBUG] mod_sofia.c:90 sofia/default/1033021106@legalaidsa.nebular.co.za SOFIA INIT
  5562. 2024-03-22 07:53:41.064368 [DEBUG] sofia_glue.c:1295 sofia/default/1033021106@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  5563. Local SDP:                                                                                                                                                                                                        
  5564. v=0                                                                                                                                                                                                                
  5565. o=FreeSWITCH 1711062683 1711062684 IN IP4 156.38.231.107                                                                                                                                                          
  5566. s=FreeSWITCH                                                                                                                                                                                                      
  5567. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  5568. t=0 0                                                                                                                                                                                                              
  5569. m=audio 31338 RTP/AVP 18 101                                                                                                                                                                                      
  5570. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  5571. a=fmtp:18 annexb=no                                                                                                                                                                                                
  5572. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5573. a=fmtp:101 0-16                                                                                                                                                                                                    
  5574. a=ptime:20                                                                                                                                                                                                        
  5575. a=sendrecv                                                                                                                                                                                                        
  5576.  
  5577. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:40 sofia/default/1033021106@legalaidsa.nebular.co.za Standard INIT
  5578. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1033021106@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  5579. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1033021106@legalaidsa.nebular.co.za) State INIT going to sleep
  5580. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 80 Tot 574985)
  5581. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1033021106@legalaidsa.nebular.co.za) State ROUTING
  5582. 2024-03-22 07:53:41.064368 [DEBUG] mod_sofia.c:143 sofia/default/1033021106@legalaidsa.nebular.co.za SOFIA ROUTING
  5583. 2024-03-22 07:53:41.064368 [DEBUG] switch_ivr_originate.c:67 (sofia/default/1033021106@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  5584. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1033021106@legalaidsa.nebular.co.za) State ROUTING going to sleep
  5585. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 80 Tot 574985)
  5586. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1033021106@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  5587. 2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1033021106@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  5588. 2024-03-22 07:53:41.064368 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [calling][0]
  5589. 2024-03-22 07:53:41.304155 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [proceeding][180]
  5590. 2024-03-22 07:53:41.304155 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/1033021106@legalaidsa.nebular.co.za!
  5591. 2024-03-22 07:53:41.304155 [DEBUG] switch_channel.c:3346 (sofia/default/1033021106@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  5592. 2024-03-22 07:53:41.324170 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0837792192@41.160.32.115:5060!
  5593. EXECUTE sofia/default/0104988840@41.160.32.115:5060 ring_ready()
  5594. 2024-03-22 07:53:41.404185 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0104988840@41.160.32.115:5060!
  5595. 2024-03-22 07:53:41.404185 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [early][180]
  5596. 2024-03-22 07:53:41.404185 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0104988840@41.160.32.115:5060!
  5597. EXECUTE sofia/default/0104988840@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/default/7106027339@legalaidsa.nebular.co.za^0119383547)
  5598. 2024-03-22 07:53:41.404185 [DEBUG] switch_channel.c:1250 sofia/default/0104988840@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  5599. 2024-03-22 07:53:41.404185 [DEBUG] switch_channel.c:1250 sofia/default/0104988840@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  5600. 2024-03-22 07:53:41.404185 [DEBUG] switch_channel.c:1250 sofia/default/0104988840@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  5601. 2024-03-22 07:53:41.404185 [DEBUG] switch_channel.c:1250 sofia/default/0104988840@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  5602. 2024-03-22 07:53:41.404185 [DEBUG] switch_channel.c:1250 sofia/default/0104988840@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  5603. 2024-03-22 07:53:41.404185 [DEBUG] switch_channel.c:1250 sofia/default/0104988840@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  5604. 2024-03-22 07:53:41.404185 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  5605. 2024-03-22 07:53:41.404185 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  5606. 2024-03-22 07:53:41.404185 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7106027339@legalaidsa.nebular.co.za [4cbe3c3c-e821-11ee-8f77-d17fbcf33421]
  5607. 2024-03-22 07:53:41.404185 [DEBUG] mod_sofia.c:4819 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  5608. 2024-03-22 07:53:41.404185 [DEBUG] switch_ivr_originate.c:2963 sofia/default/7106027339@legalaidsa.nebular.co.za Setting leg timeout to 30
  5609. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 81 Tot 574986)
  5610. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7106027339@legalaidsa.nebular.co.za) State INIT
  5611. 2024-03-22 07:53:41.404185 [DEBUG] mod_sofia.c:90 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA INIT
  5612. 2024-03-22 07:53:41.404185 [DEBUG] sofia_glue.c:1295 sofia/default/7106027339@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  5613. Local SDP:                                                                                                                                                                                                        
  5614. v=0                                                                                                                                                                                                                
  5615. o=FreeSWITCH 1711068393 1711068394 IN IP4 156.38.231.107                                                                                                                                                          
  5616. s=FreeSWITCH                                                                                                                                                                                                      
  5617. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  5618. t=0 0                                                                                                                                                                                                              
  5619. m=audio 25628 RTP/AVP 18 101                                                                                                                                                                                      
  5620. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  5621. a=fmtp:18 annexb=no                                                                                                                                                                                                
  5622. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5623. a=fmtp:101 0-16                                                                                                                                                                                                    
  5624. a=ptime:20                                                                                                                                                                                                        
  5625. a=sendrecv                                                                                                                                                                                                        
  5626.  
  5627. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:40 sofia/default/7106027339@legalaidsa.nebular.co.za Standard INIT
  5628. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  5629. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7106027339@legalaidsa.nebular.co.za) State INIT going to sleep
  5630. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 81 Tot 574986)
  5631. 2024-03-22 07:53:41.404185 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [calling][0]
  5632. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7106027339@legalaidsa.nebular.co.za) State ROUTING
  5633. 2024-03-22 07:53:41.404185 [DEBUG] mod_sofia.c:143 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA ROUTING
  5634. 2024-03-22 07:53:41.404185 [DEBUG] switch_ivr_originate.c:67 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  5635. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7106027339@legalaidsa.nebular.co.za) State ROUTING going to sleep
  5636. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 81 Tot 574986)
  5637. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7106027339@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  5638. 2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7106027339@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  5639. 2024-03-22 07:53:41.684163 [NOTICE] sofia.c:1012 Hangup sofia/default/Anonymous@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  5640. 2024-03-22 07:53:41.684163 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [proceeding][180]
  5641. 2024-03-22 07:53:41.684163 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7106027339@legalaidsa.nebular.co.za!
  5642. 2024-03-22 07:53:41.684163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/Anonymous@41.160.32.115:5060]
  5643. 2024-03-22 07:53:41.684163 [DEBUG] switch_channel.c:3346 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  5644. 2024-03-22 07:53:41.684163 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0104988840@41.160.32.115:5060!
  5645. 2024-03-22 07:53:41.704165 [DEBUG] switch_ivr_bridge.c:706 sofia/default/Anonymous@41.160.32.115:5060 ending bridge by request from write function
  5646. 2024-03-22 07:53:41.704165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1728936062@legalaidsa.nebular.co.za]
  5647. 2024-03-22 07:53:41.704165 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/1728936062@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  5648. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1728936062@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  5649. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1728936062@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 81 Tot 574986)
  5650. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1728936062@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  5651. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1728936062@legalaidsa.nebular.co.za) State HANGUP
  5652. 2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:432 sofia/default/1728936062@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  5653. 2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:438 Channel sofia/default/1728936062@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  5654. 2024-03-22 07:53:41.704165 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/1728936062@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  5655. 2024-03-22 07:53:41.704165 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  5656. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_session.c:2815 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  5657. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:650 (sofia/default/Anonymous@41.160.32.115:5060) State EXECUTE going to sleep
  5658. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 81 Tot 574986)
  5659. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:850 (sofia/default/Anonymous@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  5660. 2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/1728936062@legalaidsa.nebular.co.za
  5661. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/Anonymous@41.160.32.115:5060) State HANGUP
  5662. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:60 sofia/default/1728936062@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  5663. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1728936062@legalaidsa.nebular.co.za) State HANGUP going to sleep
  5664. 2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:438 Channel sofia/default/Anonymous@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  5665. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:619 (sofia/default/1728936062@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  5666. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1728936062@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 81 Tot 574986)
  5667. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1728936062@legalaidsa.nebular.co.za) State REPORTING
  5668. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:60 sofia/default/Anonymous@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  5669. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/Anonymous@41.160.32.115:5060) State HANGUP going to sleep
  5670. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:619 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  5671. 2024-03-22 07:53:41.704165 [INFO] mod_json_cdr.c:271 Process [ce950818-e820-11ee-829b-d17fbcf33421.cdr.json]
  5672. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 81 Tot 574986)
  5673. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/Anonymous@41.160.32.115:5060) State REPORTING
  5674. 2024-03-22 07:53:41.704165 [INFO] mod_json_cdr.c:271 Process [cde903e2-e820-11ee-824c-d17fbcf33421.cdr.json]
  5675. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:174 sofia/default/1728936062@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  5676. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1728936062@legalaidsa.nebular.co.za) State REPORTING going to sleep
  5677. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:610 (sofia/default/1728936062@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  5678. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_session.c:1665 Session 574833 (sofia/default/1728936062@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  5679. 2024-03-22 07:53:41.704165 [NOTICE] switch_core_session.c:1683 Session 574833 (sofia/default/1728936062@legalaidsa.nebular.co.za) Ended
  5680. 2024-03-22 07:53:41.704165 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1728936062@legalaidsa.nebular.co.za [CS_DESTROY]
  5681. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:741 (sofia/default/1728936062@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 80 Tot 574986)
  5682. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1728936062@legalaidsa.nebular.co.za) State DESTROY
  5683. 2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:343 sofia/default/1728936062@legalaidsa.nebular.co.za SOFIA DESTROY
  5684. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:181 sofia/default/1728936062@legalaidsa.nebular.co.za Standard DESTROY
  5685. 2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1728936062@legalaidsa.nebular.co.za) State DESTROY going to sleep
  5686. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:174 sofia/default/Anonymous@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  5687. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/Anonymous@41.160.32.115:5060) State REPORTING going to sleep
  5688. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:610 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  5689. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_session.c:1665 Session 574830 (sofia/default/Anonymous@41.160.32.115:5060) Locked, Waiting on external entities
  5690. 2024-03-22 07:53:41.724163 [NOTICE] switch_core_session.c:1683 Session 574830 (sofia/default/Anonymous@41.160.32.115:5060) Ended
  5691. 2024-03-22 07:53:41.724163 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/Anonymous@41.160.32.115:5060 [CS_DESTROY]
  5692. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:741 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 79 Tot 574986)
  5693. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:751 (sofia/default/Anonymous@41.160.32.115:5060) State DESTROY
  5694. 2024-03-22 07:53:41.724163 [DEBUG] mod_sofia.c:343 sofia/default/Anonymous@41.160.32.115:5060 SOFIA DESTROY
  5695. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:181 sofia/default/Anonymous@41.160.32.115:5060 Standard DESTROY
  5696. 2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:751 (sofia/default/Anonymous@41.160.32.115:5060) State DESTROY going to sleep
  5697. 2024-03-22 07:53:41.864163 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-pbx-extension-number.wav
  5698. 2024-03-22 07:53:41.944236 [DEBUG] switch_scheduler.c:144 Deleting task 232773 switch_ivr_schedule_hangup (ce950818-e820-11ee-829b-d17fbcf33421)
  5699. 2024-03-22 07:53:42.304156 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 5:800
  5700. 2024-03-22 07:53:42.304156 [INFO] switch_channel.c:515 RECV DTMF 5:800
  5701. 2024-03-22 07:53:42.444948 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [completing][200]
  5702. 2024-03-22 07:53:42.444948 [DEBUG] sofia.c:7091 Duplicate SDP
  5703. v=0                                                                                                                                                                                                                
  5704. o=HuaweiSoftX3000 86115372584755 86115372584755 IN IP4 41.160.32.115                                                                                                                                              
  5705. s=-                                                                                                                                                                                                                
  5706. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  5707. t=0 0                                                                                                                                                                                                              
  5708. m=audio 24772 RTP/AVP 8 101                                                                                                                                                                                        
  5709. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  5710. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5711. a=fmtp:101 0-15                                                                                                                                                                                                    
  5712. a=ptime:20                                                                                                                                                                                                        
  5713.  
  5714. 2024-03-22 07:53:42.444948 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [ready][200]
  5715. 2024-03-22 07:53:42.444948 [NOTICE] sofia.c:8159 Channel [sofia/default/0604893575] has been answered
  5716. 2024-03-22 07:53:42.444948 [DEBUG] switch_channel.c:3773 (sofia/default/0604893575) Callstate Change RINGING -> ACTIVE
  5717. 2024-03-22 07:53:42.464172 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0488814867@legalaidsa.nebular.co.za:5060.
  5718. 2024-03-22 07:53:42.464172 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0488814867@legalaidsa.nebular.co.za:5060:
  5719. v=0                                                                                                                                                                                                                
  5720. o=FreeSWITCH 1711064524 1711064526 IN IP4 156.38.231.107                                                                                                                                                          
  5721. s=FreeSWITCH                                                                                                                                                                                                      
  5722. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  5723. t=0 0                                                                                                                                                                                                              
  5724. m=audio 29474 RTP/AVP 8 101                                                                                                                                                                                        
  5725. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  5726. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5727. a=fmtp:101 0-16                                                                                                                                                                                                    
  5728. a=ptime:20                                                                                                                                                                                                        
  5729. a=sendrecv                                                                                                                                                                                                        
  5730.  
  5731. 2024-03-22 07:53:42.464172 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0488814867@legalaidsa.nebular.co.za:5060] has been answered
  5732. 2024-03-22 07:53:42.464172 [DEBUG] switch_channel.c:3773 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  5733. 2024-03-22 07:53:42.464172 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  5734. 2024-03-22 07:53:42.524173 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  5735. 2024-03-22 07:53:42.524173 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  5736. 2024-03-22 07:53:42.704177 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 8:800
  5737. 2024-03-22 07:53:42.704177 [INFO] switch_channel.c:515 RECV DTMF 8:800
  5738. 2024-03-22 07:53:42.784226 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [completing][200]
  5739. 2024-03-22 07:53:42.784226 [DEBUG] sofia.c:7091 Duplicate SDP
  5740. v=0                                                                                                                                                                                                                
  5741. o=HuaweiSoftX3000 137251253231303 137251253231303 IN IP4 41.160.32.115                                                                                                                                            
  5742. s=-                                                                                                                                                                                                                
  5743. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  5744. t=0 0                                                                                                                                                                                                              
  5745. m=audio 24788 RTP/AVP 8 101                                                                                                                                                                                        
  5746. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  5747. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5748. a=fmtp:101 0-15                                                                                                                                                                                                    
  5749. a=ptime:20                                                                                                                                                                                                        
  5750.  
  5751. 2024-03-22 07:53:42.804176 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [ready][200]
  5752. 2024-03-22 07:53:42.804176 [NOTICE] sofia.c:8159 Channel [sofia/default/0514924654] has been answered
  5753. 2024-03-22 07:53:42.804176 [DEBUG] switch_channel.c:3773 (sofia/default/0514924654) Callstate Change EARLY -> ACTIVE
  5754. 2024-03-22 07:53:42.824184 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0514479915@legalaidsa.nebular.co.za:5060.
  5755. 2024-03-22 07:53:42.824184 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0514479915@legalaidsa.nebular.co.za:5060:
  5756. v=0                                                                                                                                                                                                                
  5757. o=FreeSWITCH 1711070048 1711070050 IN IP4 156.38.231.107                                                                                                                                                          
  5758. s=FreeSWITCH                                                                                                                                                                                                      
  5759. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  5760. t=0 0                                                                                                                                                                                                              
  5761. m=audio 23970 RTP/AVP 8 101                                                                                                                                                                                        
  5762. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  5763. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5764. a=fmtp:101 0-16                                                                                                                                                                                                    
  5765. a=ptime:20                                                                                                                                                                                                        
  5766. a=sendrecv                                                                                                                                                                                                        
  5767.  
  5768. 2024-03-22 07:53:42.824184 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0514479915@legalaidsa.nebular.co.za:5060] has been answered
  5769. 2024-03-22 07:53:42.824184 [DEBUG] switch_channel.c:3773 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  5770. 2024-03-22 07:53:42.824184 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  5771. 2024-03-22 07:53:42.864186 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  5772. 2024-03-22 07:53:42.884176 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  5773. 2024-03-22 07:53:42.884176 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  5774. 2024-03-22 07:53:43.024191 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:800
  5775. 2024-03-22 07:53:43.024191 [INFO] switch_channel.c:515 RECV DTMF 0:800
  5776. 2024-03-22 07:53:43.424224 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 5:800
  5777. 2024-03-22 07:53:43.424224 [INFO] switch_channel.c:515 RECV DTMF 5:800
  5778. 2024-03-22 07:53:43.604184 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [4e0ec156-e821-11ee-8f7b-d17fbcf33421]
  5779. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 80 Tot 574987)
  5780. 2024-03-22 07:53:43.604184 [DEBUG] sofia.c:9873 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  5781. 2024-03-22 07:53:43.604184 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  5782. 2024-03-22 07:53:43.604184 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [received][100]
  5783. 2024-03-22 07:53:43.604184 [DEBUG] sofia.c:7094 Remote SDP:
  5784. v=0                                                                                                                                                                                                                
  5785. o=3cxPS 127892717568 408692981761 IN IP4 156.38.150.6                                                                                                                                                              
  5786. s=3cxPS Audio call                                                                                                                                                                                                
  5787. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  5788. t=0 0                                                                                                                                                                                                              
  5789. m=audio 10476 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  5790. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  5791. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  5792. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  5793. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  5794. a=fmtp:18 annexb=no                                                                                                                                                                                                
  5795. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  5796.  
  5797. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  5798. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  5799. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  5800. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  5801. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  5802. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  5803. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  5804. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  5805. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  5806. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  5807. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  5808. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  5809. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  5810. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  5811. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  5812. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  5813. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  5814. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  5815. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  5816. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  5817. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  5818. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0333942190@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  5819. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_codec.c:111 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  5820. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  5821. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4767 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  5822. 2024-03-22 07:53:43.604184 [DEBUG] sofia.c:7507 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  5823. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State NEW
  5824. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 80 Tot 574987)
  5825. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State INIT
  5826. 2024-03-22 07:53:43.604184 [DEBUG] mod_sofia.c:90 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA INIT
  5827. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:40 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard INIT
  5828. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  5829. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  5830. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 80 Tot 574987)
  5831. 2024-03-22 07:53:43.604184 [DEBUG] switch_channel.c:2249 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  5832. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State ROUTING
  5833. 2024-03-22 07:53:43.604184 [DEBUG] mod_sofia.c:143 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  5834. 2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:236 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard ROUTING
  5835. 2024-03-22 07:53:43.604184 [INFO] mod_dialplan_xml.c:637 Processing 0333942190 <0333942190>->0764147705 in context default
  5836. 2024-03-22 07:53:43.624163 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
  5837. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  5838. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  5839. 2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  5840. 2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0764147705
  5841. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0764147705' limit 1
  5842. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0764147705' AND status=0 limit 1
  5843. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0764147705' and status=0 LIMIT 1                                                                                                                                                                                                          
  5844. 2024-03-22 07:53:43.624163 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  5845. 2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0333942190 / 0333942190
  5846. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [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 ="0764147705" LIMIT 1                                                                                                                                                              
  5847. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [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="0764147705"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  5848. 2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  5849. 2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  5850. 2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  5851. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0764147705.*' OR blocked_patterns = '^076414770.*' OR blocked_patterns = '^07641477.*' OR blocked_patterns = '^0764147.*' OR blocked_patterns = '^076414.*' OR blocked_patterns = '^07641.*' OR blocked_patterns = '^0764.*' OR blocked_patterns = '^076.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  5852. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0764147705" AND (accountid = 0 OR status = 1) LIMIT 1
  5853. 2024-03-22 07:53:43.644231 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  5854. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  5855. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0764147705
  5856. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0764147705
  5857. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [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 = '^0764147705.*' OR patterns = '^076414770.*' OR patterns = '^07641477.*' OR patterns = '^0764147.*' OR patterns = '^076414.*' OR patterns = '^07641.*' OR patterns = '^0764.*' OR patterns = '^076.*' OR patterns = '^07.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  5858. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [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 ="0764147705" AND A.accountid = '109' limit 1                                                                                                                                                                        
  5859. 2024-03-22 07:53:43.644231 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0764147705
  5860. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [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 ="0764147705" LIMIT 1                                                                                                                                                              
  5861. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [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="0764147705"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  5862. 2024-03-22 07:53:43.644231 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  5863. 2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0764147705' OR number = '076414770' OR number = '07641477' OR number = '0764147' OR number = '076414' OR number = '07641' OR number = '0764' OR number = '076' OR number = '07' OR number = '0' OR number ='--') OR (number = '0764147705*' OR number = '076414770*' OR number = '07641477*' OR number = '0764147*' OR number = '076414*' OR number = '07641*' OR number = '0764*' OR number = '076*' OR number = '07*' OR number = '0*' OR number ='--') OR (number = '0333942190' OR number = '033394219' OR number = '03339421' OR number = '0333942' OR number = '033394' OR number = '03339' OR number = '0333' OR number = '033' OR number = '03' OR number = '0' OR number ='--') OR (number = '0333942190*' OR number = '033394219*' OR number = '03339421*' OR number = '0333942*' OR number = '033394*' OR number = '03339*' OR number = '0333*' OR number = '033*' OR number = '03*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  5864. 2024-03-22 07:53:43.664183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  5865. 2024-03-22 07:53:43.664183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0764147705' OR routing_prefix = '076414770' OR routing_prefix = '07641477' OR routing_prefix = '0764147' OR routing_prefix = '076414' OR routing_prefix = '07641' OR routing_prefix = '0764' OR routing_prefix = '076' OR routing_prefix = '07' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  5866. 2024-03-22 07:53:43.664183 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0764147705)!!!!
  5867. 2024-03-22 07:53:43.664183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27764147705
  5868. 2024-03-22 07:53:43.664183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27764147705' limit 1
  5869. 2024-03-22 07:53:43.664183 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0764147705)!!!!
  5870. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  5871. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  5872. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  5873. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19925.8335
  5874. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  5875. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  5876. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  5877. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  5878. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5879. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5880. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5881. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5882. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5883. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5884. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5885. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5886. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5887. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5888. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5889. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
  5890. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  5891. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  5892. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  5893. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0764147705.*' OR pattern = '^076414770.*' OR pattern = '^07641477.*' OR pattern = '^0764147.*' OR pattern = '^076414.*' OR pattern = '^07641.*' OR pattern = '^0764.*' OR pattern = '^076.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  5894. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  5895. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  5896. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148461
  5897. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  5898. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  5899. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  5900. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - MOBILE
  5901. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  5902. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  5903. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  5904. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  5905. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  5906. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19925.8335 balance Accountid 109 !!!
  5907. 2024-03-22 07:53:43.684279 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  5908. 2024-03-22 07:53:43.684279 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  5909. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  5910. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0764147705.*' OR blocked_patterns = '^076414770.*' OR blocked_patterns = '^07641477.*' OR blocked_patterns = '^0764147.*' OR blocked_patterns = '^076414.*' OR blocked_patterns = '^07641.*' OR blocked_patterns = '^0764.*' OR blocked_patterns = '^076.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  5911. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  5912. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  5913. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  5914. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9955.3483
  5915. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  5916. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  5917. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  5918. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  5919. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  5920. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0764147705.*' OR pattern = '^076414770.*' OR pattern = '^07641477.*' OR pattern = '^0764147.*' OR pattern = '^076414.*' OR pattern = '^07641.*' OR pattern = '^0764.*' OR pattern = '^076.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  5921. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  5922. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  5923. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426363
  5924. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  5925. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  5926. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  5927. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D082-VODACOM
  5928. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  5929. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  5930. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  5931. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  5932. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  5933. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9955.3483 balance Accountid 13 !!!
  5934. 2024-03-22 07:53:43.684279 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  5935. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148461|CODE:^076.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426363|CODE:^076.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                      
  5936. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  5937. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  5938. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  5939. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148461
  5940. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  5941. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  5942. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0764147705.*' OR pattern = '^076414770.*' OR pattern = '^07641477.*' OR pattern = '^0764147.*' OR pattern = '^076414.*' OR pattern = '^07641.*' OR pattern = '^0764.*' OR pattern = '^076.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  5943. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  5944. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  5945. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  5946. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  5947. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  5948. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  5949. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  5950. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  5951. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  5952. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  5953. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  5954. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  5955. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  5956. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  5957. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  5958. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  5959. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  5960. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  5961. 2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  5962. 2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  5963. 2024-03-22 07:53:43.704161 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  5964. 2024-03-22 07:53:43.704161 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  5965. 2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  5966. 2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  5967. 2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0764147705
  5968. 2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  5969. 2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [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 ="0764147705" LIMIT 1                                                                                                                                                              
  5970. 2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  5971. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  5972. <document type="freeswitch/xml">                                                                                                                                                                                  
  5973. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  5974. <context name="default">                                                                                                                                                                                          
  5975. <extension name="0764147705">                                                                                                                                                                                      
  5976. <condition field="destination_number" expression="0764147705">                                                                                                                                                    
  5977. <action application="set" data="effective_destination_number=0764147705"/>                                                                                                                                        
  5978. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  5979. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  5980. <action application="set" data="callstart=2024-03-22 07:53:43"/>                                                                                                                                                  
  5981. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  5982. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  5983. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  5984. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  5985. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  5986. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  5987. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  5988. <action application="set" data="accountname=default"/>                                                                                                                                                            
  5989. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  5990. <action application="set" data="origination_rates=ID:2148461|CODE:^076.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426363|CODE:^076.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                      
  5991. <action application="set" data="original_caller_id_name=0333942190"/>                                                                                                                                              
  5992. <action application="set" data="original_caller_id_number=0333942190"/>                                                                                                                                            
  5993. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  5994. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  5995. <action application="set" data="effective_caller_id_name=0333942190"/>                                                                                                                                            
  5996. <action application="set" data="effective_caller_id_number=0333942190"/>                                                                                                                                          
  5997. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  5998. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  5999. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  6000. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  6001. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  6002. <action application="set" data="force_trunk_flag=2148461"/>                                                                                                                                                        
  6003. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  6004. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  6005. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^076.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^076.* // D082-VODACOM"/>                                                                                                                                                            
  6006. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0764147705;fs_path=sip:156.38.231.106:5060"/>                                              
  6007. </condition>                                                                                                                                                                                                      
  6008. </extension>                                                                                                                                                                                                      
  6009. </context>                                                                                                                                                                                                        
  6010. </section>                                                                                                                                                                                                        
  6011. </document>                                                                                                                                                                                                        
  6012. 2024-03-22 07:53:43.704161 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
  6013. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 parsing [default->0764147705] continue=false
  6014. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Regex (PASS) [0764147705] destination_number(0764147705) =~ /0764147705/ break=on-false
  6015. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0764147705)
  6016. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  6017. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  6018. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:43)
  6019. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  6020. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  6021. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  6022. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  6023. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  6024. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  6025. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  6026. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  6027. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  6028. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148461|CODE:^076.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426363|CODE:^076.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                
  6029. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0333942190)
  6030. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0333942190)
  6031. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  6032. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  6033. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0333942190)
  6034. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0333942190)
  6035. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  6036. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  6037. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  6038. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  6039. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  6040. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148461)
  6041. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  6042. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  6043. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^076.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^076.* // D082-VODACOM)                                                                                                                  
  6044. Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0764147705;fs_path=sip:156.38.231.106:5060)
  6045. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  6046. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  6047. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 80 Tot 574987)
  6048. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State EXECUTE
  6049. 2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:198 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  6050. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:328 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  6051. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0764147705)
  6052. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0764147705]
  6053. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  6054. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  6055. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  6056. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  6057. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:43)
  6058. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:53:43]
  6059. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  6060. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  6061. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  6062. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  6063. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(account_id=109)
  6064. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  6065. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  6066. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  6067. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  6068. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  6069. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  6070. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  6071. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  6072. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  6073. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(accountname=default)
  6074. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  6075. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  6076. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  6077. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148461|CODE:^076.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426363|CODE:^076.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                        
  6078. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148461|CODE:^076.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426363|CODE:^076.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                        
  6079. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0333942190)
  6080. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0333942190]
  6081. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0333942190)
  6082. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0333942190]
  6083. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  6084. 2024-03-22 07:53:43.704161 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  6085. 2024-03-22 07:53:43.704161 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
  6086. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  6087. 2024-03-22 07:53:43.704161 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  6088. 2024-03-22 07:53:43.704161 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 15/800
  6089. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0333942190)
  6090. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0333942190]
  6091. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0333942190)
  6092. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0333942190]
  6093. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  6094. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  6095. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  6096. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  6097. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  6098. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  6099. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  6100. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  6101. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  6102. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  6103. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148461)
  6104. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148461]
  6105. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  6106. 2024-03-22 07:53:43.704161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  6107. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(intcall=0)
  6108. 2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  6109. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^076.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^076.* // D082-VODACOM)                                                                                                                          
  6110. 2024-03-22 07:53:43.704161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^076.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^076.* // D082-VODACOM]                                                                                                                
  6111. EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0764147705;fs_path=sip:156.38.231.106:5060)
  6112. 2024-03-22 07:53:43.704161 [DEBUG] switch_channel.c:1250 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^076.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^076.* // D082-VODACOM] to event                                              
  6113. 2024-03-22 07:53:43.704161 [DEBUG] switch_channel.c:1250 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^076.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^076.* // D082-VODACOM] to event                                              
  6114. 2024-03-22 07:53:43.704161 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  6115. 2024-03-22 07:53:43.704161 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  6116. 2024-03-22 07:53:43.704161 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0764147705 [4e1de78a-e821-11ee-8f9e-d17fbcf33421]
  6117. 2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:4819 (sofia/default/0764147705) State Change CS_NEW -> CS_INIT
  6118. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0764147705) Running State Change CS_INIT (Cur 81 Tot 574988)
  6119. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0764147705) State INIT
  6120. 2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:90 sofia/default/0764147705 SOFIA INIT
  6121. 2024-03-22 07:53:43.704161 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0764147705
  6122. 2024-03-22 07:53:43.704161 [DEBUG] sofia_glue.c:1295 sofia/default/0764147705 sending invite version: 1.6.20  64bit
  6123. Local SDP:                                                                                                                                                                                                        
  6124. v=0                                                                                                                                                                                                                
  6125. o=FreeSWITCH 1711066843 1711066844 IN IP4 156.38.231.107                                                                                                                                                          
  6126. s=FreeSWITCH                                                                                                                                                                                                      
  6127. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  6128. t=0 0                                                                                                                                                                                                              
  6129. m=audio 27180 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  6130. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6131. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  6132. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6133. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6134. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6135. a=fmtp:101 0-16                                                                                                                                                                                                    
  6136. a=ptime:20                                                                                                                                                                                                        
  6137. a=sendrecv                                                                                                                                                                                                        
  6138.  
  6139. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:40 sofia/default/0764147705 Standard INIT
  6140. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0764147705) State Change CS_INIT -> CS_ROUTING
  6141. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0764147705) State INIT going to sleep
  6142. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0764147705) Running State Change CS_ROUTING (Cur 81 Tot 574988)
  6143. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0764147705) State ROUTING
  6144. 2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:143 sofia/default/0764147705 SOFIA ROUTING
  6145. 2024-03-22 07:53:43.704161 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0764147705) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  6146. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0764147705) State ROUTING going to sleep
  6147. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0764147705) Running State Change CS_CONSUME_MEDIA (Cur 81 Tot 574988)
  6148. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0764147705) State CONSUME_MEDIA
  6149. 2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0764147705) State CONSUME_MEDIA going to sleep
  6150. 2024-03-22 07:53:43.704161 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [calling][0]
  6151. 2024-03-22 07:53:43.804169 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [completing][200]
  6152. 2024-03-22 07:53:43.804169 [DEBUG] sofia.c:7091 Duplicate SDP
  6153. v=0                                                                                                                                                                                                                
  6154. o=HuaweiSoftX3000 18744515584518 18744515584518 IN IP4 41.160.32.115                                                                                                                                              
  6155. s=-                                                                                                                                                                                                                
  6156. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  6157. t=0 0                                                                                                                                                                                                              
  6158. m=audio 24778 RTP/AVP 8 101                                                                                                                                                                                        
  6159. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6160. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6161. a=fmtp:101 0-15                                                                                                                                                                                                    
  6162. a=ptime:20                                                                                                                                                                                                        
  6163.  
  6164. 2024-03-22 07:53:43.804169 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [ready][200]
  6165. 2024-03-22 07:53:43.804169 [NOTICE] sofia.c:8159 Channel [sofia/default/0837207317] has been answered
  6166. 2024-03-22 07:53:43.824256 [DEBUG] switch_channel.c:3773 (sofia/default/0837207317) Callstate Change RINGING -> ACTIVE
  6167. 2024-03-22 07:53:43.824256 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0155191100@legalaidsa.nebular.co.za:5060.
  6168. 2024-03-22 07:53:43.824256 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0155191100@legalaidsa.nebular.co.za:5060:
  6169. v=0                                                                                                                                                                                                                
  6170. o=FreeSWITCH 1711063705 1711063707 IN IP4 156.38.231.107                                                                                                                                                          
  6171. s=FreeSWITCH                                                                                                                                                                                                      
  6172. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  6173. t=0 0                                                                                                                                                                                                              
  6174. m=audio 30298 RTP/AVP 8 101                                                                                                                                                                                        
  6175. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6176. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6177. a=fmtp:101 0-16                                                                                                                                                                                                    
  6178. a=ptime:20                                                                                                                                                                                                        
  6179. a=sendrecv                                                                                                                                                                                                        
  6180.  
  6181. 2024-03-22 07:53:43.824256 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0155191100@legalaidsa.nebular.co.za:5060] has been answered
  6182. 2024-03-22 07:53:43.824256 [DEBUG] switch_channel.c:3773 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  6183. 2024-03-22 07:53:43.824256 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  6184. 2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [completing][200]
  6185. 2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7094 Remote SDP:
  6186. v=0                                                                                                                                                                                                                
  6187. o=3cxPS 14596177920 54542729217 IN IP4 156.38.150.6                                                                                                                                                                
  6188. s=3cxPS Audio call                                                                                                                                                                                                
  6189. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  6190. t=0 0                                                                                                                                                                                                              
  6191. m=audio 10474 RTP/AVP 18 101                                                                                                                                                                                      
  6192. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6193. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6194. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6195.  
  6196. 2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [ready][200]
  6197. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  6198. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  6199. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6200. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/7106027339@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  6201. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_codec.c:111 sofia/default/7106027339@legalaidsa.nebular.co.za Original read codec set to G729:18
  6202. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6203. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4767 sofia/default/7106027339@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  6204. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/7106027339@legalaidsa.nebular.co.za] 156.38.231.107 port 25628 -> 156.38.150.6 port 10474 codec: 18 ms: 20
  6205. 2024-03-22 07:53:43.844588 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6206. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:7180 sofia/default/7106027339@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  6207. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:7187 sofia/default/7106027339@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  6208. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:7210 sofia/default/7106027339@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  6209. 2024-03-22 07:53:43.844588 [NOTICE] sofia.c:8218 Channel [sofia/default/7106027339@legalaidsa.nebular.co.za] has been answered
  6210. 2024-03-22 07:53:43.844588 [DEBUG] switch_channel.c:3773 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  6211. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0104988840@41.160.32.115:5060] 156.38.231.107 port 20806 -> 41.160.32.115 port 24792 codec: 18 ms: 20
  6212. 2024-03-22 07:53:43.844588 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6213. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:7180 sofia/default/0104988840@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  6214. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:7187 sofia/default/0104988840@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  6215. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:7210 sofia/default/0104988840@41.160.32.115:5060 Set rtp dtmf delay to 40
  6216. 2024-03-22 07:53:43.844588 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0104988840@41.160.32.115:5060:
  6217. v=0                                                                                                                                                                                                                
  6218. o=FreeSWITCH 1711073217 1711073218 IN IP4 156.38.231.107                                                                                                                                                          
  6219. s=FreeSWITCH                                                                                                                                                                                                      
  6220. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  6221. t=0 0                                                                                                                                                                                                              
  6222. m=audio 20806 RTP/AVP 18 101                                                                                                                                                                                      
  6223. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6224. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6225. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6226. a=fmtp:101 0-16                                                                                                                                                                                                    
  6227. a=ptime:20                                                                                                                                                                                                        
  6228. a=sendrecv                                                                                                                                                                                                        
  6229.  
  6230. 2024-03-22 07:53:43.844588 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0104988840@41.160.32.115:5060] has been answered
  6231. 2024-03-22 07:53:43.844588 [DEBUG] switch_channel.c:3773 (sofia/default/0104988840@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  6232. 2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [completed][200]
  6233. 2024-03-22 07:53:43.844588 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7106027339@legalaidsa.nebular.co.za]
  6234. 2024-03-22 07:53:43.844588 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  6235. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 81 Tot 574988)
  6236. 2024-03-22 07:53:43.844588 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7106027339@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  6237. 2024-03-22 07:53:43.844588 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  6238. 2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  6239. 2024-03-22 07:53:43.864186 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6240. 2024-03-22 07:53:43.884169 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6241. 2024-03-22 07:53:43.964159 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6242. 2024-03-22 07:53:43.984173 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [completing][200]
  6243. 2024-03-22 07:53:43.984173 [DEBUG] sofia.c:7094 Remote SDP:
  6244. v=0                                                                                                                                                                                                                
  6245. o=3cxPS 319387860992 441039454209 IN IP4 156.38.150.6                                                                                                                                                              
  6246. s=3cxPS Audio call                                                                                                                                                                                                
  6247. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  6248. t=0 0                                                                                                                                                                                                              
  6249. m=audio 10468 RTP/AVP 18 101                                                                                                                                                                                      
  6250. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6251. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6252. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6253.  
  6254. 2024-03-22 07:53:43.984173 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [ready][200]
  6255. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  6256. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  6257. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6258. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/1730119070@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  6259. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_codec.c:111 sofia/default/1730119070@legalaidsa.nebular.co.za Original read codec set to G729:18
  6260. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6261. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4767 sofia/default/1730119070@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  6262. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/1730119070@legalaidsa.nebular.co.za] 156.38.231.107 port 28482 -> 156.38.150.6 port 10468 codec: 18 ms: 20
  6263. 2024-03-22 07:53:43.984173 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6264. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:7180 sofia/default/1730119070@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  6265. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:7187 sofia/default/1730119070@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  6266. 2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:7210 sofia/default/1730119070@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  6267. 2024-03-22 07:53:43.984173 [NOTICE] sofia.c:8218 Channel [sofia/default/1730119070@legalaidsa.nebular.co.za] has been answered
  6268. 2024-03-22 07:53:43.984173 [DEBUG] switch_channel.c:3773 (sofia/default/1730119070@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  6269. 2024-03-22 07:53:44.004350 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0728413043@41.160.32.115:5060] 156.38.231.107 port 24338 -> 41.160.32.115 port 24786 codec: 18 ms: 20
  6270. 2024-03-22 07:53:44.004350 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6271. 2024-03-22 07:53:44.004350 [DEBUG] switch_core_media.c:7180 sofia/default/0728413043@41.160.32.115:5060 Set 2833 dtmf send payload to 96
  6272. 2024-03-22 07:53:44.004350 [DEBUG] switch_core_media.c:7187 sofia/default/0728413043@41.160.32.115:5060 Set 2833 dtmf receive payload to 96
  6273. 2024-03-22 07:53:44.004350 [DEBUG] switch_core_media.c:7210 sofia/default/0728413043@41.160.32.115:5060 Set rtp dtmf delay to 40
  6274. 2024-03-22 07:53:44.004350 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0728413043@41.160.32.115:5060:
  6275. v=0                                                                                                                                                                                                                
  6276. o=FreeSWITCH 1711069686 1711069687 IN IP4 156.38.231.107                                                                                                                                                          
  6277. s=FreeSWITCH                                                                                                                                                                                                      
  6278. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  6279. t=0 0                                                                                                                                                                                                              
  6280. m=audio 24338 RTP/AVP 18 96                                                                                                                                                                                        
  6281. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6282. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6283. a=rtpmap:96 telephone-event/8000                                                                                                                                                                                  
  6284. a=fmtp:96 0-16                                                                                                                                                                                                    
  6285. a=ptime:20                                                                                                                                                                                                        
  6286. a=sendrecv                                                                                                                                                                                                        
  6287.  
  6288. 2024-03-22 07:53:44.004350 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0728413043@41.160.32.115:5060] has been answered
  6289. 2024-03-22 07:53:44.004350 [DEBUG] switch_channel.c:3773 (sofia/default/0728413043@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  6290. 2024-03-22 07:53:44.004350 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [completed][200]
  6291. 2024-03-22 07:53:44.004350 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/1730119070@legalaidsa.nebular.co.za]
  6292. 2024-03-22 07:53:44.004350 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/1730119070@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  6293. 2024-03-22 07:53:44.004350 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 81 Tot 574988)
  6294. 2024-03-22 07:53:44.004350 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1730119070@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  6295. 2024-03-22 07:53:44.004350 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  6296. 2024-03-22 07:53:44.004350 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [ready][200]
  6297. 2024-03-22 07:53:44.044172 [DEBUG] switch_ivr_bridge.c:546 sofia/default/7106027339@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  6298. 2024-03-22 07:53:44.064156 [DEBUG] switch_ivr.c:623 sofia/default/7106027339@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  6299. EXECUTE sofia/default/7106027339@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  6300. 2024-03-22 07:53:44.064156 [DEBUG] switch_scheduler.c:249 Added task 232832 switch_ivr_schedule_hangup (4cbe3c3c-e821-11ee-8f77-d17fbcf33421) to run at 1711100024
  6301. 2024-03-22 07:53:44.084164 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF #:800
  6302. span style="color: green; font-weight: bold;"> 2024-03-22 07:53:44.084164 [INFO] switch_channel.c:515 RECV DTMF #:800
  6303. EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 intercept(6b9d227a-e5ca-11ee-b931-d17fbcf33421)
  6304. 2024-03-22 07:53:44.084164 [DEBUG] switch_ivr_bridge.c:2093 no uuid 6b9d227a-e5ca-11ee-b931-d17fbcf33421
  6305. EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 sleep(2000)
  6306. 2024-03-22 07:53:44.124176 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10474 to 156.38.231.105:10474
  6307. 2024-03-22 07:53:44.144196 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6308. 2024-03-22 07:53:44.184157 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [ready][200]
  6309. 2024-03-22 07:53:44.184157 [DEBUG] switch_ivr_bridge.c:546 sofia/default/1730119070@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  6310. 2024-03-22 07:53:44.204160 [DEBUG] switch_ivr.c:623 sofia/default/1730119070@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  6311. EXECUTE sofia/default/1730119070@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  6312. 2024-03-22 07:53:44.204160 [DEBUG] switch_scheduler.c:249 Added task 232833 switch_ivr_schedule_hangup (4a128f4c-e821-11ee-8ef1-d17fbcf33421) to run at 1711100024
  6313. 2024-03-22 07:53:44.264176 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10468 to 156.38.231.105:10468
  6314. 2024-03-22 07:53:44.284330 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6315. 2024-03-22 07:53:44.864174 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [proceeding][183]
  6316. 2024-03-22 07:53:44.864174 [DEBUG] sofia.c:7094 Remote SDP:
  6317. v=0                                                                                                                                                                                                                
  6318. o=HuaweiSoftX3000 45910183753419 45910183753419 IN IP4 41.160.32.115                                                                                                                                              
  6319. s=-                                                                                                                                                                                                                
  6320. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  6321. t=0 0                                                                                                                                                                                                              
  6322. m=audio 24794 RTP/AVP 8 101                                                                                                                                                                                        
  6323. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6324. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6325. a=fmtp:101 0-15                                                                                                                                                                                                    
  6326. a=ptime:20                                                                                                                                                                                                        
  6327.  
  6328. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  6329. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  6330. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  6331. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  6332. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6333. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0764147705 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  6334. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_codec.c:111 sofia/default/0764147705 Original read codec set to PCMA:8
  6335. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6336. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4767 sofia/default/0764147705 Set 2833 dtmf send payload to 101 recv payload to 101
  6337. 2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0764147705] 156.38.231.107 port 27180 -> 41.160.32.115 port 24794 codec: 8 ms: 20
  6338. 2024-03-22 07:53:44.864174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6339. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7180 sofia/default/0764147705 Set 2833 dtmf send payload to 101
  6340. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7187 sofia/default/0764147705 Set 2833 dtmf receive payload to 101
  6341. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7210 sofia/default/0764147705 Set rtp dtmf delay to 40
  6342. 2024-03-22 07:53:44.884170 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0764147705!
  6343. 2024-03-22 07:53:44.884170 [DEBUG] switch_channel.c:3474 (sofia/default/0764147705) Callstate Change DOWN -> EARLY
  6344. 2024-03-22 07:53:44.884170 [INFO] switch_ivr_originate.c:3654 Sending early media
  6345. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0333942190@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 24382 -> 156.38.150.6 port 10476 codec: 8 ms: 20
  6346. 2024-03-22 07:53:44.884170 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6347. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7180 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  6348. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7187 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  6349. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7210 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  6350. 2024-03-22 07:53:44.884170 [DEBUG] mod_sofia.c:2364 Ring SDP:
  6351. v=0                                                                                                                                                                                                                
  6352. o=FreeSWITCH 1711069642 1711069643 IN IP4 156.38.231.107                                                                                                                                                          
  6353. s=FreeSWITCH                                                                                                                                                                                                      
  6354. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  6355. t=0 0                                                                                                                                                                                                              
  6356. m=audio 24382 RTP/AVP 8 101                                                                                                                                                                                        
  6357. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6358. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6359. a=fmtp:101 0-16                                                                                                                                                                                                    
  6360. a=ptime:20                                                                                                                                                                                                        
  6361. a=sendrecv                                                                                                                                                                                                        
  6362.  
  6363. 2024-03-22 07:53:44.884170 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0333942190@legalaidsa.nebular.co.za:5060!
  6364. 2024-03-22 07:53:44.884170 [DEBUG] switch_channel.c:3474 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  6365. 2024-03-22 07:53:44.884170 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0764147705]
  6366. 2024-03-22 07:53:44.884170 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [early][183]
  6367. 2024-03-22 07:53:44.884170 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0764147705) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  6368. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0764147705) Running State Change CS_EXCHANGE_MEDIA (Cur 81 Tot 574988)
  6369. 2024-03-22 07:53:44.884170 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0764147705) State EXCHANGE_MEDIA
  6370. 2024-03-22 07:53:44.884170 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  6371. 2024-03-22 07:53:44.984155 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6372. 2024-03-22 07:53:45.004296 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [proceeding][180]
  6373. 2024-03-22 07:53:45.004296 [DEBUG] sofia.c:7091 Duplicate SDP
  6374. v=0                                                                                                                                                                                                                
  6375. o=HuaweiSoftX3000 45910183753419 45910183753419 IN IP4 41.160.32.115                                                                                                                                              
  6376. s=-                                                                                                                                                                                                                
  6377. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  6378. t=0 0                                                                                                                                                                                                              
  6379. m=audio 24794 RTP/AVP 8 101                                                                                                                                                                                        
  6380. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6381. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6382. a=fmtp:101 0-15                                                                                                                                                                                                    
  6383. a=ptime:20                                                                                                                                                                                                        
  6384.  
  6385. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  6386. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  6387. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  6388. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  6389. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6390. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6391. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4767 sofia/default/0764147705 Set 2833 dtmf send payload to 101 recv payload to 101
  6392. 2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0764147705.
  6393. 2024-03-22 07:53:45.084344 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0764147705 Bridge execute app sched_hangup(+6000 normal_clearing)
  6394. 2024-03-22 07:53:45.084344 [DEBUG] switch_ivr.c:623 sofia/default/0764147705 Command Execute sched_hangup(+6000 normal_clearing)
  6395. EXECUTE sofia/default/0764147705 sched_hangup(+6000 normal_clearing)
  6396. 2024-03-22 07:53:45.104161 [DEBUG] switch_scheduler.c:249 Added task 232834 switch_ivr_schedule_hangup (4e1de78a-e821-11ee-8f9e-d17fbcf33421) to run at 1711100025
  6397. 2024-03-22 07:53:45.144171 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10476 to 156.38.231.105:10476
  6398. 2024-03-22 07:53:45.244183 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [completing][200]
  6399. 2024-03-22 07:53:45.244183 [DEBUG] sofia.c:7094 Remote SDP:
  6400. v=0                                                                                                                                                                                                                
  6401. o=3cxPS 217835372544 440469028865 IN IP4 156.38.150.6                                                                                                                                                              
  6402. s=3cxPS Audio call                                                                                                                                                                                                
  6403. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  6404. t=0 0                                                                                                                                                                                                              
  6405. m=audio 10460 RTP/AVP 18 101                                                                                                                                                                                      
  6406. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6407. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6408. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6409.  
  6410. 2024-03-22 07:53:45.244183 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [ready][200]
  6411. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  6412. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  6413. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6414. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/2693458380@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  6415. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_codec.c:111 sofia/default/2693458380@legalaidsa.nebular.co.za Original read codec set to G729:18
  6416. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6417. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4767 sofia/default/2693458380@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  6418. 2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/2693458380@legalaidsa.nebular.co.za] 156.38.231.107 port 30768 -> 156.38.150.6 port 10460 codec: 18 ms: 20
  6419. 2024-03-22 07:53:45.264325 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6420. 2024-03-22 07:53:45.264325 [DEBUG] switch_core_media.c:7180 sofia/default/2693458380@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  6421. 2024-03-22 07:53:45.264325 [DEBUG] switch_core_media.c:7187 sofia/default/2693458380@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  6422. 2024-03-22 07:53:45.264325 [DEBUG] switch_core_media.c:7210 sofia/default/2693458380@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  6423. 2024-03-22 07:53:45.264325 [NOTICE] sofia.c:8218 Channel [sofia/default/2693458380@legalaidsa.nebular.co.za] has been answered
  6424. 2024-03-22 07:53:45.264325 [DEBUG] switch_channel.c:3773 (sofia/default/2693458380@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  6425. 2024-03-22 07:53:45.284175 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0604746864@41.160.32.115:5060] 156.38.231.107 port 30114 -> 41.160.32.115 port 24780 codec: 18 ms: 20
  6426. 2024-03-22 07:53:45.284175 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  6427. 2024-03-22 07:53:45.284175 [DEBUG] switch_core_media.c:7180 sofia/default/0604746864@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  6428. 2024-03-22 07:53:45.284175 [DEBUG] switch_core_media.c:7187 sofia/default/0604746864@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  6429. 2024-03-22 07:53:45.284175 [DEBUG] switch_core_media.c:7210 sofia/default/0604746864@41.160.32.115:5060 Set rtp dtmf delay to 40
  6430. 2024-03-22 07:53:45.284175 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0604746864@41.160.32.115:5060:
  6431. v=0                                                                                                                                                                                                                
  6432. o=FreeSWITCH 1711063911 1711063912 IN IP4 156.38.231.107                                                                                                                                                          
  6433. s=FreeSWITCH                                                                                                                                                                                                      
  6434. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  6435. t=0 0                                                                                                                                                                                                              
  6436. m=audio 30114 RTP/AVP 18 101                                                                                                                                                                                      
  6437. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6438. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6439. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6440. a=fmtp:101 0-16                                                                                                                                                                                                    
  6441. a=ptime:20                                                                                                                                                                                                        
  6442. a=sendrecv                                                                                                                                                                                                        
  6443.  
  6444. 2024-03-22 07:53:45.284175 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0604746864@41.160.32.115:5060] has been answered
  6445. 2024-03-22 07:53:45.284175 [DEBUG] switch_channel.c:3773 (sofia/default/0604746864@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  6446. 2024-03-22 07:53:45.284175 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [completed][200]
  6447. 2024-03-22 07:53:45.284175 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/2693458380@legalaidsa.nebular.co.za]
  6448. 2024-03-22 07:53:45.284175 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/2693458380@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  6449. 2024-03-22 07:53:45.284175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 81 Tot 574988)
  6450. 2024-03-22 07:53:45.284175 [DEBUG] switch_core_state_machine.c:653 (sofia/default/2693458380@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  6451. 2024-03-22 07:53:45.284175 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  6452. 2024-03-22 07:53:45.464177 [DEBUG] switch_ivr_bridge.c:546 sofia/default/2693458380@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  6453. 2024-03-22 07:53:45.484164 [DEBUG] switch_ivr.c:623 sofia/default/2693458380@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  6454. EXECUTE sofia/default/2693458380@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  6455. 2024-03-22 07:53:45.484164 [DEBUG] switch_scheduler.c:249 Added task 232835 switch_ivr_schedule_hangup (4304b7de-e821-11ee-8e5f-d17fbcf33421) to run at 1711100025
  6456. 2024-03-22 07:53:45.544176 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10460 to 156.38.231.105:10460
  6457. 2024-03-22 07:53:45.584173 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  6458. 2024-03-22 07:53:45.644168 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [ready][200]
  6459. 2024-03-22 07:53:46.084168 [NOTICE] switch_core_state_machine.c:385 sofia/default/5835@karlovac.nebular.co.za:5060 has executed the last dialplan instruction, hanging up.
  6460. 2024-03-22 07:53:46.084168 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/default/5835@karlovac.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  6461. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:650 (sofia/default/5835@karlovac.nebular.co.za:5060) State EXECUTE going to sleep
  6462. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 81 Tot 574988)
  6463. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:850 (sofia/default/5835@karlovac.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  6464. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5835@karlovac.nebular.co.za:5060) State HANGUP
  6465. 2024-03-22 07:53:46.084168 [DEBUG] mod_sofia.c:438 Channel sofia/default/5835@karlovac.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  6466. 2024-03-22 07:53:46.084168 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/5835@karlovac.nebular.co.za:5060
  6467. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:60 sofia/default/5835@karlovac.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  6468. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5835@karlovac.nebular.co.za:5060) State HANGUP going to sleep
  6469. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:619 (sofia/default/5835@karlovac.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  6470. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 81 Tot 574988)
  6471. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5835@karlovac.nebular.co.za:5060) State REPORTING
  6472. 2024-03-22 07:53:46.084168 [INFO] mod_json_cdr.c:271 Process [4b18f43a-e821-11ee-8f1c-d17fbcf33421.cdr.json]
  6473. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:174 sofia/default/5835@karlovac.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  6474. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5835@karlovac.nebular.co.za:5060) State REPORTING going to sleep
  6475. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:610 (sofia/default/5835@karlovac.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  6476. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_session.c:1665 Session 574982 (sofia/default/5835@karlovac.nebular.co.za:5060) Locked, Waiting on external entities
  6477. 2024-03-22 07:53:46.084168 [NOTICE] switch_core_session.c:1683 Session 574982 (sofia/default/5835@karlovac.nebular.co.za:5060) Ended
  6478. 2024-03-22 07:53:46.084168 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5835@karlovac.nebular.co.za:5060 [CS_DESTROY]
  6479. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:741 (sofia/default/5835@karlovac.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 80 Tot 574988)
  6480. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5835@karlovac.nebular.co.za:5060) State DESTROY
  6481. 2024-03-22 07:53:46.084168 [DEBUG] mod_sofia.c:343 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA DESTROY
  6482. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:181 sofia/default/5835@karlovac.nebular.co.za:5060 Standard DESTROY
  6483. 2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5835@karlovac.nebular.co.za:5060) State DESTROY going to sleep
  6484. 2024-03-22 07:53:48.404157 [NOTICE] sofia.c:1012 Hangup sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  6485. 2024-03-22 07:53:48.404157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0488814867@legalaidsa.nebular.co.za:5060]
  6486. 2024-03-22 07:53:48.404157 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  6487. 2024-03-22 07:53:48.424321 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0604893575]
  6488. 2024-03-22 07:53:48.424321 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0604893575 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  6489. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0604893575) State EXCHANGE_MEDIA going to sleep
  6490. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604893575) Running State Change CS_HANGUP (Cur 80 Tot 574988)
  6491. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0604893575) Callstate Change ACTIVE -> HANGUP
  6492. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604893575) State HANGUP
  6493. 2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:432 sofia/default/0604893575 Overriding SIP cause 480 with 200 from the other leg
  6494. 2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:438 Channel sofia/default/0604893575 hanging up, cause: NORMAL_CLEARING
  6495. 2024-03-22 07:53:48.424321 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0604893575 skip receive message [UNBRIDGE] (channel is hungup already)
  6496. 2024-03-22 07:53:48.424321 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  6497. 2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0604893575
  6498. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:60 sofia/default/0604893575 Standard HANGUP, cause: NORMAL_CLEARING
  6499. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604893575) State HANGUP going to sleep
  6500. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_session.c:2815 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  6501. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  6502. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 80 Tot 574988)
  6503. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0604893575) State Change CS_HANGUP -> CS_REPORTING
  6504. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604893575) Running State Change CS_REPORTING (Cur 80 Tot 574988)
  6505. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604893575) State REPORTING
  6506. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  6507. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State HANGUP
  6508. 2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:438 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  6509. 2024-03-22 07:53:48.424321 [INFO] mod_json_cdr.c:271 Process [3d27e37c-e821-11ee-8dac-d17fbcf33421.cdr.json]
  6510. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:60 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  6511. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  6512. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  6513. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 80 Tot 574988)
  6514. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State REPORTING
  6515. 2024-03-22 07:53:48.424321 [INFO] mod_json_cdr.c:271 Process [3d1b8f1e-e821-11ee-8d89-d17fbcf33421.cdr.json]
  6516. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:174 sofia/default/0604893575 Standard REPORTING, cause: NORMAL_CLEARING
  6517. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604893575) State REPORTING going to sleep
  6518. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0604893575) State Change CS_REPORTING -> CS_DESTROY
  6519. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_session.c:1665 Session 574964 (sofia/default/0604893575) Locked, Waiting on external entities
  6520. 2024-03-22 07:53:48.424321 [NOTICE] switch_core_session.c:1683 Session 574964 (sofia/default/0604893575) Ended
  6521. 2024-03-22 07:53:48.424321 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0604893575 [CS_DESTROY]
  6522. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0604893575) Running State Change CS_DESTROY (Cur 79 Tot 574988)
  6523. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604893575) State DESTROY
  6524. 2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:343 sofia/default/0604893575 SOFIA DESTROY
  6525. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:181 sofia/default/0604893575 Standard DESTROY
  6526. 2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604893575) State DESTROY going to sleep
  6527. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:174 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  6528. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  6529. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  6530. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_session.c:1665 Session 574963 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  6531. 2024-03-22 07:53:48.444170 [NOTICE] switch_core_session.c:1683 Session 574963 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Ended
  6532. 2024-03-22 07:53:48.444170 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  6533. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 78 Tot 574988)
  6534. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State DESTROY
  6535. 2024-03-22 07:53:48.444170 [DEBUG] mod_sofia.c:343 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  6536. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:181 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard DESTROY
  6537. 2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  6538. 2024-03-22 07:53:48.484155 [DEBUG] switch_scheduler.c:144 Deleting task 232827 switch_ivr_schedule_hangup (3d27e37c-e821-11ee-8dac-d17fbcf33421)
  6539. 2024-03-22 07:53:49.024166 [NOTICE] sofia.c:1012 Hangup sofia/default/0604746864@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  6540. 2024-03-22 07:53:49.024166 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0604746864@41.160.32.115:5060]
  6541. 2024-03-22 07:53:49.044170 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0604746864@41.160.32.115:5060 ending bridge by request from write function
  6542. 2024-03-22 07:53:49.044170 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/2693458380@legalaidsa.nebular.co.za]
  6543. 2024-03-22 07:53:49.044170 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/2693458380@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  6544. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:653 (sofia/default/2693458380@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  6545. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 78 Tot 574988)
  6546. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:850 (sofia/default/2693458380@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  6547. 2024-03-22 07:53:49.044170 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/2693458380@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  6548. 2024-03-22 07:53:49.044170 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0604746864@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  6549. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2693458380@legalaidsa.nebular.co.za) State HANGUP
  6550. 2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:432 sofia/default/2693458380@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  6551. 2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:438 Channel sofia/default/2693458380@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  6552. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_session.c:2815 sofia/default/0604746864@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  6553. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0604746864@41.160.32.115:5060) State EXECUTE going to sleep
  6554. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 78 Tot 574988)
  6555. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0604746864@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  6556. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604746864@41.160.32.115:5060) State HANGUP
  6557. 2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:438 Channel sofia/default/0604746864@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  6558. 2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/2693458380@legalaidsa.nebular.co.za
  6559. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:60 sofia/default/2693458380@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  6560. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2693458380@legalaidsa.nebular.co.za) State HANGUP going to sleep
  6561. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:619 (sofia/default/2693458380@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  6562. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 78 Tot 574988)
  6563. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:60 sofia/default/0604746864@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  6564. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2693458380@legalaidsa.nebular.co.za) State REPORTING
  6565. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604746864@41.160.32.115:5060) State HANGUP going to sleep
  6566. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0604746864@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  6567. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 78 Tot 574988)
  6568. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604746864@41.160.32.115:5060) State REPORTING
  6569. 2024-03-22 07:53:49.044170 [INFO] mod_json_cdr.c:271 Process [4304b7de-e821-11ee-8e5f-d17fbcf33421.cdr.json]
  6570. 2024-03-22 07:53:49.044170 [INFO] mod_json_cdr.c:271 Process [425cf9f4-e821-11ee-8e37-d17fbcf33421.cdr.json]
  6571. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:174 sofia/default/2693458380@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  6572. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2693458380@legalaidsa.nebular.co.za) State REPORTING going to sleep
  6573. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:610 (sofia/default/2693458380@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  6574. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_session.c:1665 Session 574972 (sofia/default/2693458380@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  6575. 2024-03-22 07:53:49.044170 [NOTICE] switch_core_session.c:1683 Session 574972 (sofia/default/2693458380@legalaidsa.nebular.co.za) Ended
  6576. 2024-03-22 07:53:49.044170 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/2693458380@legalaidsa.nebular.co.za [CS_DESTROY]
  6577. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:741 (sofia/default/2693458380@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 77 Tot 574988)
  6578. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2693458380@legalaidsa.nebular.co.za) State DESTROY
  6579. 2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:343 sofia/default/2693458380@legalaidsa.nebular.co.za SOFIA DESTROY
  6580. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:181 sofia/default/2693458380@legalaidsa.nebular.co.za Standard DESTROY
  6581. 2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2693458380@legalaidsa.nebular.co.za) State DESTROY going to sleep
  6582. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:174 sofia/default/0604746864@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  6583. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604746864@41.160.32.115:5060) State REPORTING going to sleep
  6584. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0604746864@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  6585. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_session.c:1665 Session 574971 (sofia/default/0604746864@41.160.32.115:5060) Locked, Waiting on external entities
  6586. 2024-03-22 07:53:49.064159 [NOTICE] switch_core_session.c:1683 Session 574971 (sofia/default/0604746864@41.160.32.115:5060) Ended
  6587. 2024-03-22 07:53:49.064159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0604746864@41.160.32.115:5060 [CS_DESTROY]
  6588. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0604746864@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 76 Tot 574988)
  6589. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604746864@41.160.32.115:5060) State DESTROY
  6590. 2024-03-22 07:53:49.064159 [DEBUG] mod_sofia.c:343 sofia/default/0604746864@41.160.32.115:5060 SOFIA DESTROY
  6591. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:181 sofia/default/0604746864@41.160.32.115:5060 Standard DESTROY
  6592. 2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604746864@41.160.32.115:5060) State DESTROY going to sleep
  6593. 2024-03-22 07:53:49.484175 [DEBUG] switch_scheduler.c:144 Deleting task 232835 switch_ivr_schedule_hangup (4304b7de-e821-11ee-8e5f-d17fbcf33421)
  6594. 2024-03-22 07:53:50.024154 [NOTICE] sofia.c:1012 Hangup sofia/default/0788023267@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  6595. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_codec.c:248 sofia/default/0788023267@41.160.32.115:5060 Restore previous codec G729:18.
  6596. 2024-03-22 07:53:50.024154 [NOTICE] switch_ivr_originate.c:3612 Hangup sofia/default/5805@karlovac.nebular.co.za [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
  6597. 2024-03-22 07:53:50.024154 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
  6598. 2024-03-22 07:53:50.024154 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: ORIGINATOR_CANCEL
  6599. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_session.c:2815 sofia/default/0788023267@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  6600. 2024-03-22 07:53:50.024154 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  6601. 2024-03-22 07:53:50.024154 [DEBUG] switch_cpp.cpp:1112 sofia/default/0788023267@41.160.32.115:5060 destroy/unlink session from object
  6602. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_session.c:2815 sofia/default/0788023267@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  6603. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0788023267@41.160.32.115:5060) State EXECUTE going to sleep
  6604. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 76 Tot 574988)
  6605. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0788023267@41.160.32.115:5060) Callstate Change RING_WAIT -> HANGUP
  6606. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0788023267@41.160.32.115:5060) State HANGUP
  6607. 2024-03-22 07:53:50.024154 [DEBUG] mod_sofia.c:438 Channel sofia/default/0788023267@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  6608. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5805@karlovac.nebular.co.za) Running State Change CS_HANGUP (Cur 76 Tot 574988)
  6609. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/5805@karlovac.nebular.co.za) Callstate Change RINGING -> HANGUP
  6610. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5805@karlovac.nebular.co.za) State HANGUP
  6611. 2024-03-22 07:53:50.024154 [DEBUG] mod_sofia.c:432 sofia/default/5805@karlovac.nebular.co.za Overriding SIP cause 487 with 200 from the other leg
  6612. 2024-03-22 07:53:50.024154 [DEBUG] mod_sofia.c:438 Channel sofia/default/5805@karlovac.nebular.co.za hanging up, cause: ORIGINATOR_CANCEL
  6613. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:60 sofia/default/0788023267@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  6614. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0788023267@41.160.32.115:5060) State HANGUP going to sleep
  6615. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0788023267@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  6616. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 76 Tot 574988)
  6617. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0788023267@41.160.32.115:5060) State REPORTING
  6618. 2024-03-22 07:53:50.024154 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/5805@karlovac.nebular.co.za
  6619. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:60 sofia/default/5805@karlovac.nebular.co.za Standard HANGUP, cause: ORIGINATOR_CANCEL
  6620. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5805@karlovac.nebular.co.za) State HANGUP going to sleep
  6621. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:619 (sofia/default/5805@karlovac.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  6622. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5805@karlovac.nebular.co.za) Running State Change CS_REPORTING (Cur 76 Tot 574988)
  6623. 2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5805@karlovac.nebular.co.za) State REPORTING
  6624. 2024-03-22 07:53:50.024154 [INFO] mod_json_cdr.c:271 Process [3d6c7d3e-e821-11ee-8db9-d17fbcf33421.cdr.json]
  6625. 2024-03-22 07:53:50.024154 [INFO] mod_json_cdr.c:271 Process [48c173ec-e821-11ee-8ec5-d17fbcf33421.cdr.json]
  6626. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:174 sofia/default/5805@karlovac.nebular.co.za Standard REPORTING, cause: ORIGINATOR_CANCEL
  6627. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5805@karlovac.nebular.co.za) State REPORTING going to sleep
  6628. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:610 (sofia/default/5805@karlovac.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  6629. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_session.c:1665 Session 574977 (sofia/default/5805@karlovac.nebular.co.za) Locked, Waiting on external entities
  6630. 2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1683 Session 574977 (sofia/default/5805@karlovac.nebular.co.za) Ended
  6631. 2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5805@karlovac.nebular.co.za [CS_DESTROY]
  6632. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:741 (sofia/default/5805@karlovac.nebular.co.za) Running State Change CS_DESTROY (Cur 75 Tot 574988)
  6633. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5805@karlovac.nebular.co.za) State DESTROY
  6634. 2024-03-22 07:53:50.045294 [DEBUG] mod_sofia.c:343 sofia/default/5805@karlovac.nebular.co.za SOFIA DESTROY
  6635. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:181 sofia/default/5805@karlovac.nebular.co.za Standard DESTROY
  6636. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5805@karlovac.nebular.co.za) State DESTROY going to sleep
  6637. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:174 sofia/default/0788023267@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  6638. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0788023267@41.160.32.115:5060) State REPORTING going to sleep
  6639. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0788023267@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  6640. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_session.c:1665 Session 574966 (sofia/default/0788023267@41.160.32.115:5060) Locked, Waiting on external entities
  6641. 2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1683 Session 574966 (sofia/default/0788023267@41.160.32.115:5060) Ended
  6642. 2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0788023267@41.160.32.115:5060 [CS_DESTROY]
  6643. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0788023267@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 74 Tot 574988)
  6644. 2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0788023267@41.160.32.115:5060) State DESTROY
  6645. 2024-03-22 07:53:50.045294 [DEBUG] mod_sofia.c:343 sofia/default/0788023267@41.160.32.115:5060 SOFIA DESTROY
  6646. 2024-03-22 07:53:50.045294 [INFO] mod_com_g729.c:109 DECODER DESTROYED----------->0x7feda82258f8 0x7feda8225900
  6647. 2024-03-22 07:53:50.064372 [INFO] mod_com_g729.c:112 DECODER LICENSE DEALLOCATED->0x7feda82258f8 0x7feda8225900
  6648. 2024-03-22 07:53:50.064372 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda8225978 0x7feda8225978
  6649. 2024-03-22 07:53:50.064372 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda8225978 0x7feda8225978
  6650. 2024-03-22 07:53:50.064372 [DEBUG] switch_core_state_machine.c:181 sofia/default/0788023267@41.160.32.115:5060 Standard DESTROY
  6651. 2024-03-22 07:53:50.064372 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0788023267@41.160.32.115:5060) State DESTROY going to sleep
  6652. 2024-03-22 07:53:50.724188 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0870869784@41.160.32.115:5060 [524b4870-e821-11ee-8fac-d17fbcf33421]
  6653. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_NEW (Cur 75 Tot 574989)
  6654. 2024-03-22 07:53:50.724188 [DEBUG] sofia.c:9873 sofia/default/0870869784@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  6655. 2024-03-22 07:53:50.724188 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  6656. 2024-03-22 07:53:50.724188 [DEBUG] sofia.c:7084 Channel sofia/default/0870869784@41.160.32.115:5060 entering state [received][100]
  6657. 2024-03-22 07:53:50.724188 [DEBUG] sofia.c:7094 Remote SDP:
  6658. v=0                                                                                                                                                                                                                
  6659. o=HuaweiSoftX3000 39175675039133 39175675039133 IN IP4 41.160.32.115                                                                                                                                              
  6660. s=-                                                                                                                                                                                                                
  6661. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  6662. t=0 0                                                                                                                                                                                                              
  6663. m=audio 24796 RTP/AVP 18 8 101                                                                                                                                                                                    
  6664. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6665. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6666. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6667. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6668. a=fmtp:101 0-15                                                                                                                                                                                                    
  6669. a=ptime:20                                                                                                                                                                                                        
  6670.  
  6671. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  6672. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  6673. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  6674. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  6675. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  6676. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  6677. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  6678. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  6679. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  6680. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  6681. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  6682. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6683. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0870869784@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  6684. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_codec.c:111 sofia/default/0870869784@41.160.32.115:5060 Original read codec set to G729:18
  6685. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6686. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4767 sofia/default/0870869784@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  6687. 2024-03-22 07:53:50.724188 [DEBUG] sofia.c:7507 (sofia/default/0870869784@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  6688. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0870869784@41.160.32.115:5060) State NEW
  6689. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_INIT (Cur 75 Tot 574989)
  6690. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0870869784@41.160.32.115:5060) State INIT
  6691. 2024-03-22 07:53:50.724188 [DEBUG] mod_sofia.c:90 sofia/default/0870869784@41.160.32.115:5060 SOFIA INIT
  6692. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:40 sofia/default/0870869784@41.160.32.115:5060 Standard INIT
  6693. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0870869784@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  6694. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0870869784@41.160.32.115:5060) State INIT going to sleep
  6695. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 75 Tot 574989)
  6696. 2024-03-22 07:53:50.724188 [DEBUG] switch_channel.c:2249 (sofia/default/0870869784@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  6697. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0870869784@41.160.32.115:5060) State ROUTING
  6698. 2024-03-22 07:53:50.724188 [DEBUG] mod_sofia.c:143 sofia/default/0870869784@41.160.32.115:5060 SOFIA ROUTING
  6699. 2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:236 sofia/default/0870869784@41.160.32.115:5060 Standard ROUTING
  6700. 2024-03-22 07:53:50.724188 [INFO] mod_dialplan_xml.c:637 Processing 0870869784 <0870869784>->D9570124315108 in context default
  6701. 2024-03-22 07:53:50.724188 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  6702. 2024-03-22 07:53:50.724188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  6703. 2024-03-22 07:53:50.724188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  6704. 2024-03-22 07:53:50.724188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  6705. 2024-03-22 07:53:50.724188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570124315108
  6706. 2024-03-22 07:53:50.724188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570124315108' limit 1
  6707. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570124315108' AND status=0 limit 1
  6708. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570124315108' and status=0 LIMIT 1                                                                                                                                                                                                      
  6709. 2024-03-22 07:53:50.744154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  6710. 2024-03-22 07:53:50.744154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0870869784 / <null>
  6711. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570124315108" LIMIT 1                                                                                                                                                          
  6712. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [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="D9570124315108"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  6713. 2024-03-22 07:53:50.744154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  6714. 2024-03-22 07:53:50.744154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  6715. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  6716. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570124315108.*' OR blocked_patterns = '^D957012431510.*' OR blocked_patterns = '^D95701243151.*' OR blocked_patterns = '^D9570124315.*' OR blocked_patterns = '^D957012431.*' OR blocked_patterns = '^D95701243.*' OR blocked_patterns = '^D9570124.*' OR blocked_patterns = '^D957012.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  6717. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570124315108" AND (accountid = 0 OR status = 1) LIMIT 1
  6718. 2024-03-22 07:53:50.744154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  6719. 2024-03-22 07:53:50.744154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  6720. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570124315108
  6721. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570124315108
  6722. 2024-03-22 07:53:50.764168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570124315108
  6723. 2024-03-22 07:53:50.764168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0124315108
  6724. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [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 = '^0124315108.*' OR patterns = '^012431510.*' OR patterns = '^01243151.*' OR patterns = '^0124315.*' OR patterns = '^012431.*' OR patterns = '^01243.*' OR patterns = '^0124.*' OR patterns = '^012.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  6725. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [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 ="0124315108" AND A.accountid = '3' limit 1                                                                                                                                                                          
  6726. 2024-03-22 07:53:50.764168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0124315108
  6727. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [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 ="0124315108" LIMIT 1                                                                                                                                                              
  6728. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [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="0124315108"  AND domains.domain="156.38.231.106" limit 1                                                                                                
  6729. 2024-03-22 07:53:50.764168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  6730. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0124315108' OR number = '012431510' OR number = '01243151' OR number = '0124315' OR number = '012431' OR number = '01243' OR number = '0124' OR number = '012' OR number = '01' OR number = '0' OR number ='--') OR (number = '0124315108*' OR number = '012431510*' OR number = '01243151*' OR number = '0124315*' OR number = '012431*' OR number = '01243*' OR number = '0124*' OR number = '012*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  6731. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  6732. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0124315108' OR routing_prefix = '012431510' OR routing_prefix = '01243151' OR routing_prefix = '0124315' OR routing_prefix = '012431' OR routing_prefix = '01243' OR routing_prefix = '0124' OR routing_prefix = '012' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  6733. 2024-03-22 07:53:50.764168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0124315108)!!!!
  6734. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27124315108
  6735. 2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27124315108' limit 1
  6736. 2024-03-22 07:53:50.784173 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0124315108)!!!!
  6737. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  6738. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  6739. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  6740. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 929618.1734
  6741. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  6742. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  6743. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  6744. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  6745. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  6746. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  6747. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  6748. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0124315108.*' OR pattern = '^012431510.*' OR pattern = '^01243151.*' OR pattern = '^0124315.*' OR pattern = '^012431.*' OR pattern = '^01243.*' OR pattern = '^0124.*' OR pattern = '^012.*' OR pattern = '^01.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 15 OR accountid=3)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                        
  6749. 2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  6750. 2024-03-22 07:53:50.784173 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Rates Not Found :
  6751. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP]  Post Cdrs : 0
  6752. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 3
  6753. 2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
  6754. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  6755. <document type="freeswitch/xml">                                                                                                                                                                                  
  6756. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  6757. <context name="default">                                                                                                                                                                                          
  6758. <extension name="D9570124315108">                                                                                                                                                                                  
  6759. <condition field="destination_number" expression="D9570124315108">                                                                                                                                                
  6760. <action application="log" data="WARNING Accountcode . Dialed number (0124315108)  origination rates not found!!"/>                                                                                                
  6761. <action application="set" data="original_caller_id_name=0870869784"/>                                                                                                                                              
  6762. <action application="set" data="error_cdr=1"/>                                                                                                                                                                    
  6763. <action application="set" data="callstart=2024-03-22 07:53:50"/>                                                                                                                                                  
  6764. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  6765. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  6766. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  6767. <action application="set" data="sip_ignore_remote_cause=true"/>                                                                                                                                                    
  6768. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  6769. <action application="set" data="effective_destination_number=0124315108"/>                                                                                                                                        
  6770. <action application="set" data="last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND"/>                                                                                                                            
  6771. <action application="hangup" data="ORIGINATION_RATE_NOT_FOUND"/>                                                                                                                                                  
  6772. </condition>                                                                                                                                                                                                      
  6773. </extension>                                                                                                                                                                                                      
  6774. </context>                                                                                                                                                                                                        
  6775. </section>                                                                                                                                                                                                        
  6776. </document>                                                                                                                                                                                                        
  6777. 2024-03-22 07:53:50.784173 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  6778. Dialplan: sofia/default/0870869784@41.160.32.115:5060 parsing [default->D9570124315108] continue=false
  6779. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Regex (PASS) [D9570124315108] destination_number(D9570124315108) =~ /D9570124315108/ break=on-false
  6780. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action log(WARNING Accountcode . Dialed number (0124315108)  origination rates not found!!)
  6781. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(original_caller_id_name=0870869784)
  6782. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(error_cdr=1)
  6783. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:50)
  6784. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(account_id=3)
  6785. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(parent_id=0)
  6786. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(call_direction=outbound)
  6787. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(sip_ignore_remote_cause=true)
  6788. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(call_processed=internal)
  6789. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(effective_destination_number=0124315108)
  6790. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  6791. Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action hangup(ORIGINATION_RATE_NOT_FOUND)
  6792. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0870869784@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  6793. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0870869784@41.160.32.115:5060) State ROUTING going to sleep
  6794. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 75 Tot 574989)
  6795. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0870869784@41.160.32.115:5060) State EXECUTE
  6796. 2024-03-22 07:53:50.784173 [DEBUG] mod_sofia.c:198 sofia/default/0870869784@41.160.32.115:5060 SOFIA EXECUTE
  6797. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:328 sofia/default/0870869784@41.160.32.115:5060 Standard EXECUTE
  6798. EXECUTE sofia/default/0870869784@41.160.32.115:5060 log(WARNING Accountcode . Dialed number (0124315108)  origination rates not found!!)
  6799. 2024-03-22 07:53:50.784173 [WARNING] mod_dptools.c:1742 Accountcode . Dialed number (0124315108)  origination rates not found!!
  6800. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(original_caller_id_name=0870869784)
  6801. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [original_caller_id_name]=[0870869784]
  6802. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(error_cdr=1)
  6803. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [error_cdr]=[1]
  6804. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(callstart=2024-03-22 07:53:50)
  6805. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:50]
  6806. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(account_id=3)
  6807. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [account_id]=[3]
  6808. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(parent_id=0)
  6809. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [parent_id]=[0]
  6810. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(call_direction=outbound)
  6811. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [call_direction]=[outbound]
  6812. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(sip_ignore_remote_cause=true)
  6813. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [sip_ignore_remote_cause]=[true]
  6814. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(call_processed=internal)
  6815. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [call_processed]=[internal]
  6816. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(effective_destination_number=0124315108)
  6817. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [effective_destination_number]=[0124315108]
  6818. EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  6819. 2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [last_bridge_hangup_cause]=[ORIGINATION_RATE_NOT_FOUND]
  6820. EXECUTE sofia/default/0870869784@41.160.32.115:5060 hangup(ORIGINATION_RATE_NOT_FOUND)
  6821. 2024-03-22 07:53:50.784173 [NOTICE] mod_dptools.c:1286 Hangup sofia/default/0870869784@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  6822. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_session.c:2815 sofia/default/0870869784@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  6823. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0870869784@41.160.32.115:5060) State EXECUTE going to sleep
  6824. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 75 Tot 574989)
  6825. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0870869784@41.160.32.115:5060) Callstate Change RINGING -> HANGUP
  6826. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0870869784@41.160.32.115:5060) State HANGUP
  6827. 2024-03-22 07:53:50.784173 [DEBUG] mod_sofia.c:438 Channel sofia/default/0870869784@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  6828. 2024-03-22 07:53:50.784173 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480
  6829. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:60 sofia/default/0870869784@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  6830. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0870869784@41.160.32.115:5060) State HANGUP going to sleep
  6831. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0870869784@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  6832. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 75 Tot 574989)
  6833. 2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0870869784@41.160.32.115:5060) State REPORTING
  6834. 2024-03-22 07:53:50.784173 [INFO] mod_json_cdr.c:271 Process [524b4870-e821-11ee-8fac-d17fbcf33421.cdr.json]
  6835. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:174 sofia/default/0870869784@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  6836. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0870869784@41.160.32.115:5060) State REPORTING going to sleep
  6837. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0870869784@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  6838. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_session.c:1665 Session 574989 (sofia/default/0870869784@41.160.32.115:5060) Locked, Waiting on external entities
  6839. 2024-03-22 07:53:50.804152 [NOTICE] switch_core_session.c:1683 Session 574989 (sofia/default/0870869784@41.160.32.115:5060) Ended
  6840. 2024-03-22 07:53:50.804152 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0870869784@41.160.32.115:5060 [CS_DESTROY]
  6841. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0870869784@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 74 Tot 574989)
  6842. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0870869784@41.160.32.115:5060) State DESTROY
  6843. 2024-03-22 07:53:50.804152 [DEBUG] mod_sofia.c:343 sofia/default/0870869784@41.160.32.115:5060 SOFIA DESTROY
  6844. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:181 sofia/default/0870869784@41.160.32.115:5060 Standard DESTROY
  6845. 2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0870869784@41.160.32.115:5060) State DESTROY going to sleep
  6846. 2024-03-22 07:53:51.184154 [NOTICE] sofia.c:1012 Hangup sofia/default/0645067100 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  6847. 2024-03-22 07:53:51.184154 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0645067100]
  6848. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0645067100) State EXCHANGE_MEDIA going to sleep
  6849. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0645067100) Running State Change CS_HANGUP (Cur 74 Tot 574989)
  6850. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0645067100) Callstate Change ACTIVE -> HANGUP
  6851. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0645067100) State HANGUP
  6852. 2024-03-22 07:53:51.184154 [DEBUG] mod_sofia.c:438 Channel sofia/default/0645067100 hanging up, cause: NORMAL_CLEARING
  6853. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:60 sofia/default/0645067100 Standard HANGUP, cause: NORMAL_CLEARING
  6854. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0645067100) State HANGUP going to sleep
  6855. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0645067100) State Change CS_HANGUP -> CS_REPORTING
  6856. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0645067100) Running State Change CS_REPORTING (Cur 74 Tot 574989)
  6857. 2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0645067100) State REPORTING
  6858. 2024-03-22 07:53:51.184154 [INFO] mod_json_cdr.c:271 Process [338383a8-e821-11ee-8cad-d17fbcf33421.cdr.json]
  6859. 2024-03-22 07:53:51.204177 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0645067100 ending bridge by request from write function
  6860. 2024-03-22 07:53:51.204177 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0475014600@legalaidsa.nebular.co.za:5060]
  6861. 2024-03-22 07:53:51.204177 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0645067100 skip receive message [UNBRIDGE] (channel is hungup already)
  6862. 2024-03-22 07:53:51.204177 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0475014600@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  6863. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_session.c:2815 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  6864. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  6865. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 74 Tot 574989)
  6866. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  6867. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State HANGUP
  6868. 2024-03-22 07:53:51.204177 [DEBUG] mod_sofia.c:432 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 Overriding SIP cause 480 with 200 from the other leg
  6869. 2024-03-22 07:53:51.204177 [DEBUG] mod_sofia.c:438 Channel sofia/default/0475014600@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  6870. 2024-03-22 07:53:51.204177 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0475014600@legalaidsa.nebular.co.za:5060
  6871. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:60 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  6872. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  6873. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  6874. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 74 Tot 574989)
  6875. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State REPORTING
  6876. 2024-03-22 07:53:51.204177 [INFO] mod_json_cdr.c:271 Process [33783d22-e821-11ee-8c89-d17fbcf33421.cdr.json]
  6877. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:174 sofia/default/0645067100 Standard REPORTING, cause: NORMAL_CLEARING
  6878. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0645067100) State REPORTING going to sleep
  6879. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0645067100) State Change CS_REPORTING -> CS_DESTROY
  6880. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_session.c:1665 Session 574953 (sofia/default/0645067100) Locked, Waiting on external entities
  6881. 2024-03-22 07:53:51.204177 [NOTICE] switch_core_session.c:1683 Session 574953 (sofia/default/0645067100) Ended
  6882. 2024-03-22 07:53:51.204177 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0645067100 [CS_DESTROY]
  6883. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0645067100) Running State Change CS_DESTROY (Cur 73 Tot 574989)
  6884. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0645067100) State DESTROY
  6885. 2024-03-22 07:53:51.204177 [DEBUG] mod_sofia.c:343 sofia/default/0645067100 SOFIA DESTROY
  6886. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:181 sofia/default/0645067100 Standard DESTROY
  6887. 2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0645067100) State DESTROY going to sleep
  6888. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:174 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  6889. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  6890. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  6891. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_session.c:1665 Session 574952 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  6892. 2024-03-22 07:53:51.224167 [NOTICE] switch_core_session.c:1683 Session 574952 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Ended
  6893. 2024-03-22 07:53:51.224167 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0475014600@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  6894. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 72 Tot 574989)
  6895. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State DESTROY
  6896. 2024-03-22 07:53:51.224167 [DEBUG] mod_sofia.c:343 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  6897. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:181 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 Standard DESTROY
  6898. 2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  6899. 2024-03-22 07:53:51.484187 [DEBUG] switch_scheduler.c:144 Deleting task 232823 switch_ivr_schedule_hangup (338383a8-e821-11ee-8cad-d17fbcf33421)
  6900. 2024-03-22 07:53:51.904178 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0732745146@41.160.32.115:5060 [5300f0b2-e821-11ee-8fba-d17fbcf33421]
  6901. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_NEW (Cur 73 Tot 574990)
  6902. 2024-03-22 07:53:51.904178 [DEBUG] sofia.c:9873 sofia/default/0732745146@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  6903. 2024-03-22 07:53:51.904178 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  6904. 2024-03-22 07:53:51.904178 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [received][100]
  6905. 2024-03-22 07:53:51.904178 [DEBUG] sofia.c:7094 Remote SDP:
  6906. v=0                                                                                                                                                                                                                
  6907. o=HuaweiSoftX3000 73896190661188 73896190661188 IN IP4 41.160.32.115                                                                                                                                              
  6908. s=-                                                                                                                                                                                                                
  6909. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  6910. t=0 0                                                                                                                                                                                                              
  6911. m=audio 24798 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  6912. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  6913. a=fmtp:18 annexb=no                                                                                                                                                                                                
  6914. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  6915. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  6916. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  6917. a=fmtp:101 0-15                                                                                                                                                                                                    
  6918. a=ptime:20                                                                                                                                                                                                        
  6919.  
  6920. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  6921. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  6922. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  6923. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  6924. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  6925. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  6926. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  6927. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  6928. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  6929. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  6930. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  6931. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  6932. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  6933. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  6934. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  6935. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  6936. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  6937. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0732745146@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  6938. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_codec.c:111 sofia/default/0732745146@41.160.32.115:5060 Original read codec set to G729:18
  6939. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  6940. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4767 sofia/default/0732745146@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  6941. 2024-03-22 07:53:51.904178 [DEBUG] sofia.c:7507 (sofia/default/0732745146@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  6942. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0732745146@41.160.32.115:5060) State NEW
  6943. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_INIT (Cur 73 Tot 574990)
  6944. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0732745146@41.160.32.115:5060) State INIT
  6945. 2024-03-22 07:53:51.904178 [DEBUG] mod_sofia.c:90 sofia/default/0732745146@41.160.32.115:5060 SOFIA INIT
  6946. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:40 sofia/default/0732745146@41.160.32.115:5060 Standard INIT
  6947. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0732745146@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  6948. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0732745146@41.160.32.115:5060) State INIT going to sleep
  6949. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 73 Tot 574990)
  6950. 2024-03-22 07:53:51.904178 [DEBUG] switch_channel.c:2249 (sofia/default/0732745146@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  6951. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0732745146@41.160.32.115:5060) State ROUTING
  6952. 2024-03-22 07:53:51.904178 [DEBUG] mod_sofia.c:143 sofia/default/0732745146@41.160.32.115:5060 SOFIA ROUTING
  6953. 2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:236 sofia/default/0732745146@41.160.32.115:5060 Standard ROUTING
  6954. 2024-03-22 07:53:51.904178 [INFO] mod_dialplan_xml.c:637 Processing 0732745146 <0732745146>->D9570442792255 in context default
  6955. 2024-03-22 07:53:51.924169 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  6956. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  6957. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  6958. 2024-03-22 07:53:51.924169 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  6959. 2024-03-22 07:53:51.924169 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570442792255
  6960. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570442792255' limit 1
  6961. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570442792255' AND status=0 limit 1
  6962. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570442792255' and status=0 LIMIT 1                                                                                                                                                                                                      
  6963. 2024-03-22 07:53:51.924169 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  6964. 2024-03-22 07:53:51.924169 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0732745146 / <null>
  6965. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570442792255" LIMIT 1                                                                                                                                                          
  6966. 2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [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="D9570442792255"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  6967. 2024-03-22 07:53:51.944239 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  6968. 2024-03-22 07:53:51.944239 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  6969. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  6970. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570442792255.*' OR blocked_patterns = '^D957044279225.*' OR blocked_patterns = '^D95704427922.*' OR blocked_patterns = '^D9570442792.*' OR blocked_patterns = '^D957044279.*' OR blocked_patterns = '^D95704427.*' OR blocked_patterns = '^D9570442.*' OR blocked_patterns = '^D957044.*' OR blocked_patterns = '^D95704.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  6971. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570442792255" AND (accountid = 0 OR status = 1) LIMIT 1
  6972. 2024-03-22 07:53:51.944239 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  6973. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  6974. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570442792255
  6975. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570442792255
  6976. 2024-03-22 07:53:51.944239 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570442792255
  6977. 2024-03-22 07:53:51.944239 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0442792255
  6978. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [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 = '^0442792255.*' OR patterns = '^044279225.*' OR patterns = '^04427922.*' OR patterns = '^0442792.*' OR patterns = '^044279.*' OR patterns = '^04427.*' OR patterns = '^0442.*' OR patterns = '^044.*' OR patterns = '^04.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  6979. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [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 ="0442792255" AND A.accountid = '3' limit 1                                                                                                                                                                          
  6980. 2024-03-22 07:53:51.944239 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0442792255
  6981. 2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [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 ="0442792255" LIMIT 1                                                                                                                                                              
  6982. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  6983. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0442792255' OR number = '044279225' OR number = '04427922' OR number = '0442792' OR number = '044279' OR number = '04427' OR number = '0442' OR number = '044' OR number = '04' OR number = '0' OR number ='--') OR (number = '0442792255*' OR number = '044279225*' OR number = '04427922*' OR number = '0442792*' OR number = '044279*' OR number = '04427*' OR number = '0442*' OR number = '044*' OR number = '04*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  6984. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  6985. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0442792255' OR routing_prefix = '044279225' OR routing_prefix = '04427922' OR routing_prefix = '0442792' OR routing_prefix = '044279' OR routing_prefix = '04427' OR routing_prefix = '0442' OR routing_prefix = '044' OR routing_prefix = '04' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  6986. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  6987. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  6988. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  6989. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  6990. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  6991. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  6992. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  6993. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  6994. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  6995. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  6996. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [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 ="0442792255" LIMIT 1                                                                                                                                                              
  6997. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  6998. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  6999. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8513
  7000. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  7001. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  7002. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  7003. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0442792255
  7004. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  7005. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  7006. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  7007. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  7008. 2024-03-22 07:53:51.964215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  7009. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  7010. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  7011. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  7012. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  7013. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  7014. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  7015. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  7016. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  7017. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  7018. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  7019. 2024-03-22 07:53:51.964215 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  7020. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  7021. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  7022. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  7023. 2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  7024. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0732745146
  7025. 2024-03-22 07:53:51.964215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0732745146
  7026. 2024-03-22 07:53:51.964215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27732745146
  7027. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  7028. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  7029. 2024-03-22 07:53:51.964215 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  7030. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  7031. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [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="2123267554"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  7032. 2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1419 limit 1
  7033. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  7034. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  7035. 2024-03-22 07:53:51.984189 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  7036. 2024-03-22 07:53:51.984189 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  7037. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  7038. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  7039. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='2123267554' and uuid = '5300f0b2-e821-11ee-8fba-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  7040. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='2123267554' order by id desc limit 1
  7041. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [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="2123267554"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  7042. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1419 limit 1
  7043. 2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  7044. <document type="freeswitch/xml">                                                                                                                                                                                  
  7045. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  7046. <context name="default">                                                                                                                                                                                          
  7047. <extension name="0442792255">                                                                                                                                                                                      
  7048. <condition field="destination_number" expression="D9570442792255">                                                                                                                                                
  7049. <action application="set" data="effective_destination_number=0442792255"/>                                                                                                                                        
  7050. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  7051. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  7052. <action application="set" data="callstart=2024-03-22 07:53:51"/>                                                                                                                                                  
  7053. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  7054. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  7055. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  7056. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  7057. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  7058. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  7059. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  7060. <action application="set" data="accountname=default"/>                                                                                                                                                            
  7061. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  7062. <action application="set" data="origination_rates_did=ID:8513|CODE:^0442792255.*|DESTINATION:0442792255|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  7063. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  7064. <action application="set" data="original_caller_id_name=0732745146"/>                                                                                                                                              
  7065. <action application="set" data="effective_caller_id_name=27732745146"/>                                                                                                                                            
  7066. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  7067. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  7068. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  7069. <action application="export" data="presence_data=x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  7070. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  7071. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  7072. <action application="db" data="insert/pickup_any_group_${callgroup}/2123267554/${uuid}"/>                                                                                                                          
  7073. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  7074. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  7075. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  7076. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  7077. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  7078. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  7079. <action application="sleep" data="1000"/>                                                                                                                                                                          
  7080. <action application="ring_ready"/>                                                                                                                                                                                
  7081. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/2123267554@legalaidsa.nebular.co.za^0442792255"/>                                                      
  7082. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  7083. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  7084. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  7085. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  7086. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  7087. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  7088. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  7089. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  7090. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  7091. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  7092. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  7093. <action application="set" data="sip_destination_number=2123267554"/>                                                                                                                                              
  7094. <action application="set" data="destination_number=0442792255"/>                                                                                                                                                  
  7095. <action application="set" data="did_number=0442792255"/>                                                                                                                                                          
  7096. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  7097. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  7098. <condition field="${cond(${user_data 2123267554@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  7099. <action application="answer"/>                                                                                                                                                                                    
  7100. <action application="export" data="voicemail_alternate_greet_id=0442792255"/>                                                                                                                                      
  7101. <action application="voicemail" data="default $${domain_name} 2123267554"/>                                                                                                                                        
  7102. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  7103. </condition>                                                                                                                                                                                                      
  7104. </condition>                                                                                                                                                                                                      
  7105. </extension>                                                                                                                                                                                                      
  7106. </context>                                                                                                                                                                                                        
  7107. </section>                                                                                                                                                                                                        
  7108. </document>                                                                                                                                                                                                        
  7109. 2024-03-22 07:53:51.984189 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  7110. Dialplan: sofia/default/0732745146@41.160.32.115:5060 parsing [default->0442792255] continue=false
  7111. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Regex (PASS) [0442792255] destination_number(D9570442792255) =~ /D9570442792255/ break=on-false
  7112. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(effective_destination_number=0442792255)
  7113. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  7114. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  7115. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:51)
  7116. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  7117. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  7118. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(account_id=3)
  7119. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(parent_id=0)
  7120. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(entity_id=3)
  7121. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(call_processed=internal)
  7122. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(call_direction=inbound)
  7123. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(accountname=default)
  7124. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  7125. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(origination_rates_did=ID:8513|CODE:^0442792255.*|DESTINATION:0442792255|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  7126. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(origination_rates=0)
  7127. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(original_caller_id_name=0732745146)
  7128. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(effective_caller_id_name=27732745146)
  7129. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(receiver_accid=109)
  7130. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  7131. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  7132. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115)
  7133. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(call_type=5)
  7134. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(calltype=SIP-DID)
  7135. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/2123267554/${uuid})
  7136. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  7137. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  7138. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  7139. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  7140. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  7141. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  7142. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action sleep(1000)
  7143. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action ring_ready()
  7144. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/2123267554@legalaidsa.nebular.co.za^0442792255)
  7145. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(on_busy_flag=1)
  7146. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(on_busy_destination=)
  7147. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(no_answer_flag=1)
  7148. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(no_answer_destination=)
  7149. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(not_register_flag=1)
  7150. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(not_register_destination=)
  7151. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(opensips_flag=0)
  7152. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  7153. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  7154. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(leg_timeout=20)
  7155. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(userinfo_id=109)
  7156. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(sip_destination_number=2123267554)
  7157. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(destination_number=0442792255)
  7158. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(did_number=0442792255)
  7159. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  7160. Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  7161. |--- Dialplan: Processing recursive conditions level:1 [0442792255_recur_1] require-nested=TRUE
  7162. |--- Dialplan: sofia/default/0732745146@41.160.32.115:5060 Regex (FAIL) [0442792255_recur_1] ${cond(${user_data 2123267554@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  7163. |--- Dialplan: sofia/default/0732745146@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  7164. 2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0732745146@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  7165. 2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0732745146@41.160.32.115:5060) State ROUTING going to sleep
  7166. 2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 73 Tot 574990)
  7167. 2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0732745146@41.160.32.115:5060) State EXECUTE
  7168. 2024-03-22 07:53:52.004153 [DEBUG] mod_sofia.c:198 sofia/default/0732745146@41.160.32.115:5060 SOFIA EXECUTE
  7169. 2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0732745146@41.160.32.115:5060 Standard EXECUTE
  7170. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(effective_destination_number=0442792255)
  7171. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [effective_destination_number]=[0442792255]
  7172. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  7173. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  7174. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  7175. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  7176. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(callstart=2024-03-22 07:53:51)
  7177. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [callstart]=[2024-03-22 07:53:51]
  7178. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(hangup_after_bridge=true)
  7179. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [hangup_after_bridge]=[true]
  7180. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(continue_on_fail=TRUE)
  7181. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  7182. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(account_id=3)
  7183. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [account_id]=[3]
  7184. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(parent_id=0)
  7185. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [parent_id]=[0]
  7186. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(entity_id=3)
  7187. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [entity_id]=[3]
  7188. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(call_processed=internal)
  7189. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [call_processed]=[internal]
  7190. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(call_direction=inbound)
  7191. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [call_direction]=[inbound]
  7192. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(accountname=default)
  7193. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [accountname]=[default]
  7194. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  7195. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  7196. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(origination_rates_did=ID:8513|CODE:^0442792255.*|DESTINATION:0442792255|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  7197. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [origination_rates_did]=[ID:8513|CODE:^0442792255.*|DESTINATION:0442792255|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  7198. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(origination_rates=0)
  7199. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [origination_rates]=[0]
  7200. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(original_caller_id_name=0732745146)
  7201. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [original_caller_id_name]=[0732745146]
  7202. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(effective_caller_id_name=27732745146)
  7203. 2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [effective_caller_id_name]=[27732745146]
  7204. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(receiver_accid=109)
  7205. 2024-03-22 07:53:52.024171 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [receiver_accid]=[109]
  7206. EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  7207. 2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  7208. EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  7209. 2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  7210. EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115)
  7211. 2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115]
  7212. EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(call_type=5)
  7213. 2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  7214. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(calltype=SIP-DID)
  7215. 2024-03-22 07:53:52.024171 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [calltype]=[SIP-DID]
  7216. EXECUTE sofia/default/0732745146@41.160.32.115:5060 db(insert/pickup_any_group_/2123267554/5300f0b2-e821-11ee-8fba-d17fbcf33421)
  7217. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(dialed_extension=transfer_call)
  7218. 2024-03-22 07:53:52.024171 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  7219. EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(dialed_extension=transfer_call)
  7220. 2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  7221. EXECUTE sofia/default/0732745146@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  7222. 2024-03-22 07:53:52.024171 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  7223. EXECUTE sofia/default/0732745146@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  7224. 2024-03-22 07:53:52.024171 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  7225. EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(hangup_after_bridge=true)
  7226. 2024-03-22 07:53:52.024171 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [hangup_after_bridge]=[true]
  7227. EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  7228. 2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  7229. EXECUTE sofia/default/0732745146@41.160.32.115:5060 sleep(1000)
  7230. EXECUTE sofia/default/0732745146@41.160.32.115:5060 ring_ready()
  7231. 2024-03-22 07:53:53.024176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0732745146@41.160.32.115:5060!
  7232. 2024-03-22 07:53:53.024176 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [early][180]
  7233. 2024-03-22 07:53:53.024176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0732745146@41.160.32.115:5060!
  7234. EXECUTE sofia/default/0732745146@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/2123267554@legalaidsa.nebular.co.za^0442792255)
  7235. 2024-03-22 07:53:53.024176 [DEBUG] switch_channel.c:1250 sofia/default/0732745146@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  7236. 2024-03-22 07:53:53.024176 [DEBUG] switch_channel.c:1250 sofia/default/0732745146@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  7237. 2024-03-22 07:53:53.024176 [DEBUG] switch_channel.c:1250 sofia/default/0732745146@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  7238. 2024-03-22 07:53:53.024176 [DEBUG] switch_channel.c:1250 sofia/default/0732745146@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  7239. 2024-03-22 07:53:53.024176 [DEBUG] switch_channel.c:1250 sofia/default/0732745146@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  7240. 2024-03-22 07:53:53.024176 [DEBUG] switch_channel.c:1250 sofia/default/0732745146@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  7241. 2024-03-22 07:53:53.024176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  7242. 2024-03-22 07:53:53.024176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  7243. 2024-03-22 07:53:53.024176 [NOTICE] switch_channel.c:1104 New Channel sofia/default/2123267554@legalaidsa.nebular.co.za [53aba534-e821-11ee-8fe2-d17fbcf33421]
  7244. 2024-03-22 07:53:53.024176 [DEBUG] mod_sofia.c:4819 (sofia/default/2123267554@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  7245. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 74 Tot 574991)
  7246. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2123267554@legalaidsa.nebular.co.za) State INIT
  7247. 2024-03-22 07:53:53.024176 [DEBUG] mod_sofia.c:90 sofia/default/2123267554@legalaidsa.nebular.co.za SOFIA INIT
  7248. 2024-03-22 07:53:53.024176 [DEBUG] sofia_glue.c:1295 sofia/default/2123267554@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  7249. Local SDP:                                                                                                                                                                                                        
  7250. v=0                                                                                                                                                                                                                
  7251. o=FreeSWITCH 1711069037 1711069038 IN IP4 156.38.231.107                                                                                                                                                          
  7252. s=FreeSWITCH                                                                                                                                                                                                      
  7253. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  7254. t=0 0                                                                                                                                                                                                              
  7255. m=audio 24996 RTP/AVP 18 101                                                                                                                                                                                      
  7256. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  7257. a=fmtp:18 annexb=no                                                                                                                                                                                                
  7258. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  7259. a=fmtp:101 0-16                                                                                                                                                                                                    
  7260. a=ptime:20                                                                                                                                                                                                        
  7261. a=sendrecv                                                                                                                                                                                                        
  7262.  
  7263. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:40 sofia/default/2123267554@legalaidsa.nebular.co.za Standard INIT
  7264. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:48 (sofia/default/2123267554@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  7265. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2123267554@legalaidsa.nebular.co.za) State INIT going to sleep
  7266. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 74 Tot 574991)
  7267. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2123267554@legalaidsa.nebular.co.za) State ROUTING
  7268. 2024-03-22 07:53:53.024176 [DEBUG] mod_sofia.c:143 sofia/default/2123267554@legalaidsa.nebular.co.za SOFIA ROUTING
  7269. 2024-03-22 07:53:53.024176 [DEBUG] switch_ivr_originate.c:67 (sofia/default/2123267554@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  7270. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2123267554@legalaidsa.nebular.co.za) State ROUTING going to sleep
  7271. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 74 Tot 574991)
  7272. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/2123267554@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  7273. 2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/2123267554@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  7274. 2024-03-22 07:53:53.024176 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [calling][0]
  7275. 2024-03-22 07:53:53.124178 [NOTICE] sofia.c:1012 Hangup sofia/default/6085507138@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  7276. 2024-03-22 07:53:53.124178 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/6085507138@legalaidsa.nebular.co.za]
  7277. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:653 (sofia/default/6085507138@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  7278. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 74 Tot 574991)
  7279. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:850 (sofia/default/6085507138@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  7280. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:852 (sofia/default/6085507138@legalaidsa.nebular.co.za) State HANGUP
  7281. 2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:438 Channel sofia/default/6085507138@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  7282. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:60 sofia/default/6085507138@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  7283. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:852 (sofia/default/6085507138@legalaidsa.nebular.co.za) State HANGUP going to sleep
  7284. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:619 (sofia/default/6085507138@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  7285. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 74 Tot 574991)
  7286. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:938 (sofia/default/6085507138@legalaidsa.nebular.co.za) State REPORTING
  7287. 2024-03-22 07:53:53.124178 [INFO] mod_json_cdr.c:271 Process [44cbe970-e821-11ee-8e8c-d17fbcf33421.cdr.json]
  7288. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:174 sofia/default/6085507138@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  7289. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:938 (sofia/default/6085507138@legalaidsa.nebular.co.za) State REPORTING going to sleep
  7290. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:610 (sofia/default/6085507138@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  7291. 2024-03-22 07:53:53.124178 [DEBUG] switch_ivr_bridge.c:706 sofia/default/6085507138@legalaidsa.nebular.co.za ending bridge by request from write function
  7292. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_session.c:1665 Session 574974 (sofia/default/6085507138@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  7293. 2024-03-22 07:53:53.124178 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0613423198@41.160.32.115:5060]
  7294. 2024-03-22 07:53:53.124178 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0613423198@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  7295. 2024-03-22 07:53:53.124178 [NOTICE] switch_core_session.c:1683 Session 574974 (sofia/default/6085507138@legalaidsa.nebular.co.za) Ended
  7296. 2024-03-22 07:53:53.124178 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/6085507138@legalaidsa.nebular.co.za [CS_DESTROY]
  7297. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:741 (sofia/default/6085507138@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 73 Tot 574991)
  7298. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_session.c:2815 sofia/default/0613423198@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  7299. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0613423198@41.160.32.115:5060) State EXECUTE going to sleep
  7300. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 73 Tot 574991)
  7301. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:751 (sofia/default/6085507138@legalaidsa.nebular.co.za) State DESTROY
  7302. 2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:343 sofia/default/6085507138@legalaidsa.nebular.co.za SOFIA DESTROY
  7303. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:181 sofia/default/6085507138@legalaidsa.nebular.co.za Standard DESTROY
  7304. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:751 (sofia/default/6085507138@legalaidsa.nebular.co.za) State DESTROY going to sleep
  7305. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0613423198@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  7306. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0613423198@41.160.32.115:5060) State HANGUP
  7307. 2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:432 sofia/default/0613423198@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  7308. 2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:438 Channel sofia/default/0613423198@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  7309. 2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0613423198@41.160.32.115:5060
  7310. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:60 sofia/default/0613423198@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  7311. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0613423198@41.160.32.115:5060) State HANGUP going to sleep
  7312. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0613423198@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  7313. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 73 Tot 574991)
  7314. 2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0613423198@41.160.32.115:5060) State REPORTING
  7315. 2024-03-22 07:53:53.124178 [INFO] mod_json_cdr.c:271 Process [4420f560-e821-11ee-8e64-d17fbcf33421.cdr.json]
  7316. 2024-03-22 07:53:53.144395 [DEBUG] switch_core_state_machine.c:174 sofia/default/0613423198@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  7317. 2024-03-22 07:53:53.144395 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0613423198@41.160.32.115:5060) State REPORTING going to sleep
  7318. 2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0613423198@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  7319. 2024-03-22 07:53:53.164160 [DEBUG] switch_core_session.c:1665 Session 574973 (sofia/default/0613423198@41.160.32.115:5060) Locked, Waiting on external entities
  7320. 2024-03-22 07:53:53.164160 [NOTICE] switch_core_session.c:1683 Session 574973 (sofia/default/0613423198@41.160.32.115:5060) Ended
  7321. 2024-03-22 07:53:53.164160 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0613423198@41.160.32.115:5060 [CS_DESTROY]
  7322. 2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0613423198@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 72 Tot 574991)
  7323. 2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0613423198@41.160.32.115:5060) State DESTROY
  7324. 2024-03-22 07:53:53.164160 [DEBUG] mod_sofia.c:343 sofia/default/0613423198@41.160.32.115:5060 SOFIA DESTROY
  7325. 2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:181 sofia/default/0613423198@41.160.32.115:5060 Standard DESTROY
  7326. 2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0613423198@41.160.32.115:5060) State DESTROY going to sleep
  7327. 2024-03-22 07:53:53.264164 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [proceeding][180]
  7328. 2024-03-22 07:53:53.264164 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/2123267554@legalaidsa.nebular.co.za!
  7329. 2024-03-22 07:53:53.264164 [DEBUG] switch_channel.c:3346 (sofia/default/2123267554@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  7330. 2024-03-22 07:53:53.264164 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0732745146@41.160.32.115:5060!
  7331. 2024-03-22 07:53:53.484171 [DEBUG] switch_scheduler.c:144 Deleting task 232830 switch_ivr_schedule_hangup (44cbe970-e821-11ee-8e8c-d17fbcf33421)
  7332. 2024-03-22 07:53:54.424157 [NOTICE] sofia.c:1012 Hangup sofia/default/+27119421172@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  7333. 2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27119421172@41.160.32.115:5060]
  7334. 2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:706 sofia/default/+27119421172@41.160.32.115:5060 ending bridge by request from write function
  7335. 2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7682330505@legalaidsa.nebular.co.za]
  7336. 2024-03-22 07:53:54.424157 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/7682330505@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  7337. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  7338. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 72 Tot 574991)
  7339. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  7340. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP
  7341. 2024-03-22 07:53:54.424157 [DEBUG] mod_sofia.c:432 sofia/default/7682330505@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  7342. 2024-03-22 07:53:54.424157 [DEBUG] mod_sofia.c:438 Channel sofia/default/7682330505@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  7343. 2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/7682330505@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  7344. 2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/+27119421172@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  7345. 2024-03-22 07:53:54.424157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/7682330505@legalaidsa.nebular.co.za
  7346. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:60 sofia/default/7682330505@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  7347. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP going to sleep
  7348. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  7349. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 72 Tot 574991)
  7350. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_session.c:2815 sofia/default/+27119421172@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  7351. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27119421172@41.160.32.115:5060) State EXECUTE going to sleep
  7352. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING
  7353. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 72 Tot 574991)
  7354. 2024-03-22 07:53:54.424157 [INFO] mod_json_cdr.c:271 Process [ebba5520-e81f-11ee-a9c5-d17fbcf33421.cdr.json]
  7355. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/+27119421172@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  7356. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27119421172@41.160.32.115:5060) State HANGUP
  7357. 2024-03-22 07:53:54.424157 [DEBUG] mod_sofia.c:438 Channel sofia/default/+27119421172@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  7358. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:60 sofia/default/+27119421172@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  7359. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27119421172@41.160.32.115:5060) State HANGUP going to sleep
  7360. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  7361. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 72 Tot 574991)
  7362. 2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27119421172@41.160.32.115:5060) State REPORTING
  7363. 2024-03-22 07:53:54.424157 [INFO] mod_json_cdr.c:271 Process [eb1139fe-e81f-11ee-a971-d17fbcf33421.cdr.json]
  7364. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:174 sofia/default/7682330505@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  7365. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING going to sleep
  7366. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  7367. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_session.c:1665 Session 574543 (sofia/default/7682330505@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  7368. 2024-03-22 07:53:54.444291 [NOTICE] switch_core_session.c:1683 Session 574543 (sofia/default/7682330505@legalaidsa.nebular.co.za) Ended
  7369. 2024-03-22 07:53:54.444291 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7682330505@legalaidsa.nebular.co.za [CS_DESTROY]
  7370. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 71 Tot 574991)
  7371. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY
  7372. 2024-03-22 07:53:54.444291 [DEBUG] mod_sofia.c:343 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA DESTROY
  7373. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:181 sofia/default/7682330505@legalaidsa.nebular.co.za Standard DESTROY
  7374. 2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY going to sleep
  7375. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:174 sofia/default/+27119421172@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  7376. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27119421172@41.160.32.115:5060) State REPORTING going to sleep
  7377. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  7378. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_session.c:1665 Session 574540 (sofia/default/+27119421172@41.160.32.115:5060) Locked, Waiting on external entities
  7379. 2024-03-22 07:53:54.464159 [NOTICE] switch_core_session.c:1683 Session 574540 (sofia/default/+27119421172@41.160.32.115:5060) Ended
  7380. 2024-03-22 07:53:54.464159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/+27119421172@41.160.32.115:5060 [CS_DESTROY]
  7381. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 70 Tot 574991)
  7382. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27119421172@41.160.32.115:5060) State DESTROY
  7383. 2024-03-22 07:53:54.464159 [DEBUG] mod_sofia.c:343 sofia/default/+27119421172@41.160.32.115:5060 SOFIA DESTROY
  7384. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27119421172@41.160.32.115:5060 Standard DESTROY
  7385. 2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27119421172@41.160.32.115:5060) State DESTROY going to sleep
  7386. 2024-03-22 07:53:54.484166 [DEBUG] switch_scheduler.c:144 Deleting task 232657 switch_ivr_schedule_hangup (ebba5520-e81f-11ee-a9c5-d17fbcf33421)
  7387. 2024-03-22 07:53:57.504484 [NOTICE] sofia.c:1012 Hangup sofia/default/0419911811@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  7388. 2024-03-22 07:53:57.504484 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0419911811@legalaidsa.nebular.co.za:5060]
  7389. 2024-03-22 07:53:57.524157 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  7390. 2024-03-22 07:53:57.524157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0823875957]
  7391. 2024-03-22 07:53:57.524157 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0823875957 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  7392. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0823875957) State EXCHANGE_MEDIA going to sleep
  7393. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0823875957) Running State Change CS_HANGUP (Cur 70 Tot 574991)
  7394. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0823875957) Callstate Change ACTIVE -> HANGUP
  7395. 2024-03-22 07:53:57.524157 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0823875957 skip receive message [UNBRIDGE] (channel is hungup already)
  7396. 2024-03-22 07:53:57.524157 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  7397. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0823875957) State HANGUP
  7398. 2024-03-22 07:53:57.524157 [DEBUG] mod_sofia.c:432 sofia/default/0823875957 Overriding SIP cause 480 with 200 from the other leg
  7399. 2024-03-22 07:53:57.524157 [DEBUG] mod_sofia.c:438 Channel sofia/default/0823875957 hanging up, cause: NORMAL_CLEARING
  7400. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_session.c:2815 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  7401. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  7402. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 70 Tot 574991)
  7403. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  7404. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State HANGUP
  7405. 2024-03-22 07:53:57.524157 [DEBUG] mod_sofia.c:438 Channel sofia/default/0419911811@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  7406. 2024-03-22 07:53:57.524157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0823875957
  7407. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:60 sofia/default/0823875957 Standard HANGUP, cause: NORMAL_CLEARING
  7408. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0823875957) State HANGUP going to sleep
  7409. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0823875957) State Change CS_HANGUP -> CS_REPORTING
  7410. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0823875957) Running State Change CS_REPORTING (Cur 70 Tot 574991)
  7411. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0823875957) State REPORTING
  7412. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:60 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  7413. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  7414. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  7415. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 70 Tot 574991)
  7416. 2024-03-22 07:53:57.524157 [INFO] mod_json_cdr.c:271 Process [ebb8c984-e820-11ee-8500-d17fbcf33421.cdr.json]
  7417. 2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State REPORTING
  7418. 2024-03-22 07:53:57.524157 [INFO] mod_json_cdr.c:271 Process [ebabc752-e820-11ee-84dd-d17fbcf33421.cdr.json]
  7419. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:174 sofia/default/0823875957 Standard REPORTING, cause: NORMAL_CLEARING
  7420. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0823875957) State REPORTING going to sleep
  7421. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0823875957) State Change CS_REPORTING -> CS_DESTROY
  7422. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_session.c:1665 Session 574862 (sofia/default/0823875957) Locked, Waiting on external entities
  7423. 2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1683 Session 574862 (sofia/default/0823875957) Ended
  7424. 2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0823875957 [CS_DESTROY]
  7425. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0823875957) Running State Change CS_DESTROY (Cur 69 Tot 574991)
  7426. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0823875957) State DESTROY
  7427. 2024-03-22 07:53:57.545286 [DEBUG] mod_sofia.c:343 sofia/default/0823875957 SOFIA DESTROY
  7428. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:181 sofia/default/0823875957 Standard DESTROY
  7429. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0823875957) State DESTROY going to sleep
  7430. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:174 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  7431. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  7432. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  7433. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_session.c:1665 Session 574861 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  7434. 2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1683 Session 574861 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Ended
  7435. 2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0419911811@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  7436. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 68 Tot 574991)
  7437. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State DESTROY
  7438. 2024-03-22 07:53:57.545286 [DEBUG] mod_sofia.c:343 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  7439. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:181 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 Standard DESTROY
  7440. 2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  7441. 2024-03-22 07:53:57.984161 [DEBUG] switch_scheduler.c:144 Deleting task 232783 switch_ivr_schedule_hangup (ebb8c984-e820-11ee-8500-d17fbcf33421)
  7442. 2024-03-22 07:53:58.784175 [NOTICE] sofia.c:1012 Hangup sofia/default/7106027339@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  7443. 2024-03-22 07:53:58.784175 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7106027339@legalaidsa.nebular.co.za]
  7444. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7106027339@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  7445. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 68 Tot 574991)
  7446. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  7447. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7106027339@legalaidsa.nebular.co.za) State HANGUP
  7448. 2024-03-22 07:53:58.784175 [DEBUG] mod_sofia.c:438 Channel sofia/default/7106027339@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  7449. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:60 sofia/default/7106027339@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  7450. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7106027339@legalaidsa.nebular.co.za) State HANGUP going to sleep
  7451. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  7452. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 68 Tot 574991)
  7453. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7106027339@legalaidsa.nebular.co.za) State REPORTING
  7454. 2024-03-22 07:53:58.784175 [INFO] mod_json_cdr.c:271 Process [4cbe3c3c-e821-11ee-8f77-d17fbcf33421.cdr.json]
  7455. 2024-03-22 07:53:58.784175 [DEBUG] switch_ivr_bridge.c:706 sofia/default/7106027339@legalaidsa.nebular.co.za ending bridge by request from write function
  7456. 2024-03-22 07:53:58.784175 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0104988840@41.160.32.115:5060]
  7457. 2024-03-22 07:53:58.784175 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/7106027339@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  7458. 2024-03-22 07:53:58.784175 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0104988840@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  7459. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_session.c:2815 sofia/default/0104988840@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  7460. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0104988840@41.160.32.115:5060) State EXECUTE going to sleep
  7461. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 68 Tot 574991)
  7462. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0104988840@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  7463. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0104988840@41.160.32.115:5060) State HANGUP
  7464. 2024-03-22 07:53:58.784175 [DEBUG] mod_sofia.c:432 sofia/default/0104988840@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  7465. 2024-03-22 07:53:58.784175 [DEBUG] mod_sofia.c:438 Channel sofia/default/0104988840@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  7466. 2024-03-22 07:53:58.784175 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0104988840@41.160.32.115:5060
  7467. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:60 sofia/default/0104988840@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  7468. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0104988840@41.160.32.115:5060) State HANGUP going to sleep
  7469. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0104988840@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  7470. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 68 Tot 574991)
  7471. 2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0104988840@41.160.32.115:5060) State REPORTING
  7472. 2024-03-22 07:53:58.784175 [INFO] mod_json_cdr.c:271 Process [4c13c2e8-e821-11ee-8f46-d17fbcf33421.cdr.json]
  7473. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:174 sofia/default/7106027339@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  7474. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7106027339@legalaidsa.nebular.co.za) State REPORTING going to sleep
  7475. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  7476. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_session.c:1665 Session 574986 (sofia/default/7106027339@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  7477. 2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1683 Session 574986 (sofia/default/7106027339@legalaidsa.nebular.co.za) Ended
  7478. 2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7106027339@legalaidsa.nebular.co.za [CS_DESTROY]
  7479. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 67 Tot 574991)
  7480. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7106027339@legalaidsa.nebular.co.za) State DESTROY
  7481. 2024-03-22 07:53:58.804171 [DEBUG] mod_sofia.c:343 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA DESTROY
  7482. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:181 sofia/default/7106027339@legalaidsa.nebular.co.za Standard DESTROY
  7483. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7106027339@legalaidsa.nebular.co.za) State DESTROY going to sleep
  7484. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:174 sofia/default/0104988840@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  7485. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0104988840@41.160.32.115:5060) State REPORTING going to sleep
  7486. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0104988840@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  7487. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_session.c:1665 Session 574984 (sofia/default/0104988840@41.160.32.115:5060) Locked, Waiting on external entities
  7488. 2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1683 Session 574984 (sofia/default/0104988840@41.160.32.115:5060) Ended
  7489. 2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0104988840@41.160.32.115:5060 [CS_DESTROY]
  7490. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0104988840@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 66 Tot 574991)
  7491. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0104988840@41.160.32.115:5060) State DESTROY
  7492. 2024-03-22 07:53:58.804171 [DEBUG] mod_sofia.c:343 sofia/default/0104988840@41.160.32.115:5060 SOFIA DESTROY
  7493. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:181 sofia/default/0104988840@41.160.32.115:5060 Standard DESTROY
  7494. 2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0104988840@41.160.32.115:5060) State DESTROY going to sleep
  7495. 2024-03-22 07:53:58.924192 [NOTICE] sofia.c:1012 Hangup sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  7496. 2024-03-22 07:53:58.924192 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0155191100@legalaidsa.nebular.co.za:5060]
  7497. 2024-03-22 07:53:58.924192 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  7498. 2024-03-22 07:53:58.924192 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0837207317]
  7499. 2024-03-22 07:53:58.944160 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0837207317 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  7500. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0837207317) State EXCHANGE_MEDIA going to sleep
  7501. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837207317) Running State Change CS_HANGUP (Cur 66 Tot 574991)
  7502. 2024-03-22 07:53:58.944160 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0837207317 skip receive message [UNBRIDGE] (channel is hungup already)
  7503. 2024-03-22 07:53:58.944160 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  7504. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_session.c:2815 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  7505. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  7506. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 66 Tot 574991)
  7507. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  7508. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State HANGUP
  7509. 2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:438 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  7510. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:60 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  7511. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  7512. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  7513. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 66 Tot 574991)
  7514. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State REPORTING
  7515. 2024-03-22 07:53:58.944160 [INFO] mod_json_cdr.c:271 Process [413d6fea-e821-11ee-8e0e-d17fbcf33421.cdr.json]
  7516. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0837207317) Callstate Change ACTIVE -> HANGUP
  7517. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837207317) State HANGUP
  7518. 2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:432 sofia/default/0837207317 Overriding SIP cause 480 with 200 from the other leg
  7519. 2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:438 Channel sofia/default/0837207317 hanging up, cause: NORMAL_CLEARING
  7520. 2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0837207317
  7521. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:60 sofia/default/0837207317 Standard HANGUP, cause: NORMAL_CLEARING
  7522. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837207317) State HANGUP going to sleep
  7523. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0837207317) State Change CS_HANGUP -> CS_REPORTING
  7524. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837207317) Running State Change CS_REPORTING (Cur 66 Tot 574991)
  7525. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837207317) State REPORTING
  7526. 2024-03-22 07:53:58.944160 [INFO] mod_json_cdr.c:271 Process [41489e38-e821-11ee-8e31-d17fbcf33421.cdr.json]
  7527. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:174 sofia/default/0837207317 Standard REPORTING, cause: NORMAL_CLEARING
  7528. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837207317) State REPORTING going to sleep
  7529. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0837207317) State Change CS_REPORTING -> CS_DESTROY
  7530. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_session.c:1665 Session 574970 (sofia/default/0837207317) Locked, Waiting on external entities
  7531. 2024-03-22 07:53:58.944160 [NOTICE] switch_core_session.c:1683 Session 574970 (sofia/default/0837207317) Ended
  7532. 2024-03-22 07:53:58.944160 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0837207317 [CS_DESTROY]
  7533. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0837207317) Running State Change CS_DESTROY (Cur 65 Tot 574991)
  7534. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837207317) State DESTROY
  7535. 2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:343 sofia/default/0837207317 SOFIA DESTROY
  7536. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:181 sofia/default/0837207317 Standard DESTROY
  7537. 2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837207317) State DESTROY going to sleep
  7538. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:174 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  7539. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  7540. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  7541. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_session.c:1665 Session 574969 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  7542. 2024-03-22 07:53:58.964286 [NOTICE] switch_core_session.c:1683 Session 574969 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Ended
  7543. 2024-03-22 07:53:58.964286 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  7544. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 64 Tot 574991)
  7545. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State DESTROY
  7546. 2024-03-22 07:53:58.964286 [DEBUG] mod_sofia.c:343 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  7547. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:181 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard DESTROY
  7548. 2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  7549. 2024-03-22 07:53:58.984161 [DEBUG] switch_scheduler.c:144 Deleting task 232828 switch_ivr_schedule_hangup (41489e38-e821-11ee-8e31-d17fbcf33421)
  7550. 2024-03-22 07:53:58.984161 [DEBUG] switch_scheduler.c:144 Deleting task 232832 switch_ivr_schedule_hangup (4cbe3c3c-e821-11ee-8f77-d17fbcf33421)
  7551. 2024-03-22 07:53:59.264169 [NOTICE] sofia.c:1012 Hangup sofia/default/0117030023@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  7552. 2024-03-22 07:53:59.264169 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0117030023@legalaidsa.nebular.co.za:5060]
  7553. 2024-03-22 07:53:59.284216 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  7554. 2024-03-22 07:53:59.284216 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0696180286]
  7555. 2024-03-22 07:53:59.284216 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0696180286 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  7556. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0696180286) State EXCHANGE_MEDIA going to sleep
  7557. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0696180286) Running State Change CS_HANGUP (Cur 64 Tot 574991)
  7558. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0696180286) Callstate Change ACTIVE -> HANGUP
  7559. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0696180286) State HANGUP
  7560. 2024-03-22 07:53:59.284216 [DEBUG] mod_sofia.c:432 sofia/default/0696180286 Overriding SIP cause 480 with 200 from the other leg
  7561. 2024-03-22 07:53:59.284216 [DEBUG] mod_sofia.c:438 Channel sofia/default/0696180286 hanging up, cause: NORMAL_CLEARING
  7562. 2024-03-22 07:53:59.284216 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0696180286
  7563. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:60 sofia/default/0696180286 Standard HANGUP, cause: NORMAL_CLEARING
  7564. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0696180286) State HANGUP going to sleep
  7565. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0696180286) State Change CS_HANGUP -> CS_REPORTING
  7566. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0696180286) Running State Change CS_REPORTING (Cur 64 Tot 574991)
  7567. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0696180286) State REPORTING
  7568. 2024-03-22 07:53:59.284216 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0696180286 skip receive message [UNBRIDGE] (channel is hungup already)
  7569. 2024-03-22 07:53:59.284216 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  7570. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_session.c:2815 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  7571. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  7572. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 64 Tot 574991)
  7573. 2024-03-22 07:53:59.284216 [INFO] mod_json_cdr.c:271 Process [9f605792-e81f-11ee-a072-d17fbcf33421.cdr.json]
  7574. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  7575. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State HANGUP
  7576. 2024-03-22 07:53:59.284216 [DEBUG] mod_sofia.c:438 Channel sofia/default/0117030023@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  7577. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:60 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  7578. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  7579. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  7580. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 64 Tot 574991)
  7581. 2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State REPORTING
  7582. 2024-03-22 07:53:59.284216 [INFO] mod_json_cdr.c:271 Process [9f5204c6-e81f-11ee-a04f-d17fbcf33421.cdr.json]
  7583. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:174 sofia/default/0696180286 Standard REPORTING, cause: NORMAL_CLEARING
  7584. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0696180286) State REPORTING going to sleep
  7585. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0696180286) State Change CS_REPORTING -> CS_DESTROY
  7586. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_session.c:1665 Session 574434 (sofia/default/0696180286) Locked, Waiting on external entities
  7587. 2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1683 Session 574434 (sofia/default/0696180286) Ended
  7588. 2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0696180286 [CS_DESTROY]
  7589. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0696180286) Running State Change CS_DESTROY (Cur 63 Tot 574991)
  7590. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0696180286) State DESTROY
  7591. 2024-03-22 07:53:59.304296 [DEBUG] mod_sofia.c:343 sofia/default/0696180286 SOFIA DESTROY
  7592. 2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:109 DECODER DESTROYED----------->0x7fedb01cc328 0x7fedb01cc330
  7593. 2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:112 DECODER LICENSE DEALLOCATED->0x7fedb01cc328 0x7fedb01cc330
  7594. 2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7fedb01cc3a8 0x7fedb01cc3a8
  7595. 2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7fedb01cc3a8 0x7fedb01cc3a8
  7596. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:181 sofia/default/0696180286 Standard DESTROY
  7597. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0696180286) State DESTROY going to sleep
  7598. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:174 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  7599. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  7600. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  7601. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_session.c:1665 Session 574433 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  7602. 2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1683 Session 574433 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Ended
  7603. 2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0117030023@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  7604. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 62 Tot 574991)
  7605. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State DESTROY
  7606. 2024-03-22 07:53:59.304296 [DEBUG] mod_sofia.c:343 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  7607. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:181 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 Standard DESTROY
  7608. 2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  7609. 2024-03-22 07:53:59.324174 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [completing][200]
  7610. 2024-03-22 07:53:59.324174 [DEBUG] sofia.c:7091 Duplicate SDP
  7611. v=0                                                                                                                                                                                                                
  7612. o=HuaweiSoftX3000 45910183753419 45910183753419 IN IP4 41.160.32.115                                                                                                                                              
  7613. s=-                                                                                                                                                                                                                
  7614. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  7615. t=0 0                                                                                                                                                                                                              
  7616. m=audio 24794 RTP/AVP 8 101                                                                                                                                                                                        
  7617. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  7618. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  7619. a=fmtp:101 0-15                                                                                                                                                                                                    
  7620. a=ptime:20                                                                                                                                                                                                        
  7621.  
  7622. 2024-03-22 07:53:59.324174 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [ready][200]
  7623. 2024-03-22 07:53:59.324174 [NOTICE] sofia.c:8159 Channel [sofia/default/0764147705] has been answered
  7624. 2024-03-22 07:53:59.324174 [DEBUG] switch_channel.c:3773 (sofia/default/0764147705) Callstate Change EARLY -> ACTIVE
  7625. 2024-03-22 07:53:59.344560 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0333942190@legalaidsa.nebular.co.za:5060.
  7626. 2024-03-22 07:53:59.344560 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0333942190@legalaidsa.nebular.co.za:5060:
  7627. v=0                                                                                                                                                                                                                
  7628. o=FreeSWITCH 1711069642 1711069644 IN IP4 156.38.231.107                                                                                                                                                          
  7629. s=FreeSWITCH                                                                                                                                                                                                      
  7630. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  7631. t=0 0                                                                                                                                                                                                              
  7632. m=audio 24382 RTP/AVP 8 101                                                                                                                                                                                        
  7633. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  7634. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  7635. a=fmtp:101 0-16                                                                                                                                                                                                    
  7636. a=ptime:20                                                                                                                                                                                                        
  7637. a=sendrecv                                                                                                                                                                                                        
  7638.  
  7639. 2024-03-22 07:53:59.344560 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0333942190@legalaidsa.nebular.co.za:5060] has been answered
  7640. 2024-03-22 07:53:59.344560 [DEBUG] switch_channel.c:3773 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  7641. 2024-03-22 07:53:59.344560 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  7642. 2024-03-22 07:53:59.364178 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  7643. 2024-03-22 07:53:59.384155 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  7644. 2024-03-22 07:53:59.404161 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  7645. 2024-03-22 07:53:59.484171 [DEBUG] switch_scheduler.c:144 Deleting task 232612 switch_ivr_schedule_hangup (9f605792-e81f-11ee-a072-d17fbcf33421)
  7646. 2024-03-22 07:54:00.944199 [NOTICE] switch_channel.c:1104 New Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [5864dcda-e821-11ee-8fe6-d17fbcf33421]
  7647. 2024-03-22 07:54:00.944199 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 63 Tot 574992)
  7648. 2024-03-22 07:54:00.944199 [DEBUG] sofia.c:9873 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  7649. 2024-03-22 07:54:00.944199 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  7650. 2024-03-22 07:54:00.964172 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [received][100]
  7651. 2024-03-22 07:54:00.964172 [DEBUG] sofia.c:7094 Remote SDP:
  7652. v=0                                                                                                                                                                                                                
  7653. o=3cxPS 528918511616 397871677441 IN IP4 156.38.150.6                                                                                                                                                              
  7654. s=3cxPS Audio call                                                                                                                                                                                                
  7655. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  7656. t=0 0                                                                                                                                                                                                              
  7657. m=audio 10482 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  7658. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  7659. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  7660. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  7661. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  7662. a=fmtp:18 annexb=no                                                                                                                                                                                                
  7663. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  7664.  
  7665. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  7666. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  7667. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  7668. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  7669. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  7670. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  7671. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  7672. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  7673. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  7674. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  7675. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  7676. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  7677. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  7678. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  7679. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  7680. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  7681. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  7682. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  7683. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  7684. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  7685. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  7686. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/27118772377@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  7687. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_codec.c:111 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  7688. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  7689. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4767 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  7690. 2024-03-22 07:54:00.964172 [DEBUG] sofia.c:7507 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  7691. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:603 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State NEW
  7692. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 63 Tot 574992)
  7693. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State INIT
  7694. 2024-03-22 07:54:00.964172 [DEBUG] mod_sofia.c:90 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA INIT
  7695. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:40 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard INIT
  7696. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:48 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  7697. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  7698. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 63 Tot 574992)
  7699. 2024-03-22 07:54:00.964172 [DEBUG] switch_channel.c:2249 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  7700. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:643 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State ROUTING
  7701. 2024-03-22 07:54:00.964172 [DEBUG] mod_sofia.c:143 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  7702. 2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:236 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard ROUTING
  7703. 2024-03-22 07:54:00.964172 [INFO] mod_dialplan_xml.c:637 Processing 27118772377 <27118772377>->0105109307 in context default
  7704. 2024-03-22 07:54:00.964172 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  7705. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  7706. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  7707. 2024-03-22 07:54:00.964172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  7708. 2024-03-22 07:54:00.964172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0105109307
  7709. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0105109307' limit 1
  7710. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0105109307' AND status=0 limit 1
  7711. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0105109307' and status=0 LIMIT 1                                                                                                                                                                                                          
  7712. 2024-03-22 07:54:00.964172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  7713. 2024-03-22 07:54:00.964172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 27118772377 / 27118772377
  7714. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [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 ="0105109307" LIMIT 1                                                                                                                                                              
  7715. 2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [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="0105109307"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  7716. 2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  7717. 2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  7718. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  7719. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0105109307.*' OR blocked_patterns = '^010510930.*' OR blocked_patterns = '^01051093.*' OR blocked_patterns = '^0105109.*' OR blocked_patterns = '^010510.*' OR blocked_patterns = '^01051.*' OR blocked_patterns = '^0105.*' OR blocked_patterns = '^010.*' OR blocked_patterns = '^01.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  7720. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0105109307" AND (accountid = 0 OR status = 1) LIMIT 1
  7721. 2024-03-22 07:54:00.984157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  7722. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  7723. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0105109307
  7724. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0105109307
  7725. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [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 = '^0105109307.*' OR patterns = '^010510930.*' OR patterns = '^01051093.*' OR patterns = '^0105109.*' OR patterns = '^010510.*' OR patterns = '^01051.*' OR patterns = '^0105.*' OR patterns = '^010.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  7726. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [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 ="0105109307" AND A.accountid = '109' limit 1                                                                                                                                                                        
  7727. 2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0105109307
  7728. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [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 ="0105109307" LIMIT 1                                                                                                                                                              
  7729. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [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="0105109307"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  7730. 2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  7731. 2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0105109307' OR number = '010510930' OR number = '01051093' OR number = '0105109' OR number = '010510' OR number = '01051' OR number = '0105' OR number = '010' OR number = '01' OR number = '0' OR number ='--') OR (number = '0105109307*' OR number = '010510930*' OR number = '01051093*' OR number = '0105109*' OR number = '010510*' OR number = '01051*' OR number = '0105*' OR number = '010*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '27118772377' OR number = '2711877237' OR number = '271187723' OR number = '27118772' OR number = '2711877' OR number = '271187' OR number = '27118' OR number = '2711' OR number = '271' OR number = '27' OR number = '2' OR number ='--') OR (number = '27118772377*' OR number = '2711877237*' OR number = '271187723*' OR number = '27118772*' OR number = '2711877*' OR number = '271187*' OR number = '27118*' OR number = '2711*' OR number = '271*' OR number = '27*' OR number = '2*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                      
  7732. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  7733. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0105109307' OR routing_prefix = '010510930' OR routing_prefix = '01051093' OR routing_prefix = '0105109' OR routing_prefix = '010510' OR routing_prefix = '01051' OR routing_prefix = '0105' OR routing_prefix = '010' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  7734. 2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0105109307)!!!!
  7735. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27105109307
  7736. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27105109307' limit 1
  7737. 2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0105109307)!!!!
  7738. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  7739. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  7740. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  7741. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  7742. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  7743. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  7744. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  7745. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  7746. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7747. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7748. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7749. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7750. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7751. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7752. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7753. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7754. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7755. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7756. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7757. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  7758. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  7759. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  7760. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  7761. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0105109307.*' OR pattern = '^010510930.*' OR pattern = '^01051093.*' OR pattern = '^0105109.*' OR pattern = '^010510.*' OR pattern = '^01051.*' OR pattern = '^0105.*' OR pattern = '^010.*' OR pattern = '^01.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  7762. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  7763. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  7764. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2138357
  7765. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  7766. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  7767. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  7768. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - CENTRACOM - GEOGRAPHIC
  7769. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  7770. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  7771. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  7772. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  7773. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  7774. 2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  7775. 2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  7776. 2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  7777. 2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  7778. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0105109307.*' OR blocked_patterns = '^010510930.*' OR blocked_patterns = '^01051093.*' OR blocked_patterns = '^0105109.*' OR blocked_patterns = '^010510.*' OR blocked_patterns = '^01051.*' OR blocked_patterns = '^0105.*' OR blocked_patterns = '^010.*' OR blocked_patterns = '^01.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  7779. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  7780. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  7781. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  7782. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9950.7683
  7783. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  7784. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  7785. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  7786. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  7787. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  7788. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0105109307.*' OR pattern = '^010510930.*' OR pattern = '^01051093.*' OR pattern = '^0105109.*' OR pattern = '^010510.*' OR pattern = '^01051.*' OR pattern = '^0105.*' OR pattern = '^010.*' OR pattern = '^01.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  7789. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  7790. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  7791. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1410783
  7792. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  7793. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  7794. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  7795. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - CENTRACOM - GEOGRAPHIC
  7796. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  7797. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  7798. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  7799. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  7800. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  7801. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9950.7683 balance Accountid 13 !!!
  7802. 2024-03-22 07:54:01.024170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  7803. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2138357|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1410783|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                  
  7804. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  7805. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  7806. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  7807. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2138357
  7808. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  7809. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  7810. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0105109307.*' OR pattern = '^010510930.*' OR pattern = '^01051093.*' OR pattern = '^0105109.*' OR pattern = '^010510.*' OR pattern = '^01051.*' OR pattern = '^0105.*' OR pattern = '^010.*' OR pattern = '^01.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  7811. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  7812. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  7813. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  7814. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  7815. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  7816. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  7817. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  7818. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  7819. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  7820. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  7821. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  7822. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  7823. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  7824. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  7825. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  7826. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  7827. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  7828. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  7829. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  7830. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  7831. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  7832. 2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  7833. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  7834. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  7835. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0105109307
  7836. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  7837. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [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 ="0105109307" LIMIT 1                                                                                                                                                              
  7838. 2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  7839. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  7840. <document type="freeswitch/xml">                                                                                                                                                                                  
  7841. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  7842. <context name="default">                                                                                                                                                                                          
  7843. <extension name="0105109307">                                                                                                                                                                                      
  7844. <condition field="destination_number" expression="0105109307">                                                                                                                                                    
  7845. <action application="set" data="effective_destination_number=0105109307"/>                                                                                                                                        
  7846. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  7847. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  7848. <action application="set" data="callstart=2024-03-22 07:54:01"/>                                                                                                                                                  
  7849. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  7850. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  7851. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  7852. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  7853. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  7854. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  7855. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  7856. <action application="set" data="accountname=default"/>                                                                                                                                                            
  7857. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  7858. <action application="set" data="origination_rates=ID:2138357|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1410783|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                                                                                                                                                                                                    
  7859. <action application="set" data="original_caller_id_name=27118772377"/>                                                                                                                                            
  7860. <action application="set" data="original_caller_id_number=27118772377"/>                                                                                                                                          
  7861. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  7862. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  7863. <action application="set" data="effective_caller_id_name=27118772377"/>                                                                                                                                            
  7864. <action application="set" data="effective_caller_id_number=27118772377"/>                                                                                                                                          
  7865. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  7866. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  7867. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  7868. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  7869. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  7870. <action application="set" data="force_trunk_flag=2138357"/>                                                                                                                                                        
  7871. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  7872. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  7873. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC"/>                                                                                                                      
  7874. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0105109307;fs_path=sip:156.38.231.106:5060"/>                                              
  7875. </condition>                                                                                                                                                                                                      
  7876. </extension>                                                                                                                                                                                                      
  7877. </context>                                                                                                                                                                                                        
  7878. </section>                                                                                                                                                                                                        
  7879. </document>                                                                                                                                                                                                        
  7880. 2024-03-22 07:54:01.024170 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  7881. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 parsing [default->0105109307] continue=false
  7882. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Regex (PASS) [0105109307] destination_number(0105109307) =~ /0105109307/ break=on-false
  7883. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0105109307)
  7884. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  7885. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  7886. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:01)
  7887. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  7888. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  7889. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  7890. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  7891. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  7892. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  7893. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  7894. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  7895. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  7896. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2138357|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1410783|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                          
  7897. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=27118772377)
  7898. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=27118772377)
  7899. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  7900. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  7901. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=27118772377)
  7902. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=27118772377)
  7903. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  7904. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                        
  7905. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  7906. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  7907. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  7908. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2138357)
  7909. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  7910. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  7911. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC)                                                                            
  7912. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0105109307;fs_path=sip:156.38.231.106:5060)
  7913. 2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:286 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  7914. 2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:643 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  7915. 2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 63 Tot 574992)
  7916. 2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State EXECUTE
  7917. 2024-03-22 07:54:01.024170 [DEBUG] mod_sofia.c:198 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  7918. 2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:328 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  7919. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0105109307)
  7920. 2024-03-22 07:54:01.024170 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0105109307]
  7921. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  7922. 2024-03-22 07:54:01.024170 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  7923. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  7924. 2024-03-22 07:54:01.024170 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  7925. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:01)
  7926. 2024-03-22 07:54:01.024170 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:01]
  7927. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  7928. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  7929. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  7930. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  7931. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(account_id=109)
  7932. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  7933. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  7934. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  7935. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  7936. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  7937. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  7938. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  7939. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  7940. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  7941. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(accountname=default)
  7942. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  7943. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  7944. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  7945. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2138357|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1410783|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                  
  7946. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2138357|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1410783|CODE:^010510.*|DESTINATION:SOUTH AFRICA - CENTRACOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                  
  7947. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=27118772377)
  7948. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[27118772377]
  7949. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=27118772377)
  7950. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[27118772377]
  7951. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  7952. 2024-03-22 07:54:01.044151 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  7953. 2024-03-22 07:54:01.044151 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 9/200
  7954. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  7955. 2024-03-22 07:54:01.044151 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  7956. 2024-03-22 07:54:01.044151 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 11/800
  7957. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=27118772377)
  7958. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[27118772377]
  7959. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=27118772377)
  7960. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[27118772377]
  7961. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  7962. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  7963. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                                  
  7964. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                
  7965. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  7966. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  7967. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  7968. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  7969. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  7970. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  7971. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2138357)
  7972. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2138357]
  7973. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  7974. 2024-03-22 07:54:01.044151 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  7975. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(intcall=0)
  7976. 2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  7977. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC)                                                                                    
  7978. 2024-03-22 07:54:01.044151 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC]                                                                          
  7979. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0105109307;fs_path=sip:156.38.231.106:5060)
  7980. 2024-03-22 07:54:01.044151 [DEBUG] switch_channel.c:1250 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC] to event        
  7981. 2024-03-22 07:54:01.044151 [DEBUG] switch_channel.c:1250 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^010510.* // SOUTH AFRICA - CENTRACOM - GEOGRAPHIC] to event        
  7982. 2024-03-22 07:54:01.044151 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  7983. 2024-03-22 07:54:01.044151 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  7984. 2024-03-22 07:54:01.044151 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0105109307 [58728830-e821-11ee-9009-d17fbcf33421]
  7985. 2024-03-22 07:54:01.044151 [DEBUG] mod_sofia.c:4819 (sofia/default/0105109307) State Change CS_NEW -> CS_INIT
  7986. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0105109307) Running State Change CS_INIT (Cur 64 Tot 574993)
  7987. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0105109307) State INIT
  7988. 2024-03-22 07:54:01.044151 [DEBUG] mod_sofia.c:90 sofia/default/0105109307 SOFIA INIT
  7989. 2024-03-22 07:54:01.044151 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0105109307
  7990. 2024-03-22 07:54:01.044151 [DEBUG] sofia_glue.c:1295 sofia/default/0105109307 sending invite version: 1.6.20  64bit
  7991. Local SDP:                                                                                                                                                                                                        
  7992. v=0                                                                                                                                                                                                                
  7993. o=FreeSWITCH 1711070003 1711070004 IN IP4 156.38.231.107                                                                                                                                                          
  7994. s=FreeSWITCH                                                                                                                                                                                                      
  7995. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  7996. t=0 0                                                                                                                                                                                                              
  7997. m=audio 24038 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  7998. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  7999. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  8000. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  8001. a=fmtp:18 annexb=no                                                                                                                                                                                                
  8002. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8003. a=fmtp:101 0-16                                                                                                                                                                                                    
  8004. a=ptime:20                                                                                                                                                                                                        
  8005. a=sendrecv                                                                                                                                                                                                        
  8006.  
  8007. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:40 sofia/default/0105109307 Standard INIT
  8008. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0105109307) State Change CS_INIT -> CS_ROUTING
  8009. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0105109307) State INIT going to sleep
  8010. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0105109307) Running State Change CS_ROUTING (Cur 64 Tot 574993)
  8011. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0105109307) State ROUTING
  8012. 2024-03-22 07:54:01.044151 [DEBUG] mod_sofia.c:143 sofia/default/0105109307 SOFIA ROUTING
  8013. 2024-03-22 07:54:01.044151 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0105109307) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  8014. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0105109307) State ROUTING going to sleep
  8015. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0105109307) Running State Change CS_CONSUME_MEDIA (Cur 64 Tot 574993)
  8016. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0105109307) State CONSUME_MEDIA
  8017. 2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0105109307) State CONSUME_MEDIA going to sleep
  8018. 2024-03-22 07:54:01.044151 [DEBUG] sofia.c:7084 Channel sofia/default/0105109307 entering state [calling][0]
  8019. 2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [completing][200]
  8020. 2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7094 Remote SDP:
  8021. v=0                                                                                                                                                                                                                
  8022. o=3cxPS 545494401024 264660582401 IN IP4 156.38.150.6                                                                                                                                                              
  8023. s=3cxPS Audio call                                                                                                                                                                                                
  8024. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  8025. t=0 0                                                                                                                                                                                                              
  8026. m=audio 10472 RTP/AVP 18 101                                                                                                                                                                                      
  8027. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  8028. a=fmtp:18 annexb=no                                                                                                                                                                                                
  8029. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8030.  
  8031. 2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [ready][200]
  8032. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  8033. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  8034. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  8035. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/1033021106@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  8036. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_codec.c:111 sofia/default/1033021106@legalaidsa.nebular.co.za Original read codec set to G729:18
  8037. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  8038. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4767 sofia/default/1033021106@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  8039. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/1033021106@legalaidsa.nebular.co.za] 156.38.231.107 port 31338 -> 156.38.150.6 port 10472 codec: 18 ms: 20
  8040. 2024-03-22 07:54:01.224330 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  8041. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:7180 sofia/default/1033021106@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  8042. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:7187 sofia/default/1033021106@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  8043. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:7210 sofia/default/1033021106@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  8044. 2024-03-22 07:54:01.224330 [NOTICE] sofia.c:8218 Channel [sofia/default/1033021106@legalaidsa.nebular.co.za] has been answered
  8045. 2024-03-22 07:54:01.224330 [DEBUG] switch_channel.c:3773 (sofia/default/1033021106@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  8046. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0837792192@41.160.32.115:5060] 156.38.231.107 port 22858 -> 41.160.32.115 port 24790 codec: 18 ms: 20
  8047. 2024-03-22 07:54:01.224330 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  8048. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:7180 sofia/default/0837792192@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  8049. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:7187 sofia/default/0837792192@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  8050. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:7210 sofia/default/0837792192@41.160.32.115:5060 Set rtp dtmf delay to 40
  8051. 2024-03-22 07:54:01.224330 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0837792192@41.160.32.115:5060:
  8052. v=0                                                                                                                                                                                                                
  8053. o=FreeSWITCH 1711071183 1711071184 IN IP4 156.38.231.107                                                                                                                                                          
  8054. s=FreeSWITCH                                                                                                                                                                                                      
  8055. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  8056. t=0 0                                                                                                                                                                                                              
  8057. m=audio 22858 RTP/AVP 18 101                                                                                                                                                                                      
  8058. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  8059. a=fmtp:18 annexb=no                                                                                                                                                                                                
  8060. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8061. a=fmtp:101 0-16                                                                                                                                                                                                    
  8062. a=ptime:20                                                                                                                                                                                                        
  8063. a=sendrecv                                                                                                                                                                                                        
  8064.  
  8065. 2024-03-22 07:54:01.224330 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0837792192@41.160.32.115:5060] has been answered
  8066. 2024-03-22 07:54:01.224330 [DEBUG] switch_channel.c:3773 (sofia/default/0837792192@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  8067. 2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [completed][200]
  8068. 2024-03-22 07:54:01.224330 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/1033021106@legalaidsa.nebular.co.za]
  8069. 2024-03-22 07:54:01.224330 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/1033021106@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  8070. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 64 Tot 574993)
  8071. 2024-03-22 07:54:01.224330 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1033021106@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  8072. 2024-03-22 07:54:01.224330 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  8073. 2024-03-22 07:54:01.424152 [DEBUG] switch_ivr_bridge.c:546 sofia/default/1033021106@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  8074. 2024-03-22 07:54:01.444161 [DEBUG] switch_ivr.c:623 sofia/default/1033021106@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  8075. EXECUTE sofia/default/1033021106@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  8076. 2024-03-22 07:54:01.444161 [DEBUG] switch_scheduler.c:249 Added task 232836 switch_ivr_schedule_hangup (4c888538-e821-11ee-8f6e-d17fbcf33421) to run at 1711100041
  8077. 2024-03-22 07:54:01.504188 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10472 to 156.38.231.105:10472
  8078. 2024-03-22 07:54:01.504188 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  8079. 2024-03-22 07:54:01.604285 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [ready][200]
  8080. 2024-03-22 07:54:01.764157 [NOTICE] sofia.c:1012 Hangup sofia/default/7623690379@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  8081. 2024-03-22 07:54:01.764157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7623690379@legalaidsa.nebular.co.za]
  8082. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7623690379@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  8083. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7623690379@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 64 Tot 574993)
  8084. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7623690379@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  8085. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7623690379@legalaidsa.nebular.co.za) State HANGUP
  8086. 2024-03-22 07:54:01.764157 [DEBUG] mod_sofia.c:438 Channel sofia/default/7623690379@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  8087. 2024-03-22 07:54:01.764157 [DEBUG] switch_ivr_bridge.c:706 sofia/default/7623690379@legalaidsa.nebular.co.za ending bridge by request from write function
  8088. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:60 sofia/default/7623690379@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  8089. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7623690379@legalaidsa.nebular.co.za) State HANGUP going to sleep
  8090. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7623690379@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  8091. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7623690379@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 64 Tot 574993)
  8092. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7623690379@legalaidsa.nebular.co.za) State REPORTING
  8093. 2024-03-22 07:54:01.764157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27419220740@41.160.32.115:5060]
  8094. 2024-03-22 07:54:01.764157 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/7623690379@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  8095. 2024-03-22 07:54:01.764157 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/+27419220740@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  8096. 2024-03-22 07:54:01.764157 [INFO] mod_json_cdr.c:271 Process [30ce611e-e821-11ee-8c59-d17fbcf33421.cdr.json]
  8097. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_session.c:2815 sofia/default/+27419220740@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  8098. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27419220740@41.160.32.115:5060) State EXECUTE going to sleep
  8099. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27419220740@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 64 Tot 574993)
  8100. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/+27419220740@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  8101. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27419220740@41.160.32.115:5060) State HANGUP
  8102. 2024-03-22 07:54:01.764157 [DEBUG] mod_sofia.c:432 sofia/default/+27419220740@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  8103. 2024-03-22 07:54:01.764157 [DEBUG] mod_sofia.c:438 Channel sofia/default/+27419220740@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  8104. 2024-03-22 07:54:01.764157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/+27419220740@41.160.32.115:5060
  8105. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:60 sofia/default/+27419220740@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  8106. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27419220740@41.160.32.115:5060) State HANGUP going to sleep
  8107. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/+27419220740@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  8108. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27419220740@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 64 Tot 574993)
  8109. 2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27419220740@41.160.32.115:5060) State REPORTING
  8110. 2024-03-22 07:54:01.764157 [INFO] mod_json_cdr.c:271 Process [302535d0-e821-11ee-8c31-d17fbcf33421.cdr.json]
  8111. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:174 sofia/default/7623690379@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  8112. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7623690379@legalaidsa.nebular.co.za) State REPORTING going to sleep
  8113. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7623690379@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  8114. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_session.c:1665 Session 574949 (sofia/default/7623690379@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  8115. 2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1683 Session 574949 (sofia/default/7623690379@legalaidsa.nebular.co.za) Ended
  8116. 2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7623690379@legalaidsa.nebular.co.za [CS_DESTROY]
  8117. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7623690379@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 63 Tot 574993)
  8118. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7623690379@legalaidsa.nebular.co.za) State DESTROY
  8119. 2024-03-22 07:54:01.784157 [DEBUG] mod_sofia.c:343 sofia/default/7623690379@legalaidsa.nebular.co.za SOFIA DESTROY
  8120. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:181 sofia/default/7623690379@legalaidsa.nebular.co.za Standard DESTROY
  8121. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7623690379@legalaidsa.nebular.co.za) State DESTROY going to sleep
  8122. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:174 sofia/default/+27419220740@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  8123. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27419220740@41.160.32.115:5060) State REPORTING going to sleep
  8124. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:610 (sofia/default/+27419220740@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  8125. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_session.c:1665 Session 574948 (sofia/default/+27419220740@41.160.32.115:5060) Locked, Waiting on external entities
  8126. 2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1683 Session 574948 (sofia/default/+27419220740@41.160.32.115:5060) Ended
  8127. 2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/+27419220740@41.160.32.115:5060 [CS_DESTROY]
  8128. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:741 (sofia/default/+27419220740@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 62 Tot 574993)
  8129. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27419220740@41.160.32.115:5060) State DESTROY
  8130. 2024-03-22 07:54:01.784157 [DEBUG] mod_sofia.c:343 sofia/default/+27419220740@41.160.32.115:5060 SOFIA DESTROY
  8131. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27419220740@41.160.32.115:5060 Standard DESTROY
  8132. 2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27419220740@41.160.32.115:5060) State DESTROY going to sleep
  8133. 2024-03-22 07:54:01.944226 [DEBUG] switch_scheduler.c:144 Deleting task 232820 switch_ivr_schedule_hangup (30ce611e-e821-11ee-8c59-d17fbcf33421)
  8134. 2024-03-22 07:54:01.964158 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [terminated][487]
  8135. 2024-03-22 07:54:01.964158 [NOTICE] sofia.c:8273 Hangup sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
  8136. 2024-03-22 07:54:01.984154 [NOTICE] switch_ivr_originate.c:3612 Hangup sofia/default/0105109307 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
  8137. 2024-03-22 07:54:01.984154 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
  8138. 2024-03-22 07:54:01.984154 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: ORIGINATOR_CANCEL
  8139. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_session.c:2815 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  8140. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  8141. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 62 Tot 574993)
  8142. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> HANGUP
  8143. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State HANGUP
  8144. 2024-03-22 07:54:01.984154 [DEBUG] mod_sofia.c:438 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 hanging up, cause: ORIGINATOR_CANCEL
  8145. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:60 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: ORIGINATOR_CANCEL
  8146. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  8147. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:619 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  8148. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 62 Tot 574993)
  8149. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State REPORTING
  8150. 2024-03-22 07:54:01.984154 [INFO] mod_json_cdr.c:271 Process [5864dcda-e821-11ee-8fe6-d17fbcf33421.cdr.json]
  8151. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0105109307) Running State Change CS_HANGUP (Cur 62 Tot 574993)
  8152. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0105109307) Callstate Change DOWN -> HANGUP
  8153. 2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0105109307) State HANGUP
  8154. 2024-03-22 07:54:01.984154 [DEBUG] mod_sofia.c:432 sofia/default/0105109307 Overriding SIP cause 487 with 487 from the other leg
  8155. 2024-03-22 07:54:01.984154 [DEBUG] mod_sofia.c:438 Channel sofia/default/0105109307 hanging up, cause: ORIGINATOR_CANCEL
  8156. 2024-03-22 07:54:02.004244 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/0105109307
  8157. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:60 sofia/default/0105109307 Standard HANGUP, cause: ORIGINATOR_CANCEL
  8158. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0105109307) State HANGUP going to sleep
  8159. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0105109307) State Change CS_HANGUP -> CS_REPORTING
  8160. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0105109307) Running State Change CS_REPORTING (Cur 62 Tot 574993)
  8161. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0105109307) State REPORTING
  8162. 2024-03-22 07:54:02.004244 [INFO] mod_json_cdr.c:271 Process [58728830-e821-11ee-9009-d17fbcf33421.cdr.json]
  8163. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:174 sofia/default/0105109307 Standard REPORTING, cause: ORIGINATOR_CANCEL
  8164. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0105109307) State REPORTING going to sleep
  8165. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0105109307) State Change CS_REPORTING -> CS_DESTROY
  8166. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_session.c:1665 Session 574993 (sofia/default/0105109307) Locked, Waiting on external entities
  8167. 2024-03-22 07:54:02.004244 [NOTICE] switch_core_session.c:1683 Session 574993 (sofia/default/0105109307) Ended
  8168. 2024-03-22 07:54:02.004244 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0105109307 [CS_DESTROY]
  8169. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0105109307) Running State Change CS_DESTROY (Cur 61 Tot 574993)
  8170. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0105109307) State DESTROY
  8171. 2024-03-22 07:54:02.004244 [DEBUG] mod_sofia.c:343 sofia/default/0105109307 SOFIA DESTROY
  8172. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:181 sofia/default/0105109307 Standard DESTROY
  8173. 2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0105109307) State DESTROY going to sleep
  8174. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:174 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: ORIGINATOR_CANCEL
  8175. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  8176. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  8177. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_session.c:1665 Session 574992 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  8178. 2024-03-22 07:54:02.024155 [NOTICE] switch_core_session.c:1683 Session 574992 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Ended
  8179. 2024-03-22 07:54:02.024155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  8180. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:741 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 60 Tot 574993)
  8181. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State DESTROY
  8182. 2024-03-22 07:54:02.024155 [DEBUG] mod_sofia.c:343 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  8183. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:181 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard DESTROY
  8184. 2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  8185. 2024-03-22 07:54:02.904163 [NOTICE] sofia.c:1012 Hangup sofia/default/7682330505@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  8186. 2024-03-22 07:54:02.904163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7682330505@legalaidsa.nebular.co.za]
  8187. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  8188. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 60 Tot 574993)
  8189. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  8190. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP
  8191. 2024-03-22 07:54:02.904163 [DEBUG] mod_sofia.c:438 Channel sofia/default/7682330505@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  8192. 2024-03-22 07:54:02.904163 [DEBUG] switch_ivr_bridge.c:706 sofia/default/7682330505@legalaidsa.nebular.co.za ending bridge by request from write function
  8193. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:60 sofia/default/7682330505@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  8194. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP going to sleep
  8195. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  8196. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 60 Tot 574993)
  8197. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING
  8198. 2024-03-22 07:54:02.904163 [INFO] mod_json_cdr.c:271 Process [ff7e8238-e820-11ee-8758-d17fbcf33421.cdr.json]
  8199. 2024-03-22 07:54:02.904163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27712533585@41.160.32.115:5060]
  8200. 2024-03-22 07:54:02.904163 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/7682330505@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  8201. 2024-03-22 07:54:02.904163 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/+27712533585@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  8202. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_session.c:2815 sofia/default/+27712533585@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  8203. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27712533585@41.160.32.115:5060) State EXECUTE going to sleep
  8204. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27712533585@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 60 Tot 574993)
  8205. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:850 (sofia/default/+27712533585@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  8206. 2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27712533585@41.160.32.115:5060) State HANGUP
  8207. 2024-03-22 07:54:02.904163 [DEBUG] mod_sofia.c:432 sofia/default/+27712533585@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  8208. 2024-03-22 07:54:02.904163 [DEBUG] mod_sofia.c:438 Channel sofia/default/+27712533585@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  8209. 2024-03-22 07:54:02.924175 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/+27712533585@41.160.32.115:5060
  8210. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:60 sofia/default/+27712533585@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  8211. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27712533585@41.160.32.115:5060) State HANGUP going to sleep
  8212. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:619 (sofia/default/+27712533585@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  8213. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27712533585@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 60 Tot 574993)
  8214. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27712533585@41.160.32.115:5060) State REPORTING
  8215. 2024-03-22 07:54:02.924175 [INFO] mod_json_cdr.c:271 Process [fed6f3ba-e820-11ee-8730-d17fbcf33421.cdr.json]
  8216. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:174 sofia/default/7682330505@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  8217. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING going to sleep
  8218. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  8219. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_session.c:1665 Session 574889 (sofia/default/7682330505@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  8220. 2024-03-22 07:54:02.924175 [NOTICE] switch_core_session.c:1683 Session 574889 (sofia/default/7682330505@legalaidsa.nebular.co.za) Ended
  8221. 2024-03-22 07:54:02.924175 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7682330505@legalaidsa.nebular.co.za [CS_DESTROY]
  8222. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 59 Tot 574993)
  8223. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY
  8224. 2024-03-22 07:54:02.924175 [DEBUG] mod_sofia.c:343 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA DESTROY
  8225. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:181 sofia/default/7682330505@legalaidsa.nebular.co.za Standard DESTROY
  8226. 2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY going to sleep
  8227. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:174 sofia/default/+27712533585@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  8228. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27712533585@41.160.32.115:5060) State REPORTING going to sleep
  8229. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:610 (sofia/default/+27712533585@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  8230. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_session.c:1665 Session 574888 (sofia/default/+27712533585@41.160.32.115:5060) Locked, Waiting on external entities
  8231. 2024-03-22 07:54:02.944162 [NOTICE] switch_core_session.c:1683 Session 574888 (sofia/default/+27712533585@41.160.32.115:5060) Ended
  8232. 2024-03-22 07:54:02.944162 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/+27712533585@41.160.32.115:5060 [CS_DESTROY]
  8233. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:741 (sofia/default/+27712533585@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 58 Tot 574993)
  8234. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27712533585@41.160.32.115:5060) State DESTROY
  8235. 2024-03-22 07:54:02.944162 [DEBUG] mod_sofia.c:343 sofia/default/+27712533585@41.160.32.115:5060 SOFIA DESTROY
  8236. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27712533585@41.160.32.115:5060 Standard DESTROY
  8237. 2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27712533585@41.160.32.115:5060) State DESTROY going to sleep
  8238. 2024-03-22 07:54:02.944162 [DEBUG] switch_scheduler.c:144 Deleting task 232791 switch_ivr_schedule_hangup (ff7e8238-e820-11ee-8758-d17fbcf33421)
  8239. 2024-03-22 07:54:08.564173 [NOTICE] switch_channel.c:1104 New Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [5ceeff42-e821-11ee-900f-d17fbcf33421]
  8240. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 59 Tot 574994)
  8241. 2024-03-22 07:54:08.564173 [DEBUG] sofia.c:9873 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  8242. 2024-03-22 07:54:08.564173 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  8243. 2024-03-22 07:54:08.564173 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [received][100]
  8244. 2024-03-22 07:54:08.564173 [DEBUG] sofia.c:7094 Remote SDP:
  8245. v=0                                                                                                                                                                                                                
  8246. o=3cxPS 397452247040 284189261825 IN IP4 156.38.150.6                                                                                                                                                              
  8247. s=3cxPS Audio call                                                                                                                                                                                                
  8248. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  8249. t=0 0                                                                                                                                                                                                              
  8250. m=audio 10484 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  8251. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  8252. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  8253. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  8254. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  8255. a=fmtp:18 annexb=no                                                                                                                                                                                                
  8256. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8257.  
  8258. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  8259. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8260. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8261. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  8262. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8263. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  8264. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8265. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8266. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8267. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  8268. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  8269. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8270. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8271. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8272. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  8273. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  8274. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  8275. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  8276. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  8277. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  8278. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  8279. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/27118772377@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  8280. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_codec.c:111 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  8281. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  8282. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4767 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  8283. 2024-03-22 07:54:08.564173 [DEBUG] sofia.c:7507 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  8284. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:603 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State NEW
  8285. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 59 Tot 574994)
  8286. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State INIT
  8287. 2024-03-22 07:54:08.564173 [DEBUG] mod_sofia.c:90 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA INIT
  8288. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:40 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard INIT
  8289. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:48 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  8290. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  8291. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 59 Tot 574994)
  8292. 2024-03-22 07:54:08.564173 [DEBUG] switch_channel.c:2249 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  8293. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State ROUTING
  8294. 2024-03-22 07:54:08.564173 [DEBUG] mod_sofia.c:143 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  8295. 2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:236 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard ROUTING
  8296. 2024-03-22 07:54:08.564173 [INFO] mod_dialplan_xml.c:637 Processing 27118772377 <27118772377>->0721141624 in context default
  8297. 2024-03-22 07:54:08.564173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  8298. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  8299. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  8300. 2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  8301. 2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0721141624
  8302. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0721141624' limit 1
  8303. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0721141624' AND status=0 limit 1
  8304. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0721141624' and status=0 LIMIT 1                                                                                                                                                                                                          
  8305. 2024-03-22 07:54:08.584172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  8306. 2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 27118772377 / 27118772377
  8307. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [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 ="0721141624" LIMIT 1                                                                                                                                                              
  8308. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [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="0721141624"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  8309. 2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  8310. 2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  8311. 2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  8312. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0721141624.*' OR blocked_patterns = '^072114162.*' OR blocked_patterns = '^07211416.*' OR blocked_patterns = '^0721141.*' OR blocked_patterns = '^072114.*' OR blocked_patterns = '^07211.*' OR blocked_patterns = '^0721.*' OR blocked_patterns = '^072.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  8313. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0721141624" AND (accountid = 0 OR status = 1) LIMIT 1
  8314. 2024-03-22 07:54:08.604213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  8315. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  8316. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721141624
  8317. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721141624
  8318. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [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 = '^0721141624.*' OR patterns = '^072114162.*' OR patterns = '^07211416.*' OR patterns = '^0721141.*' OR patterns = '^072114.*' OR patterns = '^07211.*' OR patterns = '^0721.*' OR patterns = '^072.*' OR patterns = '^07.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  8319. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [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 ="0721141624" AND A.accountid = '109' limit 1                                                                                                                                                                        
  8320. 2024-03-22 07:54:08.604213 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0721141624
  8321. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [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 ="0721141624" LIMIT 1                                                                                                                                                              
  8322. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [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="0721141624"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  8323. 2024-03-22 07:54:08.604213 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  8324. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0721141624' OR number = '072114162' OR number = '07211416' OR number = '0721141' OR number = '072114' OR number = '07211' OR number = '0721' OR number = '072' OR number = '07' OR number = '0' OR number ='--') OR (number = '0721141624*' OR number = '072114162*' OR number = '07211416*' OR number = '0721141*' OR number = '072114*' OR number = '07211*' OR number = '0721*' OR number = '072*' OR number = '07*' OR number = '0*' OR number ='--') OR (number = '27118772377' OR number = '2711877237' OR number = '271187723' OR number = '27118772' OR number = '2711877' OR number = '271187' OR number = '27118' OR number = '2711' OR number = '271' OR number = '27' OR number = '2' OR number ='--') OR (number = '27118772377*' OR number = '2711877237*' OR number = '271187723*' OR number = '27118772*' OR number = '2711877*' OR number = '271187*' OR number = '27118*' OR number = '2711*' OR number = '271*' OR number = '27*' OR number = '2*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                      
  8325. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  8326. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0721141624' OR routing_prefix = '072114162' OR routing_prefix = '07211416' OR routing_prefix = '0721141' OR routing_prefix = '072114' OR routing_prefix = '07211' OR routing_prefix = '0721' OR routing_prefix = '072' OR routing_prefix = '07' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  8327. 2024-03-22 07:54:08.604213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0721141624)!!!!
  8328. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27721141624
  8329. 2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27721141624' limit 1
  8330. 2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0721141624)!!!!
  8331. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  8332. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  8333. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  8334. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  8335. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  8336. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  8337. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  8338. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  8339. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8340. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8341. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8342. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8343. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8344. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8345. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8346. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8347. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8348. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8349. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8350. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
  8351. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  8352. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  8353. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  8354. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0721141624.*' OR pattern = '^072114162.*' OR pattern = '^07211416.*' OR pattern = '^0721141.*' OR pattern = '^072114.*' OR pattern = '^07211.*' OR pattern = '^0721.*' OR pattern = '^072.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  8355. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  8356. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  8357. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148455
  8358. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  8359. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  8360. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  8361. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - MOBILE
  8362. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  8363. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  8364. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  8365. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  8366. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  8367. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  8368. 2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  8369. 2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  8370. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  8371. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0721141624.*' OR blocked_patterns = '^072114162.*' OR blocked_patterns = '^07211416.*' OR blocked_patterns = '^0721141.*' OR blocked_patterns = '^072114.*' OR blocked_patterns = '^07211.*' OR blocked_patterns = '^0721.*' OR blocked_patterns = '^072.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  8372. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  8373. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  8374. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  8375. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9950.7683
  8376. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  8377. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  8378. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  8379. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  8380. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  8381. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0721141624.*' OR pattern = '^072114162.*' OR pattern = '^07211416.*' OR pattern = '^0721141.*' OR pattern = '^072114.*' OR pattern = '^07211.*' OR pattern = '^0721.*' OR pattern = '^072.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  8382. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  8383. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  8384. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426357
  8385. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  8386. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  8387. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  8388. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D082-VODACOM
  8389. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  8390. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  8391. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  8392. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  8393. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  8394. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9950.7683 balance Accountid 13 !!!
  8395. 2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  8396. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                      
  8397. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  8398. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  8399. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  8400. 2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148455
  8401. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  8402. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  8403. 2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0721141624.*' OR pattern = '^072114162.*' OR pattern = '^07211416.*' OR pattern = '^0721141.*' OR pattern = '^072114.*' OR pattern = '^07211.*' OR pattern = '^0721.*' OR pattern = '^072.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  8404. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  8405. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  8406. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  8407. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  8408. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  8409. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  8410. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  8411. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  8412. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  8413. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  8414. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  8415. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  8416. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  8417. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  8418. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  8419. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  8420. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  8421. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  8422. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  8423. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  8424. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  8425. 2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  8426. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  8427. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  8428. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0721141624
  8429. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  8430. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [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 ="0721141624" LIMIT 1                                                                                                                                                              
  8431. 2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  8432. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  8433. <document type="freeswitch/xml">                                                                                                                                                                                  
  8434. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  8435. <context name="default">                                                                                                                                                                                          
  8436. <extension name="0721141624">                                                                                                                                                                                      
  8437. <condition field="destination_number" expression="0721141624">                                                                                                                                                    
  8438. <action application="set" data="effective_destination_number=0721141624"/>                                                                                                                                        
  8439. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  8440. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  8441. <action application="set" data="callstart=2024-03-22 07:54:08"/>                                                                                                                                                  
  8442. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  8443. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  8444. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  8445. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  8446. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  8447. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  8448. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  8449. <action application="set" data="accountname=default"/>                                                                                                                                                            
  8450. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  8451. <action application="set" data="origination_rates=ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                      
  8452. <action application="set" data="original_caller_id_name=27118772377"/>                                                                                                                                            
  8453. <action application="set" data="original_caller_id_number=27118772377"/>                                                                                                                                          
  8454. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  8455. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  8456. <action application="set" data="effective_caller_id_name=27118772377"/>                                                                                                                                            
  8457. <action application="set" data="effective_caller_id_number=27118772377"/>                                                                                                                                          
  8458. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  8459. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  8460. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  8461. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  8462. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  8463. <action application="set" data="force_trunk_flag=2148455"/>                                                                                                                                                        
  8464. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  8465. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  8466. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM"/>                                                                                                                                                            
  8467. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0721141624;fs_path=sip:156.38.231.106:5060"/>                                              
  8468. </condition>                                                                                                                                                                                                      
  8469. </extension>                                                                                                                                                                                                      
  8470. </context>                                                                                                                                                                                                        
  8471. </section>                                                                                                                                                                                                        
  8472. </document>                                                                                                                                                                                                        
  8473. 2024-03-22 07:54:08.644158 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  8474. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 parsing [default->0721141624] continue=false
  8475. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Regex (PASS) [0721141624] destination_number(0721141624) =~ /0721141624/ break=on-false
  8476. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0721141624)
  8477. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  8478. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  8479. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:08)
  8480. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  8481. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  8482. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  8483. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  8484. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  8485. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  8486. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  8487. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  8488. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  8489. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                              
  8490. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=27118772377)
  8491. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=27118772377)
  8492. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  8493. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  8494. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=27118772377)
  8495. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=27118772377)
  8496. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  8497. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                        
  8498. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  8499. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  8500. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  8501. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148455)
  8502. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  8503. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  8504. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM)                                                                                                                
  8505. Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0721141624;fs_path=sip:156.38.231.106:5060)
  8506. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:286 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  8507. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  8508. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 59 Tot 574994)
  8509. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State EXECUTE
  8510. 2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:198 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  8511. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:328 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  8512. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0721141624)
  8513. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0721141624]
  8514. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  8515. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  8516. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  8517. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  8518. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:08)
  8519. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:08]
  8520. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  8521. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  8522. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  8523. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  8524. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(account_id=109)
  8525. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  8526. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  8527. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  8528. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  8529. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  8530. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  8531. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  8532. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  8533. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  8534. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(accountname=default)
  8535. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  8536. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  8537. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  8538. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                        
  8539. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148455|CODE:^072.*|DESTINATION:SOUTH AFRICA - VODACOM - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426357|CODE:^072.*|DESTINATION:D082-VODACOM|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                      
  8540. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=27118772377)
  8541. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[27118772377]
  8542. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=27118772377)
  8543. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[27118772377]
  8544. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  8545. 2024-03-22 07:54:08.644158 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  8546. 2024-03-22 07:54:08.644158 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 9/200
  8547. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  8548. 2024-03-22 07:54:08.644158 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  8549. 2024-03-22 07:54:08.644158 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 11/800
  8550. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=27118772377)
  8551. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[27118772377]
  8552. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=27118772377)
  8553. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[27118772377]
  8554. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  8555. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  8556. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                                  
  8557. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                
  8558. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  8559. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  8560. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  8561. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  8562. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  8563. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  8564. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148455)
  8565. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148455]
  8566. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  8567. 2024-03-22 07:54:08.644158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  8568. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(intcall=0)
  8569. 2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  8570. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM)                                                                                                                          
  8571. 2024-03-22 07:54:08.644158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM]                                                                                                                
  8572. EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0721141624;fs_path=sip:156.38.231.106:5060)
  8573. 2024-03-22 07:54:08.644158 [DEBUG] switch_channel.c:1250 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM] to event                                            
  8574. 2024-03-22 07:54:08.644158 [DEBUG] switch_channel.c:1250 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^072.* // SOUTH AFRICA - VODACOM - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^072.* // D082-VODACOM] to event                                            
  8575. 2024-03-22 07:54:08.644158 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  8576. 2024-03-22 07:54:08.644158 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  8577. 2024-03-22 07:54:08.644158 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0721141624 [5cfb5d46-e821-11ee-9032-d17fbcf33421]
  8578. 2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:4819 (sofia/default/0721141624) State Change CS_NEW -> CS_INIT
  8579. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721141624) Running State Change CS_INIT (Cur 60 Tot 574995)
  8580. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721141624) State INIT
  8581. 2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:90 sofia/default/0721141624 SOFIA INIT
  8582. 2024-03-22 07:54:08.644158 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0721141624
  8583. 2024-03-22 07:54:08.644158 [DEBUG] sofia_glue.c:1295 sofia/default/0721141624 sending invite version: 1.6.20  64bit
  8584. Local SDP:                                                                                                                                                                                                        
  8585. v=0                                                                                                                                                                                                                
  8586. o=FreeSWITCH 1711073552 1711073553 IN IP4 156.38.231.107                                                                                                                                                          
  8587. s=FreeSWITCH                                                                                                                                                                                                      
  8588. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  8589. t=0 0                                                                                                                                                                                                              
  8590. m=audio 20496 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  8591. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  8592. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  8593. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  8594. a=fmtp:18 annexb=no                                                                                                                                                                                                
  8595. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8596. a=fmtp:101 0-16                                                                                                                                                                                                    
  8597. a=ptime:20                                                                                                                                                                                                        
  8598. a=sendrecv                                                                                                                                                                                                        
  8599.  
  8600. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:40 sofia/default/0721141624 Standard INIT
  8601. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0721141624) State Change CS_INIT -> CS_ROUTING
  8602. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721141624) State INIT going to sleep
  8603. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721141624) Running State Change CS_ROUTING (Cur 60 Tot 574995)
  8604. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721141624) State ROUTING
  8605. 2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:143 sofia/default/0721141624 SOFIA ROUTING
  8606. 2024-03-22 07:54:08.644158 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0721141624) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  8607. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721141624) State ROUTING going to sleep
  8608. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721141624) Running State Change CS_CONSUME_MEDIA (Cur 60 Tot 574995)
  8609. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721141624) State CONSUME_MEDIA
  8610. 2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721141624) State CONSUME_MEDIA going to sleep
  8611. 2024-03-22 07:54:08.644158 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [calling][0]
  8612. 2024-03-22 07:54:09.524285 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF *:3280
  8613. 2024-03-22 07:54:09.524285 [INFO] switch_channel.c:515 RECV DTMF *:3280
  8614. 2024-03-22 07:54:09.544158 [DEBUG] switch_rtp.c:5261 Send start packet for [*] ts=2394899767 dur=160/160/3280 seq=43011 lw=2394899767
  8615. 2024-03-22 07:54:09.564209 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=320/320/3280 seq=43012 lw=2394899927
  8616. 2024-03-22 07:54:09.584172 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=480/480/3280 seq=43013 lw=2394900087
  8617. 2024-03-22 07:54:09.604172 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=640/640/3280 seq=43014 lw=2394900247
  8618. 2024-03-22 07:54:09.624164 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=800/800/3280 seq=43015 lw=2394900407
  8619. 2024-03-22 07:54:09.644175 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=960/960/3280 seq=43016 lw=2394900567
  8620. 2024-03-22 07:54:09.664171 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=1120/1120/3280 seq=43017 lw=2394900727
  8621. 2024-03-22 07:54:09.684176 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=1280/1280/3280 seq=43018 lw=2394900887
  8622. 2024-03-22 07:54:09.704179 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=1440/1440/3280 seq=43019 lw=2394901047
  8623. 2024-03-22 07:54:09.724190 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=1600/1600/3280 seq=43020 lw=2394901207
  8624. 2024-03-22 07:54:09.744298 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=1760/1760/3280 seq=43021 lw=2394901367
  8625. 2024-03-22 07:54:09.764176 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=1920/1920/3280 seq=43022 lw=2394901527
  8626. 2024-03-22 07:54:09.784173 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=2080/2080/3280 seq=43023 lw=2394901687
  8627. 2024-03-22 07:54:09.804255 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=2240/2240/3280 seq=43024 lw=2394901847
  8628. 2024-03-22 07:54:09.824193 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=2400/2400/3280 seq=43025 lw=2394902007
  8629. 2024-03-22 07:54:09.844167 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=2560/2560/3280 seq=43026 lw=2394902167
  8630. 2024-03-22 07:54:09.864155 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=2720/2720/3280 seq=43027 lw=2394902327
  8631. 2024-03-22 07:54:09.884192 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=2880/2880/3280 seq=43028 lw=2394902487
  8632. 2024-03-22 07:54:09.904209 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=3040/3040/3280 seq=43029 lw=2394902647
  8633. 2024-03-22 07:54:09.924177 [DEBUG] switch_rtp.c:5160 Send middle packet for [*] ts=2394899767 dur=3200/3200/3280 seq=43030 lw=2394902807
  8634. 2024-03-22 07:54:09.944224 [DEBUG] switch_rtp.c:5160 Send end packet for [*] ts=2394899767 dur=3360/3360/3280 seq=43031 lw=2394902807
  8635. 2024-03-22 07:54:09.944224 [DEBUG] switch_rtp.c:5160 Send end packet for [*] ts=2394899767 dur=3360/3360/3280 seq=43032 lw=2394902807
  8636. 2024-03-22 07:54:09.944224 [DEBUG] switch_rtp.c:5160 Send end packet for [*] ts=2394899767 dur=3360/3360/3280 seq=43033 lw=2394902807
  8637. 2024-03-22 07:54:09.944224 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
  8638. 2024-03-22 07:54:10.144164 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [proceeding][183]
  8639. 2024-03-22 07:54:10.144164 [DEBUG] sofia.c:7094 Remote SDP:
  8640. v=0                                                                                                                                                                                                                
  8641. o=HuaweiSoftX3000 100430498634112 100430498634112 IN IP4 41.160.32.115                                                                                                                                            
  8642. s=-                                                                                                                                                                                                                
  8643. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  8644. t=0 0                                                                                                                                                                                                              
  8645. m=audio 24802 RTP/AVP 8 101                                                                                                                                                                                        
  8646. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  8647. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8648. a=fmtp:101 0-15                                                                                                                                                                                                    
  8649. a=ptime:20                                                                                                                                                                                                        
  8650.  
  8651. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8652. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  8653. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8654. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8655. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  8656. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0721141624 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  8657. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_codec.c:111 sofia/default/0721141624 Original read codec set to PCMA:8
  8658. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  8659. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4767 sofia/default/0721141624 Set 2833 dtmf send payload to 101 recv payload to 101
  8660. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0721141624] 156.38.231.107 port 20496 -> 41.160.32.115 port 24802 codec: 8 ms: 20
  8661. 2024-03-22 07:54:10.144164 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  8662. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:7180 sofia/default/0721141624 Set 2833 dtmf send payload to 101
  8663. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:7187 sofia/default/0721141624 Set 2833 dtmf receive payload to 101
  8664. 2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:7210 sofia/default/0721141624 Set rtp dtmf delay to 40
  8665. 2024-03-22 07:54:10.144164 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0721141624!
  8666. 2024-03-22 07:54:10.144164 [DEBUG] switch_channel.c:3474 (sofia/default/0721141624) Callstate Change DOWN -> EARLY
  8667. 2024-03-22 07:54:10.164199 [INFO] switch_ivr_originate.c:3654 Sending early media
  8668. 2024-03-22 07:54:10.164199 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/27118772377@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 28060 -> 156.38.150.6 port 10484 codec: 8 ms: 20
  8669. 2024-03-22 07:54:10.164199 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  8670. 2024-03-22 07:54:10.164199 [DEBUG] switch_core_media.c:7180 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  8671. 2024-03-22 07:54:10.164199 [DEBUG] switch_core_media.c:7187 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  8672. 2024-03-22 07:54:10.164199 [DEBUG] switch_core_media.c:7210 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  8673. 2024-03-22 07:54:10.164199 [DEBUG] mod_sofia.c:2364 Ring SDP:
  8674. v=0                                                                                                                                                                                                                
  8675. o=FreeSWITCH 1711065990 1711065991 IN IP4 156.38.231.107                                                                                                                                                          
  8676. s=FreeSWITCH                                                                                                                                                                                                      
  8677. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  8678. t=0 0                                                                                                                                                                                                              
  8679. m=audio 28060 RTP/AVP 8 101                                                                                                                                                                                        
  8680. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  8681. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8682. a=fmtp:101 0-16                                                                                                                                                                                                    
  8683. a=ptime:20                                                                                                                                                                                                        
  8684. a=sendrecv                                                                                                                                                                                                        
  8685.  
  8686. 2024-03-22 07:54:10.164199 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/27118772377@legalaidsa.nebular.co.za:5060!
  8687. 2024-03-22 07:54:10.164199 [DEBUG] switch_channel.c:3474 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  8688. 2024-03-22 07:54:10.164199 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0721141624]
  8689. 2024-03-22 07:54:10.164199 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [early][183]
  8690. 2024-03-22 07:54:10.164199 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0721141624) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  8691. 2024-03-22 07:54:10.164199 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721141624) Running State Change CS_EXCHANGE_MEDIA (Cur 60 Tot 574995)
  8692. 2024-03-22 07:54:10.164199 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721141624) State EXCHANGE_MEDIA
  8693. 2024-03-22 07:54:10.164199 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  8694. 2024-03-22 07:54:10.344174 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0721141624 Bridge execute app sched_hangup(+6000 normal_clearing)
  8695. 2024-03-22 07:54:10.364170 [DEBUG] switch_ivr.c:623 sofia/default/0721141624 Command Execute sched_hangup(+6000 normal_clearing)
  8696. EXECUTE sofia/default/0721141624 sched_hangup(+6000 normal_clearing)
  8697. 2024-03-22 07:54:10.364170 [DEBUG] switch_scheduler.c:249 Added task 232837 switch_ivr_schedule_hangup (5cfb5d46-e821-11ee-9032-d17fbcf33421) to run at 1711100050
  8698. 2024-03-22 07:54:10.404180 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10484 to 156.38.231.105:10484
  8699. 2024-03-22 07:54:10.724196 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  8700. 2024-03-22 07:54:10.724196 [NOTICE] sofia.c:1012 Hangup sofia/default/27124315191@saqa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  8701. 2024-03-22 07:54:10.724196 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27124315191@saqa.nebular.co.za:5060]
  8702. 2024-03-22 07:54:10.744160 [DEBUG] switch_ivr_bridge.c:706 sofia/default/27124315191@saqa.nebular.co.za:5060 ending bridge by request from write function
  8703. 2024-03-22 07:54:10.744160 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0793232268]
  8704. 2024-03-22 07:54:10.744160 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0793232268 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  8705. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0793232268) State EXCHANGE_MEDIA going to sleep
  8706. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0793232268) Running State Change CS_HANGUP (Cur 60 Tot 574995)
  8707. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0793232268) Callstate Change ACTIVE -> HANGUP
  8708. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0793232268) State HANGUP
  8709. 2024-03-22 07:54:10.744160 [DEBUG] mod_sofia.c:432 sofia/default/0793232268 Overriding SIP cause 480 with 200 from the other leg
  8710. 2024-03-22 07:54:10.744160 [DEBUG] mod_sofia.c:438 Channel sofia/default/0793232268 hanging up, cause: NORMAL_CLEARING
  8711. 2024-03-22 07:54:10.744160 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0793232268 skip receive message [UNBRIDGE] (channel is hungup already)
  8712. 2024-03-22 07:54:10.744160 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/27124315191@saqa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  8713. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_session.c:2815 sofia/default/27124315191@saqa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  8714. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27124315191@saqa.nebular.co.za:5060) State EXECUTE going to sleep
  8715. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27124315191@saqa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 60 Tot 574995)
  8716. 2024-03-22 07:54:10.744160 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0793232268
  8717. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:60 sofia/default/0793232268 Standard HANGUP, cause: NORMAL_CLEARING
  8718. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0793232268) State HANGUP going to sleep
  8719. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:850 (sofia/default/27124315191@saqa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  8720. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0793232268) State Change CS_HANGUP -> CS_REPORTING
  8721. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27124315191@saqa.nebular.co.za:5060) State HANGUP
  8722. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0793232268) Running State Change CS_REPORTING (Cur 60 Tot 574995)
  8723. 2024-03-22 07:54:10.744160 [DEBUG] mod_sofia.c:438 Channel sofia/default/27124315191@saqa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  8724. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0793232268) State REPORTING
  8725. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:60 sofia/default/27124315191@saqa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  8726. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27124315191@saqa.nebular.co.za:5060) State HANGUP going to sleep
  8727. 2024-03-22 07:54:10.744160 [INFO] mod_json_cdr.c:271 Process [e37bc9a6-e820-11ee-8446-d17fbcf33421.cdr.json]
  8728. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:619 (sofia/default/27124315191@saqa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  8729. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27124315191@saqa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 60 Tot 574995)
  8730. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27124315191@saqa.nebular.co.za:5060) State REPORTING
  8731. 2024-03-22 07:54:10.744160 [INFO] mod_json_cdr.c:271 Process [e36f85b0-e820-11ee-8423-d17fbcf33421.cdr.json]
  8732. 2024-03-22 07:54:10.744160 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [proceeding][180]
  8733. 2024-03-22 07:54:10.744160 [DEBUG] sofia.c:7091 Duplicate SDP
  8734. v=0                                                                                                                                                                                                                
  8735. o=HuaweiSoftX3000 100430498634112 100430498634112 IN IP4 41.160.32.115                                                                                                                                            
  8736. s=-                                                                                                                                                                                                                
  8737. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  8738. t=0 0                                                                                                                                                                                                              
  8739. m=audio 24802 RTP/AVP 8 101                                                                                                                                                                                        
  8740. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  8741. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8742. a=fmtp:101 0-15                                                                                                                                                                                                    
  8743. a=ptime:20                                                                                                                                                                                                        
  8744.  
  8745. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8746. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  8747. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8748. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8749. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  8750. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  8751. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4767 sofia/default/0721141624 Set 2833 dtmf send payload to 101 recv payload to 101
  8752. 2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0721141624.
  8753. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:174 sofia/default/0793232268 Standard REPORTING, cause: NORMAL_CLEARING
  8754. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0793232268) State REPORTING going to sleep
  8755. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0793232268) State Change CS_REPORTING -> CS_DESTROY
  8756. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_session.c:1665 Session 574853 (sofia/default/0793232268) Locked, Waiting on external entities
  8757. 2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1683 Session 574853 (sofia/default/0793232268) Ended
  8758. 2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0793232268 [CS_DESTROY]
  8759. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0793232268) Running State Change CS_DESTROY (Cur 59 Tot 574995)
  8760. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0793232268) State DESTROY
  8761. 2024-03-22 07:54:10.764284 [DEBUG] mod_sofia.c:343 sofia/default/0793232268 SOFIA DESTROY
  8762. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:181 sofia/default/0793232268 Standard DESTROY
  8763. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0793232268) State DESTROY going to sleep
  8764. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:174 sofia/default/27124315191@saqa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  8765. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27124315191@saqa.nebular.co.za:5060) State REPORTING going to sleep
  8766. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:610 (sofia/default/27124315191@saqa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  8767. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_session.c:1665 Session 574852 (sofia/default/27124315191@saqa.nebular.co.za:5060) Locked, Waiting on external entities
  8768. 2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1683 Session 574852 (sofia/default/27124315191@saqa.nebular.co.za:5060) Ended
  8769. 2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/27124315191@saqa.nebular.co.za:5060 [CS_DESTROY]
  8770. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:741 (sofia/default/27124315191@saqa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 58 Tot 574995)
  8771. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27124315191@saqa.nebular.co.za:5060) State DESTROY
  8772. 2024-03-22 07:54:10.764284 [DEBUG] mod_sofia.c:343 sofia/default/27124315191@saqa.nebular.co.za:5060 SOFIA DESTROY
  8773. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:181 sofia/default/27124315191@saqa.nebular.co.za:5060 Standard DESTROY
  8774. 2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27124315191@saqa.nebular.co.za:5060) State DESTROY going to sleep
  8775. 2024-03-22 07:54:10.864175 [DEBUG] switch_scheduler.c:144 Deleting task 232781 switch_ivr_schedule_hangup (e37bc9a6-e820-11ee-8446-d17fbcf33421)
  8776. 2024-03-22 07:54:12.064185 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [5f04a228-e821-11ee-9038-d17fbcf33421]
  8777. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 59 Tot 574996)
  8778. 2024-03-22 07:54:12.064185 [DEBUG] sofia.c:9873 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  8779. 2024-03-22 07:54:12.064185 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  8780. 2024-03-22 07:54:12.064185 [DEBUG] sofia.c:7084 Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 entering state [received][100]
  8781. 2024-03-22 07:54:12.064185 [DEBUG] sofia.c:7094 Remote SDP:
  8782. v=0                                                                                                                                                                                                                
  8783. o=3cxPS 39728447488 235250122753 IN IP4 156.38.150.6                                                                                                                                                              
  8784. s=3cxPS Audio call                                                                                                                                                                                                
  8785. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  8786. t=0 0                                                                                                                                                                                                              
  8787. m=audio 10486 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  8788. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  8789. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  8790. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  8791. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  8792. a=fmtp:18 annexb=no                                                                                                                                                                                                
  8793. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  8794.  
  8795. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  8796. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8797. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8798. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  8799. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8800. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  8801. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8802. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8803. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8804. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  8805. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  8806. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  8807. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  8808. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  8809. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  8810. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  8811. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  8812. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  8813. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  8814. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  8815. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  8816. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0272011030@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  8817. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_codec.c:111 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  8818. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  8819. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4767 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  8820. 2024-03-22 07:54:12.064185 [DEBUG] sofia.c:7507 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  8821. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State NEW
  8822. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 59 Tot 574996)
  8823. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State INIT
  8824. 2024-03-22 07:54:12.064185 [DEBUG] mod_sofia.c:90 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 SOFIA INIT
  8825. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:40 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Standard INIT
  8826. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  8827. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  8828. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 59 Tot 574996)
  8829. 2024-03-22 07:54:12.064185 [DEBUG] switch_channel.c:2249 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  8830. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State ROUTING
  8831. 2024-03-22 07:54:12.064185 [DEBUG] mod_sofia.c:143 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  8832. 2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:236 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Standard ROUTING
  8833. 2024-03-22 07:54:12.064185 [INFO] mod_dialplan_xml.c:637 Processing 0272011030 <0272011030>->0214436700 in context default
  8834. 2024-03-22 07:54:12.064185 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  8835. 2024-03-22 07:54:12.064185 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  8836. 2024-03-22 07:54:12.064185 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  8837. 2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  8838. 2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0214436700
  8839. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0214436700' limit 1
  8840. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0214436700' AND status=0 limit 1
  8841. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0214436700' and status=0 LIMIT 1                                                                                                                                                                                                          
  8842. 2024-03-22 07:54:12.084197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  8843. 2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0272011030 / 0272011030
  8844. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [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 ="0214436700" LIMIT 1                                                                                                                                                              
  8845. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [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="0214436700"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  8846. 2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  8847. 2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  8848. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  8849. 2024-03-22 07:54:12.084197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0214436700.*' OR blocked_patterns = '^021443670.*' OR blocked_patterns = '^02144367.*' OR blocked_patterns = '^0214436.*' OR blocked_patterns = '^021443.*' OR blocked_patterns = '^02144.*' OR blocked_patterns = '^0214.*' OR blocked_patterns = '^021.*' OR blocked_patterns = '^02.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  8850. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0214436700" AND (accountid = 0 OR status = 1) LIMIT 1
  8851. 2024-03-22 07:54:12.104170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  8852. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  8853. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0214436700
  8854. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0214436700
  8855. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [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 = '^0214436700.*' OR patterns = '^021443670.*' OR patterns = '^02144367.*' OR patterns = '^0214436.*' OR patterns = '^021443.*' OR patterns = '^02144.*' OR patterns = '^0214.*' OR patterns = '^021.*' OR patterns = '^02.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  8856. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [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 ="0214436700" AND A.accountid = '109' limit 1                                                                                                                                                                        
  8857. 2024-03-22 07:54:12.104170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0214436700
  8858. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [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 ="0214436700" LIMIT 1                                                                                                                                                              
  8859. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [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="0214436700"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  8860. 2024-03-22 07:54:12.104170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  8861. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0214436700' OR number = '021443670' OR number = '02144367' OR number = '0214436' OR number = '021443' OR number = '02144' OR number = '0214' OR number = '021' OR number = '02' OR number = '0' OR number ='--') OR (number = '0214436700*' OR number = '021443670*' OR number = '02144367*' OR number = '0214436*' OR number = '021443*' OR number = '02144*' OR number = '0214*' OR number = '021*' OR number = '02*' OR number = '0*' OR number ='--') OR (number = '0272011030' OR number = '027201103' OR number = '02720110' OR number = '0272011' OR number = '027201' OR number = '02720' OR number = '0272' OR number = '027' OR number = '02' OR number = '0' OR number ='--') OR (number = '0272011030*' OR number = '027201103*' OR number = '02720110*' OR number = '0272011*' OR number = '027201*' OR number = '02720*' OR number = '0272*' OR number = '027*' OR number = '02*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  8862. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  8863. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0214436700' OR routing_prefix = '021443670' OR routing_prefix = '02144367' OR routing_prefix = '0214436' OR routing_prefix = '021443' OR routing_prefix = '02144' OR routing_prefix = '0214' OR routing_prefix = '021' OR routing_prefix = '02' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  8864. 2024-03-22 07:54:12.104170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0214436700)!!!!
  8865. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27214436700
  8866. 2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27214436700' limit 1
  8867. 2024-03-22 07:54:12.104170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0214436700)!!!!
  8868. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  8869. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  8870. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  8871. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  8872. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  8873. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  8874. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  8875. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  8876. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8877. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8878. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8879. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8880. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8881. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8882. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8883. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8884. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8885. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8886. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8887. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
  8888. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  8889. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  8890. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  8891. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0214436700.*' OR pattern = '^021443670.*' OR pattern = '^02144367.*' OR pattern = '^0214436.*' OR pattern = '^021443.*' OR pattern = '^02144.*' OR pattern = '^0214.*' OR pattern = '^021.*' OR pattern = '^02.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  8892. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  8893. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  8894. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2141845
  8895. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  8896. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  8897. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  8898. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - TELKOM - GEOGRAPHIC
  8899. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  8900. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  8901. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  8902. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  8903. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  8904. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  8905. 2024-03-22 07:54:12.124175 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  8906. 2024-03-22 07:54:12.124175 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  8907. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  8908. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0214436700.*' OR blocked_patterns = '^021443670.*' OR blocked_patterns = '^02144367.*' OR blocked_patterns = '^0214436.*' OR blocked_patterns = '^021443.*' OR blocked_patterns = '^02144.*' OR blocked_patterns = '^0214.*' OR blocked_patterns = '^021.*' OR blocked_patterns = '^02.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  8909. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  8910. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  8911. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  8912. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
  8913. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  8914. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  8915. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  8916. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  8917. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  8918. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0214436700.*' OR pattern = '^021443670.*' OR pattern = '^02144367.*' OR pattern = '^0214436.*' OR pattern = '^021443.*' OR pattern = '^02144.*' OR pattern = '^0214.*' OR pattern = '^021.*' OR pattern = '^02.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  8919. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  8920. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  8921. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1420059
  8922. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  8923. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  8924. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  8925. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D000-TELKOMGNP
  8926. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  8927. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  8928. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  8929. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  8930. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  8931. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
  8932. 2024-03-22 07:54:12.124175 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  8933. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2141845|CODE:^021443.*|DESTINATION:SOUTH AFRICA - TELKOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1420059|CODE:^021443.*|DESTINATION:D000-TELKOMGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                            
  8934. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  8935. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  8936. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  8937. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2141845
  8938. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  8939. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  8940. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0214436700.*' OR pattern = '^021443670.*' OR pattern = '^02144367.*' OR pattern = '^0214436.*' OR pattern = '^021443.*' OR pattern = '^02144.*' OR pattern = '^0214.*' OR pattern = '^021.*' OR pattern = '^02.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  8941. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  8942. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  8943. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  8944. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  8945. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  8946. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  8947. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  8948. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  8949. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  8950. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  8951. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  8952. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  8953. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  8954. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  8955. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  8956. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  8957. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  8958. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  8959. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  8960. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  8961. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  8962. 2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  8963. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  8964. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  8965. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0214436700
  8966. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  8967. 2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [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 ="0214436700" LIMIT 1                                                                                                                                                              
  8968. 2024-03-22 07:54:12.144185 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  8969. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  8970. <document type="freeswitch/xml">                                                                                                                                                                                  
  8971. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  8972. <context name="default">                                                                                                                                                                                          
  8973. <extension name="0214436700">                                                                                                                                                                                      
  8974. <condition field="destination_number" expression="0214436700">                                                                                                                                                    
  8975. <action application="set" data="effective_destination_number=0214436700"/>                                                                                                                                        
  8976. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  8977. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  8978. <action application="set" data="callstart=2024-03-22 07:54:12"/>                                                                                                                                                  
  8979. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  8980. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  8981. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  8982. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  8983. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  8984. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  8985. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  8986. <action application="set" data="accountname=default"/>                                                                                                                                                            
  8987. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  8988. <action application="set" data="origination_rates=ID:2141845|CODE:^021443.*|DESTINATION:SOUTH AFRICA - TELKOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1420059|CODE:^021443.*|DESTINATION:D000-TELKOMGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>            
  8989. <action application="set" data="original_caller_id_name=0272011030"/>                                                                                                                                              
  8990. <action application="set" data="original_caller_id_number=0272011030"/>                                                                                                                                            
  8991. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  8992. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  8993. <action application="set" data="effective_caller_id_name=0272011030"/>                                                                                                                                            
  8994. <action application="set" data="effective_caller_id_number=0272011030"/>                                                                                                                                          
  8995. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  8996. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  8997. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  8998. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  8999. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  9000. <action application="set" data="force_trunk_flag=2141845"/>                                                                                                                                                        
  9001. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  9002. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  9003. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^021443.* // SOUTH AFRICA - TELKOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^021443.* // D000-TELKOMGNP"/>                                                                                                                                                
  9004. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0214436700;fs_path=sip:156.38.231.106:5060"/>                                              
  9005. </condition>                                                                                                                                                                                                      
  9006. </extension>                                                                                                                                                                                                      
  9007. </context>                                                                                                                                                                                                        
  9008. </section>                                                                                                                                                                                                        
  9009. </document>                                                                                                                                                                                                        
  9010. 2024-03-22 07:54:12.144185 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  9011. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 parsing [default->0214436700] continue=false
  9012. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Regex (PASS) [0214436700] destination_number(0214436700) =~ /0214436700/ break=on-false
  9013. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0214436700)
  9014. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  9015. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  9016. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:12)
  9017. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  9018. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  9019. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  9020. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  9021. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  9022. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  9023. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  9024. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  9025. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  9026. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2141845|CODE:^021443.*|DESTINATION:SOUTH AFRICA - TELKOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1420059|CODE:^021443.*|DESTINATION:D000-TELKOMGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                    
  9027. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0272011030)
  9028. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0272011030)
  9029. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  9030. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  9031. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0272011030)
  9032. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0272011030)
  9033. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  9034. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  9035. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  9036. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  9037. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  9038. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2141845)
  9039. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  9040. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  9041. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^021443.* // SOUTH AFRICA - TELKOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^021443.* // D000-TELKOMGNP)                                                                                                      
  9042. Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0214436700;fs_path=sip:156.38.231.106:5060)
  9043. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  9044. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  9045. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 59 Tot 574996)
  9046. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State EXECUTE
  9047. 2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:198 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  9048. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:328 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  9049. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0214436700)
  9050. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0214436700]
  9051. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  9052. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  9053. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  9054. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  9055. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:12)
  9056. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:12]
  9057. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  9058. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  9059. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  9060. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  9061. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(account_id=109)
  9062. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  9063. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  9064. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  9065. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  9066. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  9067. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  9068. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  9069. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  9070. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  9071. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(accountname=default)
  9072. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  9073. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  9074. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  9075. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2141845|CODE:^021443.*|DESTINATION:SOUTH AFRICA - TELKOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1420059|CODE:^021443.*|DESTINATION:D000-TELKOMGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                              
  9076. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2141845|CODE:^021443.*|DESTINATION:SOUTH AFRICA - TELKOM - GEOGRAPHIC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1420059|CODE:^021443.*|DESTINATION:D000-TELKOMGNP|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                            
  9077. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0272011030)
  9078. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0272011030]
  9079. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0272011030)
  9080. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0272011030]
  9081. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  9082. 2024-03-22 07:54:12.144185 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  9083. 2024-03-22 07:54:12.144185 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 10/200
  9084. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  9085. 2024-03-22 07:54:12.144185 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  9086. 2024-03-22 07:54:12.144185 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 11/800
  9087. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0272011030)
  9088. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0272011030]
  9089. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0272011030)
  9090. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0272011030]
  9091. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  9092. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  9093. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  9094. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  9095. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  9096. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  9097. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  9098. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  9099. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  9100. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  9101. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2141845)
  9102. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2141845]
  9103. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  9104. 2024-03-22 07:54:12.144185 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  9105. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(intcall=0)
  9106. 2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  9107. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^021443.* // SOUTH AFRICA - TELKOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^021443.* // D000-TELKOMGNP)                                                                                                                
  9108. 2024-03-22 07:54:12.144185 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^021443.* // SOUTH AFRICA - TELKOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^021443.* // D000-TELKOMGNP]                                                                                                    
  9109. EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0214436700;fs_path=sip:156.38.231.106:5060)
  9110. 2024-03-22 07:54:12.144185 [DEBUG] switch_channel.c:1250 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^021443.* // SOUTH AFRICA - TELKOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^021443.* // D000-TELKOMGNP] to event                                  
  9111. 2024-03-22 07:54:12.144185 [DEBUG] switch_channel.c:1250 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^021443.* // SOUTH AFRICA - TELKOM - GEOGRAPHIC // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^021443.* // D000-TELKOMGNP] to event                                  
  9112. 2024-03-22 07:54:12.144185 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  9113. 2024-03-22 07:54:12.144185 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  9114. 2024-03-22 07:54:12.144185 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0214436700 [5f10e132-e821-11ee-905b-d17fbcf33421]
  9115. 2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:4819 (sofia/default/0214436700) State Change CS_NEW -> CS_INIT
  9116. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0214436700) Running State Change CS_INIT (Cur 60 Tot 574997)
  9117. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0214436700) State INIT
  9118. 2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:90 sofia/default/0214436700 SOFIA INIT
  9119. 2024-03-22 07:54:12.144185 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0214436700
  9120. 2024-03-22 07:54:12.144185 [DEBUG] sofia_glue.c:1295 sofia/default/0214436700 sending invite version: 1.6.20  64bit
  9121. Local SDP:                                                                                                                                                                                                        
  9122. v=0                                                                                                                                                                                                                
  9123. o=FreeSWITCH 1711069458 1711069459 IN IP4 156.38.231.107                                                                                                                                                          
  9124. s=FreeSWITCH                                                                                                                                                                                                      
  9125. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  9126. t=0 0                                                                                                                                                                                                              
  9127. m=audio 24594 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  9128. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  9129. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  9130. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9131. a=fmtp:18 annexb=no                                                                                                                                                                                                
  9132. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9133. a=fmtp:101 0-16                                                                                                                                                                                                    
  9134. a=ptime:20                                                                                                                                                                                                        
  9135. a=sendrecv                                                                                                                                                                                                        
  9136.  
  9137. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:40 sofia/default/0214436700 Standard INIT
  9138. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0214436700) State Change CS_INIT -> CS_ROUTING
  9139. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0214436700) State INIT going to sleep
  9140. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0214436700) Running State Change CS_ROUTING (Cur 60 Tot 574997)
  9141. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0214436700) State ROUTING
  9142. 2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:143 sofia/default/0214436700 SOFIA ROUTING
  9143. 2024-03-22 07:54:12.144185 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0214436700) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  9144. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0214436700) State ROUTING going to sleep
  9145. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0214436700) Running State Change CS_CONSUME_MEDIA (Cur 60 Tot 574997)
  9146. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0214436700) State CONSUME_MEDIA
  9147. 2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0214436700) State CONSUME_MEDIA going to sleep
  9148. 2024-03-22 07:54:12.144185 [DEBUG] sofia.c:7084 Channel sofia/default/0214436700 entering state [calling][0]
  9149. 2024-03-22 07:54:13.024174 [DEBUG] sofia.c:7084 Channel sofia/default/0214436700 entering state [completing][200]
  9150. 2024-03-22 07:54:13.024174 [DEBUG] sofia.c:7094 Remote SDP:
  9151. v=0                                                                                                                                                                                                                
  9152. o=HuaweiSoftX3000 96814136173752 96814136173752 IN IP4 41.160.32.115                                                                                                                                              
  9153. s=-                                                                                                                                                                                                                
  9154. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  9155. t=0 0                                                                                                                                                                                                              
  9156. m=audio 24804 RTP/AVP 8 101                                                                                                                                                                                        
  9157. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  9158. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9159. a=fmtp:101 0-15                                                                                                                                                                                                    
  9160. a=ptime:20                                                                                                                                                                                                        
  9161.  
  9162. 2024-03-22 07:54:13.024174 [DEBUG] sofia.c:7084 Channel sofia/default/0214436700 entering state [ready][200]
  9163. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  9164. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  9165. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  9166. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  9167. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  9168. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0214436700 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  9169. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_codec.c:111 sofia/default/0214436700 Original read codec set to PCMA:8
  9170. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  9171. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4767 sofia/default/0214436700 Set 2833 dtmf send payload to 101 recv payload to 101
  9172. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0214436700] 156.38.231.107 port 24594 -> 41.160.32.115 port 24804 codec: 8 ms: 20
  9173. 2024-03-22 07:54:13.024174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  9174. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:7180 sofia/default/0214436700 Set 2833 dtmf send payload to 101
  9175. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:7187 sofia/default/0214436700 Set 2833 dtmf receive payload to 101
  9176. 2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:7210 sofia/default/0214436700 Set rtp dtmf delay to 40
  9177. 2024-03-22 07:54:13.024174 [NOTICE] sofia.c:8218 Channel [sofia/default/0214436700] has been answered
  9178. 2024-03-22 07:54:13.024174 [DEBUG] switch_channel.c:3773 (sofia/default/0214436700) Callstate Change DOWN -> ACTIVE
  9179. 2024-03-22 07:54:13.044166 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0272011030@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 29994 -> 156.38.150.6 port 10486 codec: 8 ms: 20
  9180. 2024-03-22 07:54:13.044166 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  9181. 2024-03-22 07:54:13.044166 [DEBUG] switch_core_media.c:7180 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  9182. 2024-03-22 07:54:13.044166 [DEBUG] switch_core_media.c:7187 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  9183. 2024-03-22 07:54:13.044166 [DEBUG] switch_core_media.c:7210 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  9184. 2024-03-22 07:54:13.044166 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0272011030@legalaidsa.nebular.co.za:5060:
  9185. v=0                                                                                                                                                                                                                
  9186. o=FreeSWITCH 1711064059 1711064060 IN IP4 156.38.231.107                                                                                                                                                          
  9187. s=FreeSWITCH                                                                                                                                                                                                      
  9188. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  9189. t=0 0                                                                                                                                                                                                              
  9190. m=audio 29994 RTP/AVP 8 101                                                                                                                                                                                        
  9191. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  9192. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9193. a=fmtp:101 0-16                                                                                                                                                                                                    
  9194. a=ptime:20                                                                                                                                                                                                        
  9195. a=sendrecv                                                                                                                                                                                                        
  9196.  
  9197. 2024-03-22 07:54:13.044166 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0272011030@legalaidsa.nebular.co.za:5060] has been answered
  9198. 2024-03-22 07:54:13.044166 [DEBUG] switch_channel.c:3773 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> ACTIVE
  9199. 2024-03-22 07:54:13.044166 [DEBUG] sofia.c:7084 Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  9200. 2024-03-22 07:54:13.044166 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0214436700]
  9201. 2024-03-22 07:54:13.044166 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0214436700) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  9202. 2024-03-22 07:54:13.044166 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0214436700) Running State Change CS_EXCHANGE_MEDIA (Cur 60 Tot 574997)
  9203. 2024-03-22 07:54:13.044166 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0214436700) State EXCHANGE_MEDIA
  9204. 2024-03-22 07:54:13.044166 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  9205. 2024-03-22 07:54:13.144178 [DEBUG] sofia.c:7084 Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  9206. 2024-03-22 07:54:13.224172 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0214436700 Bridge execute app sched_hangup(+6000 normal_clearing)
  9207. 2024-03-22 07:54:13.244178 [DEBUG] switch_ivr.c:623 sofia/default/0214436700 Command Execute sched_hangup(+6000 normal_clearing)
  9208. EXECUTE sofia/default/0214436700 sched_hangup(+6000 normal_clearing)
  9209. 2024-03-22 07:54:13.244178 [DEBUG] switch_scheduler.c:249 Added task 232838 switch_ivr_schedule_hangup (5f10e132-e821-11ee-905b-d17fbcf33421) to run at 1711100053
  9210. 2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [completing][200]
  9211. 2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7094 Remote SDP:
  9212. v=0                                                                                                                                                                                                                
  9213. o=3cxPS 101904809984 92476014593 IN IP4 156.38.150.6                                                                                                                                                              
  9214. s=3cxPS Audio call                                                                                                                                                                                                
  9215. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  9216. t=0 0                                                                                                                                                                                                              
  9217. m=audio 10478 RTP/AVP 18 101                                                                                                                                                                                      
  9218. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9219. a=fmtp:18 annexb=no                                                                                                                                                                                                
  9220. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9221.  
  9222. 2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [ready][200]
  9223. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  9224. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  9225. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  9226. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/2123267554@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  9227. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_codec.c:111 sofia/default/2123267554@legalaidsa.nebular.co.za Original read codec set to G729:18
  9228. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  9229. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4767 sofia/default/2123267554@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  9230. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/2123267554@legalaidsa.nebular.co.za] 156.38.231.107 port 24996 -> 156.38.150.6 port 10478 codec: 18 ms: 20
  9231. 2024-03-22 07:54:13.284354 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  9232. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:7180 sofia/default/2123267554@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  9233. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:7187 sofia/default/2123267554@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  9234. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:7210 sofia/default/2123267554@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  9235. 2024-03-22 07:54:13.284354 [NOTICE] sofia.c:8218 Channel [sofia/default/2123267554@legalaidsa.nebular.co.za] has been answered
  9236. 2024-03-22 07:54:13.284354 [DEBUG] switch_channel.c:3773 (sofia/default/2123267554@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  9237. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0732745146@41.160.32.115:5060] 156.38.231.107 port 18292 -> 41.160.32.115 port 24798 codec: 18 ms: 20
  9238. 2024-03-22 07:54:13.284354 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  9239. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:7180 sofia/default/0732745146@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  9240. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:7187 sofia/default/0732745146@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  9241. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:7210 sofia/default/0732745146@41.160.32.115:5060 Set rtp dtmf delay to 40
  9242. 2024-03-22 07:54:13.284354 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0732745146@41.160.32.115:5060:
  9243. v=0                                                                                                                                                                                                                
  9244. o=FreeSWITCH 1711075761 1711075762 IN IP4 156.38.231.107                                                                                                                                                          
  9245. s=FreeSWITCH                                                                                                                                                                                                      
  9246. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  9247. t=0 0                                                                                                                                                                                                              
  9248. m=audio 18292 RTP/AVP 18 101                                                                                                                                                                                      
  9249. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9250. a=fmtp:18 annexb=no                                                                                                                                                                                                
  9251. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9252. a=fmtp:101 0-16                                                                                                                                                                                                    
  9253. a=ptime:20                                                                                                                                                                                                        
  9254. a=sendrecv                                                                                                                                                                                                        
  9255.  
  9256. 2024-03-22 07:54:13.284354 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0732745146@41.160.32.115:5060] has been answered
  9257. 2024-03-22 07:54:13.284354 [DEBUG] switch_channel.c:3773 (sofia/default/0732745146@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  9258. 2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [completed][200]
  9259. 2024-03-22 07:54:13.284354 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/2123267554@legalaidsa.nebular.co.za]
  9260. 2024-03-22 07:54:13.284354 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/2123267554@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  9261. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 60 Tot 574997)
  9262. 2024-03-22 07:54:13.284354 [DEBUG] switch_core_state_machine.c:653 (sofia/default/2123267554@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  9263. 2024-03-22 07:54:13.284354 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  9264. 2024-03-22 07:54:13.344168 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10486 to 156.38.231.105:10486
  9265. 2024-03-22 07:54:13.444186 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  9266. 2024-03-22 07:54:13.484176 [DEBUG] switch_ivr_bridge.c:546 sofia/default/2123267554@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  9267. 2024-03-22 07:54:13.484176 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0671765330@41.160.32.115:5060 [5fde00ae-e821-11ee-9062-d17fbcf33421]
  9268. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_NEW (Cur 61 Tot 574998)
  9269. 2024-03-22 07:54:13.484176 [DEBUG] sofia.c:9873 sofia/default/0671765330@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  9270. 2024-03-22 07:54:13.484176 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  9271. 2024-03-22 07:54:13.484176 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [received][100]
  9272. 2024-03-22 07:54:13.484176 [DEBUG] sofia.c:7094 Remote SDP:
  9273. v=0                                                                                                                                                                                                                
  9274. o=HuaweiSoftX3000 91080354834062 91080354834062 IN IP4 41.160.32.115                                                                                                                                              
  9275. s=-                                                                                                                                                                                                                
  9276. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  9277. t=0 0                                                                                                                                                                                                              
  9278. m=audio 24806 RTP/AVP 18 4 8 116                                                                                                                                                                                  
  9279. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9280. a=fmtp:18 annexb=yes                                                                                                                                                                                              
  9281. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  9282. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  9283. a=rtpmap:116 telephone-event/8000                                                                                                                                                                                  
  9284. a=fmtp:116 0-15                                                                                                                                                                                                    
  9285. a=ptime:20                                                                                                                                                                                                        
  9286.  
  9287. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  9288. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  9289. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  9290. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  9291. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  9292. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  9293. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  9294. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  9295. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  9296. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  9297. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  9298. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  9299. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  9300. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  9301. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  9302. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 116@8000
  9303. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0671765330@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  9304. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_codec.c:111 sofia/default/0671765330@41.160.32.115:5060 Original read codec set to G729:18
  9305. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 116@8000
  9306. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4767 sofia/default/0671765330@41.160.32.115:5060 Set 2833 dtmf send payload to 116 recv payload to 116
  9307. 2024-03-22 07:54:13.484176 [DEBUG] sofia.c:7507 (sofia/default/0671765330@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  9308. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0671765330@41.160.32.115:5060) State NEW
  9309. 2024-03-22 07:54:13.484176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_INIT (Cur 61 Tot 574998)
  9310. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0671765330@41.160.32.115:5060) State INIT
  9311. 2024-03-22 07:54:13.504172 [DEBUG] mod_sofia.c:90 sofia/default/0671765330@41.160.32.115:5060 SOFIA INIT
  9312. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:40 sofia/default/0671765330@41.160.32.115:5060 Standard INIT
  9313. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0671765330@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  9314. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0671765330@41.160.32.115:5060) State INIT going to sleep
  9315. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 61 Tot 574998)
  9316. 2024-03-22 07:54:13.504172 [DEBUG] switch_channel.c:2249 (sofia/default/0671765330@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  9317. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0671765330@41.160.32.115:5060) State ROUTING
  9318. 2024-03-22 07:54:13.504172 [DEBUG] mod_sofia.c:143 sofia/default/0671765330@41.160.32.115:5060 SOFIA ROUTING
  9319. 2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:236 sofia/default/0671765330@41.160.32.115:5060 Standard ROUTING
  9320. 2024-03-22 07:54:13.504172 [INFO] mod_dialplan_xml.c:637 Processing 0671765330 <0671765330>->0103130060 in context default
  9321. 2024-03-22 07:54:13.504172 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  9322. 2024-03-22 07:54:13.504172 [DEBUG] switch_ivr.c:623 sofia/default/2123267554@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  9323. EXECUTE sofia/default/2123267554@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  9324. 2024-03-22 07:54:13.504172 [DEBUG] switch_scheduler.c:249 Added task 232839 switch_ivr_schedule_hangup (53aba534-e821-11ee-8fe2-d17fbcf33421) to run at 1711100053
  9325. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  9326. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  9327. 2024-03-22 07:54:13.504172 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [ready][200]
  9328. 2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  9329. 2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0103130060
  9330. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0103130060' limit 1
  9331. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0103130060' AND status=0 limit 1
  9332. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0103130060' and status=0 LIMIT 1                                                                                                                                                                                                          
  9333. 2024-03-22 07:54:13.504172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  9334. 2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0671765330 / <null>
  9335. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130060" LIMIT 1                                                                                                                                                              
  9336. 2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  9337. 2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  9338. 2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  9339. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0103130060" AND (accountid = 0 OR status = 1) LIMIT 1
  9340. 2024-03-22 07:54:13.524174 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  9341. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  9342. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  9343. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 107
  9344. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [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 = '^0103130060.*' OR patterns = '^010313006.*' OR patterns = '^01031300.*' OR patterns = '^0103130.*' OR patterns = '^010313.*' OR patterns = '^01031.*' OR patterns = '^0103.*' OR patterns = '^010.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 107 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  9345. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130060" AND A.accountid = '3' limit 1                                                                                                                                                                          
  9346. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0103130060
  9347. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130060" LIMIT 1                                                                                                                                                              
  9348. 2024-03-22 07:54:13.524174 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  9349. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  9350. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0103130060' OR number = '010313006' OR number = '01031300' OR number = '0103130' OR number = '010313' OR number = '01031' OR number = '0103' OR number = '010' OR number = '01' OR number = '0' OR number ='--') OR (number = '0103130060*' OR number = '010313006*' OR number = '01031300*' OR number = '0103130*' OR number = '010313*' OR number = '01031*' OR number = '0103*' OR number = '010*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  9351. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  9352. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0103130060' OR routing_prefix = '010313006' OR routing_prefix = '01031300' OR routing_prefix = '0103130' OR routing_prefix = '010313' OR routing_prefix = '01031' OR routing_prefix = '0103' OR routing_prefix = '010' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  9353. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  9354. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  9355. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  9356. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  9357. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  9358. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  9359. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  9360. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  9361. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  9362. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  9363. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [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 ="0103130060" LIMIT 1                                                                                                                                                              
  9364. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  9365. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  9366. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2125
  9367. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  9368. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  9369. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  9370. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0103130060
  9371. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  9372. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  9373. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  9374. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  9375. 2024-03-22 07:54:13.524174 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  9376. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  9377. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  9378. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  9379. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  9380. 2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++107
  9381. 2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "107" AND deleted = 0 limit 1
  9382. 2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  9383. 2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  9384. 2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  9385. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 107 limit 1
  9386. 2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : meililogistics.nebular.co.za
  9387. 2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  9388. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  9389. 2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  9390. 2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  9391. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0671765330
  9392. 2024-03-22 07:54:13.544167 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0671765330
  9393. 2024-03-22 07:54:13.544167 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27671765330
  9394. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  9395. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 107 limit 1
  9396. 2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : meililogistics.nebular.co.za
  9397. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  9398. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [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="5734184911"  AND domains.domain="meililogistics.nebular.co.za" limit 1                                                                                  
  9399. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1591 limit 1
  9400. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  9401. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  9402. 2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforemeililogistics.nebular.co.za
  9403. 2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  9404. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  9405. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  9406. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='5734184911' and uuid = '5fde00ae-e821-11ee-9062-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  9407. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='5734184911' order by id desc limit 1
  9408. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [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="5734184911"  AND domains.domain="meililogistics.nebular.co.za" limit 1                                                                                  
  9409. 2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1591 limit 1
  9410. 2024-03-22 07:54:13.564175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  9411. <document type="freeswitch/xml">                                                                                                                                                                                  
  9412. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  9413. <context name="default">                                                                                                                                                                                          
  9414. <extension name="0103130060">                                                                                                                                                                                      
  9415. <condition field="destination_number" expression="0103130060">                                                                                                                                                    
  9416. <action application="set" data="effective_destination_number=0103130060"/>                                                                                                                                        
  9417. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  9418. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  9419. <action application="set" data="callstart=2024-03-22 07:54:13"/>                                                                                                                                                  
  9420. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  9421. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  9422. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  9423. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  9424. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  9425. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  9426. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  9427. <action application="set" data="accountname=default"/>                                                                                                                                                            
  9428. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  9429. <action application="set" data="origination_rates_did=ID:2125|CODE:^0103130060.*|DESTINATION:0103130060|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:107"/>                                                                                                                                                                                                      
  9430. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  9431. <action application="set" data="original_caller_id_name=0671765330"/>                                                                                                                                              
  9432. <action application="set" data="effective_caller_id_name=27671765330"/>                                                                                                                                            
  9433. <action application="set" data="receiver_accid=107"/>                                                                                                                                                              
  9434. <action application="export" data="domain_name=meililogistics.nebular.co.za"/>                                                                                                                                    
  9435. <action application="export" data="sip_to_host=meililogistics.nebular.co.za"/>                                                                                                                                    
  9436. <action application="export" data="presence_data=x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  9437. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  9438. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  9439. <action application="db" data="insert/pickup_any_group_${callgroup}/5734184911/${uuid}"/>                                                                                                                          
  9440. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  9441. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  9442. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  9443. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  9444. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  9445. <action application="export" data="did_user_domain=meililogistics.nebular.co.za"/>                                                                                                                                
  9446. <action application="sleep" data="1000"/>                                                                                                                                                                          
  9447. <action application="ring_ready"/>                                                                                                                                                                                
  9448. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/5734184911@meililogistics.nebular.co.za^0103130060"/>                                                
  9449. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  9450. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  9451. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  9452. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  9453. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  9454. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  9455. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  9456. <action application="set" data="variable_sip_to_host=meililogistics.nebular.co.za"/>                                                                                                                              
  9457. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  9458. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  9459. <action application="set" data="userinfo_id=107"/>                                                                                                                                                                
  9460. <action application="set" data="sip_destination_number=5734184911"/>                                                                                                                                              
  9461. <action application="set" data="destination_number=0103130060"/>                                                                                                                                                  
  9462. <action application="set" data="did_number=0103130060"/>                                                                                                                                                          
  9463. <action application="set" data="user_domain=meililogistics.nebular.co.za"/>                                                                                                                                        
  9464. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  9465. <condition field="${cond(${user_data 5734184911@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  9466. <action application="answer"/>                                                                                                                                                                                    
  9467. <action application="export" data="voicemail_alternate_greet_id=0103130060"/>                                                                                                                                      
  9468. <action application="voicemail" data="default $${domain_name} 5734184911"/>                                                                                                                                        
  9469. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  9470. </condition>                                                                                                                                                                                                      
  9471. </condition>                                                                                                                                                                                                      
  9472. </extension>                                                                                                                                                                                                      
  9473. </context>                                                                                                                                                                                                        
  9474. </section>                                                                                                                                                                                                        
  9475. </document>                                                                                                                                                                                                        
  9476. 2024-03-22 07:54:13.564175 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  9477. Dialplan: sofia/default/0671765330@41.160.32.115:5060 parsing [default->0103130060] continue=false
  9478. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Regex (PASS) [0103130060] destination_number(0103130060) =~ /0103130060/ break=on-false
  9479. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(effective_destination_number=0103130060)
  9480. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  9481. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  9482. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:13)
  9483. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  9484. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  9485. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(account_id=3)
  9486. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(parent_id=0)
  9487. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(entity_id=3)
  9488. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(call_processed=internal)
  9489. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(call_direction=inbound)
  9490. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(accountname=default)
  9491. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  9492. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(origination_rates_did=ID:2125|CODE:^0103130060.*|DESTINATION:0103130060|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:107)                                                                                                                                                                      
  9493. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(origination_rates=0)
  9494. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(original_caller_id_name=0671765330)
  9495. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(effective_caller_id_name=27671765330)
  9496. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(receiver_accid=107)
  9497. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(domain_name=meililogistics.nebular.co.za)
  9498. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(sip_to_host=meililogistics.nebular.co.za)
  9499. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115)
  9500. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(call_type=5)
  9501. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(calltype=SIP-DID)
  9502. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/5734184911/${uuid})
  9503. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  9504. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  9505. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  9506. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  9507. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  9508. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(did_user_domain=meililogistics.nebular.co.za)
  9509. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action sleep(1000)
  9510. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action ring_ready()
  9511. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/5734184911@meililogistics.nebular.co.za^0103130060)
  9512. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(on_busy_flag=1)
  9513. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(on_busy_destination=)
  9514. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(no_answer_flag=1)
  9515. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(no_answer_destination=)
  9516. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(not_register_flag=1)
  9517. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(not_register_destination=)
  9518. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(opensips_flag=0)
  9519. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(variable_sip_to_host=meililogistics.nebular.co.za)
  9520. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  9521. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(leg_timeout=20)
  9522. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(userinfo_id=107)
  9523. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(sip_destination_number=5734184911)
  9524. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(destination_number=0103130060)
  9525. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(did_number=0103130060)
  9526. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(user_domain=meililogistics.nebular.co.za)
  9527. Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  9528. |--- Dialplan: Processing recursive conditions level:1 [0103130060_recur_1] require-nested=TRUE
  9529. 2024-03-22 07:54:13.564175 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10478 to 156.38.231.105:10478
  9530. |--- Dialplan: sofia/default/0671765330@41.160.32.115:5060 Regex (FAIL) [0103130060_recur_1] ${cond(${user_data 5734184911@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  9531. |--- Dialplan: sofia/default/0671765330@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  9532. 2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0671765330@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  9533. 2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0671765330@41.160.32.115:5060) State ROUTING going to sleep
  9534. 2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 61 Tot 574998)
  9535. 2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0671765330@41.160.32.115:5060) State EXECUTE
  9536. 2024-03-22 07:54:13.584150 [DEBUG] mod_sofia.c:198 sofia/default/0671765330@41.160.32.115:5060 SOFIA EXECUTE
  9537. 2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:328 sofia/default/0671765330@41.160.32.115:5060 Standard EXECUTE
  9538. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(effective_destination_number=0103130060)
  9539. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [effective_destination_number]=[0103130060]
  9540. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  9541. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  9542. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  9543. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  9544. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(callstart=2024-03-22 07:54:13)
  9545. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:13]
  9546. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(hangup_after_bridge=true)
  9547. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [hangup_after_bridge]=[true]
  9548. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(continue_on_fail=TRUE)
  9549. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  9550. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(account_id=3)
  9551. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [account_id]=[3]
  9552. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(parent_id=0)
  9553. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [parent_id]=[0]
  9554. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(entity_id=3)
  9555. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [entity_id]=[3]
  9556. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(call_processed=internal)
  9557. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [call_processed]=[internal]
  9558. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(call_direction=inbound)
  9559. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [call_direction]=[inbound]
  9560. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(accountname=default)
  9561. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [accountname]=[default]
  9562. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  9563. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  9564. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(origination_rates_did=ID:2125|CODE:^0103130060.*|DESTINATION:0103130060|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:107)                                                                                                                                                                                
  9565. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [origination_rates_did]=[ID:2125|CODE:^0103130060.*|DESTINATION:0103130060|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:107]                                                                                                                              
  9566. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(origination_rates=0)
  9567. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [origination_rates]=[0]
  9568. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(original_caller_id_name=0671765330)
  9569. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [original_caller_id_name]=[0671765330]
  9570. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(effective_caller_id_name=27671765330)
  9571. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [effective_caller_id_name]=[27671765330]
  9572. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(receiver_accid=107)
  9573. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [receiver_accid]=[107]
  9574. EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(domain_name=meililogistics.nebular.co.za)
  9575. 2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[meililogistics.nebular.co.za]
  9576. EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(sip_to_host=meililogistics.nebular.co.za)
  9577. 2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[meililogistics.nebular.co.za]
  9578. EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115)
  9579. 2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115]
  9580. EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(call_type=5)
  9581. 2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  9582. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(calltype=SIP-DID)
  9583. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [calltype]=[SIP-DID]
  9584. EXECUTE sofia/default/0671765330@41.160.32.115:5060 db(insert/pickup_any_group_/5734184911/5fde00ae-e821-11ee-9062-d17fbcf33421)
  9585. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(dialed_extension=transfer_call)
  9586. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  9587. EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(dialed_extension=transfer_call)
  9588. 2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  9589. EXECUTE sofia/default/0671765330@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  9590. 2024-03-22 07:54:13.584150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  9591. EXECUTE sofia/default/0671765330@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  9592. 2024-03-22 07:54:13.584150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  9593. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(hangup_after_bridge=true)
  9594. 2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [hangup_after_bridge]=[true]
  9595. EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(did_user_domain=meililogistics.nebular.co.za)
  9596. 2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[meililogistics.nebular.co.za]
  9597. EXECUTE sofia/default/0671765330@41.160.32.115:5060 sleep(1000)
  9598. 2024-03-22 07:54:13.924160 [NOTICE] sofia.c:1012 Hangup sofia/default/0837792192@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  9599. 2024-03-22 07:54:13.924160 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0837792192@41.160.32.115:5060]
  9600. 2024-03-22 07:54:13.944177 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0837792192@41.160.32.115:5060 ending bridge by request from write function
  9601. 2024-03-22 07:54:13.944177 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1033021106@legalaidsa.nebular.co.za]
  9602. 2024-03-22 07:54:13.944177 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/1033021106@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  9603. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1033021106@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  9604. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 61 Tot 574998)
  9605. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1033021106@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  9606. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1033021106@legalaidsa.nebular.co.za) State HANGUP
  9607. 2024-03-22 07:54:13.944177 [DEBUG] mod_sofia.c:432 sofia/default/1033021106@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  9608. 2024-03-22 07:54:13.944177 [DEBUG] mod_sofia.c:438 Channel sofia/default/1033021106@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  9609. 2024-03-22 07:54:13.944177 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/1033021106@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  9610. 2024-03-22 07:54:13.944177 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0837792192@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  9611. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_session.c:2815 sofia/default/0837792192@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  9612. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0837792192@41.160.32.115:5060) State EXECUTE going to sleep
  9613. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 61 Tot 574998)
  9614. 2024-03-22 07:54:13.944177 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/1033021106@legalaidsa.nebular.co.za
  9615. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:60 sofia/default/1033021106@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  9616. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1033021106@legalaidsa.nebular.co.za) State HANGUP going to sleep
  9617. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:619 (sofia/default/1033021106@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  9618. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 61 Tot 574998)
  9619. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0837792192@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  9620. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1033021106@legalaidsa.nebular.co.za) State REPORTING
  9621. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837792192@41.160.32.115:5060) State HANGUP
  9622. 2024-03-22 07:54:13.944177 [DEBUG] mod_sofia.c:438 Channel sofia/default/0837792192@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  9623. 2024-03-22 07:54:13.944177 [INFO] mod_json_cdr.c:271 Process [4c888538-e821-11ee-8f6e-d17fbcf33421.cdr.json]
  9624. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:60 sofia/default/0837792192@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  9625. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837792192@41.160.32.115:5060) State HANGUP going to sleep
  9626. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0837792192@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  9627. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 61 Tot 574998)
  9628. 2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837792192@41.160.32.115:5060) State REPORTING
  9629. 2024-03-22 07:54:13.944177 [INFO] mod_json_cdr.c:271 Process [4bdf885c-e821-11ee-8f23-d17fbcf33421.cdr.json]
  9630. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:174 sofia/default/1033021106@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  9631. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1033021106@legalaidsa.nebular.co.za) State REPORTING going to sleep
  9632. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:610 (sofia/default/1033021106@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  9633. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_session.c:1665 Session 574985 (sofia/default/1033021106@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  9634. 2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1683 Session 574985 (sofia/default/1033021106@legalaidsa.nebular.co.za) Ended
  9635. 2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1033021106@legalaidsa.nebular.co.za [CS_DESTROY]
  9636. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:741 (sofia/default/1033021106@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 60 Tot 574998)
  9637. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1033021106@legalaidsa.nebular.co.za) State DESTROY
  9638. 2024-03-22 07:54:13.964156 [DEBUG] mod_sofia.c:343 sofia/default/1033021106@legalaidsa.nebular.co.za SOFIA DESTROY
  9639. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:181 sofia/default/1033021106@legalaidsa.nebular.co.za Standard DESTROY
  9640. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1033021106@legalaidsa.nebular.co.za) State DESTROY going to sleep
  9641. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:174 sofia/default/0837792192@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  9642. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837792192@41.160.32.115:5060) State REPORTING going to sleep
  9643. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0837792192@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  9644. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_session.c:1665 Session 574983 (sofia/default/0837792192@41.160.32.115:5060) Locked, Waiting on external entities
  9645. 2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1683 Session 574983 (sofia/default/0837792192@41.160.32.115:5060) Ended
  9646. 2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0837792192@41.160.32.115:5060 [CS_DESTROY]
  9647. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0837792192@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 59 Tot 574998)
  9648. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837792192@41.160.32.115:5060) State DESTROY
  9649. 2024-03-22 07:54:13.964156 [DEBUG] mod_sofia.c:343 sofia/default/0837792192@41.160.32.115:5060 SOFIA DESTROY
  9650. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:181 sofia/default/0837792192@41.160.32.115:5060 Standard DESTROY
  9651. 2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837792192@41.160.32.115:5060) State DESTROY going to sleep
  9652. 2024-03-22 07:54:14.004185 [DEBUG] switch_scheduler.c:144 Deleting task 232836 switch_ivr_schedule_hangup (4c888538-e821-11ee-8f6e-d17fbcf33421)
  9653. EXECUTE sofia/default/0671765330@41.160.32.115:5060 ring_ready()
  9654. 2024-03-22 07:54:14.604168 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0671765330@41.160.32.115:5060!
  9655. 2024-03-22 07:54:14.604168 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [early][180]
  9656. 2024-03-22 07:54:14.604168 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0671765330@41.160.32.115:5060!
  9657. EXECUTE sofia/default/0671765330@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/default/5734184911@meililogistics.nebular.co.za^0103130060)
  9658. 2024-03-22 07:54:14.604168 [DEBUG] switch_channel.c:1250 sofia/default/0671765330@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[meililogistics.nebular.co.za] to event
  9659. 2024-03-22 07:54:14.604168 [DEBUG] switch_channel.c:1250 sofia/default/0671765330@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[meililogistics.nebular.co.za] to event
  9660. 2024-03-22 07:54:14.604168 [DEBUG] switch_channel.c:1250 sofia/default/0671765330@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  9661. 2024-03-22 07:54:14.604168 [DEBUG] switch_channel.c:1250 sofia/default/0671765330@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  9662. 2024-03-22 07:54:14.604168 [DEBUG] switch_channel.c:1250 sofia/default/0671765330@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  9663. 2024-03-22 07:54:14.604168 [DEBUG] switch_channel.c:1250 sofia/default/0671765330@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[meililogistics.nebular.co.za] to event
  9664. 2024-03-22 07:54:14.604168 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  9665. 2024-03-22 07:54:14.604168 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  9666. 2024-03-22 07:54:14.604168 [NOTICE] switch_channel.c:1104 New Channel sofia/default/5734184911@meililogistics.nebular.co.za [60873e76-e821-11ee-908b-d17fbcf33421]
  9667. 2024-03-22 07:54:14.604168 [DEBUG] mod_sofia.c:4819 (sofia/default/5734184911@meililogistics.nebular.co.za) State Change CS_NEW -> CS_INIT
  9668. 2024-03-22 07:54:14.604168 [DEBUG] switch_ivr_originate.c:2963 sofia/default/5734184911@meililogistics.nebular.co.za Setting leg timeout to 30
  9669. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5734184911@meililogistics.nebular.co.za) Running State Change CS_INIT (Cur 60 Tot 574999)
  9670. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5734184911@meililogistics.nebular.co.za) State INIT
  9671. 2024-03-22 07:54:14.604168 [DEBUG] mod_sofia.c:90 sofia/default/5734184911@meililogistics.nebular.co.za SOFIA INIT
  9672. 2024-03-22 07:54:14.604168 [DEBUG] sofia_glue.c:1295 sofia/default/5734184911@meililogistics.nebular.co.za sending invite version: 1.6.20  64bit
  9673. Local SDP:                                                                                                                                                                                                        
  9674. v=0                                                                                                                                                                                                                
  9675. o=FreeSWITCH 1711068546 1711068547 IN IP4 156.38.231.107                                                                                                                                                          
  9676. s=FreeSWITCH                                                                                                                                                                                                      
  9677. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  9678. t=0 0                                                                                                                                                                                                              
  9679. m=audio 25508 RTP/AVP 18 101                                                                                                                                                                                      
  9680. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9681. a=fmtp:18 annexb=no                                                                                                                                                                                                
  9682. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9683. a=fmtp:101 0-16                                                                                                                                                                                                    
  9684. a=ptime:20                                                                                                                                                                                                        
  9685. a=sendrecv                                                                                                                                                                                                        
  9686.  
  9687. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:40 sofia/default/5734184911@meililogistics.nebular.co.za Standard INIT
  9688. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:48 (sofia/default/5734184911@meililogistics.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  9689. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5734184911@meililogistics.nebular.co.za) State INIT going to sleep
  9690. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5734184911@meililogistics.nebular.co.za) Running State Change CS_ROUTING (Cur 60 Tot 574999)
  9691. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5734184911@meililogistics.nebular.co.za) State ROUTING
  9692. 2024-03-22 07:54:14.604168 [DEBUG] mod_sofia.c:143 sofia/default/5734184911@meililogistics.nebular.co.za SOFIA ROUTING
  9693. 2024-03-22 07:54:14.604168 [DEBUG] switch_ivr_originate.c:67 (sofia/default/5734184911@meililogistics.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  9694. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5734184911@meililogistics.nebular.co.za) State ROUTING going to sleep
  9695. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5734184911@meililogistics.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 60 Tot 574999)
  9696. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:662 (sofia/default/5734184911@meililogistics.nebular.co.za) State CONSUME_MEDIA
  9697. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:662 (sofia/default/5734184911@meililogistics.nebular.co.za) State CONSUME_MEDIA going to sleep
  9698. 2024-03-22 07:54:14.604168 [DEBUG] sofia.c:7084 Channel sofia/default/5734184911@meililogistics.nebular.co.za entering state [calling][0]
  9699. 2024-03-22 07:54:14.604168 [DEBUG] sofia.c:7084 Channel sofia/default/5734184911@meililogistics.nebular.co.za entering state [terminated][404]
  9700. 2024-03-22 07:54:14.604168 [NOTICE] sofia.c:8273 Hangup sofia/default/5734184911@meililogistics.nebular.co.za [CS_CONSUME_MEDIA] [UNALLOCATED_NUMBER]
  9701. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5734184911@meililogistics.nebular.co.za) Running State Change CS_HANGUP (Cur 60 Tot 574999)
  9702. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:850 (sofia/default/5734184911@meililogistics.nebular.co.za) Callstate Change DOWN -> HANGUP
  9703. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5734184911@meililogistics.nebular.co.za) State HANGUP
  9704. 2024-03-22 07:54:14.604168 [DEBUG] mod_sofia.c:438 Channel sofia/default/5734184911@meililogistics.nebular.co.za hanging up, cause: UNALLOCATED_NUMBER
  9705. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:60 sofia/default/5734184911@meililogistics.nebular.co.za Standard HANGUP, cause: UNALLOCATED_NUMBER
  9706. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5734184911@meililogistics.nebular.co.za) State HANGUP going to sleep
  9707. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:619 (sofia/default/5734184911@meililogistics.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  9708. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:584 (sofia/default/5734184911@meililogistics.nebular.co.za) Running State Change CS_REPORTING (Cur 60 Tot 574999)
  9709. 2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5734184911@meililogistics.nebular.co.za) State REPORTING
  9710. 2024-03-22 07:54:14.604168 [INFO] mod_json_cdr.c:271 Process [60873e76-e821-11ee-908b-d17fbcf33421.cdr.json]
  9711. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:174 sofia/default/5734184911@meililogistics.nebular.co.za Standard REPORTING, cause: UNALLOCATED_NUMBER
  9712. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5734184911@meililogistics.nebular.co.za) State REPORTING going to sleep
  9713. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/5734184911@meililogistics.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  9714. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_session.c:1665 Session 574999 (sofia/default/5734184911@meililogistics.nebular.co.za) Locked, Waiting on external entities
  9715. 2024-03-22 07:54:14.624155 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 1 [UNALLOCATED_NUMBER]
  9716. 2024-03-22 07:54:14.624155 [NOTICE] switch_core_session.c:1683 Session 574999 (sofia/default/5734184911@meililogistics.nebular.co.za) Ended
  9717. 2024-03-22 07:54:14.624155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5734184911@meililogistics.nebular.co.za [CS_DESTROY]
  9718. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:741 (sofia/default/5734184911@meililogistics.nebular.co.za) Running State Change CS_DESTROY (Cur 59 Tot 574999)
  9719. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5734184911@meililogistics.nebular.co.za) State DESTROY
  9720. 2024-03-22 07:54:14.624155 [DEBUG] mod_sofia.c:343 sofia/default/5734184911@meililogistics.nebular.co.za SOFIA DESTROY
  9721. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:181 sofia/default/5734184911@meililogistics.nebular.co.za Standard DESTROY
  9722. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5734184911@meililogistics.nebular.co.za) State DESTROY going to sleep
  9723. 2024-03-22 07:54:14.624155 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: UNALLOCATED_NUMBER
  9724. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(on_busy_flag=1)
  9725. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [on_busy_flag]=[1]
  9726. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(on_busy_destination=)
  9727. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [on_busy_destination]=[UNDEF]
  9728. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(no_answer_flag=1)
  9729. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [no_answer_flag]=[1]
  9730. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(no_answer_destination=)
  9731. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [no_answer_destination]=[UNDEF]
  9732. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(not_register_flag=1)
  9733. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [not_register_flag]=[1]
  9734. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(not_register_destination=)
  9735. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [not_register_destination]=[UNDEF]
  9736. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(opensips_flag=0)
  9737. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [opensips_flag]=[0]
  9738. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(variable_sip_to_host=meililogistics.nebular.co.za)
  9739. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [variable_sip_to_host]=[meililogistics.nebular.co.za]
  9740. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(opensips_domain=156.38.231.106)
  9741. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [opensips_domain]=[156.38.231.106]
  9742. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(leg_timeout=20)
  9743. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [leg_timeout]=[20]
  9744. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(userinfo_id=107)
  9745. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [userinfo_id]=[107]
  9746. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(sip_destination_number=5734184911)
  9747. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [sip_destination_number]=[5734184911]
  9748. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(destination_number=0103130060)
  9749. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [destination_number]=[0103130060]
  9750. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(did_number=0103130060)
  9751. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [did_number]=[0103130060]
  9752. EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(user_domain=meililogistics.nebular.co.za)
  9753. 2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [user_domain]=[meililogistics.nebular.co.za]
  9754. EXECUTE sofia/default/0671765330@41.160.32.115:5060 lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  9755. 2024-03-22 07:54:14.624155 [NOTICE] switch_cpp.cpp:1365 [Astpp_SIP-Devices] This Is Last Dispositions UNALLOCATED_NUMBER This Is SIP Number : 5734184911
  9756. EXECUTE sofia/default/0671765330@41.160.32.115:5060 answer()
  9757. 2024-03-22 07:54:14.624155 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0671765330@41.160.32.115:5060] 156.38.231.107 port 27692 -> 41.160.32.115 port 24806 codec: 18 ms: 20
  9758. 2024-03-22 07:54:14.624155 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  9759. 2024-03-22 07:54:14.644161 [DEBUG] switch_core_media.c:7180 sofia/default/0671765330@41.160.32.115:5060 Set 2833 dtmf send payload to 116
  9760. 2024-03-22 07:54:14.644161 [DEBUG] switch_core_media.c:7187 sofia/default/0671765330@41.160.32.115:5060 Set 2833 dtmf receive payload to 116
  9761. 2024-03-22 07:54:14.644161 [DEBUG] switch_core_media.c:7210 sofia/default/0671765330@41.160.32.115:5060 Set rtp dtmf delay to 40
  9762. 2024-03-22 07:54:14.644161 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0671765330@41.160.32.115:5060:
  9763. v=0                                                                                                                                                                                                                
  9764. o=FreeSWITCH 1711066362 1711066363 IN IP4 156.38.231.107                                                                                                                                                          
  9765. s=FreeSWITCH                                                                                                                                                                                                      
  9766. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  9767. t=0 0                                                                                                                                                                                                              
  9768. m=audio 27692 RTP/AVP 18 116                                                                                                                                                                                      
  9769. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9770. a=fmtp:18 annexb=yes                                                                                                                                                                                              
  9771. a=rtpmap:116 telephone-event/8000                                                                                                                                                                                  
  9772. a=fmtp:116 0-16                                                                                                                                                                                                    
  9773. a=ptime:20                                                                                                                                                                                                        
  9774. a=sendrecv                                                                                                                                                                                                        
  9775.  
  9776. 2024-03-22 07:54:14.644161 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/0671765330@41.160.32.115:5060] has been answered
  9777. 2024-03-22 07:54:14.644161 [DEBUG] switch_channel.c:3773 (sofia/default/0671765330@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  9778. 2024-03-22 07:54:14.644161 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [completed][200]
  9779. 2024-03-22 07:54:14.644161 [NOTICE] switch_cpp.cpp:1365 [Astpp_SIP-Devices] Dialed User For Voicemail :5734184911
  9780. EXECUTE sofia/default/0671765330@41.160.32.115:5060 voicemail(default meililogistics.nebular.co.za 5734184911)
  9781. 2024-03-22 07:54:14.744213 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
  9782. 2024-03-22 07:54:14.764172 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-person.wav] (en:en)
  9783. 2024-03-22 07:54:14.764172 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  9784. 2024-03-22 07:54:14.764172 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda896d6e0 0x7feda896d6e0
  9785. 2024-03-22 07:54:14.764172 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda896d6e0 0x7feda896d6e0
  9786. 2024-03-22 07:54:15.104874 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  9787. 2024-03-22 07:54:15.224168 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [ready][200]
  9788. 2024-03-22 07:54:15.824162 [NOTICE] sofia.c:1012 Hangup sofia/default/1730119070@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  9789. 2024-03-22 07:54:15.824162 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1730119070@legalaidsa.nebular.co.za]
  9790. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1730119070@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  9791. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 59 Tot 574999)
  9792. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1730119070@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  9793. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1730119070@legalaidsa.nebular.co.za) State HANGUP
  9794. 2024-03-22 07:54:15.824162 [DEBUG] mod_sofia.c:438 Channel sofia/default/1730119070@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  9795. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:60 sofia/default/1730119070@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  9796. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1730119070@legalaidsa.nebular.co.za) State HANGUP going to sleep
  9797. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:619 (sofia/default/1730119070@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  9798. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 59 Tot 574999)
  9799. 2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1730119070@legalaidsa.nebular.co.za) State REPORTING
  9800. 2024-03-22 07:54:15.824162 [INFO] mod_json_cdr.c:271 Process [4a128f4c-e821-11ee-8ef1-d17fbcf33421.cdr.json]
  9801. 2024-03-22 07:54:15.844288 [DEBUG] switch_ivr_bridge.c:706 sofia/default/1730119070@legalaidsa.nebular.co.za ending bridge by request from write function
  9802. 2024-03-22 07:54:15.844288 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0728413043@41.160.32.115:5060]
  9803. 2024-03-22 07:54:15.844288 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/1730119070@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  9804. 2024-03-22 07:54:15.844288 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0728413043@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  9805. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_session.c:2815 sofia/default/0728413043@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  9806. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0728413043@41.160.32.115:5060) State EXECUTE going to sleep
  9807. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 59 Tot 574999)
  9808. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0728413043@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  9809. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728413043@41.160.32.115:5060) State HANGUP
  9810. 2024-03-22 07:54:15.844288 [DEBUG] mod_sofia.c:432 sofia/default/0728413043@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  9811. 2024-03-22 07:54:15.844288 [DEBUG] mod_sofia.c:438 Channel sofia/default/0728413043@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  9812. 2024-03-22 07:54:15.844288 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0728413043@41.160.32.115:5060
  9813. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:60 sofia/default/0728413043@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  9814. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728413043@41.160.32.115:5060) State HANGUP going to sleep
  9815. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0728413043@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  9816. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 59 Tot 574999)
  9817. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728413043@41.160.32.115:5060) State REPORTING
  9818. 2024-03-22 07:54:15.844288 [INFO] mod_json_cdr.c:271 Process [496939ba-e821-11ee-8ec9-d17fbcf33421.cdr.json]
  9819. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:174 sofia/default/1730119070@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  9820. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1730119070@legalaidsa.nebular.co.za) State REPORTING going to sleep
  9821. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:610 (sofia/default/1730119070@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  9822. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_session.c:1665 Session 574979 (sofia/default/1730119070@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  9823. 2024-03-22 07:54:15.844288 [NOTICE] switch_core_session.c:1683 Session 574979 (sofia/default/1730119070@legalaidsa.nebular.co.za) Ended
  9824. 2024-03-22 07:54:15.844288 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1730119070@legalaidsa.nebular.co.za [CS_DESTROY]
  9825. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:741 (sofia/default/1730119070@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 58 Tot 574999)
  9826. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1730119070@legalaidsa.nebular.co.za) State DESTROY
  9827. 2024-03-22 07:54:15.844288 [DEBUG] mod_sofia.c:343 sofia/default/1730119070@legalaidsa.nebular.co.za SOFIA DESTROY
  9828. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:181 sofia/default/1730119070@legalaidsa.nebular.co.za Standard DESTROY
  9829. 2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1730119070@legalaidsa.nebular.co.za) State DESTROY going to sleep
  9830. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:174 sofia/default/0728413043@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  9831. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728413043@41.160.32.115:5060) State REPORTING going to sleep
  9832. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0728413043@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  9833. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_session.c:1665 Session 574978 (sofia/default/0728413043@41.160.32.115:5060) Locked, Waiting on external entities
  9834. 2024-03-22 07:54:15.864310 [NOTICE] switch_core_session.c:1683 Session 574978 (sofia/default/0728413043@41.160.32.115:5060) Ended
  9835. 2024-03-22 07:54:15.864310 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0728413043@41.160.32.115:5060 [CS_DESTROY]
  9836. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0728413043@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 57 Tot 574999)
  9837. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728413043@41.160.32.115:5060) State DESTROY
  9838. 2024-03-22 07:54:15.864310 [DEBUG] mod_sofia.c:343 sofia/default/0728413043@41.160.32.115:5060 SOFIA DESTROY
  9839. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:181 sofia/default/0728413043@41.160.32.115:5060 Standard DESTROY
  9840. 2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728413043@41.160.32.115:5060) State DESTROY going to sleep
  9841. 2024-03-22 07:54:16.004174 [DEBUG] switch_scheduler.c:144 Deleting task 232833 switch_ivr_schedule_hangup (4a128f4c-e821-11ee-8ef1-d17fbcf33421)
  9842. 2024-03-22 07:54:16.104229 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/voicemail/vm-person.wav
  9843. 2024-03-22 07:54:16.224165 [DEBUG] switch_ivr_play_say.c:250 Handle say:[5734184911] (en:en)
  9844. 2024-03-22 07:54:16.244225 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  9845. 2024-03-22 07:54:16.264188 [NOTICE] sofia.c:1012 Hangup sofia/default/0732745146@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  9846. 2024-03-22 07:54:16.264188 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0732745146@41.160.32.115:5060]
  9847. 2024-03-22 07:54:16.284166 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0732745146@41.160.32.115:5060 ending bridge by request from write function
  9848. 2024-03-22 07:54:16.284166 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/2123267554@legalaidsa.nebular.co.za]
  9849. 2024-03-22 07:54:16.284166 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/2123267554@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  9850. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:653 (sofia/default/2123267554@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  9851. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 57 Tot 574999)
  9852. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:850 (sofia/default/2123267554@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  9853. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2123267554@legalaidsa.nebular.co.za) State HANGUP
  9854. 2024-03-22 07:54:16.284166 [DEBUG] mod_sofia.c:432 sofia/default/2123267554@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  9855. 2024-03-22 07:54:16.284166 [DEBUG] mod_sofia.c:438 Channel sofia/default/2123267554@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  9856. 2024-03-22 07:54:16.284166 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/2123267554@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  9857. 2024-03-22 07:54:16.284166 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0732745146@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  9858. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_session.c:2815 sofia/default/0732745146@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  9859. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0732745146@41.160.32.115:5060) State EXECUTE going to sleep
  9860. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 57 Tot 574999)
  9861. 2024-03-22 07:54:16.284166 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/2123267554@legalaidsa.nebular.co.za
  9862. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:60 sofia/default/2123267554@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  9863. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2123267554@legalaidsa.nebular.co.za) State HANGUP going to sleep
  9864. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0732745146@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  9865. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:619 (sofia/default/2123267554@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  9866. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 57 Tot 574999)
  9867. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0732745146@41.160.32.115:5060) State HANGUP
  9868. 2024-03-22 07:54:16.284166 [DEBUG] mod_sofia.c:438 Channel sofia/default/0732745146@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  9869. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2123267554@legalaidsa.nebular.co.za) State REPORTING
  9870. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:60 sofia/default/0732745146@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  9871. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0732745146@41.160.32.115:5060) State HANGUP going to sleep
  9872. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0732745146@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  9873. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 57 Tot 574999)
  9874. 2024-03-22 07:54:16.284166 [INFO] mod_json_cdr.c:271 Process [53aba534-e821-11ee-8fe2-d17fbcf33421.cdr.json]
  9875. 2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0732745146@41.160.32.115:5060) State REPORTING
  9876. 2024-03-22 07:54:16.284166 [INFO] mod_json_cdr.c:271 Process [5300f0b2-e821-11ee-8fba-d17fbcf33421.cdr.json]
  9877. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:174 sofia/default/2123267554@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  9878. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2123267554@legalaidsa.nebular.co.za) State REPORTING going to sleep
  9879. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/2123267554@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  9880. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_session.c:1665 Session 574991 (sofia/default/2123267554@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  9881. 2024-03-22 07:54:16.304159 [NOTICE] switch_core_session.c:1683 Session 574991 (sofia/default/2123267554@legalaidsa.nebular.co.za) Ended
  9882. 2024-03-22 07:54:16.304159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/2123267554@legalaidsa.nebular.co.za [CS_DESTROY]
  9883. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/2123267554@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 56 Tot 574999)
  9884. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2123267554@legalaidsa.nebular.co.za) State DESTROY
  9885. 2024-03-22 07:54:16.304159 [DEBUG] mod_sofia.c:343 sofia/default/2123267554@legalaidsa.nebular.co.za SOFIA DESTROY
  9886. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:181 sofia/default/2123267554@legalaidsa.nebular.co.za Standard DESTROY
  9887. 2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2123267554@legalaidsa.nebular.co.za) State DESTROY going to sleep
  9888. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:174 sofia/default/0732745146@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  9889. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0732745146@41.160.32.115:5060) State REPORTING going to sleep
  9890. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0732745146@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  9891. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_session.c:1665 Session 574990 (sofia/default/0732745146@41.160.32.115:5060) Locked, Waiting on external entities
  9892. 2024-03-22 07:54:16.324153 [NOTICE] switch_core_session.c:1683 Session 574990 (sofia/default/0732745146@41.160.32.115:5060) Ended
  9893. 2024-03-22 07:54:16.324153 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0732745146@41.160.32.115:5060 [CS_DESTROY]
  9894. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0732745146@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 55 Tot 574999)
  9895. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0732745146@41.160.32.115:5060) State DESTROY
  9896. 2024-03-22 07:54:16.324153 [DEBUG] mod_sofia.c:343 sofia/default/0732745146@41.160.32.115:5060 SOFIA DESTROY
  9897. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:181 sofia/default/0732745146@41.160.32.115:5060 Standard DESTROY
  9898. 2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0732745146@41.160.32.115:5060) State DESTROY going to sleep
  9899. 2024-03-22 07:54:16.504261 [DEBUG] switch_scheduler.c:144 Deleting task 232839 switch_ivr_schedule_hangup (53aba534-e821-11ee-8fe2-d17fbcf33421)
  9900. 2024-03-22 07:54:17.384171 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [622f5c72-e821-11ee-90a3-d17fbcf33421]
  9901. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 56 Tot 575000)
  9902. 2024-03-22 07:54:17.384171 [DEBUG] sofia.c:9873 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  9903. 2024-03-22 07:54:17.384171 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  9904. 2024-03-22 07:54:17.384171 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [received][100]
  9905. 2024-03-22 07:54:17.384171 [DEBUG] sofia.c:7094 Remote SDP:
  9906. v=0                                                                                                                                                                                                                
  9907. o=3cxPS 329068314624 303298510849 IN IP4 156.38.150.6                                                                                                                                                              
  9908. s=3cxPS Audio call                                                                                                                                                                                                
  9909. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  9910. t=0 0                                                                                                                                                                                                              
  9911. m=audio 10488 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  9912. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  9913. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  9914. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  9915. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  9916. a=fmtp:18 annexb=no                                                                                                                                                                                                
  9917. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  9918.  
  9919. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  9920. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  9921. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  9922. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  9923. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  9924. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  9925. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  9926. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  9927. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  9928. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  9929. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  9930. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  9931. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  9932. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  9933. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  9934. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  9935. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  9936. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  9937. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  9938. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  9939. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  9940. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0543379200@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  9941. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_codec.c:111 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  9942. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  9943. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4767 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  9944. 2024-03-22 07:54:17.384171 [DEBUG] sofia.c:7507 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  9945. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State NEW
  9946. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 56 Tot 575000)
  9947. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State INIT
  9948. 2024-03-22 07:54:17.384171 [DEBUG] mod_sofia.c:90 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA INIT
  9949. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:40 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard INIT
  9950. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  9951. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  9952. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 56 Tot 575000)
  9953. 2024-03-22 07:54:17.384171 [DEBUG] switch_channel.c:2249 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  9954. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State ROUTING
  9955. 2024-03-22 07:54:17.384171 [DEBUG] mod_sofia.c:143 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  9956. 2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:236 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard ROUTING
  9957. 2024-03-22 07:54:17.384171 [INFO] mod_dialplan_xml.c:637 Processing 0543379200 <0543379200>->0787850991 in context default
  9958. 2024-03-22 07:54:17.384171 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  9959. 2024-03-22 07:54:17.384171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  9960. 2024-03-22 07:54:17.384171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  9961. 2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  9962. 2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0787850991
  9963. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0787850991' limit 1
  9964. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0787850991' AND status=0 limit 1
  9965. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0787850991' and status=0 LIMIT 1                                                                                                                                                                                                          
  9966. 2024-03-22 07:54:17.404159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  9967. 2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0543379200 / 0543379200
  9968. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [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 ="0787850991" LIMIT 1                                                                                                                                                              
  9969. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [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="0787850991"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  9970. 2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  9971. 2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  9972. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  9973. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0787850991.*' OR blocked_patterns = '^078785099.*' OR blocked_patterns = '^07878509.*' OR blocked_patterns = '^0787850.*' OR blocked_patterns = '^078785.*' OR blocked_patterns = '^07878.*' OR blocked_patterns = '^0787.*' OR blocked_patterns = '^078.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  9974. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0787850991" AND (accountid = 0 OR status = 1) LIMIT 1
  9975. 2024-03-22 07:54:17.404159 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  9976. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  9977. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0787850991
  9978. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0787850991
  9979. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [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 = '^0787850991.*' OR patterns = '^078785099.*' OR patterns = '^07878509.*' OR patterns = '^0787850.*' OR patterns = '^078785.*' OR patterns = '^07878.*' OR patterns = '^0787.*' OR patterns = '^078.*' OR patterns = '^07.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  9980. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [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 ="0787850991" AND A.accountid = '109' limit 1                                                                                                                                                                        
  9981. 2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0787850991
  9982. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [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 ="0787850991" LIMIT 1                                                                                                                                                              
  9983. 2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [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="0787850991"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  9984. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  9985. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0787850991' OR number = '078785099' OR number = '07878509' OR number = '0787850' OR number = '078785' OR number = '07878' OR number = '0787' OR number = '078' OR number = '07' OR number = '0' OR number ='--') OR (number = '0787850991*' OR number = '078785099*' OR number = '07878509*' OR number = '0787850*' OR number = '078785*' OR number = '07878*' OR number = '0787*' OR number = '078*' OR number = '07*' OR number = '0*' OR number ='--') OR (number = '0543379200' OR number = '054337920' OR number = '05433792' OR number = '0543379' OR number = '054337' OR number = '05433' OR number = '0543' OR number = '054' OR number = '05' OR number = '0' OR number ='--') OR (number = '0543379200*' OR number = '054337920*' OR number = '05433792*' OR number = '0543379*' OR number = '054337*' OR number = '05433*' OR number = '0543*' OR number = '054*' OR number = '05*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  9986. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  9987. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0787850991' OR routing_prefix = '078785099' OR routing_prefix = '07878509' OR routing_prefix = '0787850' OR routing_prefix = '078785' OR routing_prefix = '07878' OR routing_prefix = '0787' OR routing_prefix = '078' OR routing_prefix = '07' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  9988. 2024-03-22 07:54:17.424179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0787850991)!!!!
  9989. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27787850991
  9990. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27787850991' limit 1
  9991. 2024-03-22 07:54:17.424179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0787850991)!!!!
  9992. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  9993. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  9994. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  9995. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  9996. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  9997. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  9998. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  9999. 2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  10000. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10001. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10002. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10003. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10004. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10005. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10006. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10007. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10008. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10009. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10010. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10011. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
  10012. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  10013. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  10014. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  10015. 2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0787850991.*' OR pattern = '^078785099.*' OR pattern = '^07878509.*' OR pattern = '^0787850.*' OR pattern = '^078785.*' OR pattern = '^07878.*' OR pattern = '^0787.*' OR pattern = '^078.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  10016. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  10017. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  10018. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148463
  10019. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10020. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  10021. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  10022. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
  10023. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  10024. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  10025. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  10026. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  10027. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  10028. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  10029. 2024-03-22 07:54:17.444184 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  10030. 2024-03-22 07:54:17.444184 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  10031. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  10032. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0787850991.*' OR blocked_patterns = '^078785099.*' OR blocked_patterns = '^07878509.*' OR blocked_patterns = '^0787850.*' OR blocked_patterns = '^078785.*' OR blocked_patterns = '^07878.*' OR blocked_patterns = '^0787.*' OR blocked_patterns = '^078.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  10033. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  10034. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  10035. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  10036. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
  10037. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  10038. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  10039. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  10040. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  10041. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  10042. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0787850991.*' OR pattern = '^078785099.*' OR pattern = '^07878509.*' OR pattern = '^0787850.*' OR pattern = '^078785.*' OR pattern = '^07878.*' OR pattern = '^0787.*' OR pattern = '^078.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  10043. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  10044. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  10045. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426365
  10046. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10047. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  10048. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  10049. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
  10050. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  10051. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  10052. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  10053. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  10054. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  10055. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
  10056. 2024-03-22 07:54:17.444184 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  10057. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                              
  10058. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  10059. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  10060. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  10061. 2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148463
  10062. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  10063. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  10064. 2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0787850991.*' OR pattern = '^078785099.*' OR pattern = '^07878509.*' OR pattern = '^0787850.*' OR pattern = '^078785.*' OR pattern = '^07878.*' OR pattern = '^0787.*' OR pattern = '^078.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  10065. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  10066. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  10067. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  10068. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  10069. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10070. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  10071. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  10072. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  10073. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  10074. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  10075. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  10076. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  10077. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  10078. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  10079. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  10080. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  10081. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  10082. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  10083. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  10084. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  10085. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  10086. 2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  10087. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  10088. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  10089. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0787850991
  10090. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  10091. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [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 ="0787850991" LIMIT 1                                                                                                                                                              
  10092. 2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  10093. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  10094. <document type="freeswitch/xml">                                                                                                                                                                                  
  10095. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  10096. <context name="default">                                                                                                                                                                                          
  10097. <extension name="0787850991">                                                                                                                                                                                      
  10098. <condition field="destination_number" expression="0787850991">                                                                                                                                                    
  10099. <action application="set" data="effective_destination_number=0787850991"/>                                                                                                                                        
  10100. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  10101. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  10102. <action application="set" data="callstart=2024-03-22 07:54:17"/>                                                                                                                                                  
  10103. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  10104. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  10105. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  10106. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  10107. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  10108. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  10109. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  10110. <action application="set" data="accountname=default"/>                                                                                                                                                            
  10111. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  10112. <action application="set" data="origination_rates=ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                              
  10113. <action application="set" data="original_caller_id_name=0543379200"/>                                                                                                                                              
  10114. <action application="set" data="original_caller_id_number=0543379200"/>                                                                                                                                            
  10115. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  10116. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  10117. <action application="set" data="effective_caller_id_name=0543379200"/>                                                                                                                                            
  10118. <action application="set" data="effective_caller_id_number=0543379200"/>                                                                                                                                          
  10119. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  10120. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  10121. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  10122. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  10123. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  10124. <action application="set" data="force_trunk_flag=2148463"/>                                                                                                                                                        
  10125. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  10126. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  10127. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN"/>                                                                                                                                                                    
  10128. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0787850991;fs_path=sip:156.38.231.106:5060"/>                                              
  10129. </condition>                                                                                                                                                                                                      
  10130. </extension>                                                                                                                                                                                                      
  10131. </context>                                                                                                                                                                                                        
  10132. </section>                                                                                                                                                                                                        
  10133. </document>                                                                                                                                                                                                        
  10134. 2024-03-22 07:54:17.464153 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  10135. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 parsing [default->0787850991] continue=false
  10136. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Regex (PASS) [0787850991] destination_number(0787850991) =~ /0787850991/ break=on-false
  10137. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0787850991)
  10138. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  10139. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  10140. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:17)
  10141. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  10142. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  10143. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  10144. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  10145. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  10146. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  10147. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  10148. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  10149. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  10150. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                        
  10151. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0543379200)
  10152. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0543379200)
  10153. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  10154. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  10155. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0543379200)
  10156. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0543379200)
  10157. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  10158. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  10159. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  10160. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  10161. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  10162. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148463)
  10163. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  10164. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  10165. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN)                                                                                                                          
  10166. Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0787850991;fs_path=sip:156.38.231.106:5060)
  10167. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  10168. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  10169. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 56 Tot 575000)
  10170. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State EXECUTE
  10171. 2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:198 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  10172. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  10173. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0787850991)
  10174. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0787850991]
  10175. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  10176. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  10177. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  10178. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  10179. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:17)
  10180. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:17]
  10181. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  10182. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  10183. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  10184. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  10185. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(account_id=109)
  10186. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  10187. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  10188. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  10189. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  10190. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  10191. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  10192. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  10193. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  10194. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  10195. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(accountname=default)
  10196. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  10197. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  10198. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  10199. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                                
  10200. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                                
  10201. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0543379200)
  10202. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0543379200]
  10203. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0543379200)
  10204. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0543379200]
  10205. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  10206. 2024-03-22 07:54:17.464153 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  10207. 2024-03-22 07:54:17.464153 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 11/200
  10208. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  10209. 2024-03-22 07:54:17.464153 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  10210. 2024-03-22 07:54:17.464153 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 12/800
  10211. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0543379200)
  10212. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0543379200]
  10213. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0543379200)
  10214. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0543379200]
  10215. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  10216. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  10217. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  10218. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  10219. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  10220. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  10221. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  10222. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  10223. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  10224. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  10225. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148463)
  10226. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148463]
  10227. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  10228. 2024-03-22 07:54:17.464153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  10229. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(intcall=0)
  10230. 2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  10231. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN)                                                                                                                                  
  10232. 2024-03-22 07:54:17.464153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN]                                                                                                                        
  10233. EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0787850991;fs_path=sip:156.38.231.106:5060)
  10234. 2024-03-22 07:54:17.464153 [DEBUG] switch_channel.c:1250 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN] to event                                                      
  10235. 2024-03-22 07:54:17.464153 [DEBUG] switch_channel.c:1250 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN] to event                                                      
  10236. 2024-03-22 07:54:17.464153 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  10237. 2024-03-22 07:54:17.464153 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  10238. 2024-03-22 07:54:17.464153 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0787850991 [623d528c-e821-11ee-90c6-d17fbcf33421]
  10239. 2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:4819 (sofia/default/0787850991) State Change CS_NEW -> CS_INIT
  10240. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0787850991) Running State Change CS_INIT (Cur 57 Tot 575001)
  10241. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0787850991) State INIT
  10242. 2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:90 sofia/default/0787850991 SOFIA INIT
  10243. 2024-03-22 07:54:17.464153 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0787850991
  10244. 2024-03-22 07:54:17.464153 [DEBUG] sofia_glue.c:1295 sofia/default/0787850991 sending invite version: 1.6.20  64bit
  10245. Local SDP:                                                                                                                                                                                                        
  10246. v=0                                                                                                                                                                                                                
  10247. o=FreeSWITCH 1711072767 1711072768 IN IP4 156.38.231.107                                                                                                                                                          
  10248. s=FreeSWITCH                                                                                                                                                                                                      
  10249. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  10250. t=0 0                                                                                                                                                                                                              
  10251. m=audio 21290 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  10252. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  10253. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  10254. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  10255. a=fmtp:18 annexb=no                                                                                                                                                                                                
  10256. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  10257. a=fmtp:101 0-16                                                                                                                                                                                                    
  10258. a=ptime:20                                                                                                                                                                                                        
  10259. a=sendrecv                                                                                                                                                                                                        
  10260.  
  10261. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:40 sofia/default/0787850991 Standard INIT
  10262. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0787850991) State Change CS_INIT -> CS_ROUTING
  10263. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0787850991) State INIT going to sleep
  10264. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0787850991) Running State Change CS_ROUTING (Cur 57 Tot 575001)
  10265. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0787850991) State ROUTING
  10266. 2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:143 sofia/default/0787850991 SOFIA ROUTING
  10267. 2024-03-22 07:54:17.464153 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0787850991) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  10268. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0787850991) State ROUTING going to sleep
  10269. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0787850991) Running State Change CS_CONSUME_MEDIA (Cur 57 Tot 575001)
  10270. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0787850991) State CONSUME_MEDIA
  10271. 2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0787850991) State CONSUME_MEDIA going to sleep
  10272. 2024-03-22 07:54:17.464153 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [calling][0]
  10273. 2024-03-22 07:54:18.804318 [NOTICE] sofia.c:1012 Hangup sofia/default/0671765330@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  10274. 2024-03-22 07:54:18.804318 [DEBUG] switch_ivr_play_say.c:1942 done playing file file_string://digits/5.wav!digits/7.wav!digits/3.wav!digits/4.wav!digits/1.wav!digits/8.wav!digits/4.wav!digits/9.wav!digits/1.wav!digits/1.wav                                                                                                                                                                                                      
  10275. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_session.c:2815 sofia/default/0671765330@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  10276. 2024-03-22 07:54:18.804318 [DEBUG] switch_cpp.cpp:1112 sofia/default/0671765330@41.160.32.115:5060 destroy/unlink session from object
  10277. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_session.c:2815 sofia/default/0671765330@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  10278. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0671765330@41.160.32.115:5060) State EXECUTE going to sleep
  10279. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 57 Tot 575001)
  10280. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0671765330@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  10281. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0671765330@41.160.32.115:5060) State HANGUP
  10282. 2024-03-22 07:54:18.804318 [DEBUG] mod_sofia.c:432 sofia/default/0671765330@41.160.32.115:5060 Overriding SIP cause 480 with 404 from the other leg
  10283. 2024-03-22 07:54:18.804318 [DEBUG] mod_sofia.c:438 Channel sofia/default/0671765330@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  10284. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:60 sofia/default/0671765330@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  10285. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0671765330@41.160.32.115:5060) State HANGUP going to sleep
  10286. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0671765330@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  10287. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 57 Tot 575001)
  10288. 2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0671765330@41.160.32.115:5060) State REPORTING
  10289. 2024-03-22 07:54:18.804318 [INFO] mod_json_cdr.c:271 Process [5fde00ae-e821-11ee-9062-d17fbcf33421.cdr.json]
  10290. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:174 sofia/default/0671765330@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  10291. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0671765330@41.160.32.115:5060) State REPORTING going to sleep
  10292. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0671765330@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  10293. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_session.c:1665 Session 574998 (sofia/default/0671765330@41.160.32.115:5060) Locked, Waiting on external entities
  10294. 2024-03-22 07:54:18.824154 [NOTICE] switch_core_session.c:1683 Session 574998 (sofia/default/0671765330@41.160.32.115:5060) Ended
  10295. 2024-03-22 07:54:18.824154 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0671765330@41.160.32.115:5060 [CS_DESTROY]
  10296. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0671765330@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 56 Tot 575001)
  10297. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0671765330@41.160.32.115:5060) State DESTROY
  10298. 2024-03-22 07:54:18.824154 [DEBUG] mod_sofia.c:343 sofia/default/0671765330@41.160.32.115:5060 SOFIA DESTROY
  10299. 2024-03-22 07:54:18.824154 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda896d6e0 0x7feda896d6e0
  10300. 2024-03-22 07:54:18.824154 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda896d6e0 0x7feda896d6e0
  10301. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:181 sofia/default/0671765330@41.160.32.115:5060 Standard DESTROY
  10302. 2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0671765330@41.160.32.115:5060) State DESTROY going to sleep
  10303. 2024-03-22 07:54:18.904158 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [6317de84-e821-11ee-90ca-d17fbcf33421]
  10304. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 57 Tot 575002)
  10305. 2024-03-22 07:54:18.904158 [DEBUG] sofia.c:9873 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  10306. 2024-03-22 07:54:18.904158 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  10307. 2024-03-22 07:54:18.904158 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [received][100]
  10308. 2024-03-22 07:54:18.904158 [DEBUG] sofia.c:7094 Remote SDP:
  10309. v=0                                                                                                                                                                                                                
  10310. o=3cxPS 415303204864 233622732801 IN IP4 156.38.150.6                                                                                                                                                              
  10311. s=3cxPS Audio call                                                                                                                                                                                                
  10312. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  10313. t=0 0                                                                                                                                                                                                              
  10314. m=audio 10490 RTP/AVP 8 0 9 18 101                                                                                                                                                                                
  10315. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  10316. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  10317. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  10318. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  10319. a=fmtp:18 annexb=no                                                                                                                                                                                                
  10320. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  10321.  
  10322. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  10323. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  10324. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  10325. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  10326. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  10327. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  10328. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  10329. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  10330. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  10331. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  10332. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  10333. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  10334. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  10335. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  10336. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  10337. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  10338. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  10339. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  10340. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  10341. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  10342. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  10343. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0514479915@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  10344. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_codec.c:111 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  10345. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  10346. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4767 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  10347. 2024-03-22 07:54:18.904158 [DEBUG] sofia.c:7507 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  10348. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State NEW
  10349. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 57 Tot 575002)
  10350. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State INIT
  10351. 2024-03-22 07:54:18.904158 [DEBUG] mod_sofia.c:90 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA INIT
  10352. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:40 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard INIT
  10353. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  10354. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  10355. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 57 Tot 575002)
  10356. 2024-03-22 07:54:18.904158 [DEBUG] switch_channel.c:2249 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  10357. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State ROUTING
  10358. 2024-03-22 07:54:18.904158 [DEBUG] mod_sofia.c:143 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  10359. 2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:236 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard ROUTING
  10360. 2024-03-22 07:54:18.904158 [INFO] mod_dialplan_xml.c:637 Processing 0514479915 <0514479915>->0780824496 in context default
  10361. 2024-03-22 07:54:18.904158 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  10362. 2024-03-22 07:54:18.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  10363. 2024-03-22 07:54:18.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  10364. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  10365. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0780824496
  10366. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0780824496' limit 1
  10367. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0780824496' AND status=0 limit 1
  10368. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0780824496' and status=0 LIMIT 1                                                                                                                                                                                                          
  10369. 2024-03-22 07:54:18.924157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  10370. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0514479915 / 0514479915
  10371. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [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 ="0780824496" LIMIT 1                                                                                                                                                              
  10372. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [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="0780824496"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  10373. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  10374. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  10375. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  10376. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0780824496.*' OR blocked_patterns = '^078082449.*' OR blocked_patterns = '^07808244.*' OR blocked_patterns = '^0780824.*' OR blocked_patterns = '^078082.*' OR blocked_patterns = '^07808.*' OR blocked_patterns = '^0780.*' OR blocked_patterns = '^078.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  10377. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0780824496" AND (accountid = 0 OR status = 1) LIMIT 1
  10378. 2024-03-22 07:54:18.924157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  10379. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  10380. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0780824496
  10381. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0780824496
  10382. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [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 = '^0780824496.*' OR patterns = '^078082449.*' OR patterns = '^07808244.*' OR patterns = '^0780824.*' OR patterns = '^078082.*' OR patterns = '^07808.*' OR patterns = '^0780.*' OR patterns = '^078.*' OR patterns = '^07.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  10383. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [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 ="0780824496" AND A.accountid = '109' limit 1                                                                                                                                                                        
  10384. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0780824496
  10385. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [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 ="0780824496" LIMIT 1                                                                                                                                                              
  10386. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [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="0780824496"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  10387. 2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  10388. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0780824496' OR number = '078082449' OR number = '07808244' OR number = '0780824' OR number = '078082' OR number = '07808' OR number = '0780' OR number = '078' OR number = '07' OR number = '0' OR number ='--') OR (number = '0780824496*' OR number = '078082449*' OR number = '07808244*' OR number = '0780824*' OR number = '078082*' OR number = '07808*' OR number = '0780*' OR number = '078*' OR number = '07*' OR number = '0*' OR number ='--') OR (number = '0514479915' OR number = '051447991' OR number = '05144799' OR number = '0514479' OR number = '051447' OR number = '05144' OR number = '0514' OR number = '051' OR number = '05' OR number = '0' OR number ='--') OR (number = '0514479915*' OR number = '051447991*' OR number = '05144799*' OR number = '0514479*' OR number = '051447*' OR number = '05144*' OR number = '0514*' OR number = '051*' OR number = '05*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  10389. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  10390. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0780824496' OR routing_prefix = '078082449' OR routing_prefix = '07808244' OR routing_prefix = '0780824' OR routing_prefix = '078082' OR routing_prefix = '07808' OR routing_prefix = '0780' OR routing_prefix = '078' OR routing_prefix = '07' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  10391. 2024-03-22 07:54:18.924157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0780824496)!!!!
  10392. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27780824496
  10393. 2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27780824496' limit 1
  10394. 2024-03-22 07:54:18.944470 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0780824496)!!!!
  10395. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  10396. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  10397. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  10398. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  10399. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  10400. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  10401. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  10402. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  10403. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10404. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10405. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10406. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10407. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10408. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10409. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10410. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10411. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10412. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10413. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10414. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
  10415. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  10416. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  10417. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  10418. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0780824496.*' OR pattern = '^078082449.*' OR pattern = '^07808244.*' OR pattern = '^0780824.*' OR pattern = '^078082.*' OR pattern = '^07808.*' OR pattern = '^0780.*' OR pattern = '^078.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  10419. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  10420. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  10421. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148463
  10422. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10423. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  10424. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  10425. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
  10426. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  10427. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  10428. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  10429. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  10430. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  10431. 2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  10432. 2024-03-22 07:54:18.944470 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  10433. 2024-03-22 07:54:18.944470 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  10434. 2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  10435. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0780824496.*' OR blocked_patterns = '^078082449.*' OR blocked_patterns = '^07808244.*' OR blocked_patterns = '^0780824.*' OR blocked_patterns = '^078082.*' OR blocked_patterns = '^07808.*' OR blocked_patterns = '^0780.*' OR blocked_patterns = '^078.*' OR blocked_patterns = '^07.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  10436. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  10437. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  10438. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  10439. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
  10440. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  10441. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  10442. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  10443. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  10444. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  10445. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0780824496.*' OR pattern = '^078082449.*' OR pattern = '^07808244.*' OR pattern = '^0780824.*' OR pattern = '^078082.*' OR pattern = '^07808.*' OR pattern = '^0780.*' OR pattern = '^078.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  10446. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  10447. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  10448. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426365
  10449. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10450. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  10451. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  10452. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
  10453. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  10454. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  10455. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  10456. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  10457. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  10458. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
  10459. 2024-03-22 07:54:18.964165 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  10460. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                              
  10461. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  10462. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  10463. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  10464. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148463
  10465. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  10466. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  10467. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0780824496.*' OR pattern = '^078082449.*' OR pattern = '^07808244.*' OR pattern = '^0780824.*' OR pattern = '^078082.*' OR pattern = '^07808.*' OR pattern = '^0780.*' OR pattern = '^078.*' OR pattern = '^07.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  10468. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  10469. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  10470. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  10471. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  10472. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10473. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  10474. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  10475. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  10476. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  10477. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  10478. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  10479. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  10480. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  10481. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  10482. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  10483. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  10484. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  10485. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  10486. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  10487. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  10488. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  10489. 2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  10490. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  10491. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  10492. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0780824496
  10493. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  10494. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [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 ="0780824496" LIMIT 1                                                                                                                                                              
  10495. 2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  10496. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  10497. <document type="freeswitch/xml">                                                                                                                                                                                  
  10498. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  10499. <context name="default">                                                                                                                                                                                          
  10500. <extension name="0780824496">                                                                                                                                                                                      
  10501. <condition field="destination_number" expression="0780824496">                                                                                                                                                    
  10502. <action application="set" data="effective_destination_number=0780824496"/>                                                                                                                                        
  10503. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  10504. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  10505. <action application="set" data="callstart=2024-03-22 07:54:18"/>                                                                                                                                                  
  10506. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  10507. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  10508. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  10509. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  10510. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  10511. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  10512. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  10513. <action application="set" data="accountname=default"/>                                                                                                                                                            
  10514. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  10515. <action application="set" data="origination_rates=ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                              
  10516. <action application="set" data="original_caller_id_name=0514479915"/>                                                                                                                                              
  10517. <action application="set" data="original_caller_id_number=0514479915"/>                                                                                                                                            
  10518. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  10519. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  10520. <action application="set" data="effective_caller_id_name=0514479915"/>                                                                                                                                            
  10521. <action application="set" data="effective_caller_id_number=0514479915"/>                                                                                                                                          
  10522. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  10523. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  10524. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  10525. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  10526. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  10527. <action application="set" data="force_trunk_flag=2148463"/>                                                                                                                                                        
  10528. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  10529. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  10530. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN"/>                                                                                                                                                                    
  10531. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0780824496;fs_path=sip:156.38.231.106:5060"/>                                              
  10532. </condition>                                                                                                                                                                                                      
  10533. </extension>                                                                                                                                                                                                      
  10534. </context>                                                                                                                                                                                                        
  10535. </section>                                                                                                                                                                                                        
  10536. </document>                                                                                                                                                                                                        
  10537. 2024-03-22 07:54:18.964165 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  10538. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 parsing [default->0780824496] continue=false
  10539. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Regex (PASS) [0780824496] destination_number(0780824496) =~ /0780824496/ break=on-false
  10540. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0780824496)
  10541. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  10542. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  10543. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:18)
  10544. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  10545. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  10546. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  10547. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  10548. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  10549. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  10550. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  10551. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  10552. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  10553. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                        
  10554. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0514479915)
  10555. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0514479915)
  10556. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  10557. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  10558. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0514479915)
  10559. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0514479915)
  10560. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  10561. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  10562. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  10563. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  10564. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  10565. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148463)
  10566. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  10567. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  10568. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN)                                                                                                                          
  10569. Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0780824496;fs_path=sip:156.38.231.106:5060)
  10570. 2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  10571. 2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  10572. 2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 57 Tot 575002)
  10573. 2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State EXECUTE
  10574. 2024-03-22 07:54:18.964165 [DEBUG] mod_sofia.c:198 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  10575. 2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:328 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  10576. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0780824496)
  10577. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0780824496]
  10578. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  10579. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  10580. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  10581. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  10582. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:18)
  10583. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:18]
  10584. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  10585. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  10586. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  10587. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  10588. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(account_id=109)
  10589. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  10590. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  10591. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  10592. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  10593. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  10594. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  10595. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  10596. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  10597. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  10598. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(accountname=default)
  10599. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  10600. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  10601. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  10602. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                                
  10603. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148463|CODE:^078.*|DESTINATION:SOUTH AFRICA - MTN - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426365|CODE:^078.*|DESTINATION:D083-MTN|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                                
  10604. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0514479915)
  10605. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0514479915]
  10606. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0514479915)
  10607. 2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0514479915]
  10608. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  10609. 2024-03-22 07:54:18.964165 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  10610. 2024-03-22 07:54:18.964165 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 12/200
  10611. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  10612. 2024-03-22 07:54:18.984211 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  10613. 2024-03-22 07:54:18.984211 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 13/800
  10614. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0514479915)
  10615. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0514479915]
  10616. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0514479915)
  10617. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0514479915]
  10618. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  10619. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  10620. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  10621. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  10622. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  10623. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  10624. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  10625. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  10626. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  10627. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  10628. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148463)
  10629. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148463]
  10630. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  10631. 2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  10632. 2024-03-22 07:54:18.984211 [NOTICE] switch_channel.c:1104 New Channel sofia/default/+27119421172@41.160.32.115:5060 [63230930-e821-11ee-90e7-d17fbcf33421]
  10633. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_NEW (Cur 58 Tot 575003)
  10634. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(intcall=0)
  10635. 2024-03-22 07:54:18.984211 [DEBUG] sofia.c:9873 sofia/default/+27119421172@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  10636. 2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  10637. 2024-03-22 07:54:18.984211 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  10638. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN)                                                                                                                                  
  10639. 2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN]                                                                                                                        
  10640. EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0780824496;fs_path=sip:156.38.231.106:5060)
  10641. 2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:1250 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN] to event                                                      
  10642. 2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:1250 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^078.* // SOUTH AFRICA - MTN - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^078.* // D083-MTN] to event                                                      
  10643. 2024-03-22 07:54:18.984211 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  10644. 2024-03-22 07:54:18.984211 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  10645. 2024-03-22 07:54:18.984211 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0780824496 [632343c8-e821-11ee-90ef-d17fbcf33421]
  10646. 2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:4819 (sofia/default/0780824496) State Change CS_NEW -> CS_INIT
  10647. 2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [received][100]
  10648. 2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7094 Remote SDP:
  10649. v=0                                                                                                                                                                                                                
  10650. o=HuaweiSoftX3000 132986350746624 132986350746624 IN IP4 41.160.32.115                                                                                                                                            
  10651. s=-                                                                                                                                                                                                                
  10652. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  10653. t=0 0                                                                                                                                                                                                              
  10654. m=audio 24810 RTP/AVP 8 0 18 4 2 98 99 97                                                                                                                                                                          
  10655. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  10656. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  10657. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  10658. a=fmtp:18 annexb=yes                                                                                                                                                                                              
  10659. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  10660. a=rtpmap:2 G726-32/8000                                                                                                                                                                                            
  10661. a=rtpmap:98 G726-40/8000                                                                                                                                                                                          
  10662. a=rtpmap:99 G726-32/8000                                                                                                                                                                                          
  10663. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  10664. a=fmtp:97 0-15                                                                                                                                                                                                    
  10665. a=ptime:20                                                                                                                                                                                                        
  10666.  
  10667. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0780824496) Running State Change CS_INIT (Cur 59 Tot 575004)
  10668. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  10669. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  10670. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  10671. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  10672. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  10673. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  10674. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  10675. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  10676. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  10677. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  10678. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  10679. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0780824496) State INIT
  10680. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  10681. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  10682. 2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:90 sofia/default/0780824496 SOFIA INIT
  10683. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  10684. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  10685. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  10686. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  10687. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  10688. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  10689. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  10690. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[G729:18:8000:60:8000:1]
  10691. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[G729:18:8000:20:8000:1]
  10692. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  10693. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  10694. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[G729:18:8000:60:8000:1]
  10695. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[G729:18:8000:20:8000:1]
  10696. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  10697. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  10698. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[G729:18:8000:60:8000:1]
  10699. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[G729:18:8000:20:8000:1]
  10700. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  10701. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  10702. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 97@8000
  10703. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/+27119421172@41.160.32.115:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  10704. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_codec.c:111 sofia/default/+27119421172@41.160.32.115:5060 Original read codec set to PCMA:8
  10705. 2024-03-22 07:54:18.984211 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0780824496
  10706. 2024-03-22 07:54:18.984211 [DEBUG] sofia_glue.c:1295 sofia/default/0780824496 sending invite version: 1.6.20  64bit
  10707. Local SDP:                                                                                                                                                                                                        
  10708. v=0                                                                                                                                                                                                                
  10709. o=FreeSWITCH 1711073586 1711073587 IN IP4 156.38.231.107                                                                                                                                                          
  10710. s=FreeSWITCH                                                                                                                                                                                                      
  10711. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  10712. t=0 0                                                                                                                                                                                                              
  10713. m=audio 20472 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  10714. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  10715. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  10716. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  10717. a=fmtp:18 annexb=no                                                                                                                                                                                                
  10718. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  10719. a=fmtp:101 0-16                                                                                                                                                                                                    
  10720. a=ptime:20                                                                                                                                                                                                        
  10721. a=sendrecv                                                                                                                                                                                                        
  10722.  
  10723. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:40 sofia/default/0780824496 Standard INIT
  10724. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0780824496) State Change CS_INIT -> CS_ROUTING
  10725. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0780824496) State INIT going to sleep
  10726. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0780824496) Running State Change CS_ROUTING (Cur 59 Tot 575004)
  10727. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0780824496) State ROUTING
  10728. 2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:143 sofia/default/0780824496 SOFIA ROUTING
  10729. 2024-03-22 07:54:18.984211 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0780824496) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  10730. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0780824496) State ROUTING going to sleep
  10731. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0780824496) Running State Change CS_CONSUME_MEDIA (Cur 59 Tot 575004)
  10732. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0780824496) State CONSUME_MEDIA
  10733. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0780824496) State CONSUME_MEDIA going to sleep
  10734. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 97@8000
  10735. 2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [calling][0]
  10736. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4767 sofia/default/+27119421172@41.160.32.115:5060 Set 2833 dtmf send payload to 97 recv payload to 97
  10737. 2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7507 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  10738. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27119421172@41.160.32.115:5060) State NEW
  10739. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_INIT (Cur 59 Tot 575004)
  10740. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27119421172@41.160.32.115:5060) State INIT
  10741. 2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:90 sofia/default/+27119421172@41.160.32.115:5060 SOFIA INIT
  10742. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27119421172@41.160.32.115:5060 Standard INIT
  10743. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:48 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  10744. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27119421172@41.160.32.115:5060) State INIT going to sleep
  10745. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 59 Tot 575004)
  10746. 2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:2249 (sofia/default/+27119421172@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  10747. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27119421172@41.160.32.115:5060) State ROUTING
  10748. 2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:143 sofia/default/+27119421172@41.160.32.115:5060 SOFIA ROUTING
  10749. 2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27119421172@41.160.32.115:5060 Standard ROUTING
  10750. 2024-03-22 07:54:18.984211 [INFO] mod_dialplan_xml.c:637 Processing +27119421172 <+27119421172>->D9570117030000 in context default
  10751. 2024-03-22 07:54:18.984211 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  10752. 2024-03-22 07:54:18.984211 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  10753. 2024-03-22 07:54:18.984211 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  10754. 2024-03-22 07:54:18.984211 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  10755. 2024-03-22 07:54:18.984211 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570117030000
  10756. 2024-03-22 07:54:18.984211 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570117030000' limit 1
  10757. 2024-03-22 07:54:18.984211 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570117030000' AND status=0 limit 1
  10758. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570117030000' and status=0 LIMIT 1                                                                                                                                                                                                      
  10759. 2024-03-22 07:54:19.004157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  10760. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : +27119421172 / <null>
  10761. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570117030000" LIMIT 1                                                                                                                                                          
  10762. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [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="D9570117030000"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  10763. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  10764. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  10765. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  10766. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570117030000.*' OR blocked_patterns = '^D957011703000.*' OR blocked_patterns = '^D95701170300.*' OR blocked_patterns = '^D9570117030.*' OR blocked_patterns = '^D957011703.*' OR blocked_patterns = '^D95701170.*' OR blocked_patterns = '^D9570117.*' OR blocked_patterns = '^D957011.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  10767. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570117030000" AND (accountid = 0 OR status = 1) LIMIT 1
  10768. 2024-03-22 07:54:19.004157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  10769. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  10770. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
  10771. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
  10772. 2024-03-22 07:54:19.004157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570117030000
  10773. 2024-03-22 07:54:19.004157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0117030000
  10774. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [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 = '^0117030000.*' OR patterns = '^011703000.*' OR patterns = '^01170300.*' OR patterns = '^0117030.*' OR patterns = '^011703.*' OR patterns = '^01170.*' OR patterns = '^0117.*' OR patterns = '^011.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  10775. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [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 ="0117030000" AND A.accountid = '3' limit 1                                                                                                                                                                          
  10776. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0117030000
  10777. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [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 ="0117030000" LIMIT 1                                                                                                                                                              
  10778. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  10779. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0117030000' OR number = '011703000' OR number = '01170300' OR number = '0117030' OR number = '011703' OR number = '01170' OR number = '0117' OR number = '011' OR number = '01' OR number = '0' OR number ='--') OR (number = '0117030000*' OR number = '011703000*' OR number = '01170300*' OR number = '0117030*' OR number = '011703*' OR number = '01170*' OR number = '0117*' OR number = '011*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  10780. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  10781. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0117030000' OR routing_prefix = '011703000' OR routing_prefix = '01170300' OR routing_prefix = '0117030' OR routing_prefix = '011703' OR routing_prefix = '01170' OR routing_prefix = '0117' OR routing_prefix = '011' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  10782. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  10783. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  10784. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  10785. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  10786. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  10787. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  10788. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  10789. 2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  10790. 2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  10791. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  10792. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [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 ="0117030000" LIMIT 1                                                                                                                                                              
  10793. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  10794. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  10795. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 10873
  10796. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  10797. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  10798. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  10799. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0117030000
  10800. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  10801. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  10802. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  10803. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  10804. 2024-03-22 07:54:19.024154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  10805. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  10806. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  10807. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  10808. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  10809. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  10810. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  10811. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  10812. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  10813. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  10814. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  10815. 2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  10816. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  10817. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  10818. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  10819. 2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  10820. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....+27119421172
  10821. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  10822. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  10823. 2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  10824. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  10825. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [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="7682330505"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  10826. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1157 limit 1
  10827. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  10828. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  10829. 2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  10830. 2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  10831. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  10832. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  10833. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7682330505' and uuid = '63230930-e821-11ee-90e7-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  10834. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7682330505' order by id desc limit 1
  10835. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [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="7682330505"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  10836. 2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1157 limit 1
  10837. 2024-03-22 07:54:19.044803 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  10838. <document type="freeswitch/xml">                                                                                                                                                                                  
  10839. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  10840. <context name="default">                                                                                                                                                                                          
  10841. <extension name="0117030000">                                                                                                                                                                                      
  10842. <condition field="destination_number" expression="D9570117030000">                                                                                                                                                
  10843. <action application="set" data="effective_destination_number=0117030000"/>                                                                                                                                        
  10844. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  10845. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  10846. <action application="set" data="callstart=2024-03-22 07:54:19"/>                                                                                                                                                  
  10847. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  10848. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  10849. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  10850. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  10851. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  10852. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  10853. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  10854. <action application="set" data="accountname=default"/>                                                                                                                                                            
  10855. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  10856. <action application="set" data="origination_rates_did=ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                    
  10857. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  10858. <action application="set" data="original_caller_id_name=+27119421172"/>                                                                                                                                            
  10859. <action application="set" data="effective_caller_id_name=+27119421172"/>                                                                                                                                          
  10860. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  10861. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  10862. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  10863. <action application="export" data="presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  10864. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  10865. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  10866. <action application="db" data="insert/pickup_any_group_${callgroup}/7682330505/${uuid}"/>                                                                                                                          
  10867. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  10868. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  10869. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  10870. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  10871. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  10872. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  10873. <action application="sleep" data="1000"/>                                                                                                                                                                          
  10874. <action application="ring_ready"/>                                                                                                                                                                                
  10875. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7682330505@legalaidsa.nebular.co.za^0117030000"/>                                                    
  10876. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  10877. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  10878. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  10879. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  10880. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  10881. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  10882. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  10883. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  10884. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  10885. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  10886. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  10887. <action application="set" data="sip_destination_number=7682330505"/>                                                                                                                                              
  10888. <action application="set" data="destination_number=0117030000"/>                                                                                                                                                  
  10889. <action application="set" data="did_number=0117030000"/>                                                                                                                                                          
  10890. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  10891. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  10892. <condition field="${cond(${user_data 7682330505@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  10893. <action application="answer"/>                                                                                                                                                                                    
  10894. <action application="export" data="voicemail_alternate_greet_id=0117030000"/>                                                                                                                                      
  10895. <action application="voicemail" data="default $${domain_name} 7682330505"/>                                                                                                                                        
  10896. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  10897. </condition>                                                                                                                                                                                                      
  10898. </condition>                                                                                                                                                                                                      
  10899. </extension>                                                                                                                                                                                                      
  10900. </context>                                                                                                                                                                                                        
  10901. </section>                                                                                                                                                                                                        
  10902. </document>                                                                                                                                                                                                        
  10903. 2024-03-22 07:54:19.044803 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  10904. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 parsing [default->0117030000] continue=false
  10905. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Regex (PASS) [0117030000] destination_number(D9570117030000) =~ /D9570117030000/ break=on-false
  10906. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(effective_destination_number=0117030000)
  10907. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  10908. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  10909. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:19)
  10910. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  10911. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  10912. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(account_id=3)
  10913. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(parent_id=0)
  10914. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(entity_id=3)
  10915. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(call_processed=internal)
  10916. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(call_direction=inbound)
  10917. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(accountname=default)
  10918. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  10919. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(origination_rates_did=ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                    
  10920. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(origination_rates=0)
  10921. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(original_caller_id_name=+27119421172)
  10922. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(effective_caller_id_name=+27119421172)
  10923. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(receiver_accid=109)
  10924. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  10925. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  10926. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115)
  10927. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(call_type=5)
  10928. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(calltype=SIP-DID)
  10929. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7682330505/${uuid})
  10930. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  10931. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  10932. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  10933. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  10934. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  10935. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  10936. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action sleep(1000)
  10937. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action ring_ready()
  10938. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7682330505@legalaidsa.nebular.co.za^0117030000)
  10939. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(on_busy_flag=1)
  10940. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(on_busy_destination=)
  10941. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(no_answer_flag=1)
  10942. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(no_answer_destination=)
  10943. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(not_register_flag=1)
  10944. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(not_register_destination=)
  10945. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(opensips_flag=0)
  10946. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  10947. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  10948. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(leg_timeout=20)
  10949. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(userinfo_id=109)
  10950. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(sip_destination_number=7682330505)
  10951. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(destination_number=0117030000)
  10952. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(did_number=0117030000)
  10953. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  10954. Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  10955. |--- Dialplan: Processing recursive conditions level:1 [0117030000_recur_1] require-nested=TRUE
  10956. |--- Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Regex (FAIL) [0117030000_recur_1] ${cond(${user_data 7682330505@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  10957. |--- Dialplan: sofia/default/+27119421172@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  10958. 2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:286 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  10959. 2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27119421172@41.160.32.115:5060) State ROUTING going to sleep
  10960. 2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 59 Tot 575004)
  10961. 2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27119421172@41.160.32.115:5060) State EXECUTE
  10962. 2024-03-22 07:54:19.064162 [DEBUG] mod_sofia.c:198 sofia/default/+27119421172@41.160.32.115:5060 SOFIA EXECUTE
  10963. 2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27119421172@41.160.32.115:5060 Standard EXECUTE
  10964. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(effective_destination_number=0117030000)
  10965. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [effective_destination_number]=[0117030000]
  10966. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  10967. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  10968. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  10969. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  10970. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(callstart=2024-03-22 07:54:19)
  10971. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:19]
  10972. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(hangup_after_bridge=true)
  10973. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [hangup_after_bridge]=[true]
  10974. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(continue_on_fail=TRUE)
  10975. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  10976. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(account_id=3)
  10977. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [account_id]=[3]
  10978. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(parent_id=0)
  10979. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [parent_id]=[0]
  10980. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(entity_id=3)
  10981. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [entity_id]=[3]
  10982. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(call_processed=internal)
  10983. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [call_processed]=[internal]
  10984. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(call_direction=inbound)
  10985. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [call_direction]=[inbound]
  10986. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(accountname=default)
  10987. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [accountname]=[default]
  10988. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  10989. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  10990. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(origination_rates_did=ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                            
  10991. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [origination_rates_did]=[ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                            
  10992. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(origination_rates=0)
  10993. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [origination_rates]=[0]
  10994. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(original_caller_id_name=+27119421172)
  10995. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [original_caller_id_name]=[+27119421172]
  10996. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(effective_caller_id_name=+27119421172)
  10997. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [effective_caller_id_name]=[+27119421172]
  10998. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(receiver_accid=109)
  10999. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [receiver_accid]=[109]
  11000. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  11001. 2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  11002. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  11003. 2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  11004. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115)
  11005. 2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115]
  11006. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(call_type=5)
  11007. 2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  11008. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(calltype=SIP-DID)
  11009. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [calltype]=[SIP-DID]
  11010. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 db(insert/pickup_any_group_/7682330505/63230930-e821-11ee-90e7-d17fbcf33421)
  11011. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(dialed_extension=transfer_call)
  11012. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  11013. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(dialed_extension=transfer_call)
  11014. 2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  11015. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  11016. 2024-03-22 07:54:19.064162 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  11017. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  11018. 2024-03-22 07:54:19.064162 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  11019. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(hangup_after_bridge=true)
  11020. 2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [hangup_after_bridge]=[true]
  11021. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  11022. 2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  11023. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 sleep(1000)
  11024. 2024-03-22 07:54:19.484189 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [proceeding][183]
  11025. 2024-03-22 07:54:19.484189 [DEBUG] sofia.c:7094 Remote SDP:
  11026. v=0                                                                                                                                                                                                                
  11027. o=HuaweiSoftX3000 26587125923337 26587125923337 IN IP4 41.160.32.115                                                                                                                                              
  11028. s=-                                                                                                                                                                                                                
  11029. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  11030. t=0 0                                                                                                                                                                                                              
  11031. m=audio 24808 RTP/AVP 8 101                                                                                                                                                                                        
  11032. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11033. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11034. a=fmtp:101 0-15                                                                                                                                                                                                    
  11035. a=ptime:20                                                                                                                                                                                                        
  11036.  
  11037. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  11038. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  11039. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  11040. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  11041. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  11042. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0787850991 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  11043. 2024-03-22 07:54:19.484189 [DEBUG] switch_core_codec.c:111 sofia/default/0787850991 Original read codec set to PCMA:8
  11044. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  11045. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:4767 sofia/default/0787850991 Set 2833 dtmf send payload to 101 recv payload to 101
  11046. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0787850991] 156.38.231.107 port 21290 -> 41.160.32.115 port 24808 codec: 8 ms: 20
  11047. 2024-03-22 07:54:19.504200 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  11048. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7180 sofia/default/0787850991 Set 2833 dtmf send payload to 101
  11049. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7187 sofia/default/0787850991 Set 2833 dtmf receive payload to 101
  11050. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7210 sofia/default/0787850991 Set rtp dtmf delay to 40
  11051. 2024-03-22 07:54:19.504200 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0787850991!
  11052. 2024-03-22 07:54:19.504200 [DEBUG] switch_channel.c:3474 (sofia/default/0787850991) Callstate Change DOWN -> EARLY
  11053. 2024-03-22 07:54:19.504200 [INFO] switch_ivr_originate.c:3654 Sending early media
  11054. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0543379200@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 27434 -> 156.38.150.6 port 10488 codec: 8 ms: 20
  11055. 2024-03-22 07:54:19.504200 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  11056. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7180 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  11057. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7187 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  11058. 2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7210 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  11059. 2024-03-22 07:54:19.504200 [DEBUG] mod_sofia.c:2364 Ring SDP:
  11060. v=0                                                                                                                                                                                                                
  11061. o=FreeSWITCH 1711066625 1711066626 IN IP4 156.38.231.107                                                                                                                                                          
  11062. s=FreeSWITCH                                                                                                                                                                                                      
  11063. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  11064. t=0 0                                                                                                                                                                                                              
  11065. m=audio 27434 RTP/AVP 8 101                                                                                                                                                                                        
  11066. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11067. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11068. a=fmtp:101 0-16                                                                                                                                                                                                    
  11069. a=ptime:20                                                                                                                                                                                                        
  11070. a=sendrecv                                                                                                                                                                                                        
  11071.  
  11072. 2024-03-22 07:54:19.504200 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0543379200@legalaidsa.nebular.co.za:5060!
  11073. 2024-03-22 07:54:19.504200 [DEBUG] switch_channel.c:3474 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  11074. 2024-03-22 07:54:19.504200 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0787850991]
  11075. 2024-03-22 07:54:19.504200 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [early][183]
  11076. 2024-03-22 07:54:19.524164 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0787850991) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  11077. 2024-03-22 07:54:19.524164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0787850991) Running State Change CS_EXCHANGE_MEDIA (Cur 59 Tot 575004)
  11078. 2024-03-22 07:54:19.524164 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0787850991) State EXCHANGE_MEDIA
  11079. 2024-03-22 07:54:19.524164 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  11080. 2024-03-22 07:54:19.704184 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0787850991 Bridge execute app sched_hangup(+6000 normal_clearing)
  11081. 2024-03-22 07:54:19.724201 [DEBUG] switch_ivr.c:623 sofia/default/0787850991 Command Execute sched_hangup(+6000 normal_clearing)
  11082. EXECUTE sofia/default/0787850991 sched_hangup(+6000 normal_clearing)
  11083. 2024-03-22 07:54:19.724201 [DEBUG] switch_scheduler.c:249 Added task 232840 switch_ivr_schedule_hangup (623d528c-e821-11ee-90c6-d17fbcf33421) to run at 1711100059
  11084. 2024-03-22 07:54:19.724201 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0664660716@41.160.32.115:5060 [6393e542-e821-11ee-9116-d17fbcf33421]
  11085. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_NEW (Cur 60 Tot 575005)
  11086. 2024-03-22 07:54:19.724201 [DEBUG] sofia.c:9873 sofia/default/0664660716@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  11087. 2024-03-22 07:54:19.724201 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  11088. 2024-03-22 07:54:19.724201 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [received][100]
  11089. 2024-03-22 07:54:19.724201 [DEBUG] sofia.c:7094 Remote SDP:
  11090. v=0                                                                                                                                                                                                                
  11091. o=HuaweiSoftX3000 8629867658981 8629867658981 IN IP4 41.160.32.115                                                                                                                                                
  11092. s=-                                                                                                                                                                                                                
  11093. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  11094. t=0 0                                                                                                                                                                                                              
  11095. m=audio 24814 RTP/AVP 18 8 101                                                                                                                                                                                    
  11096. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  11097. a=fmtp:18 annexb=no                                                                                                                                                                                                
  11098. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11099. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11100. a=fmtp:101 0-15                                                                                                                                                                                                    
  11101. a=ptime:20                                                                                                                                                                                                        
  11102.  
  11103. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  11104. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  11105. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  11106. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  11107. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  11108. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  11109. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  11110. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  11111. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  11112. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  11113. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  11114. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  11115. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0664660716@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  11116. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_codec.c:111 sofia/default/0664660716@41.160.32.115:5060 Original read codec set to G729:18
  11117. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  11118. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4767 sofia/default/0664660716@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  11119. 2024-03-22 07:54:19.724201 [DEBUG] sofia.c:7507 (sofia/default/0664660716@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  11120. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0664660716@41.160.32.115:5060) State NEW
  11121. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_INIT (Cur 60 Tot 575005)
  11122. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0664660716@41.160.32.115:5060) State INIT
  11123. 2024-03-22 07:54:19.724201 [DEBUG] mod_sofia.c:90 sofia/default/0664660716@41.160.32.115:5060 SOFIA INIT
  11124. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:40 sofia/default/0664660716@41.160.32.115:5060 Standard INIT
  11125. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0664660716@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  11126. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0664660716@41.160.32.115:5060) State INIT going to sleep
  11127. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 60 Tot 575005)
  11128. 2024-03-22 07:54:19.724201 [DEBUG] switch_channel.c:2249 (sofia/default/0664660716@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  11129. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0664660716@41.160.32.115:5060) State ROUTING
  11130. 2024-03-22 07:54:19.724201 [DEBUG] mod_sofia.c:143 sofia/default/0664660716@41.160.32.115:5060 SOFIA ROUTING
  11131. 2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:236 sofia/default/0664660716@41.160.32.115:5060 Standard ROUTING
  11132. 2024-03-22 07:54:19.724201 [INFO] mod_dialplan_xml.c:637 Processing 0664660716 <0664660716>->D9570152912429 in context default
  11133. 2024-03-22 07:54:19.724201 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  11134. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  11135. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  11136. 2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  11137. 2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570152912429
  11138. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570152912429' limit 1
  11139. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570152912429' AND status=0 limit 1
  11140. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570152912429' and status=0 LIMIT 1                                                                                                                                                                                                      
  11141. 2024-03-22 07:54:19.724201 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  11142. 2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0664660716 / <null>
  11143. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570152912429" LIMIT 1                                                                                                                                                          
  11144. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [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="D9570152912429"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  11145. 2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  11146. 2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  11147. 2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  11148. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570152912429.*' OR blocked_patterns = '^D957015291242.*' OR blocked_patterns = '^D95701529124.*' OR blocked_patterns = '^D9570152912.*' OR blocked_patterns = '^D957015291.*' OR blocked_patterns = '^D95701529.*' OR blocked_patterns = '^D9570152.*' OR blocked_patterns = '^D957015.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  11149. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570152912429" AND (accountid = 0 OR status = 1) LIMIT 1
  11150. 2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  11151. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  11152. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570152912429
  11153. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570152912429
  11154. 2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570152912429
  11155. 2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0152912429
  11156. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [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 = '^0152912429.*' OR patterns = '^015291242.*' OR patterns = '^01529124.*' OR patterns = '^0152912.*' OR patterns = '^015291.*' OR patterns = '^01529.*' OR patterns = '^0152.*' OR patterns = '^015.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  11157. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [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 ="0152912429" AND A.accountid = '3' limit 1                                                                                                                                                                          
  11158. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0152912429
  11159. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [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 ="0152912429" LIMIT 1                                                                                                                                                              
  11160. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  11161. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0152912429' OR number = '015291242' OR number = '01529124' OR number = '0152912' OR number = '015291' OR number = '01529' OR number = '0152' OR number = '015' OR number = '01' OR number = '0' OR number ='--') OR (number = '0152912429*' OR number = '015291242*' OR number = '01529124*' OR number = '0152912*' OR number = '015291*' OR number = '01529*' OR number = '0152*' OR number = '015*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  11162. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  11163. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0152912429' OR routing_prefix = '015291242' OR routing_prefix = '01529124' OR routing_prefix = '0152912' OR routing_prefix = '015291' OR routing_prefix = '01529' OR routing_prefix = '0152' OR routing_prefix = '015' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  11164. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  11165. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  11166. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  11167. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  11168. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  11169. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  11170. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  11171. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  11172. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  11173. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  11174. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [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 ="0152912429" LIMIT 1                                                                                                                                                              
  11175. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  11176. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  11177. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8339
  11178. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  11179. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  11180. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  11181. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0152912429
  11182. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  11183. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  11184. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  11185. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  11186. 2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  11187. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  11188. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  11189. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  11190. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  11191. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  11192. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  11193. 2024-03-22 07:54:19.744170 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10488 to 156.38.231.105:10488
  11194. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  11195. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  11196. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  11197. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  11198. 2024-03-22 07:54:19.744170 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  11199. 2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  11200. 2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  11201. 2024-03-22 07:54:19.764164 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  11202. 2024-03-22 07:54:19.764164 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  11203. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0664660716
  11204. 2024-03-22 07:54:19.764164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0664660716
  11205. 2024-03-22 07:54:19.764164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27664660716
  11206. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  11207. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  11208. 2024-03-22 07:54:19.764164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  11209. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  11210. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [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="7930557423"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  11211. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1195 limit 1
  11212. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  11213. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  11214. 2024-03-22 07:54:19.764164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  11215. 2024-03-22 07:54:19.764164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  11216. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  11217. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  11218. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7930557423' and uuid = '6393e542-e821-11ee-9116-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  11219. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7930557423' order by id desc limit 1
  11220. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [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="7930557423"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  11221. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1195 limit 1
  11222. 2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  11223. <document type="freeswitch/xml">                                                                                                                                                                                  
  11224. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  11225. <context name="default">                                                                                                                                                                                          
  11226. <extension name="0152912429">                                                                                                                                                                                      
  11227. <condition field="destination_number" expression="D9570152912429">                                                                                                                                                
  11228. <action application="set" data="effective_destination_number=0152912429"/>                                                                                                                                        
  11229. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  11230. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  11231. <action application="set" data="callstart=2024-03-22 07:54:19"/>                                                                                                                                                  
  11232. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  11233. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  11234. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  11235. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  11236. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  11237. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  11238. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  11239. <action application="set" data="accountname=default"/>                                                                                                                                                            
  11240. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  11241. <action application="set" data="origination_rates_did=ID:8339|CODE:^0152912429.*|DESTINATION:0152912429|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  11242. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  11243. <action application="set" data="original_caller_id_name=0664660716"/>                                                                                                                                              
  11244. <action application="set" data="effective_caller_id_name=27664660716"/>                                                                                                                                            
  11245. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  11246. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  11247. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  11248. <action application="export" data="presence_data=x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  11249. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  11250. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  11251. <action application="db" data="insert/pickup_any_group_${callgroup}/7930557423/${uuid}"/>                                                                                                                          
  11252. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  11253. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  11254. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  11255. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  11256. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  11257. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  11258. <action application="sleep" data="1000"/>                                                                                                                                                                          
  11259. <action application="ring_ready"/>                                                                                                                                                                                
  11260. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/7930557423@legalaidsa.nebular.co.za^0152912429"/>                                                      
  11261. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  11262. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  11263. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  11264. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  11265. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  11266. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  11267. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  11268. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  11269. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  11270. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  11271. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  11272. <action application="set" data="sip_destination_number=7930557423"/>                                                                                                                                              
  11273. <action application="set" data="destination_number=0152912429"/>                                                                                                                                                  
  11274. <action application="set" data="did_number=0152912429"/>                                                                                                                                                          
  11275. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  11276. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  11277. <condition field="${cond(${user_data 7930557423@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  11278. <action application="answer"/>                                                                                                                                                                                    
  11279. <action application="export" data="voicemail_alternate_greet_id=0152912429"/>                                                                                                                                      
  11280. <action application="voicemail" data="default $${domain_name} 7930557423"/>                                                                                                                                        
  11281. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  11282. </condition>                                                                                                                                                                                                      
  11283. </condition>                                                                                                                                                                                                      
  11284. </extension>                                                                                                                                                                                                      
  11285. </context>                                                                                                                                                                                                        
  11286. </section>                                                                                                                                                                                                        
  11287. </document>                                                                                                                                                                                                        
  11288. 2024-03-22 07:54:19.784162 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  11289. Dialplan: sofia/default/0664660716@41.160.32.115:5060 parsing [default->0152912429] continue=false
  11290. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Regex (PASS) [0152912429] destination_number(D9570152912429) =~ /D9570152912429/ break=on-false
  11291. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(effective_destination_number=0152912429)
  11292. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  11293. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  11294. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:19)
  11295. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  11296. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  11297. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(account_id=3)
  11298. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(parent_id=0)
  11299. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(entity_id=3)
  11300. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(call_processed=internal)
  11301. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(call_direction=inbound)
  11302. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(accountname=default)
  11303. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  11304. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(origination_rates_did=ID:8339|CODE:^0152912429.*|DESTINATION:0152912429|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  11305. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(origination_rates=0)
  11306. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(original_caller_id_name=0664660716)
  11307. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(effective_caller_id_name=27664660716)
  11308. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(receiver_accid=109)
  11309. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  11310. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  11311. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115)
  11312. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(call_type=5)
  11313. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(calltype=SIP-DID)
  11314. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7930557423/${uuid})
  11315. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  11316. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  11317. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  11318. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  11319. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  11320. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  11321. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action sleep(1000)
  11322. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action ring_ready()
  11323. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/7930557423@legalaidsa.nebular.co.za^0152912429)
  11324. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(on_busy_flag=1)
  11325. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(on_busy_destination=)
  11326. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(no_answer_flag=1)
  11327. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(no_answer_destination=)
  11328. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(not_register_flag=1)
  11329. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(not_register_destination=)
  11330. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(opensips_flag=0)
  11331. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  11332. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  11333. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(leg_timeout=20)
  11334. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(userinfo_id=109)
  11335. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(sip_destination_number=7930557423)
  11336. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(destination_number=0152912429)
  11337. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(did_number=0152912429)
  11338. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  11339. Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  11340. |--- Dialplan: Processing recursive conditions level:1 [0152912429_recur_1] require-nested=TRUE
  11341. |--- Dialplan: sofia/default/0664660716@41.160.32.115:5060 Regex (FAIL) [0152912429_recur_1] ${cond(${user_data 7930557423@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  11342. |--- Dialplan: sofia/default/0664660716@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  11343. 2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0664660716@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  11344. 2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0664660716@41.160.32.115:5060) State ROUTING going to sleep
  11345. 2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 60 Tot 575005)
  11346. 2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0664660716@41.160.32.115:5060) State EXECUTE
  11347. 2024-03-22 07:54:19.804365 [DEBUG] mod_sofia.c:198 sofia/default/0664660716@41.160.32.115:5060 SOFIA EXECUTE
  11348. 2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:328 sofia/default/0664660716@41.160.32.115:5060 Standard EXECUTE
  11349. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(effective_destination_number=0152912429)
  11350. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [effective_destination_number]=[0152912429]
  11351. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  11352. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  11353. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  11354. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  11355. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(callstart=2024-03-22 07:54:19)
  11356. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:19]
  11357. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(hangup_after_bridge=true)
  11358. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [hangup_after_bridge]=[true]
  11359. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(continue_on_fail=TRUE)
  11360. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  11361. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(account_id=3)
  11362. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [account_id]=[3]
  11363. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(parent_id=0)
  11364. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [parent_id]=[0]
  11365. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(entity_id=3)
  11366. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [entity_id]=[3]
  11367. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(call_processed=internal)
  11368. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [call_processed]=[internal]
  11369. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(call_direction=inbound)
  11370. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [call_direction]=[inbound]
  11371. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(accountname=default)
  11372. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [accountname]=[default]
  11373. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  11374. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  11375. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(origination_rates_did=ID:8339|CODE:^0152912429.*|DESTINATION:0152912429|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  11376. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [origination_rates_did]=[ID:8339|CODE:^0152912429.*|DESTINATION:0152912429|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  11377. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(origination_rates=0)
  11378. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [origination_rates]=[0]
  11379. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(original_caller_id_name=0664660716)
  11380. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [original_caller_id_name]=[0664660716]
  11381. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(effective_caller_id_name=27664660716)
  11382. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [effective_caller_id_name]=[27664660716]
  11383. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(receiver_accid=109)
  11384. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [receiver_accid]=[109]
  11385. EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  11386. 2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  11387. EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  11388. 2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  11389. EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115)
  11390. 2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115]
  11391. EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(call_type=5)
  11392. 2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  11393. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(calltype=SIP-DID)
  11394. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [calltype]=[SIP-DID]
  11395. EXECUTE sofia/default/0664660716@41.160.32.115:5060 db(insert/pickup_any_group_/7930557423/6393e542-e821-11ee-9116-d17fbcf33421)
  11396. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(dialed_extension=transfer_call)
  11397. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  11398. EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(dialed_extension=transfer_call)
  11399. 2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  11400. EXECUTE sofia/default/0664660716@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  11401. 2024-03-22 07:54:19.804365 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  11402. EXECUTE sofia/default/0664660716@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  11403. 2024-03-22 07:54:19.804365 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  11404. EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(hangup_after_bridge=true)
  11405. 2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [hangup_after_bridge]=[true]
  11406. EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  11407. 2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  11408. EXECUTE sofia/default/0664660716@41.160.32.115:5060 sleep(1000)
  11409. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 ring_ready()
  11410. 2024-03-22 07:54:20.084179 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27119421172@41.160.32.115:5060!
  11411. 2024-03-22 07:54:20.084179 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [early][180]
  11412. 2024-03-22 07:54:20.084179 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27119421172@41.160.32.115:5060!
  11413. EXECUTE sofia/default/+27119421172@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/default/7682330505@legalaidsa.nebular.co.za^0117030000)
  11414. 2024-03-22 07:54:20.084179 [DEBUG] switch_channel.c:1250 sofia/default/+27119421172@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  11415. 2024-03-22 07:54:20.084179 [DEBUG] switch_channel.c:1250 sofia/default/+27119421172@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  11416. 2024-03-22 07:54:20.084179 [DEBUG] switch_channel.c:1250 sofia/default/+27119421172@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                    
  11417. 2024-03-22 07:54:20.084179 [DEBUG] switch_channel.c:1250 sofia/default/+27119421172@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  11418. 2024-03-22 07:54:20.084179 [DEBUG] switch_channel.c:1250 sofia/default/+27119421172@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  11419. 2024-03-22 07:54:20.084179 [DEBUG] switch_channel.c:1250 sofia/default/+27119421172@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  11420. 2024-03-22 07:54:20.084179 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  11421. 2024-03-22 07:54:20.084179 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  11422. 2024-03-22 07:54:20.084179 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7682330505@legalaidsa.nebular.co.za [63cb949c-e821-11ee-913e-d17fbcf33421]
  11423. 2024-03-22 07:54:20.084179 [DEBUG] mod_sofia.c:4819 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  11424. 2024-03-22 07:54:20.084179 [DEBUG] switch_ivr_originate.c:2963 sofia/default/7682330505@legalaidsa.nebular.co.za Setting leg timeout to 30
  11425. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 61 Tot 575006)
  11426. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7682330505@legalaidsa.nebular.co.za) State INIT
  11427. 2024-03-22 07:54:20.084179 [DEBUG] mod_sofia.c:90 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA INIT
  11428. 2024-03-22 07:54:20.084179 [DEBUG] sofia_glue.c:1295 sofia/default/7682330505@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  11429. Local SDP:                                                                                                                                                                                                        
  11430. v=0                                                                                                                                                                                                                
  11431. o=FreeSWITCH 1711067480 1711067481 IN IP4 156.38.231.107                                                                                                                                                          
  11432. s=FreeSWITCH                                                                                                                                                                                                      
  11433. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  11434. t=0 0                                                                                                                                                                                                              
  11435. m=audio 26580 RTP/AVP 8 101                                                                                                                                                                                        
  11436. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11437. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11438. a=fmtp:101 0-16                                                                                                                                                                                                    
  11439. a=ptime:20                                                                                                                                                                                                        
  11440. a=sendrecv                                                                                                                                                                                                        
  11441.  
  11442. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:40 sofia/default/7682330505@legalaidsa.nebular.co.za Standard INIT
  11443. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  11444. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7682330505@legalaidsa.nebular.co.za) State INIT going to sleep
  11445. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 61 Tot 575006)
  11446. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7682330505@legalaidsa.nebular.co.za) State ROUTING
  11447. 2024-03-22 07:54:20.084179 [DEBUG] mod_sofia.c:143 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA ROUTING
  11448. 2024-03-22 07:54:20.084179 [DEBUG] switch_ivr_originate.c:67 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  11449. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7682330505@legalaidsa.nebular.co.za) State ROUTING going to sleep
  11450. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 61 Tot 575006)
  11451. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7682330505@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  11452. 2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7682330505@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  11453. 2024-03-22 07:54:20.084179 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [calling][0]
  11454. 2024-03-22 07:54:20.144199 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [proceeding][180]
  11455. 2024-03-22 07:54:20.144199 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7682330505@legalaidsa.nebular.co.za!
  11456. 2024-03-22 07:54:20.144199 [DEBUG] switch_channel.c:3346 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  11457. 2024-03-22 07:54:20.164157 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27119421172@41.160.32.115:5060!
  11458. 2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [completing][200]
  11459. 2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7094 Remote SDP:
  11460. v=0                                                                                                                                                                                                                
  11461. o=3cxPS 483133489152 305278222337 IN IP4 156.38.150.6                                                                                                                                                              
  11462. s=3cxPS Audio call                                                                                                                                                                                                
  11463. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  11464. t=0 0                                                                                                                                                                                                              
  11465. m=audio 10492 RTP/AVP 8 101                                                                                                                                                                                        
  11466. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11467. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11468.  
  11469. 2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [ready][200]
  11470. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  11471. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  11472. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  11473. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/7682330505@legalaidsa.nebular.co.za PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  11474. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_codec.c:111 sofia/default/7682330505@legalaidsa.nebular.co.za Original read codec set to PCMA:8
  11475. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  11476. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4767 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  11477. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/7682330505@legalaidsa.nebular.co.za] 156.38.231.107 port 26580 -> 156.38.150.6 port 10492 codec: 8 ms: 20
  11478. 2024-03-22 07:54:20.224191 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  11479. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:7180 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  11480. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:7187 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  11481. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:7210 sofia/default/7682330505@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  11482. 2024-03-22 07:54:20.224191 [NOTICE] sofia.c:8218 Channel [sofia/default/7682330505@legalaidsa.nebular.co.za] has been answered
  11483. 2024-03-22 07:54:20.224191 [DEBUG] switch_channel.c:3773 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  11484. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/+27119421172@41.160.32.115:5060] 156.38.231.107 port 21776 -> 41.160.32.115 port 24810 codec: 8 ms: 20
  11485. 2024-03-22 07:54:20.224191 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  11486. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:7180 sofia/default/+27119421172@41.160.32.115:5060 Set 2833 dtmf send payload to 97
  11487. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:7187 sofia/default/+27119421172@41.160.32.115:5060 Set 2833 dtmf receive payload to 97
  11488. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:7210 sofia/default/+27119421172@41.160.32.115:5060 Set rtp dtmf delay to 40
  11489. 2024-03-22 07:54:20.224191 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/+27119421172@41.160.32.115:5060:
  11490. v=0                                                                                                                                                                                                                
  11491. o=FreeSWITCH 1711072284 1711072285 IN IP4 156.38.231.107                                                                                                                                                          
  11492. s=FreeSWITCH                                                                                                                                                                                                      
  11493. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  11494. t=0 0                                                                                                                                                                                                              
  11495. m=audio 21776 RTP/AVP 8 97                                                                                                                                                                                        
  11496. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11497. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  11498. a=fmtp:97 0-16                                                                                                                                                                                                    
  11499. a=ptime:20                                                                                                                                                                                                        
  11500. a=sendrecv                                                                                                                                                                                                        
  11501.  
  11502. 2024-03-22 07:54:20.224191 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/+27119421172@41.160.32.115:5060] has been answered
  11503. 2024-03-22 07:54:20.224191 [DEBUG] switch_channel.c:3773 (sofia/default/+27119421172@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  11504. 2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [completed][200]
  11505. 2024-03-22 07:54:20.224191 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7682330505@legalaidsa.nebular.co.za]
  11506. 2024-03-22 07:54:20.224191 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  11507. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 61 Tot 575006)
  11508. 2024-03-22 07:54:20.224191 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  11509. 2024-03-22 07:54:20.224191 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  11510. 2024-03-22 07:54:20.424173 [DEBUG] switch_ivr_bridge.c:546 sofia/default/7682330505@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  11511. 2024-03-22 07:54:20.444176 [DEBUG] switch_ivr.c:623 sofia/default/7682330505@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  11512. EXECUTE sofia/default/7682330505@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  11513. 2024-03-22 07:54:20.444176 [DEBUG] switch_scheduler.c:249 Added task 232841 switch_ivr_schedule_hangup (63cb949c-e821-11ee-913e-d17fbcf33421) to run at 1711100060
  11514. 2024-03-22 07:54:20.504165 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10492 to 156.38.231.105:10492
  11515. 2024-03-22 07:54:20.584168 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  11516. 2024-03-22 07:54:20.664906 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [ready][200]
  11517. EXECUTE sofia/default/0664660716@41.160.32.115:5060 ring_ready()
  11518. 2024-03-22 07:54:20.824176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0664660716@41.160.32.115:5060!
  11519. 2024-03-22 07:54:20.824176 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [early][180]
  11520. 2024-03-22 07:54:20.824176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0664660716@41.160.32.115:5060!
  11521. EXECUTE sofia/default/0664660716@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/7930557423@legalaidsa.nebular.co.za^0152912429)
  11522. 2024-03-22 07:54:20.824176 [DEBUG] switch_channel.c:1250 sofia/default/0664660716@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  11523. 2024-03-22 07:54:20.824176 [DEBUG] switch_channel.c:1250 sofia/default/0664660716@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  11524. 2024-03-22 07:54:20.824176 [DEBUG] switch_channel.c:1250 sofia/default/0664660716@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  11525. 2024-03-22 07:54:20.824176 [DEBUG] switch_channel.c:1250 sofia/default/0664660716@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  11526. 2024-03-22 07:54:20.824176 [DEBUG] switch_channel.c:1250 sofia/default/0664660716@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  11527. 2024-03-22 07:54:20.824176 [DEBUG] switch_channel.c:1250 sofia/default/0664660716@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  11528. 2024-03-22 07:54:20.824176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  11529. 2024-03-22 07:54:20.824176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  11530. 2024-03-22 07:54:20.824176 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7930557423@legalaidsa.nebular.co.za [643c907a-e821-11ee-9149-d17fbcf33421]
  11531. 2024-03-22 07:54:20.824176 [DEBUG] mod_sofia.c:4819 (sofia/default/7930557423@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  11532. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 62 Tot 575007)
  11533. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7930557423@legalaidsa.nebular.co.za) State INIT
  11534. 2024-03-22 07:54:20.824176 [DEBUG] mod_sofia.c:90 sofia/default/7930557423@legalaidsa.nebular.co.za SOFIA INIT
  11535. 2024-03-22 07:54:20.824176 [DEBUG] sofia_glue.c:1295 sofia/default/7930557423@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  11536. Local SDP:                                                                                                                                                                                                        
  11537. v=0                                                                                                                                                                                                                
  11538. o=FreeSWITCH 1711070274 1711070275 IN IP4 156.38.231.107                                                                                                                                                          
  11539. s=FreeSWITCH                                                                                                                                                                                                      
  11540. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  11541. t=0 0                                                                                                                                                                                                              
  11542. m=audio 23786 RTP/AVP 18 101                                                                                                                                                                                      
  11543. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  11544. a=fmtp:18 annexb=no                                                                                                                                                                                                
  11545. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11546. a=fmtp:101 0-16                                                                                                                                                                                                    
  11547. a=ptime:20                                                                                                                                                                                                        
  11548. a=sendrecv                                                                                                                                                                                                        
  11549.  
  11550. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:40 sofia/default/7930557423@legalaidsa.nebular.co.za Standard INIT
  11551. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7930557423@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  11552. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7930557423@legalaidsa.nebular.co.za) State INIT going to sleep
  11553. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 62 Tot 575007)
  11554. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7930557423@legalaidsa.nebular.co.za) State ROUTING
  11555. 2024-03-22 07:54:20.824176 [DEBUG] mod_sofia.c:143 sofia/default/7930557423@legalaidsa.nebular.co.za SOFIA ROUTING
  11556. 2024-03-22 07:54:20.824176 [DEBUG] switch_ivr_originate.c:67 (sofia/default/7930557423@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  11557. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7930557423@legalaidsa.nebular.co.za) State ROUTING going to sleep
  11558. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 62 Tot 575007)
  11559. 2024-03-22 07:54:20.824176 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [calling][0]
  11560. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7930557423@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  11561. 2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7930557423@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  11562. 2024-03-22 07:54:20.884185 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [proceeding][180]
  11563. 2024-03-22 07:54:20.884185 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0787850991!
  11564. 2024-03-22 07:54:20.884185 [DEBUG] switch_channel.c:3346 (sofia/default/0787850991) Callstate Change EARLY -> RINGING
  11565. 2024-03-22 07:54:20.964371 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  11566. 2024-03-22 07:54:21.044181 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [proceeding][180]
  11567. 2024-03-22 07:54:21.044181 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7930557423@legalaidsa.nebular.co.za!
  11568. 2024-03-22 07:54:21.044181 [DEBUG] switch_channel.c:3346 (sofia/default/7930557423@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  11569. 2024-03-22 07:54:21.064194 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0664660716@41.160.32.115:5060!
  11570. 2024-03-22 07:54:22.224166 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [completing][200]
  11571. 2024-03-22 07:54:22.224166 [DEBUG] sofia.c:7091 Duplicate SDP
  11572. v=0                                                                                                                                                                                                                
  11573. o=HuaweiSoftX3000 100430498634112 100430498634112 IN IP4 41.160.32.115                                                                                                                                            
  11574. s=-                                                                                                                                                                                                                
  11575. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  11576. t=0 0                                                                                                                                                                                                              
  11577. m=audio 24802 RTP/AVP 8 101                                                                                                                                                                                        
  11578. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11579. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11580. a=fmtp:101 0-15                                                                                                                                                                                                    
  11581. a=ptime:20                                                                                                                                                                                                        
  11582.  
  11583. 2024-03-22 07:54:22.244160 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [ready][200]
  11584. 2024-03-22 07:54:22.244160 [NOTICE] sofia.c:8159 Channel [sofia/default/0721141624] has been answered
  11585. 2024-03-22 07:54:22.244160 [DEBUG] switch_channel.c:3773 (sofia/default/0721141624) Callstate Change EARLY -> ACTIVE
  11586. 2024-03-22 07:54:22.244160 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/27118772377@legalaidsa.nebular.co.za:5060.
  11587. 2024-03-22 07:54:22.244160 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/27118772377@legalaidsa.nebular.co.za:5060:
  11588. v=0                                                                                                                                                                                                                
  11589. o=FreeSWITCH 1711065990 1711065992 IN IP4 156.38.231.107                                                                                                                                                          
  11590. s=FreeSWITCH                                                                                                                                                                                                      
  11591. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  11592. t=0 0                                                                                                                                                                                                              
  11593. m=audio 28060 RTP/AVP 8 101                                                                                                                                                                                        
  11594. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11595. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11596. a=fmtp:101 0-16                                                                                                                                                                                                    
  11597. a=ptime:20                                                                                                                                                                                                        
  11598. a=sendrecv                                                                                                                                                                                                        
  11599.  
  11600. 2024-03-22 07:54:22.244160 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/27118772377@legalaidsa.nebular.co.za:5060] has been answered
  11601. 2024-03-22 07:54:22.244160 [DEBUG] switch_channel.c:3773 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  11602. 2024-03-22 07:54:22.244160 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  11603. 2024-03-22 07:54:22.264167 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  11604. 2024-03-22 07:54:22.284177 [NOTICE] switch_channel.c:1104 New Channel sofia/default/+27760453624@41.160.32.115:5060 [651c249c-e821-11ee-914d-d17fbcf33421]
  11605. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27760453624@41.160.32.115:5060) Running State Change CS_NEW (Cur 63 Tot 575008)
  11606. 2024-03-22 07:54:22.284177 [DEBUG] sofia.c:9873 sofia/default/+27760453624@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  11607. 2024-03-22 07:54:22.284177 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  11608. 2024-03-22 07:54:22.284177 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [received][100]
  11609. 2024-03-22 07:54:22.284177 [DEBUG] sofia.c:7094 Remote SDP:
  11610. v=0                                                                                                                                                                                                                
  11611. o=HuaweiSoftX3000 137199713667310 137199713667310 IN IP4 41.160.32.115                                                                                                                                            
  11612. s=-                                                                                                                                                                                                                
  11613. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  11614. t=0 0                                                                                                                                                                                                              
  11615. m=audio 24816 RTP/AVP 8 0 18 4 2 98 99 97                                                                                                                                                                          
  11616. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11617. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  11618. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  11619. a=fmtp:18 annexb=yes                                                                                                                                                                                              
  11620. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  11621. a=rtpmap:2 G726-32/8000                                                                                                                                                                                            
  11622. a=rtpmap:98 G726-40/8000                                                                                                                                                                                          
  11623. a=rtpmap:99 G726-32/8000                                                                                                                                                                                          
  11624. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  11625. a=fmtp:97 0-15                                                                                                                                                                                                    
  11626. a=ptime:20                                                                                                                                                                                                        
  11627.  
  11628. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  11629. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  11630. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  11631. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  11632. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  11633. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  11634. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  11635. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  11636. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  11637. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  11638. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  11639. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  11640. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  11641. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  11642. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  11643. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  11644. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  11645. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  11646. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  11647. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  11648. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[G729:18:8000:60:8000:1]
  11649. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[G729:18:8000:20:8000:1]
  11650. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  11651. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  11652. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[G729:18:8000:60:8000:1]
  11653. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[G729:18:8000:20:8000:1]
  11654. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  11655. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  11656. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[G729:18:8000:60:8000:1]
  11657. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[G729:18:8000:20:8000:1]
  11658. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  11659. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  11660. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 97@8000
  11661. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/+27760453624@41.160.32.115:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  11662. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_codec.c:111 sofia/default/+27760453624@41.160.32.115:5060 Original read codec set to PCMA:8
  11663. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 97@8000
  11664. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4767 sofia/default/+27760453624@41.160.32.115:5060 Set 2833 dtmf send payload to 97 recv payload to 97
  11665. 2024-03-22 07:54:22.284177 [DEBUG] sofia.c:7507 (sofia/default/+27760453624@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  11666. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27760453624@41.160.32.115:5060) State NEW
  11667. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27760453624@41.160.32.115:5060) Running State Change CS_INIT (Cur 63 Tot 575008)
  11668. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27760453624@41.160.32.115:5060) State INIT
  11669. 2024-03-22 07:54:22.284177 [DEBUG] mod_sofia.c:90 sofia/default/+27760453624@41.160.32.115:5060 SOFIA INIT
  11670. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27760453624@41.160.32.115:5060 Standard INIT
  11671. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:48 (sofia/default/+27760453624@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  11672. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27760453624@41.160.32.115:5060) State INIT going to sleep
  11673. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27760453624@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 63 Tot 575008)
  11674. 2024-03-22 07:54:22.284177 [DEBUG] switch_channel.c:2249 (sofia/default/+27760453624@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  11675. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27760453624@41.160.32.115:5060) State ROUTING
  11676. 2024-03-22 07:54:22.284177 [DEBUG] mod_sofia.c:143 sofia/default/+27760453624@41.160.32.115:5060 SOFIA ROUTING
  11677. 2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27760453624@41.160.32.115:5060 Standard ROUTING
  11678. 2024-03-22 07:54:22.284177 [INFO] mod_dialplan_xml.c:637 Processing +27760453624 <+27760453624>->D9570117030000 in context default
  11679. 2024-03-22 07:54:22.284177 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  11680. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  11681. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  11682. 2024-03-22 07:54:22.304159 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  11683. 2024-03-22 07:54:22.304159 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  11684. 2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  11685. 2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570117030000
  11686. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570117030000' limit 1
  11687. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570117030000' AND status=0 limit 1
  11688. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570117030000' and status=0 LIMIT 1                                                                                                                                                                                                      
  11689. 2024-03-22 07:54:22.304159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  11690. 2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : +27760453624 / <null>
  11691. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570117030000" LIMIT 1                                                                                                                                                          
  11692. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [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="D9570117030000"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  11693. 2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  11694. 2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  11695. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  11696. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570117030000.*' OR blocked_patterns = '^D957011703000.*' OR blocked_patterns = '^D95701170300.*' OR blocked_patterns = '^D9570117030.*' OR blocked_patterns = '^D957011703.*' OR blocked_patterns = '^D95701170.*' OR blocked_patterns = '^D9570117.*' OR blocked_patterns = '^D957011.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  11697. 2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570117030000" AND (accountid = 0 OR status = 1) LIMIT 1
  11698. 2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  11699. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  11700. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
  11701. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
  11702. 2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570117030000
  11703. 2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0117030000
  11704. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [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 = '^0117030000.*' OR patterns = '^011703000.*' OR patterns = '^01170300.*' OR patterns = '^0117030.*' OR patterns = '^011703.*' OR patterns = '^01170.*' OR patterns = '^0117.*' OR patterns = '^011.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  11705. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [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 ="0117030000" AND A.accountid = '3' limit 1                                                                                                                                                                          
  11706. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0117030000
  11707. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [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 ="0117030000" LIMIT 1                                                                                                                                                              
  11708. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  11709. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0117030000' OR number = '011703000' OR number = '01170300' OR number = '0117030' OR number = '011703' OR number = '01170' OR number = '0117' OR number = '011' OR number = '01' OR number = '0' OR number ='--') OR (number = '0117030000*' OR number = '011703000*' OR number = '01170300*' OR number = '0117030*' OR number = '011703*' OR number = '01170*' OR number = '0117*' OR number = '011*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  11710. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  11711. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0117030000' OR routing_prefix = '011703000' OR routing_prefix = '01170300' OR routing_prefix = '0117030' OR routing_prefix = '011703' OR routing_prefix = '01170' OR routing_prefix = '0117' OR routing_prefix = '011' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  11712. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  11713. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  11714. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  11715. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  11716. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  11717. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  11718. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  11719. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  11720. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  11721. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  11722. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [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 ="0117030000" LIMIT 1                                                                                                                                                              
  11723. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  11724. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  11725. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 10873
  11726. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  11727. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  11728. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  11729. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0117030000
  11730. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  11731. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  11732. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  11733. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  11734. 2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  11735. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  11736. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  11737. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  11738. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  11739. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  11740. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  11741. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  11742. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  11743. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  11744. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  11745. 2024-03-22 07:54:22.324166 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  11746. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  11747. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  11748. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  11749. 2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  11750. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....+27760453624
  11751. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  11752. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  11753. 2024-03-22 07:54:22.324166 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  11754. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  11755. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [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="7682330505"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  11756. 2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1157 limit 1
  11757. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  11758. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  11759. 2024-03-22 07:54:22.344156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  11760. 2024-03-22 07:54:22.344156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  11761. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  11762. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  11763. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7682330505' and uuid = '651c249c-e821-11ee-914d-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  11764. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7682330505' order by id desc limit 1
  11765. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [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="7682330505"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  11766. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1157 limit 1
  11767. 2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  11768. <document type="freeswitch/xml">                                                                                                                                                                                  
  11769. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  11770. <context name="default">                                                                                                                                                                                          
  11771. <extension name="0117030000">                                                                                                                                                                                      
  11772. <condition field="destination_number" expression="D9570117030000">                                                                                                                                                
  11773. <action application="set" data="effective_destination_number=0117030000"/>                                                                                                                                        
  11774. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  11775. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  11776. <action application="set" data="callstart=2024-03-22 07:54:22"/>                                                                                                                                                  
  11777. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  11778. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  11779. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  11780. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  11781. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  11782. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  11783. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  11784. <action application="set" data="accountname=default"/>                                                                                                                                                            
  11785. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  11786. <action application="set" data="origination_rates_did=ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                    
  11787. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  11788. <action application="set" data="original_caller_id_name=+27760453624"/>                                                                                                                                            
  11789. <action application="set" data="effective_caller_id_name=+27760453624"/>                                                                                                                                          
  11790. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  11791. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  11792. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  11793. <action application="export" data="presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  11794. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  11795. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  11796. <action application="db" data="insert/pickup_any_group_${callgroup}/7682330505/${uuid}"/>                                                                                                                          
  11797. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  11798. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  11799. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  11800. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  11801. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  11802. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  11803. <action application="sleep" data="1000"/>                                                                                                                                                                          
  11804. <action application="ring_ready"/>                                                                                                                                                                                
  11805. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7682330505@legalaidsa.nebular.co.za^0117030000"/>                                                    
  11806. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  11807. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  11808. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  11809. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  11810. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  11811. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  11812. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  11813. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  11814. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  11815. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  11816. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  11817. <action application="set" data="sip_destination_number=7682330505"/>                                                                                                                                              
  11818. <action application="set" data="destination_number=0117030000"/>                                                                                                                                                  
  11819. <action application="set" data="did_number=0117030000"/>                                                                                                                                                          
  11820. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  11821. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  11822. <condition field="${cond(${user_data 7682330505@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  11823. <action application="answer"/>                                                                                                                                                                                    
  11824. <action application="export" data="voicemail_alternate_greet_id=0117030000"/>                                                                                                                                      
  11825. <action application="voicemail" data="default $${domain_name} 7682330505"/>                                                                                                                                        
  11826. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  11827. </condition>                                                                                                                                                                                                      
  11828. </condition>                                                                                                                                                                                                      
  11829. </extension>                                                                                                                                                                                                      
  11830. </context>                                                                                                                                                                                                        
  11831. </section>                                                                                                                                                                                                        
  11832. </document>                                                                                                                                                                                                        
  11833. 2024-03-22 07:54:22.344156 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  11834. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 parsing [default->0117030000] continue=false
  11835. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Regex (PASS) [0117030000] destination_number(D9570117030000) =~ /D9570117030000/ break=on-false
  11836. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(effective_destination_number=0117030000)
  11837. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  11838. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  11839. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:22)
  11840. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  11841. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  11842. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(account_id=3)
  11843. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(parent_id=0)
  11844. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(entity_id=3)
  11845. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(call_processed=internal)
  11846. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(call_direction=inbound)
  11847. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(accountname=default)
  11848. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  11849. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(origination_rates_did=ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                    
  11850. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(origination_rates=0)
  11851. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(original_caller_id_name=+27760453624)
  11852. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(effective_caller_id_name=+27760453624)
  11853. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(receiver_accid=109)
  11854. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  11855. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  11856. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115)
  11857. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(call_type=5)
  11858. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(calltype=SIP-DID)
  11859. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7682330505/${uuid})
  11860. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  11861. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  11862. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  11863. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  11864. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  11865. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  11866. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action sleep(1000)
  11867. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action ring_ready()
  11868. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7682330505@legalaidsa.nebular.co.za^0117030000)
  11869. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(on_busy_flag=1)
  11870. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(on_busy_destination=)
  11871. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(no_answer_flag=1)
  11872. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(no_answer_destination=)
  11873. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(not_register_flag=1)
  11874. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(not_register_destination=)
  11875. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(opensips_flag=0)
  11876. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  11877. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  11878. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(leg_timeout=20)
  11879. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(userinfo_id=109)
  11880. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(sip_destination_number=7682330505)
  11881. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(destination_number=0117030000)
  11882. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(did_number=0117030000)
  11883. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  11884. Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  11885. |--- Dialplan: Processing recursive conditions level:1 [0117030000_recur_1] require-nested=TRUE
  11886. |--- Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Regex (FAIL) [0117030000_recur_1] ${cond(${user_data 7682330505@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  11887. |--- Dialplan: sofia/default/+27760453624@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  11888. 2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:286 (sofia/default/+27760453624@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  11889. 2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27760453624@41.160.32.115:5060) State ROUTING going to sleep
  11890. 2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27760453624@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 63 Tot 575008)
  11891. 2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27760453624@41.160.32.115:5060) State EXECUTE
  11892. 2024-03-22 07:54:22.364164 [DEBUG] mod_sofia.c:198 sofia/default/+27760453624@41.160.32.115:5060 SOFIA EXECUTE
  11893. 2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27760453624@41.160.32.115:5060 Standard EXECUTE
  11894. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(effective_destination_number=0117030000)
  11895. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [effective_destination_number]=[0117030000]
  11896. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  11897. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  11898. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  11899. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  11900. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(callstart=2024-03-22 07:54:22)
  11901. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:22]
  11902. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(hangup_after_bridge=true)
  11903. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [hangup_after_bridge]=[true]
  11904. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(continue_on_fail=TRUE)
  11905. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  11906. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(account_id=3)
  11907. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [account_id]=[3]
  11908. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(parent_id=0)
  11909. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [parent_id]=[0]
  11910. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(entity_id=3)
  11911. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [entity_id]=[3]
  11912. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(call_processed=internal)
  11913. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [call_processed]=[internal]
  11914. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(call_direction=inbound)
  11915. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [call_direction]=[inbound]
  11916. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(accountname=default)
  11917. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [accountname]=[default]
  11918. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  11919. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  11920. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(origination_rates_did=ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                            
  11921. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [origination_rates_did]=[ID:10873|CODE:^0117030000.*|DESTINATION:0117030000|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                            
  11922. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(origination_rates=0)
  11923. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [origination_rates]=[0]
  11924. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(original_caller_id_name=+27760453624)
  11925. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [original_caller_id_name]=[+27760453624]
  11926. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(effective_caller_id_name=+27760453624)
  11927. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [effective_caller_id_name]=[+27760453624]
  11928. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(receiver_accid=109)
  11929. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [receiver_accid]=[109]
  11930. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  11931. 2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  11932. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  11933. 2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  11934. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115)
  11935. 2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115]
  11936. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(call_type=5)
  11937. 2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  11938. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(calltype=SIP-DID)
  11939. 2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [calltype]=[SIP-DID]
  11940. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 db(insert/pickup_any_group_/7682330505/651c249c-e821-11ee-914d-d17fbcf33421)
  11941. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(dialed_extension=transfer_call)
  11942. 2024-03-22 07:54:22.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  11943. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(dialed_extension=transfer_call)
  11944. 2024-03-22 07:54:22.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  11945. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  11946. 2024-03-22 07:54:22.384158 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  11947. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  11948. 2024-03-22 07:54:22.384158 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  11949. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(hangup_after_bridge=true)
  11950. 2024-03-22 07:54:22.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [hangup_after_bridge]=[true]
  11951. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  11952. 2024-03-22 07:54:22.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  11953. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 sleep(1000)
  11954. 2024-03-22 07:54:22.504181 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [proceeding][183]
  11955. 2024-03-22 07:54:22.504181 [DEBUG] sofia.c:7094 Remote SDP:
  11956. v=0                                                                                                                                                                                                                
  11957. o=HuaweiSoftX3000 84994386184586 84994386184586 IN IP4 41.160.32.115                                                                                                                                              
  11958. s=-                                                                                                                                                                                                                
  11959. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  11960. t=0 0                                                                                                                                                                                                              
  11961. m=audio 24812 RTP/AVP 8 101                                                                                                                                                                                        
  11962. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11963. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11964. a=fmtp:101 0-15                                                                                                                                                                                                    
  11965. a=ptime:20                                                                                                                                                                                                        
  11966.  
  11967. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  11968. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  11969. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  11970. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  11971. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  11972. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0780824496 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  11973. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_codec.c:111 sofia/default/0780824496 Original read codec set to PCMA:8
  11974. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  11975. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4767 sofia/default/0780824496 Set 2833 dtmf send payload to 101 recv payload to 101
  11976. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0780824496] 156.38.231.107 port 20472 -> 41.160.32.115 port 24812 codec: 8 ms: 20
  11977. 2024-03-22 07:54:22.504181 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  11978. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:7180 sofia/default/0780824496 Set 2833 dtmf send payload to 101
  11979. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:7187 sofia/default/0780824496 Set 2833 dtmf receive payload to 101
  11980. 2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:7210 sofia/default/0780824496 Set rtp dtmf delay to 40
  11981. 2024-03-22 07:54:22.504181 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0780824496!
  11982. 2024-03-22 07:54:22.504181 [DEBUG] switch_channel.c:3474 (sofia/default/0780824496) Callstate Change DOWN -> EARLY
  11983. 2024-03-22 07:54:22.524793 [INFO] switch_ivr_originate.c:3654 Sending early media
  11984. 2024-03-22 07:54:22.524793 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0514479915@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 28604 -> 156.38.150.6 port 10490 codec: 8 ms: 20
  11985. 2024-03-22 07:54:22.524793 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  11986. 2024-03-22 07:54:22.524793 [DEBUG] switch_core_media.c:7180 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  11987. 2024-03-22 07:54:22.524793 [DEBUG] switch_core_media.c:7187 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  11988. 2024-03-22 07:54:22.524793 [DEBUG] switch_core_media.c:7210 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  11989. 2024-03-22 07:54:22.524793 [DEBUG] mod_sofia.c:2364 Ring SDP:
  11990. v=0                                                                                                                                                                                                                
  11991. o=FreeSWITCH 1711065458 1711065459 IN IP4 156.38.231.107                                                                                                                                                          
  11992. s=FreeSWITCH                                                                                                                                                                                                      
  11993. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  11994. t=0 0                                                                                                                                                                                                              
  11995. m=audio 28604 RTP/AVP 8 101                                                                                                                                                                                        
  11996. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  11997. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  11998. a=fmtp:101 0-16                                                                                                                                                                                                    
  11999. a=ptime:20                                                                                                                                                                                                        
  12000. a=sendrecv                                                                                                                                                                                                        
  12001.  
  12002. 2024-03-22 07:54:22.524793 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0514479915@legalaidsa.nebular.co.za:5060!
  12003. 2024-03-22 07:54:22.524793 [DEBUG] switch_channel.c:3474 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  12004. 2024-03-22 07:54:22.524793 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0780824496]
  12005. 2024-03-22 07:54:22.524793 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [early][183]
  12006. 2024-03-22 07:54:22.524793 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0780824496) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  12007. 2024-03-22 07:54:22.524793 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0780824496) Running State Change CS_EXCHANGE_MEDIA (Cur 63 Tot 575008)
  12008. 2024-03-22 07:54:22.524793 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0780824496) State EXCHANGE_MEDIA
  12009. 2024-03-22 07:54:22.524793 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  12010. 2024-03-22 07:54:22.704179 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0780824496 Bridge execute app sched_hangup(+6000 normal_clearing)
  12011. 2024-03-22 07:54:22.724161 [DEBUG] switch_ivr.c:623 sofia/default/0780824496 Command Execute sched_hangup(+6000 normal_clearing)
  12012. EXECUTE sofia/default/0780824496 sched_hangup(+6000 normal_clearing)
  12013. 2024-03-22 07:54:22.724161 [DEBUG] switch_scheduler.c:249 Added task 232842 switch_ivr_schedule_hangup (632343c8-e821-11ee-90ef-d17fbcf33421) to run at 1711100062
  12014. 2024-03-22 07:54:22.764176 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10490 to 156.38.231.105:10490
  12015. 2024-03-22 07:54:22.864284 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [completing][200]
  12016. 2024-03-22 07:54:22.864284 [DEBUG] sofia.c:7094 Remote SDP:
  12017. v=0                                                                                                                                                                                                                
  12018. o=3cxPS 522408951808 47915728897 IN IP4 156.38.150.6                                                                                                                                                              
  12019. s=3cxPS Audio call                                                                                                                                                                                                
  12020. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  12021. t=0 0                                                                                                                                                                                                              
  12022. m=audio 10494 RTP/AVP 18 101                                                                                                                                                                                      
  12023. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  12024. a=fmtp:18 annexb=no                                                                                                                                                                                                
  12025. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12026.  
  12027. 2024-03-22 07:54:22.864284 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [ready][200]
  12028. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  12029. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  12030. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  12031. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/7930557423@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  12032. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_codec.c:111 sofia/default/7930557423@legalaidsa.nebular.co.za Original read codec set to G729:18
  12033. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  12034. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4767 sofia/default/7930557423@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  12035. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/7930557423@legalaidsa.nebular.co.za] 156.38.231.107 port 23786 -> 156.38.150.6 port 10494 codec: 18 ms: 20
  12036. 2024-03-22 07:54:22.864284 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  12037. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:7180 sofia/default/7930557423@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  12038. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:7187 sofia/default/7930557423@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  12039. 2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:7210 sofia/default/7930557423@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  12040. 2024-03-22 07:54:22.864284 [NOTICE] sofia.c:8218 Channel [sofia/default/7930557423@legalaidsa.nebular.co.za] has been answered
  12041. 2024-03-22 07:54:22.864284 [DEBUG] switch_channel.c:3773 (sofia/default/7930557423@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  12042. 2024-03-22 07:54:22.884190 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0664660716@41.160.32.115:5060] 156.38.231.107 port 19192 -> 41.160.32.115 port 24814 codec: 18 ms: 20
  12043. 2024-03-22 07:54:22.884190 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  12044. 2024-03-22 07:54:22.884190 [DEBUG] switch_core_media.c:7180 sofia/default/0664660716@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  12045. 2024-03-22 07:54:22.884190 [DEBUG] switch_core_media.c:7187 sofia/default/0664660716@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  12046. 2024-03-22 07:54:22.884190 [DEBUG] switch_core_media.c:7210 sofia/default/0664660716@41.160.32.115:5060 Set rtp dtmf delay to 40
  12047. 2024-03-22 07:54:22.884190 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0664660716@41.160.32.115:5060:
  12048. v=0                                                                                                                                                                                                                
  12049. o=FreeSWITCH 1711074870 1711074871 IN IP4 156.38.231.107                                                                                                                                                          
  12050. s=FreeSWITCH                                                                                                                                                                                                      
  12051. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  12052. t=0 0                                                                                                                                                                                                              
  12053. m=audio 19192 RTP/AVP 18 101                                                                                                                                                                                      
  12054. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  12055. a=fmtp:18 annexb=no                                                                                                                                                                                                
  12056. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12057. a=fmtp:101 0-16                                                                                                                                                                                                    
  12058. a=ptime:20                                                                                                                                                                                                        
  12059. a=sendrecv                                                                                                                                                                                                        
  12060.  
  12061. 2024-03-22 07:54:22.884190 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0664660716@41.160.32.115:5060] has been answered
  12062. 2024-03-22 07:54:22.884190 [DEBUG] switch_channel.c:3773 (sofia/default/0664660716@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  12063. 2024-03-22 07:54:22.884190 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [completed][200]
  12064. 2024-03-22 07:54:22.884190 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7930557423@legalaidsa.nebular.co.za]
  12065. 2024-03-22 07:54:22.884190 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/7930557423@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  12066. 2024-03-22 07:54:22.884190 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 63 Tot 575008)
  12067. 2024-03-22 07:54:22.884190 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7930557423@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  12068. 2024-03-22 07:54:22.884190 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  12069. 2024-03-22 07:54:22.984155 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  12070. 2024-03-22 07:54:23.044190 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [ready][200]
  12071. 2024-03-22 07:54:23.064174 [DEBUG] switch_ivr_bridge.c:546 sofia/default/7930557423@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  12072. 2024-03-22 07:54:23.084195 [DEBUG] switch_ivr.c:623 sofia/default/7930557423@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  12073. EXECUTE sofia/default/7930557423@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  12074. 2024-03-22 07:54:23.084195 [DEBUG] switch_scheduler.c:249 Added task 232843 switch_ivr_schedule_hangup (643c907a-e821-11ee-9149-d17fbcf33421) to run at 1711100063
  12075. 2024-03-22 07:54:23.104169 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10494 to 156.38.231.105:10494
  12076. 2024-03-22 07:54:23.184179 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  12077. 2024-03-22 07:54:23.264226 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [proceeding][180]
  12078. 2024-03-22 07:54:23.264226 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0780824496!
  12079. 2024-03-22 07:54:23.264226 [DEBUG] switch_channel.c:3346 (sofia/default/0780824496) Callstate Change EARLY -> RINGING
  12080. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 ring_ready()
  12081. 2024-03-22 07:54:23.384167 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27760453624@41.160.32.115:5060!
  12082. 2024-03-22 07:54:23.384167 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [early][180]
  12083. 2024-03-22 07:54:23.384167 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27760453624@41.160.32.115:5060!
  12084. EXECUTE sofia/default/+27760453624@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/default/7682330505@legalaidsa.nebular.co.za^0117030000)
  12085. 2024-03-22 07:54:23.384167 [DEBUG] switch_channel.c:1250 sofia/default/+27760453624@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  12086. 2024-03-22 07:54:23.384167 [DEBUG] switch_channel.c:1250 sofia/default/+27760453624@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  12087. 2024-03-22 07:54:23.384167 [DEBUG] switch_channel.c:1250 sofia/default/+27760453624@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                    
  12088. 2024-03-22 07:54:23.384167 [DEBUG] switch_channel.c:1250 sofia/default/+27760453624@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  12089. 2024-03-22 07:54:23.384167 [DEBUG] switch_channel.c:1250 sofia/default/+27760453624@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  12090. 2024-03-22 07:54:23.384167 [DEBUG] switch_channel.c:1250 sofia/default/+27760453624@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  12091. 2024-03-22 07:54:23.384167 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  12092. 2024-03-22 07:54:23.384167 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  12093. 2024-03-22 07:54:23.384167 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7682330505@legalaidsa.nebular.co.za [65c3c63e-e821-11ee-9179-d17fbcf33421]
  12094. 2024-03-22 07:54:23.384167 [DEBUG] mod_sofia.c:4819 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  12095. 2024-03-22 07:54:23.384167 [DEBUG] switch_ivr_originate.c:2963 sofia/default/7682330505@legalaidsa.nebular.co.za Setting leg timeout to 30
  12096. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 64 Tot 575009)
  12097. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7682330505@legalaidsa.nebular.co.za) State INIT
  12098. 2024-03-22 07:54:23.384167 [DEBUG] mod_sofia.c:90 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA INIT
  12099. 2024-03-22 07:54:23.384167 [DEBUG] sofia_glue.c:1295 sofia/default/7682330505@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  12100. Local SDP:                                                                                                                                                                                                        
  12101. v=0                                                                                                                                                                                                                
  12102. o=FreeSWITCH 1711065683 1711065684 IN IP4 156.38.231.107                                                                                                                                                          
  12103. s=FreeSWITCH                                                                                                                                                                                                      
  12104. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  12105. t=0 0                                                                                                                                                                                                              
  12106. m=audio 28380 RTP/AVP 8 101                                                                                                                                                                                        
  12107. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  12108. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12109. a=fmtp:101 0-16                                                                                                                                                                                                    
  12110. a=ptime:20                                                                                                                                                                                                        
  12111. a=sendrecv                                                                                                                                                                                                        
  12112.  
  12113. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:40 sofia/default/7682330505@legalaidsa.nebular.co.za Standard INIT
  12114. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  12115. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7682330505@legalaidsa.nebular.co.za) State INIT going to sleep
  12116. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 64 Tot 575009)
  12117. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7682330505@legalaidsa.nebular.co.za) State ROUTING
  12118. 2024-03-22 07:54:23.384167 [DEBUG] mod_sofia.c:143 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA ROUTING
  12119. 2024-03-22 07:54:23.384167 [DEBUG] switch_ivr_originate.c:67 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  12120. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7682330505@legalaidsa.nebular.co.za) State ROUTING going to sleep
  12121. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 64 Tot 575009)
  12122. 2024-03-22 07:54:23.384167 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [calling][0]
  12123. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7682330505@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  12124. 2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7682330505@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  12125. 2024-03-22 07:54:23.504165 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [proceeding][180]
  12126. 2024-03-22 07:54:23.504165 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7682330505@legalaidsa.nebular.co.za!
  12127. 2024-03-22 07:54:23.504165 [DEBUG] switch_channel.c:3346 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  12128. 2024-03-22 07:54:23.504165 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27760453624@41.160.32.115:5060!
  12129. 2024-03-22 07:54:23.624298 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [completing][200]
  12130. 2024-03-22 07:54:23.624298 [DEBUG] sofia.c:7094 Remote SDP:
  12131. v=0                                                                                                                                                                                                                
  12132. o=3cxPS 116031225856 490230251521 IN IP4 156.38.150.6                                                                                                                                                              
  12133. s=3cxPS Audio call                                                                                                                                                                                                
  12134. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  12135. t=0 0                                                                                                                                                                                                              
  12136. m=audio 10496 RTP/AVP 8 101                                                                                                                                                                                        
  12137. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  12138. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12139.  
  12140. 2024-03-22 07:54:23.624298 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [ready][200]
  12141. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  12142. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  12143. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  12144. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/7682330505@legalaidsa.nebular.co.za PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  12145. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_codec.c:111 sofia/default/7682330505@legalaidsa.nebular.co.za Original read codec set to PCMA:8
  12146. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  12147. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4767 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  12148. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/7682330505@legalaidsa.nebular.co.za] 156.38.231.107 port 28380 -> 156.38.150.6 port 10496 codec: 8 ms: 20
  12149. 2024-03-22 07:54:23.624298 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  12150. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:7180 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  12151. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:7187 sofia/default/7682330505@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  12152. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:7210 sofia/default/7682330505@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  12153. 2024-03-22 07:54:23.624298 [NOTICE] sofia.c:8218 Channel [sofia/default/7682330505@legalaidsa.nebular.co.za] has been answered
  12154. 2024-03-22 07:54:23.624298 [DEBUG] switch_channel.c:3773 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  12155. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/+27760453624@41.160.32.115:5060] 156.38.231.107 port 28100 -> 41.160.32.115 port 24816 codec: 8 ms: 20
  12156. 2024-03-22 07:54:23.624298 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  12157. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:7180 sofia/default/+27760453624@41.160.32.115:5060 Set 2833 dtmf send payload to 97
  12158. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:7187 sofia/default/+27760453624@41.160.32.115:5060 Set 2833 dtmf receive payload to 97
  12159. 2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:7210 sofia/default/+27760453624@41.160.32.115:5060 Set rtp dtmf delay to 40
  12160. 2024-03-22 07:54:23.624298 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/+27760453624@41.160.32.115:5060:
  12161. v=0                                                                                                                                                                                                                
  12162. o=FreeSWITCH 1711065963 1711065964 IN IP4 156.38.231.107                                                                                                                                                          
  12163. s=FreeSWITCH                                                                                                                                                                                                      
  12164. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  12165. t=0 0                                                                                                                                                                                                              
  12166. m=audio 28100 RTP/AVP 8 97                                                                                                                                                                                        
  12167. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  12168. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  12169. a=fmtp:97 0-16                                                                                                                                                                                                    
  12170. a=ptime:20                                                                                                                                                                                                        
  12171. a=sendrecv                                                                                                                                                                                                        
  12172.  
  12173. 2024-03-22 07:54:23.624298 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/+27760453624@41.160.32.115:5060] has been answered
  12174. 2024-03-22 07:54:23.644320 [DEBUG] switch_channel.c:3773 (sofia/default/+27760453624@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  12175. 2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [completed][200]
  12176. 2024-03-22 07:54:23.644320 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7682330505@legalaidsa.nebular.co.za]
  12177. 2024-03-22 07:54:23.644320 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  12178. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 64 Tot 575009)
  12179. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  12180. 2024-03-22 07:54:23.644320 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  12181. 2024-03-22 07:54:23.644320 [NOTICE] switch_channel.c:1104 New Channel sofia/default/027670264866@41.160.32.115:5060 [65ebda98-e821-11ee-917e-d17fbcf33421]
  12182. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027670264866@41.160.32.115:5060) Running State Change CS_NEW (Cur 65 Tot 575010)
  12183. 2024-03-22 07:54:23.644320 [DEBUG] sofia.c:9873 sofia/default/027670264866@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  12184. 2024-03-22 07:54:23.644320 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  12185. 2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [received][100]
  12186. 2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7094 Remote SDP:
  12187. v=0                                                                                                                                                                                                                
  12188. o=HuaweiSoftX3000 2702812794430 2702812794430 IN IP4 41.160.32.115                                                                                                                                                
  12189. s=-                                                                                                                                                                                                                
  12190. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  12191. t=0 0                                                                                                                                                                                                              
  12192. m=audio 24818 RTP/AVP 18 4 8 101                                                                                                                                                                                  
  12193. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  12194. a=fmtp:18 annexb=no                                                                                                                                                                                                
  12195. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  12196. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  12197. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12198. a=fmtp:101 0-15                                                                                                                                                                                                    
  12199. a=ptime:20                                                                                                                                                                                                        
  12200.  
  12201. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  12202. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  12203. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  12204. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  12205. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  12206. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  12207. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  12208. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  12209. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  12210. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  12211. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  12212. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  12213. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  12214. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  12215. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  12216. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  12217. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/027670264866@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  12218. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_codec.c:111 sofia/default/027670264866@41.160.32.115:5060 Original read codec set to G729:18
  12219. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  12220. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4767 sofia/default/027670264866@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  12221. 2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7507 (sofia/default/027670264866@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  12222. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:603 (sofia/default/027670264866@41.160.32.115:5060) State NEW
  12223. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027670264866@41.160.32.115:5060) Running State Change CS_INIT (Cur 65 Tot 575010)
  12224. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:627 (sofia/default/027670264866@41.160.32.115:5060) State INIT
  12225. 2024-03-22 07:54:23.644320 [DEBUG] mod_sofia.c:90 sofia/default/027670264866@41.160.32.115:5060 SOFIA INIT
  12226. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:40 sofia/default/027670264866@41.160.32.115:5060 Standard INIT
  12227. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:48 (sofia/default/027670264866@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  12228. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:627 (sofia/default/027670264866@41.160.32.115:5060) State INIT going to sleep
  12229. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027670264866@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 65 Tot 575010)
  12230. 2024-03-22 07:54:23.644320 [DEBUG] switch_channel.c:2249 (sofia/default/027670264866@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  12231. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:643 (sofia/default/027670264866@41.160.32.115:5060) State ROUTING
  12232. 2024-03-22 07:54:23.644320 [DEBUG] mod_sofia.c:143 sofia/default/027670264866@41.160.32.115:5060 SOFIA ROUTING
  12233. 2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:236 sofia/default/027670264866@41.160.32.115:5060 Standard ROUTING
  12234. 2024-03-22 07:54:23.644320 [INFO] mod_dialplan_xml.c:637 Processing 027670264866 <0670264866>->D9570114034300 in context default
  12235. 2024-03-22 07:54:23.644320 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  12236. 2024-03-22 07:54:23.644320 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  12237. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  12238. 2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  12239. 2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570114034300
  12240. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570114034300' limit 1
  12241. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570114034300' AND status=0 limit 1
  12242. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570114034300' and status=0 LIMIT 1                                                                                                                                                                                                      
  12243. 2024-03-22 07:54:23.664152 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  12244. 2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 027670264866 / <null>
  12245. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570114034300" LIMIT 1                                                                                                                                                          
  12246. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [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="D9570114034300"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  12247. 2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  12248. 2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  12249. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  12250. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570114034300.*' OR blocked_patterns = '^D957011403430.*' OR blocked_patterns = '^D95701140343.*' OR blocked_patterns = '^D9570114034.*' OR blocked_patterns = '^D957011403.*' OR blocked_patterns = '^D95701140.*' OR blocked_patterns = '^D9570114.*' OR blocked_patterns = '^D957011.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  12251. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570114034300" AND (accountid = 0 OR status = 1) LIMIT 1
  12252. 2024-03-22 07:54:23.664152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  12253. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  12254. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570114034300
  12255. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570114034300
  12256. 2024-03-22 07:54:23.664152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570114034300
  12257. 2024-03-22 07:54:23.664152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0114034300
  12258. 2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [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 = '^0114034300.*' OR patterns = '^011403430.*' OR patterns = '^01140343.*' OR patterns = '^0114034.*' OR patterns = '^011403.*' OR patterns = '^01140.*' OR patterns = '^0114.*' OR patterns = '^011.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  12259. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [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 ="0114034300" AND A.accountid = '3' limit 1                                                                                                                                                                          
  12260. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0114034300
  12261. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [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 ="0114034300" LIMIT 1                                                                                                                                                              
  12262. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  12263. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0114034300' OR number = '011403430' OR number = '01140343' OR number = '0114034' OR number = '011403' OR number = '01140' OR number = '0114' OR number = '011' OR number = '01' OR number = '0' OR number ='--') OR (number = '0114034300*' OR number = '011403430*' OR number = '01140343*' OR number = '0114034*' OR number = '011403*' OR number = '01140*' OR number = '0114*' OR number = '011*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  12264. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  12265. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0114034300' OR routing_prefix = '011403430' OR routing_prefix = '01140343' OR routing_prefix = '0114034' OR routing_prefix = '011403' OR routing_prefix = '01140' OR routing_prefix = '0114' OR routing_prefix = '011' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  12266. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  12267. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  12268. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  12269. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  12270. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  12271. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  12272. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  12273. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  12274. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  12275. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  12276. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [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 ="0114034300" LIMIT 1                                                                                                                                                              
  12277. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  12278. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  12279. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 4755
  12280. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  12281. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  12282. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  12283. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0114034300
  12284. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  12285. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  12286. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  12287. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  12288. 2024-03-22 07:54:23.684164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  12289. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  12290. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  12291. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  12292. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  12293. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++89
  12294. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "89" AND deleted = 0 limit 1
  12295. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  12296. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  12297. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  12298. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 89 limit 1
  12299. 2024-03-22 07:54:23.684164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : metrobus.nebular.co.za
  12300. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  12301. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  12302. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  12303. 2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  12304. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....027670264866
  12305. 2024-03-22 07:54:23.684164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 027670264866
  12306. 2024-03-22 07:54:23.684164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 2727670264866
  12307. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  12308. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 89 limit 1
  12309. 2024-03-22 07:54:23.684164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : metrobus.nebular.co.za
  12310. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_0
  12311. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [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="7542292398"  AND domains.domain="metrobus.nebular.co.za" limit 1                                                                                        
  12312. 2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 961 limit 1
  12313. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  12314. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  12315. 2024-03-22 07:54:23.704154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforemetrobus.nebular.co.za
  12316. 2024-03-22 07:54:23.704154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  12317. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  12318. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  12319. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7542292398' and uuid = '65ebda98-e821-11ee-917e-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  12320. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7542292398' order by id desc limit 1
  12321. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [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="7542292398"  AND domains.domain="metrobus.nebular.co.za" limit 1                                                                                        
  12322. 2024-03-22 07:54:23.704154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 961
  12323. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 961 limit 1
  12324. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  12325. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  12326. 2024-03-22 07:54:23.704154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] call_forwarding_flag : 1
  12327. 2024-03-22 07:54:23.704154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] SIP Call forwarding Disable
  12328. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  12329. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  12330. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7542292398' and uuid = '65ebda98-e821-11ee-917e-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  12331. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7542292398' order by id desc limit 1
  12332. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [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="7542292398"  AND domains.domain="metrobus.nebular.co.za" limit 1                                                                                        
  12333. 2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 961 limit 1
  12334. 2024-03-22 07:54:23.724516 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  12335. <document type="freeswitch/xml">                                                                                                                                                                                  
  12336. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  12337. <context name="default">                                                                                                                                                                                          
  12338. <extension name="0114034300">                                                                                                                                                                                      
  12339. <condition field="destination_number" expression="D9570114034300">                                                                                                                                                
  12340. <action application="set" data="effective_destination_number=0114034300"/>                                                                                                                                        
  12341. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  12342. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  12343. <action application="set" data="callstart=2024-03-22 07:54:23"/>                                                                                                                                                  
  12344. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  12345. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  12346. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  12347. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  12348. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  12349. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  12350. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  12351. <action application="set" data="accountname=default"/>                                                                                                                                                            
  12352. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  12353. <action application="set" data="origination_rates_did=ID:4755|CODE:^0114034300.*|DESTINATION:0114034300|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:89"/>                                                                                                                                                                                                      
  12354. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  12355. <action application="set" data="original_caller_id_name=027670264866"/>                                                                                                                                            
  12356. <action application="set" data="effective_caller_id_name=2727670264866"/>                                                                                                                                          
  12357. <action application="set" data="receiver_accid=89"/>                                                                                                                                                              
  12358. <action application="export" data="domain_name=metrobus.nebular.co.za"/>                                                                                                                                          
  12359. <action application="export" data="sip_to_host=metrobus.nebular.co.za"/>                                                                                                                                          
  12360. <action application="export" data="presence_data=x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  12361. <action application="export" data="call_type=0"/>                                                                                                                                                                  
  12362. <action application="set" data="calltype=DID-LOCAL"/>                                                                                                                                                              
  12363. <action application="db" data="insert/pickup_any_group_${callgroup}/7542292398/${uuid}"/>                                                                                                                          
  12364. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  12365. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  12366. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  12367. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  12368. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  12369. <action application="export" data="did_user_domain=metrobus.nebular.co.za"/>                                                                                                                                      
  12370. <action application="sleep" data="1000"/>                                                                                                                                                                          
  12371. <action application="ring_ready"/>                                                                                                                                                                                
  12372. <action application="set" data="sip_h_X-call-type=did"/>                                                                                                                                                          
  12373. <action application="set" data="sip_h_X-did-call-type=DID-LOCAL"/>                                                                                                                                                
  12374. <action application="db" data="insert/pickup_any_group_${callgroup}/7542292398/${uuid}"/>                                                                                                                          
  12375. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  12376. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  12377. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  12378. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  12379. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  12380. <action application="bridge" data="{sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=89}[leg_timeout=20 ] sofia/${sofia_profile_name}/7542292398@metrobus.nebular.co.za"/>                                                                                                                                                                                                
  12381. <action application="sleep" data="1000"/>                                                                                                                                                                          
  12382. <action application="ring_ready"/>                                                                                                                                                                                
  12383. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  12384. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  12385. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  12386. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  12387. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  12388. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  12389. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  12390. <action application="set" data="variable_sip_to_host=metrobus.nebular.co.za"/>                                                                                                                                    
  12391. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  12392. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  12393. <action application="set" data="userinfo_id=89"/>                                                                                                                                                                  
  12394. <action application="set" data="sip_destination_number=7542292398"/>                                                                                                                                              
  12395. <action application="set" data="did_number=7542292398"/>                                                                                                                                                          
  12396. <action application="set" data="user_domain=metrobus.nebular.co.za"/>                                                                                                                                              
  12397. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  12398. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  12399. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  12400. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  12401. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  12402. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  12403. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  12404. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  12405. <action application="set" data="variable_sip_to_host=metrobus.nebular.co.za"/>                                                                                                                                    
  12406. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  12407. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  12408. <action application="set" data="userinfo_id=89"/>                                                                                                                                                                  
  12409. <action application="set" data="sip_destination_number=7542292398"/>                                                                                                                                              
  12410. <action application="set" data="destination_number=0114034300"/>                                                                                                                                                  
  12411. <action application="set" data="did_number=0114034300"/>                                                                                                                                                          
  12412. <action application="set" data="user_domain=metrobus.nebular.co.za"/>                                                                                                                                              
  12413. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  12414. <condition field="${cond(${user_data 7542292398@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  12415. <action application="answer"/>                                                                                                                                                                                    
  12416. <action application="export" data="voicemail_alternate_greet_id=0114034300"/>                                                                                                                                      
  12417. <action application="voicemail" data="default $${domain_name} 7542292398"/>                                                                                                                                        
  12418. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  12419. </condition>                                                                                                                                                                                                      
  12420. </condition>                                                                                                                                                                                                      
  12421. </extension>                                                                                                                                                                                                      
  12422. </context>                                                                                                                                                                                                        
  12423. </section>                                                                                                                                                                                                        
  12424. </document>                                                                                                                                                                                                        
  12425. 2024-03-22 07:54:23.724516 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  12426. Dialplan: sofia/default/027670264866@41.160.32.115:5060 parsing [default->0114034300] continue=false
  12427. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Regex (PASS) [0114034300] destination_number(D9570114034300) =~ /D9570114034300/ break=on-false
  12428. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(effective_destination_number=0114034300)
  12429. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  12430. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  12431. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:23)
  12432. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  12433. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  12434. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(account_id=3)
  12435. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(parent_id=0)
  12436. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(entity_id=3)
  12437. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(call_processed=internal)
  12438. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(call_direction=inbound)
  12439. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(accountname=default)
  12440. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  12441. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(origination_rates_did=ID:4755|CODE:^0114034300.*|DESTINATION:0114034300|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:89)                                                                                                                                                                      
  12442. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(origination_rates=0)
  12443. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(original_caller_id_name=027670264866)
  12444. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(effective_caller_id_name=2727670264866)
  12445. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(receiver_accid=89)
  12446. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(domain_name=metrobus.nebular.co.za)
  12447. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(sip_to_host=metrobus.nebular.co.za)
  12448. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115)
  12449. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(call_type=0)
  12450. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(calltype=DID-LOCAL)
  12451. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7542292398/${uuid})
  12452. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  12453. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  12454. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  12455. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  12456. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  12457. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(did_user_domain=metrobus.nebular.co.za)
  12458. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action sleep(1000)
  12459. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action ring_ready()
  12460. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_h_X-call-type=did)
  12461. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_h_X-did-call-type=DID-LOCAL)
  12462. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7542292398/${uuid})
  12463. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  12464. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  12465. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  12466. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  12467. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  12468. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=89}[leg_timeout=20 ] sofia/${sofia_profile_name}/7542292398@metrobus.nebular.co.za)                                                                                                                                                                
  12469. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action sleep(1000)
  12470. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action ring_ready()
  12471. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_flag=1)
  12472. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_destination=)
  12473. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_flag=1)
  12474. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_destination=)
  12475. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_flag=1)
  12476. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_destination=)
  12477. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_flag=0)
  12478. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(variable_sip_to_host=metrobus.nebular.co.za)
  12479. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  12480. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(leg_timeout=20)
  12481. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(userinfo_id=89)
  12482. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_destination_number=7542292398)
  12483. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(did_number=7542292398)
  12484. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(user_domain=metrobus.nebular.co.za)
  12485. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  12486. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_flag=1)
  12487. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_destination=)
  12488. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_flag=1)
  12489. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_destination=)
  12490. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_flag=1)
  12491. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_destination=)
  12492. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_flag=0)
  12493. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(variable_sip_to_host=metrobus.nebular.co.za)
  12494. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  12495. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(leg_timeout=20)
  12496. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(userinfo_id=89)
  12497. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_destination_number=7542292398)
  12498. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(destination_number=0114034300)
  12499. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(did_number=0114034300)
  12500. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(user_domain=metrobus.nebular.co.za)
  12501. Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  12502. |--- Dialplan: Processing recursive conditions level:1 [0114034300_recur_1] require-nested=TRUE
  12503. |--- Dialplan: sofia/default/027670264866@41.160.32.115:5060 Regex (FAIL) [0114034300_recur_1] ${cond(${user_data 7542292398@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  12504. |--- Dialplan: sofia/default/027670264866@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  12505. 2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:286 (sofia/default/027670264866@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  12506. 2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:643 (sofia/default/027670264866@41.160.32.115:5060) State ROUTING going to sleep
  12507. 2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027670264866@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 65 Tot 575010)
  12508. 2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:650 (sofia/default/027670264866@41.160.32.115:5060) State EXECUTE
  12509. 2024-03-22 07:54:23.744156 [DEBUG] mod_sofia.c:198 sofia/default/027670264866@41.160.32.115:5060 SOFIA EXECUTE
  12510. 2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:328 sofia/default/027670264866@41.160.32.115:5060 Standard EXECUTE
  12511. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(effective_destination_number=0114034300)
  12512. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [effective_destination_number]=[0114034300]
  12513. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  12514. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  12515. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  12516. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  12517. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(callstart=2024-03-22 07:54:23)
  12518. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:23]
  12519. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(hangup_after_bridge=true)
  12520. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [hangup_after_bridge]=[true]
  12521. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(continue_on_fail=TRUE)
  12522. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  12523. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(account_id=3)
  12524. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [account_id]=[3]
  12525. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(parent_id=0)
  12526. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [parent_id]=[0]
  12527. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(entity_id=3)
  12528. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [entity_id]=[3]
  12529. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(call_processed=internal)
  12530. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [call_processed]=[internal]
  12531. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(call_direction=inbound)
  12532. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [call_direction]=[inbound]
  12533. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(accountname=default)
  12534. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [accountname]=[default]
  12535. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  12536. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  12537. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(origination_rates_did=ID:4755|CODE:^0114034300.*|DESTINATION:0114034300|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:89)                                                                                                                                                                              
  12538. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [origination_rates_did]=[ID:4755|CODE:^0114034300.*|DESTINATION:0114034300|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:89]                                                                                                                              
  12539. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(origination_rates=0)
  12540. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [origination_rates]=[0]
  12541. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(original_caller_id_name=027670264866)
  12542. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [original_caller_id_name]=[027670264866]
  12543. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(effective_caller_id_name=2727670264866)
  12544. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [effective_caller_id_name]=[2727670264866]
  12545. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(receiver_accid=89)
  12546. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [receiver_accid]=[89]
  12547. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(domain_name=metrobus.nebular.co.za)
  12548. 2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[metrobus.nebular.co.za]
  12549. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(sip_to_host=metrobus.nebular.co.za)
  12550. 2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[metrobus.nebular.co.za]
  12551. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115)
  12552. 2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115]
  12553. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(call_type=0)
  12554. 2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[0]
  12555. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(calltype=DID-LOCAL)
  12556. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [calltype]=[DID-LOCAL]
  12557. EXECUTE sofia/default/027670264866@41.160.32.115:5060 db(insert/pickup_any_group_/7542292398/65ebda98-e821-11ee-917e-d17fbcf33421)
  12558. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(dialed_extension=transfer_call)
  12559. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  12560. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(dialed_extension=transfer_call)
  12561. 2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  12562. EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  12563. 2024-03-22 07:54:23.744156 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  12564. EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  12565. 2024-03-22 07:54:23.744156 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  12566. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(hangup_after_bridge=true)
  12567. 2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [hangup_after_bridge]=[true]
  12568. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(did_user_domain=metrobus.nebular.co.za)
  12569. 2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[metrobus.nebular.co.za]
  12570. EXECUTE sofia/default/027670264866@41.160.32.115:5060 sleep(1000)
  12571. 2024-03-22 07:54:23.824162 [DEBUG] switch_ivr_bridge.c:546 sofia/default/7682330505@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  12572. 2024-03-22 07:54:23.844155 [DEBUG] switch_ivr.c:623 sofia/default/7682330505@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  12573. EXECUTE sofia/default/7682330505@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  12574. 2024-03-22 07:54:23.844155 [DEBUG] switch_scheduler.c:249 Added task 232844 switch_ivr_schedule_hangup (65c3c63e-e821-11ee-9179-d17fbcf33421) to run at 1711100063
  12575. 2024-03-22 07:54:23.864180 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10496 to 156.38.231.105:10496
  12576. 2024-03-22 07:54:23.904192 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  12577. 2024-03-22 07:54:23.984178 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [ready][200]
  12578. EXECUTE sofia/default/027670264866@41.160.32.115:5060 ring_ready()
  12579. 2024-03-22 07:54:24.764189 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/027670264866@41.160.32.115:5060!
  12580. 2024-03-22 07:54:24.764189 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [early][180]
  12581. 2024-03-22 07:54:24.764189 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/027670264866@41.160.32.115:5060!
  12582. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(sip_h_X-call-type=did)
  12583. 2024-03-22 07:54:24.764189 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [sip_h_X-call-type]=[did]
  12584. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(sip_h_X-did-call-type=DID-LOCAL)
  12585. 2024-03-22 07:54:24.764189 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [sip_h_X-did-call-type]=[DID-LOCAL]
  12586. EXECUTE sofia/default/027670264866@41.160.32.115:5060 db(insert/pickup_any_group_/7542292398/65ebda98-e821-11ee-917e-d17fbcf33421)
  12587. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(dialed_extension=transfer_call)
  12588. 2024-03-22 07:54:24.764189 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  12589. EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(dialed_extension=transfer_call)
  12590. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  12591. EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  12592. 2024-03-22 07:54:24.764189 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  12593. EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  12594. 2024-03-22 07:54:24.764189 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  12595. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(hangup_after_bridge=true)
  12596. 2024-03-22 07:54:24.764189 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [hangup_after_bridge]=[true]
  12597. EXECUTE sofia/default/027670264866@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=89}[leg_timeout=20 ] sofia/default/7542292398@metrobus.nebular.co.za)                                                                                                                                                                                      
  12598. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[metrobus.nebular.co.za] to event
  12599. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[metrobus.nebular.co.za] to event
  12600. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                    
  12601. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[0] to event
  12602. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  12603. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[metrobus.nebular.co.za] to event
  12604. 2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1250 sofia/default/027670264866@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  12605. 2024-03-22 07:54:24.764189 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  12606. 2024-03-22 07:54:24.764189 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  12607. 2024-03-22 07:54:24.764189 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7542292398@metrobus.nebular.co.za [66966f30-e821-11ee-91af-d17fbcf33421]
  12608. 2024-03-22 07:54:24.764189 [DEBUG] mod_sofia.c:4819 (sofia/default/7542292398@metrobus.nebular.co.za) State Change CS_NEW -> CS_INIT
  12609. 2024-03-22 07:54:24.764189 [DEBUG] switch_ivr_originate.c:2963 sofia/default/7542292398@metrobus.nebular.co.za Setting leg timeout to 20
  12610. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7542292398@metrobus.nebular.co.za) Running State Change CS_INIT (Cur 66 Tot 575011)
  12611. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7542292398@metrobus.nebular.co.za) State INIT
  12612. 2024-03-22 07:54:24.764189 [DEBUG] mod_sofia.c:90 sofia/default/7542292398@metrobus.nebular.co.za SOFIA INIT
  12613. 2024-03-22 07:54:24.764189 [DEBUG] sofia_glue.c:1295 sofia/default/7542292398@metrobus.nebular.co.za sending invite version: 1.6.20  64bit
  12614. Local SDP:                                                                                                                                                                                                        
  12615. v=0                                                                                                                                                                                                                
  12616. o=FreeSWITCH 1711064626 1711064627 IN IP4 156.38.231.107                                                                                                                                                          
  12617. s=FreeSWITCH                                                                                                                                                                                                      
  12618. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  12619. t=0 0                                                                                                                                                                                                              
  12620. m=audio 29438 RTP/AVP 18 101                                                                                                                                                                                      
  12621. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  12622. a=fmtp:18 annexb=no                                                                                                                                                                                                
  12623. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12624. a=fmtp:101 0-16                                                                                                                                                                                                    
  12625. a=ptime:20                                                                                                                                                                                                        
  12626. a=sendrecv                                                                                                                                                                                                        
  12627.  
  12628. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:40 sofia/default/7542292398@metrobus.nebular.co.za Standard INIT
  12629. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7542292398@metrobus.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  12630. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7542292398@metrobus.nebular.co.za) State INIT going to sleep
  12631. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7542292398@metrobus.nebular.co.za) Running State Change CS_ROUTING (Cur 66 Tot 575011)
  12632. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7542292398@metrobus.nebular.co.za) State ROUTING
  12633. 2024-03-22 07:54:24.764189 [DEBUG] mod_sofia.c:143 sofia/default/7542292398@metrobus.nebular.co.za SOFIA ROUTING
  12634. 2024-03-22 07:54:24.764189 [DEBUG] switch_ivr_originate.c:67 (sofia/default/7542292398@metrobus.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  12635. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7542292398@metrobus.nebular.co.za) State ROUTING going to sleep
  12636. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7542292398@metrobus.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 66 Tot 575011)
  12637. 2024-03-22 07:54:24.764189 [DEBUG] sofia.c:7084 Channel sofia/default/7542292398@metrobus.nebular.co.za entering state [calling][0]
  12638. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7542292398@metrobus.nebular.co.za) State CONSUME_MEDIA
  12639. 2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7542292398@metrobus.nebular.co.za) State CONSUME_MEDIA going to sleep
  12640. 2024-03-22 07:54:24.824181 [NOTICE] sofia.c:1012 Hangup sofia/default/+27101360423@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  12641. 2024-03-22 07:54:24.824181 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27101360423@41.160.32.115:5060]
  12642. 2024-03-22 07:54:24.844161 [DEBUG] switch_ivr_bridge.c:706 sofia/default/+27101360423@41.160.32.115:5060 ending bridge by request from write function
  12643. 2024-03-22 07:54:24.844161 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0124315000@sip.saqa.ocularcloud.com]
  12644. 2024-03-22 07:54:24.844161 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0124315000@sip.saqa.ocularcloud.com [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  12645. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State EXCHANGE_MEDIA going to sleep
  12646. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Running State Change CS_HANGUP (Cur 66 Tot 575011)
  12647. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Callstate Change ACTIVE -> HANGUP
  12648. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State HANGUP
  12649. 2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:432 sofia/default/0124315000@sip.saqa.ocularcloud.com Overriding SIP cause 480 with 200 from the other leg
  12650. 2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:438 Channel sofia/default/0124315000@sip.saqa.ocularcloud.com hanging up, cause: NORMAL_CLEARING
  12651. 2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0124315000@sip.saqa.ocularcloud.com
  12652. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:60 sofia/default/0124315000@sip.saqa.ocularcloud.com Standard HANGUP, cause: NORMAL_CLEARING
  12653. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State HANGUP going to sleep
  12654. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State Change CS_HANGUP -> CS_REPORTING
  12655. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Running State Change CS_REPORTING (Cur 66 Tot 575011)
  12656. 2024-03-22 07:54:24.844161 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0124315000@sip.saqa.ocularcloud.com skip receive message [UNBRIDGE] (channel is hungup already)
  12657. 2024-03-22 07:54:24.844161 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/+27101360423@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  12658. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State REPORTING
  12659. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_session.c:2815 sofia/default/+27101360423@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  12660. 2024-03-22 07:54:24.844161 [INFO] mod_json_cdr.c:271 Process [13283fdc-e820-11ee-aeef-d17fbcf33421.cdr.json]
  12661. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27101360423@41.160.32.115:5060) State EXECUTE going to sleep
  12662. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27101360423@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 66 Tot 575011)
  12663. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:850 (sofia/default/+27101360423@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  12664. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27101360423@41.160.32.115:5060) State HANGUP
  12665. 2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:438 Channel sofia/default/+27101360423@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  12666. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:60 sofia/default/+27101360423@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  12667. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27101360423@41.160.32.115:5060) State HANGUP going to sleep
  12668. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:619 (sofia/default/+27101360423@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  12669. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27101360423@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 66 Tot 575011)
  12670. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27101360423@41.160.32.115:5060) State REPORTING
  12671. 2024-03-22 07:54:24.844161 [INFO] mod_json_cdr.c:271 Process [131cfb5e-e820-11ee-aed2-d17fbcf33421.cdr.json]
  12672. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:174 sofia/default/0124315000@sip.saqa.ocularcloud.com Standard REPORTING, cause: NORMAL_CLEARING
  12673. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State REPORTING going to sleep
  12674. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State Change CS_REPORTING -> CS_DESTROY
  12675. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_session.c:1665 Session 574604 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Locked, Waiting on external entities
  12676. 2024-03-22 07:54:24.844161 [NOTICE] switch_core_session.c:1683 Session 574604 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Ended
  12677. 2024-03-22 07:54:24.844161 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0124315000@sip.saqa.ocularcloud.com [CS_DESTROY]
  12678. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Running State Change CS_DESTROY (Cur 65 Tot 575011)
  12679. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State DESTROY
  12680. 2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:343 sofia/default/0124315000@sip.saqa.ocularcloud.com SOFIA DESTROY
  12681. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:181 sofia/default/0124315000@sip.saqa.ocularcloud.com Standard DESTROY
  12682. 2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State DESTROY going to sleep
  12683. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:174 sofia/default/+27101360423@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  12684. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27101360423@41.160.32.115:5060) State REPORTING going to sleep
  12685. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:610 (sofia/default/+27101360423@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  12686. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_session.c:1665 Session 574603 (sofia/default/+27101360423@41.160.32.115:5060) Locked, Waiting on external entities
  12687. 2024-03-22 07:54:24.864159 [NOTICE] switch_core_session.c:1683 Session 574603 (sofia/default/+27101360423@41.160.32.115:5060) Ended
  12688. 2024-03-22 07:54:24.864159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/+27101360423@41.160.32.115:5060 [CS_DESTROY]
  12689. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:741 (sofia/default/+27101360423@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 64 Tot 575011)
  12690. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27101360423@41.160.32.115:5060) State DESTROY
  12691. 2024-03-22 07:54:24.864159 [DEBUG] mod_sofia.c:343 sofia/default/+27101360423@41.160.32.115:5060 SOFIA DESTROY
  12692. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27101360423@41.160.32.115:5060 Standard DESTROY
  12693. 2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27101360423@41.160.32.115:5060) State DESTROY going to sleep
  12694. 2024-03-22 07:54:25.344188 [DEBUG] switch_scheduler.c:144 Deleting task 232681 switch_ivr_schedule_hangup (13283fdc-e820-11ee-aeef-d17fbcf33421)
  12695. 2024-03-22 07:54:25.764173 [NOTICE] sofia.c:1012 Hangup sofia/default/0638698412@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  12696. 2024-03-22 07:54:25.764173 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0638698412@41.160.32.115:5060]
  12697. 2024-03-22 07:54:25.784171 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0638698412@41.160.32.115:5060 ending bridge by request from write function
  12698. 2024-03-22 07:54:25.784171 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/4607597910@legalaidsa.nebular.co.za]
  12699. 2024-03-22 07:54:25.784171 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/4607597910@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  12700. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:653 (sofia/default/4607597910@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  12701. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 64 Tot 575011)
  12702. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  12703. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP
  12704. 2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:432 sofia/default/4607597910@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  12705. 2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:438 Channel sofia/default/4607597910@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  12706. 2024-03-22 07:54:25.784171 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/4607597910@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  12707. 2024-03-22 07:54:25.784171 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/0638698412@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  12708. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_session.c:2815 sofia/default/0638698412@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  12709. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0638698412@41.160.32.115:5060) State EXECUTE going to sleep
  12710. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0638698412@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 64 Tot 575011)
  12711. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0638698412@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  12712. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0638698412@41.160.32.115:5060) State HANGUP
  12713. 2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:438 Channel sofia/default/0638698412@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  12714. 2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/4607597910@legalaidsa.nebular.co.za
  12715. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:60 sofia/default/4607597910@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  12716. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP going to sleep
  12717. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:619 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  12718. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 64 Tot 575011)
  12719. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING
  12720. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:60 sofia/default/0638698412@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  12721. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0638698412@41.160.32.115:5060) State HANGUP going to sleep
  12722. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0638698412@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  12723. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0638698412@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 64 Tot 575011)
  12724. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0638698412@41.160.32.115:5060) State REPORTING
  12725. 2024-03-22 07:54:25.784171 [INFO] mod_json_cdr.c:271 Process [28f32a42-e821-11ee-8b27-d17fbcf33421.cdr.json]
  12726. 2024-03-22 07:54:25.784171 [INFO] mod_json_cdr.c:271 Process [2848ca48-e821-11ee-8ad8-d17fbcf33421.cdr.json]
  12727. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:174 sofia/default/4607597910@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  12728. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING going to sleep
  12729. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:610 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  12730. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_session.c:1665 Session 574935 (sofia/default/4607597910@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  12731. 2024-03-22 07:54:25.784171 [NOTICE] switch_core_session.c:1683 Session 574935 (sofia/default/4607597910@legalaidsa.nebular.co.za) Ended
  12732. 2024-03-22 07:54:25.784171 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/4607597910@legalaidsa.nebular.co.za [CS_DESTROY]
  12733. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:741 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 63 Tot 575011)
  12734. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY
  12735. 2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:343 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA DESTROY
  12736. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:181 sofia/default/4607597910@legalaidsa.nebular.co.za Standard DESTROY
  12737. 2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY going to sleep
  12738. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:174 sofia/default/0638698412@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  12739. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0638698412@41.160.32.115:5060) State REPORTING going to sleep
  12740. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0638698412@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  12741. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_session.c:1665 Session 574932 (sofia/default/0638698412@41.160.32.115:5060) Locked, Waiting on external entities
  12742. 2024-03-22 07:54:25.804165 [NOTICE] switch_core_session.c:1683 Session 574932 (sofia/default/0638698412@41.160.32.115:5060) Ended
  12743. 2024-03-22 07:54:25.804165 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0638698412@41.160.32.115:5060 [CS_DESTROY]
  12744. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0638698412@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 62 Tot 575011)
  12745. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0638698412@41.160.32.115:5060) State DESTROY
  12746. 2024-03-22 07:54:25.804165 [DEBUG] mod_sofia.c:343 sofia/default/0638698412@41.160.32.115:5060 SOFIA DESTROY
  12747. 2024-03-22 07:54:25.804165 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda818e0e0 0x7feda818e0e0
  12748. 2024-03-22 07:54:25.804165 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda818e0e0 0x7feda818e0e0
  12749. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:181 sofia/default/0638698412@41.160.32.115:5060 Standard DESTROY
  12750. 2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0638698412@41.160.32.115:5060) State DESTROY going to sleep
  12751. 2024-03-22 07:54:25.844177 [DEBUG] switch_scheduler.c:144 Deleting task 232815 switch_ivr_schedule_hangup (28f32a42-e821-11ee-8b27-d17fbcf33421)
  12752. 2024-03-22 07:54:26.304190 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0791373341@41.160.32.115:5060 [6781adc4-e821-11ee-91b3-d17fbcf33421]
  12753. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0791373341@41.160.32.115:5060) Running State Change CS_NEW (Cur 63 Tot 575012)
  12754. 2024-03-22 07:54:26.304190 [DEBUG] sofia.c:9873 sofia/default/0791373341@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  12755. 2024-03-22 07:54:26.304190 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  12756. 2024-03-22 07:54:26.304190 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [received][100]
  12757. 2024-03-22 07:54:26.304190 [DEBUG] sofia.c:7094 Remote SDP:
  12758. v=0                                                                                                                                                                                                                
  12759. o=HuaweiSoftX3000 75137436244130 75137436244130 IN IP4 41.160.32.115                                                                                                                                              
  12760. s=-                                                                                                                                                                                                                
  12761. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  12762. t=0 0                                                                                                                                                                                                              
  12763. m=audio 24820 RTP/AVP 18 8 101                                                                                                                                                                                    
  12764. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  12765. a=fmtp:18 annexb=no                                                                                                                                                                                                
  12766. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  12767. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  12768. a=fmtp:101 0-15                                                                                                                                                                                                    
  12769. a=ptime:20                                                                                                                                                                                                        
  12770.  
  12771. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  12772. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  12773. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  12774. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  12775. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  12776. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  12777. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  12778. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  12779. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  12780. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  12781. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  12782. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  12783. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0791373341@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  12784. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_codec.c:111 sofia/default/0791373341@41.160.32.115:5060 Original read codec set to G729:18
  12785. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  12786. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4767 sofia/default/0791373341@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  12787. 2024-03-22 07:54:26.304190 [DEBUG] sofia.c:7507 (sofia/default/0791373341@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  12788. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0791373341@41.160.32.115:5060) State NEW
  12789. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0791373341@41.160.32.115:5060) Running State Change CS_INIT (Cur 63 Tot 575012)
  12790. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0791373341@41.160.32.115:5060) State INIT
  12791. 2024-03-22 07:54:26.304190 [DEBUG] mod_sofia.c:90 sofia/default/0791373341@41.160.32.115:5060 SOFIA INIT
  12792. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:40 sofia/default/0791373341@41.160.32.115:5060 Standard INIT
  12793. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0791373341@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  12794. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0791373341@41.160.32.115:5060) State INIT going to sleep
  12795. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0791373341@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 63 Tot 575012)
  12796. 2024-03-22 07:54:26.304190 [DEBUG] switch_channel.c:2249 (sofia/default/0791373341@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  12797. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0791373341@41.160.32.115:5060) State ROUTING
  12798. 2024-03-22 07:54:26.304190 [DEBUG] mod_sofia.c:143 sofia/default/0791373341@41.160.32.115:5060 SOFIA ROUTING
  12799. 2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:236 sofia/default/0791373341@41.160.32.115:5060 Standard ROUTING
  12800. 2024-03-22 07:54:26.304190 [INFO] mod_dialplan_xml.c:637 Processing 0791373341 <0791373341>->D9570538322348 in context default
  12801. 2024-03-22 07:54:26.304190 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  12802. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  12803. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  12804. 2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  12805. 2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570538322348
  12806. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570538322348' limit 1
  12807. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570538322348' AND status=0 limit 1
  12808. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570538322348' and status=0 LIMIT 1                                                                                                                                                                                                      
  12809. 2024-03-22 07:54:26.324165 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  12810. 2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0791373341 / <null>
  12811. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570538322348" LIMIT 1                                                                                                                                                          
  12812. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [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="D9570538322348"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  12813. 2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  12814. 2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  12815. 2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  12816. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570538322348.*' OR blocked_patterns = '^D957053832234.*' OR blocked_patterns = '^D95705383223.*' OR blocked_patterns = '^D9570538322.*' OR blocked_patterns = '^D957053832.*' OR blocked_patterns = '^D95705383.*' OR blocked_patterns = '^D9570538.*' OR blocked_patterns = '^D957053.*' OR blocked_patterns = '^D95705.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  12817. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570538322348" AND (accountid = 0 OR status = 1) LIMIT 1
  12818. 2024-03-22 07:54:26.344336 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  12819. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  12820. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570538322348
  12821. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570538322348
  12822. 2024-03-22 07:54:26.344336 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570538322348
  12823. 2024-03-22 07:54:26.344336 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0538322348
  12824. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [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 = '^0538322348.*' OR patterns = '^053832234.*' OR patterns = '^05383223.*' OR patterns = '^0538322.*' OR patterns = '^053832.*' OR patterns = '^05383.*' OR patterns = '^0538.*' OR patterns = '^053.*' OR patterns = '^05.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  12825. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [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 ="0538322348" AND A.accountid = '3' limit 1                                                                                                                                                                          
  12826. 2024-03-22 07:54:26.344336 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0538322348
  12827. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [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 ="0538322348" LIMIT 1                                                                                                                                                              
  12828. 2024-03-22 07:54:26.344336 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  12829. 2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0538322348' OR number = '053832234' OR number = '05383223' OR number = '0538322' OR number = '053832' OR number = '05383' OR number = '0538' OR number = '053' OR number = '05' OR number = '0' OR number ='--') OR (number = '0538322348*' OR number = '053832234*' OR number = '05383223*' OR number = '0538322*' OR number = '053832*' OR number = '05383*' OR number = '0538*' OR number = '053*' OR number = '05*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  12830. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  12831. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0538322348' OR routing_prefix = '053832234' OR routing_prefix = '05383223' OR routing_prefix = '0538322' OR routing_prefix = '053832' OR routing_prefix = '05383' OR routing_prefix = '0538' OR routing_prefix = '053' OR routing_prefix = '05' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  12832. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  12833. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  12834. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  12835. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  12836. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  12837. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  12838. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  12839. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  12840. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  12841. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  12842. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [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 ="0538322348" LIMIT 1                                                                                                                                                              
  12843. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  12844. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  12845. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8483
  12846. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  12847. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  12848. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  12849. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0538322348
  12850. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  12851. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  12852. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  12853. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  12854. 2024-03-22 07:54:26.364204 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  12855. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  12856. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  12857. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  12858. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  12859. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  12860. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  12861. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  12862. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  12863. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  12864. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  12865. 2024-03-22 07:54:26.364204 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  12866. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  12867. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  12868. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  12869. 2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  12870. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0791373341
  12871. 2024-03-22 07:54:26.364204 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0791373341
  12872. 2024-03-22 07:54:26.364204 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27791373341
  12873. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  12874. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  12875. 2024-03-22 07:54:26.364204 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  12876. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  12877. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [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="6846529717"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  12878. 2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1435 limit 1
  12879. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  12880. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  12881. 2024-03-22 07:54:26.384159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  12882. 2024-03-22 07:54:26.384159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  12883. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  12884. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  12885. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='6846529717' and uuid = '6781adc4-e821-11ee-91b3-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  12886. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='6846529717' order by id desc limit 1
  12887. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [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="6846529717"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  12888. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1435 limit 1
  12889. 2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  12890. <document type="freeswitch/xml">                                                                                                                                                                                  
  12891. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  12892. <context name="default">                                                                                                                                                                                          
  12893. <extension name="0538322348">                                                                                                                                                                                      
  12894. <condition field="destination_number" expression="D9570538322348">                                                                                                                                                
  12895. <action application="set" data="effective_destination_number=0538322348"/>                                                                                                                                        
  12896. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  12897. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  12898. <action application="set" data="callstart=2024-03-22 07:54:26"/>                                                                                                                                                  
  12899. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  12900. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  12901. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  12902. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  12903. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  12904. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  12905. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  12906. <action application="set" data="accountname=default"/>                                                                                                                                                            
  12907. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  12908. <action application="set" data="origination_rates_did=ID:8483|CODE:^0538322348.*|DESTINATION:0538322348|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  12909. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  12910. <action application="set" data="original_caller_id_name=0791373341"/>                                                                                                                                              
  12911. <action application="set" data="effective_caller_id_name=27791373341"/>                                                                                                                                            
  12912. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  12913. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  12914. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  12915. <action application="export" data="presence_data=x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  12916. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  12917. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  12918. <action application="db" data="insert/pickup_any_group_${callgroup}/6846529717/${uuid}"/>                                                                                                                          
  12919. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  12920. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  12921. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  12922. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  12923. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  12924. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  12925. <action application="sleep" data="1000"/>                                                                                                                                                                          
  12926. <action application="ring_ready"/>                                                                                                                                                                                
  12927. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/6846529717@legalaidsa.nebular.co.za^0538322348"/>                                                      
  12928. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  12929. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  12930. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  12931. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  12932. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  12933. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  12934. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  12935. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  12936. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  12937. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  12938. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  12939. <action application="set" data="sip_destination_number=6846529717"/>                                                                                                                                              
  12940. <action application="set" data="destination_number=0538322348"/>                                                                                                                                                  
  12941. <action application="set" data="did_number=0538322348"/>                                                                                                                                                          
  12942. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  12943. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  12944. <condition field="${cond(${user_data 6846529717@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  12945. <action application="answer"/>                                                                                                                                                                                    
  12946. <action application="export" data="voicemail_alternate_greet_id=0538322348"/>                                                                                                                                      
  12947. <action application="voicemail" data="default $${domain_name} 6846529717"/>                                                                                                                                        
  12948. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  12949. </condition>                                                                                                                                                                                                      
  12950. </condition>                                                                                                                                                                                                      
  12951. </extension>                                                                                                                                                                                                      
  12952. </context>                                                                                                                                                                                                        
  12953. </section>                                                                                                                                                                                                        
  12954. </document>                                                                                                                                                                                                        
  12955. 2024-03-22 07:54:26.384159 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  12956. Dialplan: sofia/default/0791373341@41.160.32.115:5060 parsing [default->0538322348] continue=false
  12957. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Regex (PASS) [0538322348] destination_number(D9570538322348) =~ /D9570538322348/ break=on-false
  12958. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(effective_destination_number=0538322348)
  12959. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  12960. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  12961. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:26)
  12962. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  12963. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  12964. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(account_id=3)
  12965. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(parent_id=0)
  12966. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(entity_id=3)
  12967. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(call_processed=internal)
  12968. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(call_direction=inbound)
  12969. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(accountname=default)
  12970. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  12971. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(origination_rates_did=ID:8483|CODE:^0538322348.*|DESTINATION:0538322348|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  12972. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(origination_rates=0)
  12973. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(original_caller_id_name=0791373341)
  12974. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(effective_caller_id_name=27791373341)
  12975. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(receiver_accid=109)
  12976. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  12977. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  12978. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115)
  12979. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(call_type=5)
  12980. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(calltype=SIP-DID)
  12981. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/6846529717/${uuid})
  12982. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  12983. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  12984. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  12985. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  12986. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  12987. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  12988. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action sleep(1000)
  12989. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action ring_ready()
  12990. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/6846529717@legalaidsa.nebular.co.za^0538322348)
  12991. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(on_busy_flag=1)
  12992. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(on_busy_destination=)
  12993. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(no_answer_flag=1)
  12994. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(no_answer_destination=)
  12995. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(not_register_flag=1)
  12996. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(not_register_destination=)
  12997. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(opensips_flag=0)
  12998. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  12999. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  13000. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(leg_timeout=20)
  13001. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(userinfo_id=109)
  13002. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(sip_destination_number=6846529717)
  13003. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(destination_number=0538322348)
  13004. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(did_number=0538322348)
  13005. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  13006. Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  13007. |--- Dialplan: Processing recursive conditions level:1 [0538322348_recur_1] require-nested=TRUE
  13008. |--- Dialplan: sofia/default/0791373341@41.160.32.115:5060 Regex (FAIL) [0538322348_recur_1] ${cond(${user_data 6846529717@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  13009. |--- Dialplan: sofia/default/0791373341@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  13010. 2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0791373341@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  13011. 2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0791373341@41.160.32.115:5060) State ROUTING going to sleep
  13012. 2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0791373341@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 63 Tot 575012)
  13013. 2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0791373341@41.160.32.115:5060) State EXECUTE
  13014. 2024-03-22 07:54:26.404159 [DEBUG] mod_sofia.c:198 sofia/default/0791373341@41.160.32.115:5060 SOFIA EXECUTE
  13015. 2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:328 sofia/default/0791373341@41.160.32.115:5060 Standard EXECUTE
  13016. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(effective_destination_number=0538322348)
  13017. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [effective_destination_number]=[0538322348]
  13018. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  13019. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  13020. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  13021. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  13022. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(callstart=2024-03-22 07:54:26)
  13023. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:26]
  13024. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(hangup_after_bridge=true)
  13025. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [hangup_after_bridge]=[true]
  13026. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(continue_on_fail=TRUE)
  13027. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  13028. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(account_id=3)
  13029. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [account_id]=[3]
  13030. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(parent_id=0)
  13031. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [parent_id]=[0]
  13032. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(entity_id=3)
  13033. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [entity_id]=[3]
  13034. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(call_processed=internal)
  13035. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [call_processed]=[internal]
  13036. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(call_direction=inbound)
  13037. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [call_direction]=[inbound]
  13038. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(accountname=default)
  13039. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [accountname]=[default]
  13040. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  13041. 2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  13042. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(origination_rates_did=ID:8483|CODE:^0538322348.*|DESTINATION:0538322348|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  13043. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [origination_rates_did]=[ID:8483|CODE:^0538322348.*|DESTINATION:0538322348|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  13044. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(origination_rates=0)
  13045. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [origination_rates]=[0]
  13046. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(original_caller_id_name=0791373341)
  13047. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [original_caller_id_name]=[0791373341]
  13048. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(effective_caller_id_name=27791373341)
  13049. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [effective_caller_id_name]=[27791373341]
  13050. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(receiver_accid=109)
  13051. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [receiver_accid]=[109]
  13052. EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  13053. 2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  13054. EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  13055. 2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  13056. EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115)
  13057. 2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115]
  13058. EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(call_type=5)
  13059. 2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  13060. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(calltype=SIP-DID)
  13061. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [calltype]=[SIP-DID]
  13062. EXECUTE sofia/default/0791373341@41.160.32.115:5060 db(insert/pickup_any_group_/6846529717/6781adc4-e821-11ee-91b3-d17fbcf33421)
  13063. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(dialed_extension=transfer_call)
  13064. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  13065. EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(dialed_extension=transfer_call)
  13066. 2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  13067. EXECUTE sofia/default/0791373341@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  13068. 2024-03-22 07:54:26.425308 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  13069. EXECUTE sofia/default/0791373341@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  13070. 2024-03-22 07:54:26.425308 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  13071. EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(hangup_after_bridge=true)
  13072. 2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [hangup_after_bridge]=[true]
  13073. EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  13074. 2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  13075. EXECUTE sofia/default/0791373341@41.160.32.115:5060 sleep(1000)
  13076. EXECUTE sofia/default/0791373341@41.160.32.115:5060 ring_ready()
  13077. 2024-03-22 07:54:27.424176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0791373341@41.160.32.115:5060!
  13078. 2024-03-22 07:54:27.424176 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [early][180]
  13079. 2024-03-22 07:54:27.424176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0791373341@41.160.32.115:5060!
  13080. EXECUTE sofia/default/0791373341@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/6846529717@legalaidsa.nebular.co.za^0538322348)
  13081. 2024-03-22 07:54:27.424176 [DEBUG] switch_channel.c:1250 sofia/default/0791373341@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  13082. 2024-03-22 07:54:27.424176 [DEBUG] switch_channel.c:1250 sofia/default/0791373341@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  13083. 2024-03-22 07:54:27.424176 [DEBUG] switch_channel.c:1250 sofia/default/0791373341@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  13084. 2024-03-22 07:54:27.424176 [DEBUG] switch_channel.c:1250 sofia/default/0791373341@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  13085. 2024-03-22 07:54:27.424176 [DEBUG] switch_channel.c:1250 sofia/default/0791373341@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  13086. 2024-03-22 07:54:27.424176 [DEBUG] switch_channel.c:1250 sofia/default/0791373341@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  13087. 2024-03-22 07:54:27.424176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  13088. 2024-03-22 07:54:27.424176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  13089. 2024-03-22 07:54:27.424176 [NOTICE] switch_channel.c:1104 New Channel sofia/default/6846529717@legalaidsa.nebular.co.za [682ce18a-e821-11ee-91db-d17fbcf33421]
  13090. 2024-03-22 07:54:27.424176 [DEBUG] mod_sofia.c:4819 (sofia/default/6846529717@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  13091. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6846529717@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 64 Tot 575013)
  13092. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6846529717@legalaidsa.nebular.co.za) State INIT
  13093. 2024-03-22 07:54:27.424176 [DEBUG] mod_sofia.c:90 sofia/default/6846529717@legalaidsa.nebular.co.za SOFIA INIT
  13094. 2024-03-22 07:54:27.424176 [DEBUG] sofia_glue.c:1295 sofia/default/6846529717@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  13095. Local SDP:                                                                                                                                                                                                        
  13096. v=0                                                                                                                                                                                                                
  13097. o=FreeSWITCH 1711068151 1711068152 IN IP4 156.38.231.107                                                                                                                                                          
  13098. s=FreeSWITCH                                                                                                                                                                                                      
  13099. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  13100. t=0 0                                                                                                                                                                                                              
  13101. m=audio 25916 RTP/AVP 18 101                                                                                                                                                                                      
  13102. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  13103. a=fmtp:18 annexb=no                                                                                                                                                                                                
  13104. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13105. a=fmtp:101 0-16                                                                                                                                                                                                    
  13106. a=ptime:20                                                                                                                                                                                                        
  13107. a=sendrecv                                                                                                                                                                                                        
  13108.  
  13109. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:40 sofia/default/6846529717@legalaidsa.nebular.co.za Standard INIT
  13110. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:48 (sofia/default/6846529717@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  13111. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6846529717@legalaidsa.nebular.co.za) State INIT going to sleep
  13112. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6846529717@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 64 Tot 575013)
  13113. 2024-03-22 07:54:27.424176 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [calling][0]
  13114. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6846529717@legalaidsa.nebular.co.za) State ROUTING
  13115. 2024-03-22 07:54:27.424176 [DEBUG] mod_sofia.c:143 sofia/default/6846529717@legalaidsa.nebular.co.za SOFIA ROUTING
  13116. 2024-03-22 07:54:27.424176 [DEBUG] switch_ivr_originate.c:67 (sofia/default/6846529717@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  13117. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6846529717@legalaidsa.nebular.co.za) State ROUTING going to sleep
  13118. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6846529717@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 64 Tot 575013)
  13119. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/6846529717@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  13120. 2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/6846529717@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  13121. 2024-03-22 07:54:27.724180 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [proceeding][180]
  13122. 2024-03-22 07:54:27.724180 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/6846529717@legalaidsa.nebular.co.za!
  13123. 2024-03-22 07:54:27.724180 [DEBUG] switch_channel.c:3346 (sofia/default/6846529717@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  13124. 2024-03-22 07:54:27.744163 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0791373341@41.160.32.115:5060!
  13125. 2024-03-22 07:54:28.444156 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [68c6649a-e821-11ee-91df-d17fbcf33421]
  13126. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 65 Tot 575014)
  13127. 2024-03-22 07:54:28.444156 [DEBUG] sofia.c:9873 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  13128. 2024-03-22 07:54:28.444156 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  13129. 2024-03-22 07:54:28.444156 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [received][100]
  13130. 2024-03-22 07:54:28.444156 [DEBUG] sofia.c:7094 Remote SDP:
  13131. v=0                                                                                                                                                                                                                
  13132. o=3cxPS 386681274368 330276274177 IN IP4 156.38.150.6                                                                                                                                                              
  13133. s=3cxPS Audio call                                                                                                                                                                                                
  13134. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  13135. t=0 0                                                                                                                                                                                                              
  13136. m=audio 9000 RTP/AVP 8 0 9 18 101                                                                                                                                                                                  
  13137. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  13138. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  13139. a=rtpmap:9 G722/8000                                                                                                                                                                                              
  13140. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  13141. a=fmtp:18 annexb=no                                                                                                                                                                                                
  13142. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13143.  
  13144. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  13145. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  13146. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  13147. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  13148. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  13149. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  13150. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  13151. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  13152. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  13153. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  13154. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  13155. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  13156. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  13157. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  13158. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  13159. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  13160. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  13161. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  13162. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  13163. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  13164. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  13165. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0458073204@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  13166. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_codec.c:111 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  13167. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  13168. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4767 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  13169. 2024-03-22 07:54:28.444156 [DEBUG] sofia.c:7507 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  13170. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State NEW
  13171. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 65 Tot 575014)
  13172. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State INIT
  13173. 2024-03-22 07:54:28.444156 [DEBUG] mod_sofia.c:90 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 SOFIA INIT
  13174. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:40 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Standard INIT
  13175. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  13176. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  13177. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 65 Tot 575014)
  13178. 2024-03-22 07:54:28.444156 [DEBUG] switch_channel.c:2249 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  13179. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State ROUTING
  13180. 2024-03-22 07:54:28.444156 [DEBUG] mod_sofia.c:143 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  13181. 2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:236 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Standard ROUTING
  13182. 2024-03-22 07:54:28.444156 [INFO] mod_dialplan_xml.c:637 Processing 0458073204 <0458073204>->0645582716 in context default
  13183. 2024-03-22 07:54:28.444156 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  13184. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  13185. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  13186. 2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  13187. 2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0645582716
  13188. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0645582716' limit 1
  13189. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0645582716' AND status=0 limit 1
  13190. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0645582716' and status=0 LIMIT 1                                                                                                                                                                                                          
  13191. 2024-03-22 07:54:28.444156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  13192. 2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0458073204 / 0458073204
  13193. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [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 ="0645582716" LIMIT 1                                                                                                                                                              
  13194. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [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="0645582716"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  13195. 2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  13196. 2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  13197. 2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  13198. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0645582716.*' OR blocked_patterns = '^064558271.*' OR blocked_patterns = '^06455827.*' OR blocked_patterns = '^0645582.*' OR blocked_patterns = '^064558.*' OR blocked_patterns = '^06455.*' OR blocked_patterns = '^0645.*' OR blocked_patterns = '^064.*' OR blocked_patterns = '^06.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 109 limit 1                                                                                                                      
  13199. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0645582716" AND (accountid = 0 OR status = 1) LIMIT 1
  13200. 2024-03-22 07:54:28.464215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  13201. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  13202. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0645582716
  13203. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0645582716
  13204. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [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 = '^0645582716.*' OR patterns = '^064558271.*' OR patterns = '^06455827.*' OR patterns = '^0645582.*' OR patterns = '^064558.*' OR patterns = '^06455.*' OR patterns = '^0645.*' OR patterns = '^064.*' OR patterns = '^06.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  13205. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [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 ="0645582716" AND A.accountid = '109' limit 1                                                                                                                                                                        
  13206. 2024-03-22 07:54:28.464215 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0645582716
  13207. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [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 ="0645582716" LIMIT 1                                                                                                                                                              
  13208. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [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="0645582716"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  13209. 2024-03-22 07:54:28.464215 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
  13210. 2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0645582716' OR number = '064558271' OR number = '06455827' OR number = '0645582' OR number = '064558' OR number = '06455' OR number = '0645' OR number = '064' OR number = '06' OR number = '0' OR number ='--') OR (number = '0645582716*' OR number = '064558271*' OR number = '06455827*' OR number = '0645582*' OR number = '064558*' OR number = '06455*' OR number = '0645*' OR number = '064*' OR number = '06*' OR number = '0*' OR number ='--') OR (number = '0458073204' OR number = '045807320' OR number = '04580732' OR number = '0458073' OR number = '045807' OR number = '04580' OR number = '0458' OR number = '045' OR number = '04' OR number = '0' OR number ='--') OR (number = '0458073204*' OR number = '045807320*' OR number = '04580732*' OR number = '0458073*' OR number = '045807*' OR number = '04580*' OR number = '0458*' OR number = '045*' OR number = '04*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                          
  13211. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  13212. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0645582716' OR routing_prefix = '064558271' OR routing_prefix = '06455827' OR routing_prefix = '0645582' OR routing_prefix = '064558' OR routing_prefix = '06455' OR routing_prefix = '0645' OR routing_prefix = '064' OR routing_prefix = '06' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  13213. 2024-03-22 07:54:28.484171 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0645582716)!!!!
  13214. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27645582716
  13215. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Query :SELECT rnoroute FROM ported_number WHERE dnfrom ='27645582716' limit 1
  13216. 2024-03-22 07:54:28.484171 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0645582716)!!!!
  13217. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  13218. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  13219. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  13220. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  13221. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  13222. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  13223. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  13224. 2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  13225. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13226. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13227. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13228. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13229. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13230. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13231. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13232. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13233. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13234. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13235. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13236. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
  13237. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  13238. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  13239. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  13240. 2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0645582716.*' OR pattern = '^064558271.*' OR pattern = '^06455827.*' OR pattern = '^0645582.*' OR pattern = '^064558.*' OR pattern = '^06455.*' OR pattern = '^0645.*' OR pattern = '^064.*' OR pattern = '^06.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 93 OR accountid=109)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  13241. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  13242. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  13243. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148337
  13244. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  13245. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  13246. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
  13247. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - CELL C - MOBILE
  13248. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  13249. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  13250. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  13251. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  13252. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  13253. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  13254. 2024-03-22 07:54:28.504157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  13255. 2024-03-22 07:54:28.504157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  13256. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  13257. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^0645582716.*' OR blocked_patterns = '^064558271.*' OR blocked_patterns = '^06455827.*' OR blocked_patterns = '^0645582.*' OR blocked_patterns = '^064558.*' OR blocked_patterns = '^06455.*' OR blocked_patterns = '^0645.*' OR blocked_patterns = '^064.*' OR blocked_patterns = '^06.*' OR blocked_patterns = '^0.*' OR blocked_patterns ='--') AND accountid = 13 limit 1                                                                                                                      
  13258. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  13259. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  13260. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  13261. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
  13262. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  13263. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  13264. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  13265. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
  13266. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  13267. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^0645582716.*' OR pattern = '^064558271.*' OR pattern = '^06455827.*' OR pattern = '^0645582.*' OR pattern = '^064558.*' OR pattern = '^06455.*' OR pattern = '^0645.*' OR pattern = '^064.*' OR pattern = '^06.*' OR pattern = '^0.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 83 OR accountid=13)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1                                                                                      
  13268. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : outbound
  13269. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  13270. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426255
  13271. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  13272. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  13273. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
  13274. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D084-CELLC
  13275. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
  13276. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  13277. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
  13278. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  13279. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  13280. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
  13281. 2024-03-22 07:54:28.504157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  13282. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:2148337|CODE:^0645.*|DESTINATION:SOUTH AFRICA - CELL C - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426255|CODE:^0645.*|DESTINATION:D084-CELLC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13                                                                                                                                                                                                        
  13283. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  13284. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  13285. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  13286. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148337
  13287. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id        :0
  13288. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=83 ORDER by id asc
  13289. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [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,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 = '^0645582716.*' OR pattern = '^064558271.*' OR pattern = '^06455827.*' OR pattern = '^0645582.*' OR pattern = '^064558.*' OR pattern = '^06455.*' OR pattern = '^0645.*' OR pattern = '^064.*' OR pattern = '^06.*' OR pattern = '^0.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (5,7) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC                                                                                                                                        
  13290. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  13291. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
  13292. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
  13293. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
  13294. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  13295. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  13296. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
  13297. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  13298. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
  13299. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
  13300. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
  13301. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
  13302. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  13303. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  13304. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  13305. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
  13306. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
  13307. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  13308. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  13309. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  13310. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  13311. 2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
  13312. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  13313. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [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 = 5) AND status=0 limit 1                                                                                                                                                                            
  13314. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0645582716
  13315. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [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 = 3) AND status=0 limit 1                                                                                                                                                                          
  13316. 2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [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 ="0645582716" LIMIT 1                                                                                                                                                              
  13317. 2024-03-22 07:54:28.524153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
  13318. <?xml version="1.0" encoding="UTF-8" standalone="no"?>                                                                                                                                                            
  13319. <document type="freeswitch/xml">                                                                                                                                                                                  
  13320. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  13321. <context name="default">                                                                                                                                                                                          
  13322. <extension name="0645582716">                                                                                                                                                                                      
  13323. <condition field="destination_number" expression="0645582716">                                                                                                                                                    
  13324. <action application="set" data="effective_destination_number=0645582716"/>                                                                                                                                        
  13325. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  13326. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  13327. <action application="set" data="callstart=2024-03-22 07:54:28"/>                                                                                                                                                  
  13328. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  13329. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  13330. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  13331. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  13332. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  13333. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  13334. <action application="set" data="call_direction=outbound"/>                                                                                                                                                        
  13335. <action application="set" data="accountname=default"/>                                                                                                                                                            
  13336. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  13337. <action application="set" data="origination_rates=ID:2148337|CODE:^0645.*|DESTINATION:SOUTH AFRICA - CELL C - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426255|CODE:^0645.*|DESTINATION:D084-CELLC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13"/>                        
  13338. <action application="set" data="original_caller_id_name=0458073204"/>                                                                                                                                              
  13339. <action application="set" data="original_caller_id_number=0458073204"/>                                                                                                                                            
  13340. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  13341. <action application="limit" data="db 778509 user_778509 800 "/>                                                                                                                                                    
  13342. <action application="set" data="effective_caller_id_name=0458073204"/>                                                                                                                                            
  13343. <action application="set" data="effective_caller_id_number=0458073204"/>                                                                                                                                          
  13344. <action application="set" data="calltype=STANDARD"/>                                                                                                                                                              
  13345. <action application="set" data="termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3"/>                                
  13346. <action application="set" data="trunk_id=5"/>                                                                                                                                                                      
  13347. <action application="set" data="provider_id=3"/>                                                                                                                                                                  
  13348. <action application="set" data="rate_flag=0"/>                                                                                                                                                                    
  13349. <action application="set" data="force_trunk_flag=2148337"/>                                                                                                                                                        
  13350. <action application="export" data="presence_data=trunk_id=5"/>                                                                                                                                                    
  13351. <action application="set" data="intcall=0"/>                                                                                                                                                                      
  13352. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^0645.* // SOUTH AFRICA - CELL C - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0645.* // D084-CELLC"/>                                                                                                                                                            
  13353. <action application="bridge" data="[leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0645582716;fs_path=sip:156.38.231.106:5060"/>                                              
  13354. </condition>                                                                                                                                                                                                      
  13355. </extension>                                                                                                                                                                                                      
  13356. </context>                                                                                                                                                                                                        
  13357. </section>                                                                                                                                                                                                        
  13358. </document>                                                                                                                                                                                                        
  13359. 2024-03-22 07:54:28.524153 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  13360. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 parsing [default->0645582716] continue=false
  13361. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Regex (PASS) [0645582716] destination_number(0645582716) =~ /0645582716/ break=on-false
  13362. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0645582716)
  13363. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  13364. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  13365. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:28)
  13366. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  13367. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  13368. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  13369. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  13370. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  13371. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  13372. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
  13373. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  13374. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  13375. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(origination_rates=ID:2148337|CODE:^0645.*|DESTINATION:SOUTH AFRICA - CELL C - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426255|CODE:^0645.*|DESTINATION:D084-CELLC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                
  13376. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0458073204)
  13377. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0458073204)
  13378. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  13379. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
  13380. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0458073204)
  13381. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0458073204)
  13382. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
  13383. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)                                                                                                                                                                                                          
  13384. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
  13385. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
  13386. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
  13387. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148337)
  13388. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
  13389. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
  13390. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0645.* // SOUTH AFRICA - CELL C - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0645.* // D084-CELLC)                                                                                                                  
  13391. Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0645582716;fs_path=sip:156.38.231.106:5060)
  13392. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  13393. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  13394. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 65 Tot 575014)
  13395. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State EXECUTE
  13396. 2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:198 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  13397. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  13398. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0645582716)
  13399. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0645582716]
  13400. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  13401. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  13402. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  13403. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  13404. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:28)
  13405. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:28]
  13406. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  13407. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  13408. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  13409. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  13410. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(account_id=109)
  13411. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  13412. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  13413. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  13414. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  13415. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  13416. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  13417. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  13418. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
  13419. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
  13420. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(accountname=default)
  13421. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  13422. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  13423. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  13424. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(origination_rates=ID:2148337|CODE:^0645.*|DESTINATION:SOUTH AFRICA - CELL C - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426255|CODE:^0645.*|DESTINATION:D084-CELLC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13)                                                                                                                                                                                                          
  13425. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [origination_rates]=[ID:2148337|CODE:^0645.*|DESTINATION:SOUTH AFRICA - CELL C - MOBILE|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.44000|INC:1|INITIALBLOCK:1|RATEGROUP:93|MARKUP:0|CI:0|ACCID:109||ID:1426255|CODE:^0645.*|DESTINATION:D084-CELLC|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.29000|INC:1|INITIALBLOCK:1|RATEGROUP:83|MARKUP:0|CI:0|ACCID:13]                                                                                                                                                        
  13426. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0458073204)
  13427. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[0458073204]
  13428. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0458073204)
  13429. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[0458073204]
  13430. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  13431. 2024-03-22 07:54:28.524153 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  13432. 2024-03-22 07:54:28.524153 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
  13433. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
  13434. 2024-03-22 07:54:28.524153 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
  13435. 2024-03-22 07:54:28.524153 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 14/800
  13436. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0458073204)
  13437. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[0458073204]
  13438. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0458073204)
  13439. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[0458073204]
  13440. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
  13441. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
  13442. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(termination_rates=ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3)
  13443. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [termination_rates]=[ID:183|CODE:^0.*|DESTINATION:SA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|TRUNK:5|PROVIDER:3]                                                                                                                                                                  
  13444. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
  13445. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
  13446. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(provider_id=3)
  13447. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
  13448. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
  13449. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
  13450. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148337)
  13451. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [force_trunk_flag]=[2148337]
  13452. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
  13453. 2024-03-22 07:54:28.524153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
  13454. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(intcall=0)
  13455. 2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [intcall]=[0]
  13456. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0645.* // SOUTH AFRICA - CELL C - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0645.* // D084-CELLC)                                                                                                                            
  13457. 2024-03-22 07:54:28.524153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0645.* // SOUTH AFRICA - CELL C - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0645.* // D084-CELLC]                                                                                                                
  13458. EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU:G729]sofia/gateway/liquid_primary/0645582716;fs_path=sip:156.38.231.106:5060)
  13459. 2024-03-22 07:54:28.524153 [DEBUG] switch_channel.c:1250 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0645.* // SOUTH AFRICA - CELL C - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0645.* // D084-CELLC] to event                                              
  13460. 2024-03-22 07:54:28.524153 [DEBUG] switch_channel.c:1250 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0645.* // SOUTH AFRICA - CELL C - MOBILE // 0.44000 // trunk_id=0|||Liquid // ^0.* // SA // 0.00000 // trunk_id=5|||STD|||156.38.231.105|||0.29000 // ^0645.* // D084-CELLC] to event                                              
  13461. 2024-03-22 07:54:28.524153 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  13462. 2024-03-22 07:54:28.524153 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  13463. 2024-03-22 07:54:28.524153 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0645582716 [68d421fc-e821-11ee-9202-d17fbcf33421]
  13464. 2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:4819 (sofia/default/0645582716) State Change CS_NEW -> CS_INIT
  13465. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0645582716) Running State Change CS_INIT (Cur 66 Tot 575015)
  13466. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0645582716) State INIT
  13467. 2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:90 sofia/default/0645582716 SOFIA INIT
  13468. 2024-03-22 07:54:28.524153 [DEBUG] sofia_glue.c:1264 sip:156.38.231.106:5060 Setting proxy route to sofia/default/0645582716
  13469. 2024-03-22 07:54:28.524153 [DEBUG] sofia_glue.c:1295 sofia/default/0645582716 sending invite version: 1.6.20  64bit
  13470. Local SDP:                                                                                                                                                                                                        
  13471. v=0                                                                                                                                                                                                                
  13472. o=FreeSWITCH 1711065764 1711065765 IN IP4 156.38.231.107                                                                                                                                                          
  13473. s=FreeSWITCH                                                                                                                                                                                                      
  13474. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  13475. t=0 0                                                                                                                                                                                                              
  13476. m=audio 28304 RTP/AVP 8 0 18 101                                                                                                                                                                                  
  13477. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  13478. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  13479. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  13480. a=fmtp:18 annexb=no                                                                                                                                                                                                
  13481. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13482. a=fmtp:101 0-16                                                                                                                                                                                                    
  13483. a=ptime:20                                                                                                                                                                                                        
  13484. a=sendrecv                                                                                                                                                                                                        
  13485.  
  13486. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:40 sofia/default/0645582716 Standard INIT
  13487. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0645582716) State Change CS_INIT -> CS_ROUTING
  13488. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0645582716) State INIT going to sleep
  13489. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0645582716) Running State Change CS_ROUTING (Cur 66 Tot 575015)
  13490. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0645582716) State ROUTING
  13491. 2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:143 sofia/default/0645582716 SOFIA ROUTING
  13492. 2024-03-22 07:54:28.524153 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0645582716) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  13493. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0645582716) State ROUTING going to sleep
  13494. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0645582716) Running State Change CS_CONSUME_MEDIA (Cur 66 Tot 575015)
  13495. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0645582716) State CONSUME_MEDIA
  13496. 2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0645582716) State CONSUME_MEDIA going to sleep
  13497. 2024-03-22 07:54:28.524153 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [calling][0]
  13498. 2024-03-22 07:54:28.964179 [NOTICE] sofia.c:1012 Hangup sofia/default/Anonymous@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
  13499. 2024-03-22 07:54:28.964179 [DEBUG] switch_ivr_play_say.c:1942 done playing file local_stream://moh
  13500. 2024-03-22 07:54:28.964179 [DEBUG] switch_core_session.c:2815 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  13501. 2024-03-22 07:54:28.964179 [DEBUG] switch_ivr_bridge.c:469 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [BRIDGE] (channel is hungup already)
  13502. 2024-03-22 07:54:28.964179 [DEBUG] switch_ivr.c:666 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [AUDIO_SYNC] (channel is hungup already)
  13503. 2024-03-22 07:54:28.964179 [DEBUG] switch_ivr_bridge.c:712 sofia/default/Anonymous@41.160.32.115:5060 ending bridge by request from read function
  13504. 2024-03-22 07:54:28.964179 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/Anonymous@41.160.32.115:5060]
  13505. 2024-03-22 07:54:28.984156 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/4607597910@legalaidsa.nebular.co.za]
  13506. 2024-03-22 07:54:28.984156 [DEBUG] switch_channel.c:2029 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change HELD -> UNHELD
  13507. 2024-03-22 07:54:28.984156 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/4607597910@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  13508. 2024-03-22 07:54:28.984156 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/4607597910@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  13509. 2024-03-22 07:54:28.984156 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  13510. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:653 (sofia/default/4607597910@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  13511. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 66 Tot 575015)
  13512. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_session.c:2815 sofia/default/Anonymous@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  13513. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:650 (sofia/default/Anonymous@41.160.32.115:5060) State EXECUTE going to sleep
  13514. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 66 Tot 575015)
  13515. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:850 (sofia/default/Anonymous@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  13516. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change UNHELD -> HANGUP
  13517. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/Anonymous@41.160.32.115:5060) State HANGUP
  13518. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP
  13519. 2024-03-22 07:54:28.984156 [DEBUG] mod_sofia.c:438 Channel sofia/default/Anonymous@41.160.32.115:5060 hanging up, cause: NORMAL_UNSPECIFIED
  13520. 2024-03-22 07:54:28.984156 [DEBUG] mod_sofia.c:432 sofia/default/4607597910@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  13521. 2024-03-22 07:54:28.984156 [DEBUG] mod_sofia.c:438 Channel sofia/default/4607597910@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  13522. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:60 sofia/default/Anonymous@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_UNSPECIFIED
  13523. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/Anonymous@41.160.32.115:5060) State HANGUP going to sleep
  13524. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:619 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  13525. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 66 Tot 575015)
  13526. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/Anonymous@41.160.32.115:5060) State REPORTING
  13527. 2024-03-22 07:54:28.984156 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/4607597910@legalaidsa.nebular.co.za
  13528. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:60 sofia/default/4607597910@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  13529. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP going to sleep
  13530. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:619 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  13531. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 66 Tot 575015)
  13532. 2024-03-22 07:54:28.984156 [INFO] mod_json_cdr.c:271 Process [3452f110-e821-11ee-8cb3-d17fbcf33421.cdr.json]
  13533. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING
  13534. 2024-03-22 07:54:28.984156 [INFO] mod_json_cdr.c:271 Process [34fd6da2-e821-11ee-8cdb-d17fbcf33421.cdr.json]
  13535. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:174 sofia/default/4607597910@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  13536. 2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING going to sleep
  13537. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  13538. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_session.c:1665 Session 574955 (sofia/default/4607597910@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  13539. 2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1683 Session 574955 (sofia/default/4607597910@legalaidsa.nebular.co.za) Ended
  13540. 2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/4607597910@legalaidsa.nebular.co.za [CS_DESTROY]
  13541. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:741 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 65 Tot 575015)
  13542. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY
  13543. 2024-03-22 07:54:29.004155 [DEBUG] mod_sofia.c:343 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA DESTROY
  13544. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:181 sofia/default/4607597910@legalaidsa.nebular.co.za Standard DESTROY
  13545. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY going to sleep
  13546. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:174 sofia/default/Anonymous@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_UNSPECIFIED
  13547. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/Anonymous@41.160.32.115:5060) State REPORTING going to sleep
  13548. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  13549. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_session.c:1665 Session 574954 (sofia/default/Anonymous@41.160.32.115:5060) Locked, Waiting on external entities
  13550. 2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1683 Session 574954 (sofia/default/Anonymous@41.160.32.115:5060) Ended
  13551. 2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/Anonymous@41.160.32.115:5060 [CS_DESTROY]
  13552. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:741 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 64 Tot 575015)
  13553. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/Anonymous@41.160.32.115:5060) State DESTROY
  13554. 2024-03-22 07:54:29.004155 [DEBUG] mod_sofia.c:343 sofia/default/Anonymous@41.160.32.115:5060 SOFIA DESTROY
  13555. 2024-03-22 07:54:29.004155 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda8489dc0 0x7feda8489dc0
  13556. 2024-03-22 07:54:29.004155 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda8489dc0 0x7feda8489dc0
  13557. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:181 sofia/default/Anonymous@41.160.32.115:5060 Standard DESTROY
  13558. 2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/Anonymous@41.160.32.115:5060) State DESTROY going to sleep
  13559. 2024-03-22 07:54:29.344187 [DEBUG] switch_scheduler.c:144 Deleting task 232826 switch_ivr_schedule_hangup (34fd6da2-e821-11ee-8cdb-d17fbcf33421)
  13560. 2024-03-22 07:54:31.444197 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [proceeding][183]
  13561. 2024-03-22 07:54:31.444197 [DEBUG] sofia.c:7094 Remote SDP:
  13562. v=0                                                                                                                                                                                                                
  13563. o=HuaweiSoftX3000 123232480029889 123232480029889 IN IP4 41.160.32.115                                                                                                                                            
  13564. s=-                                                                                                                                                                                                                
  13565. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  13566. t=0 0                                                                                                                                                                                                              
  13567. m=audio 24822 RTP/AVP 8 101                                                                                                                                                                                        
  13568. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  13569. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13570. a=fmtp:101 0-15                                                                                                                                                                                                    
  13571. a=ptime:20                                                                                                                                                                                                        
  13572.  
  13573. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  13574. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  13575. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  13576. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  13577. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  13578. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0645582716 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  13579. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_codec.c:111 sofia/default/0645582716 Original read codec set to PCMA:8
  13580. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  13581. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4767 sofia/default/0645582716 Set 2833 dtmf send payload to 101 recv payload to 101
  13582. 2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0645582716] 156.38.231.107 port 28304 -> 41.160.32.115 port 24822 codec: 8 ms: 20
  13583. 2024-03-22 07:54:31.464953 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  13584. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7180 sofia/default/0645582716 Set 2833 dtmf send payload to 101
  13585. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7187 sofia/default/0645582716 Set 2833 dtmf receive payload to 101
  13586. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7210 sofia/default/0645582716 Set rtp dtmf delay to 40
  13587. 2024-03-22 07:54:31.464953 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0645582716!
  13588. 2024-03-22 07:54:31.464953 [DEBUG] switch_channel.c:3474 (sofia/default/0645582716) Callstate Change DOWN -> EARLY
  13589. 2024-03-22 07:54:31.464953 [INFO] switch_ivr_originate.c:3654 Sending early media
  13590. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0458073204@legalaidsa.nebular.co.za:5060] 156.38.231.107 port 17104 -> 156.38.150.6 port 9000 codec: 8 ms: 20
  13591. 2024-03-22 07:54:31.464953 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  13592. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7180 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101
  13593. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7187 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Set 2833 dtmf receive payload to 101
  13594. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7210 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Set rtp dtmf delay to 40
  13595. 2024-03-22 07:54:31.464953 [DEBUG] mod_sofia.c:2364 Ring SDP:
  13596. v=0                                                                                                                                                                                                                
  13597. o=FreeSWITCH 1711076967 1711076968 IN IP4 156.38.231.107                                                                                                                                                          
  13598. s=FreeSWITCH                                                                                                                                                                                                      
  13599. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  13600. t=0 0                                                                                                                                                                                                              
  13601. m=audio 17104 RTP/AVP 8 101                                                                                                                                                                                        
  13602. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  13603. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13604. a=fmtp:101 0-16                                                                                                                                                                                                    
  13605. a=ptime:20                                                                                                                                                                                                        
  13606. a=sendrecv                                                                                                                                                                                                        
  13607.  
  13608. 2024-03-22 07:54:31.464953 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0458073204@legalaidsa.nebular.co.za:5060!
  13609. 2024-03-22 07:54:31.464953 [DEBUG] switch_channel.c:3474 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
  13610. 2024-03-22 07:54:31.464953 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0645582716]
  13611. 2024-03-22 07:54:31.464953 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [early][183]
  13612. 2024-03-22 07:54:31.464953 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0645582716) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  13613. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0645582716) Running State Change CS_EXCHANGE_MEDIA (Cur 64 Tot 575015)
  13614. 2024-03-22 07:54:31.464953 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0645582716) State EXCHANGE_MEDIA
  13615. 2024-03-22 07:54:31.464953 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  13616. 2024-03-22 07:54:31.604172 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [completing][200]
  13617. 2024-03-22 07:54:31.604172 [DEBUG] sofia.c:7094 Remote SDP:
  13618. v=0                                                                                                                                                                                                                
  13619. o=3cxPS 334739013632 238102249473 IN IP4 156.38.150.6                                                                                                                                                              
  13620. s=3cxPS Audio call                                                                                                                                                                                                
  13621. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  13622. t=0 0                                                                                                                                                                                                              
  13623. m=audio 10498 RTP/AVP 18 101                                                                                                                                                                                      
  13624. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  13625. a=fmtp:18 annexb=no                                                                                                                                                                                                
  13626. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13627.  
  13628. 2024-03-22 07:54:31.604172 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [ready][200]
  13629. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  13630. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  13631. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  13632. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/6846529717@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  13633. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_codec.c:111 sofia/default/6846529717@legalaidsa.nebular.co.za Original read codec set to G729:18
  13634. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  13635. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4767 sofia/default/6846529717@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  13636. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/6846529717@legalaidsa.nebular.co.za] 156.38.231.107 port 25916 -> 156.38.150.6 port 10498 codec: 18 ms: 20
  13637. 2024-03-22 07:54:31.604172 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  13638. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:7180 sofia/default/6846529717@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  13639. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:7187 sofia/default/6846529717@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  13640. 2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:7210 sofia/default/6846529717@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  13641. 2024-03-22 07:54:31.604172 [NOTICE] sofia.c:8218 Channel [sofia/default/6846529717@legalaidsa.nebular.co.za] has been answered
  13642. 2024-03-22 07:54:31.604172 [DEBUG] switch_channel.c:3773 (sofia/default/6846529717@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  13643. 2024-03-22 07:54:31.624149 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0791373341@41.160.32.115:5060] 156.38.231.107 port 27922 -> 41.160.32.115 port 24820 codec: 18 ms: 20
  13644. 2024-03-22 07:54:31.624149 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  13645. 2024-03-22 07:54:31.624149 [DEBUG] switch_core_media.c:7180 sofia/default/0791373341@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  13646. 2024-03-22 07:54:31.624149 [DEBUG] switch_core_media.c:7187 sofia/default/0791373341@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  13647. 2024-03-22 07:54:31.624149 [DEBUG] switch_core_media.c:7210 sofia/default/0791373341@41.160.32.115:5060 Set rtp dtmf delay to 40
  13648. 2024-03-22 07:54:31.624149 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0791373341@41.160.32.115:5060:
  13649. v=0                                                                                                                                                                                                                
  13650. o=FreeSWITCH 1711066149 1711066150 IN IP4 156.38.231.107                                                                                                                                                          
  13651. s=FreeSWITCH                                                                                                                                                                                                      
  13652. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  13653. t=0 0                                                                                                                                                                                                              
  13654. m=audio 27922 RTP/AVP 18 101                                                                                                                                                                                      
  13655. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  13656. a=fmtp:18 annexb=no                                                                                                                                                                                                
  13657. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  13658. a=fmtp:101 0-16                                                                                                                                                                                                    
  13659. a=ptime:20                                                                                                                                                                                                        
  13660. a=sendrecv                                                                                                                                                                                                        
  13661.  
  13662. 2024-03-22 07:54:31.624149 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0791373341@41.160.32.115:5060] has been answered
  13663. 2024-03-22 07:54:31.624149 [DEBUG] switch_channel.c:3773 (sofia/default/0791373341@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  13664. 2024-03-22 07:54:31.624149 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [completed][200]
  13665. 2024-03-22 07:54:31.624149 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/6846529717@legalaidsa.nebular.co.za]
  13666. 2024-03-22 07:54:31.624149 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/6846529717@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  13667. 2024-03-22 07:54:31.624149 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6846529717@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 64 Tot 575015)
  13668. 2024-03-22 07:54:31.624149 [DEBUG] switch_core_state_machine.c:653 (sofia/default/6846529717@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  13669. 2024-03-22 07:54:31.624149 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  13670. 2024-03-22 07:54:31.665156 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0645582716 Bridge execute app sched_hangup(+6000 normal_clearing)
  13671. 2024-03-22 07:54:31.684160 [DEBUG] switch_ivr.c:623 sofia/default/0645582716 Command Execute sched_hangup(+6000 normal_clearing)
  13672. EXECUTE sofia/default/0645582716 sched_hangup(+6000 normal_clearing)
  13673. 2024-03-22 07:54:31.684160 [DEBUG] switch_scheduler.c:249 Added task 232845 switch_ivr_schedule_hangup (68d421fc-e821-11ee-9202-d17fbcf33421) to run at 1711100071
  13674. 2024-03-22 07:54:31.724167 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  13675. 2024-03-22 07:54:31.764173 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:9000 to 156.38.231.105:9000
  13676. 2024-03-22 07:54:31.784162 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [ready][200]
  13677. 2024-03-22 07:54:31.804170 [DEBUG] switch_ivr_bridge.c:546 sofia/default/6846529717@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  13678. 2024-03-22 07:54:31.824189 [DEBUG] switch_ivr.c:623 sofia/default/6846529717@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  13679. EXECUTE sofia/default/6846529717@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  13680. 2024-03-22 07:54:31.824189 [DEBUG] switch_scheduler.c:249 Added task 232846 switch_ivr_schedule_hangup (682ce18a-e821-11ee-91db-d17fbcf33421) to run at 1711100071
  13681. 2024-03-22 07:54:31.864174 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  13682. 2024-03-22 07:54:31.884173 [NOTICE] switch_channel.c:1104 New Channel sofia/default/+27310230365@41.160.32.115:5060 [6ad391ea-e821-11ee-920a-d17fbcf33421]
  13683. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@41.160.32.115:5060) Running State Change CS_NEW (Cur 65 Tot 575016)
  13684. 2024-03-22 07:54:31.884173 [DEBUG] sofia.c:9873 sofia/default/+27310230365@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  13685. 2024-03-22 07:54:31.884173 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  13686. 2024-03-22 07:54:31.884173 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [received][100]
  13687. 2024-03-22 07:54:31.884173 [DEBUG] sofia.c:7094 Remote SDP:
  13688. v=0                                                                                                                                                                                                                
  13689. o=HuaweiSoftX3000 66371407998564 66371407998564 IN IP4 41.160.32.115                                                                                                                                              
  13690. s=-                                                                                                                                                                                                                
  13691. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  13692. t=0 0                                                                                                                                                                                                              
  13693. m=audio 24824 RTP/AVP 8 0 18 4 2 98 99 97                                                                                                                                                                          
  13694. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  13695. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  13696. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  13697. a=fmtp:18 annexb=yes                                                                                                                                                                                              
  13698. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  13699. a=rtpmap:2 G726-32/8000                                                                                                                                                                                            
  13700. a=rtpmap:98 G726-40/8000                                                                                                                                                                                          
  13701. a=rtpmap:99 G726-32/8000                                                                                                                                                                                          
  13702. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  13703. a=fmtp:97 0-15                                                                                                                                                                                                    
  13704. a=ptime:20                                                                                                                                                                                                        
  13705.  
  13706. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  13707. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  13708. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  13709. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  13710. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  13711. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  13712. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  13713. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  13714. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  13715. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  13716. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  13717. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  13718. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  13719. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  13720. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  13721. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  13722. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  13723. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  13724. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  13725. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  13726. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[G729:18:8000:60:8000:1]
  13727. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[G729:18:8000:20:8000:1]
  13728. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  13729. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:2:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  13730. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[G729:18:8000:60:8000:1]
  13731. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[G729:18:8000:20:8000:1]
  13732. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  13733. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-40:98:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  13734. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[G729:18:8000:60:8000:1]
  13735. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[G729:18:8000:20:8000:1]
  13736. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  13737. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:99:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  13738. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 97@8000
  13739. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/+27310230365@41.160.32.115:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  13740. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_codec.c:111 sofia/default/+27310230365@41.160.32.115:5060 Original read codec set to PCMA:8
  13741. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 97@8000
  13742. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4767 sofia/default/+27310230365@41.160.32.115:5060 Set 2833 dtmf send payload to 97 recv payload to 97
  13743. 2024-03-22 07:54:31.884173 [DEBUG] sofia.c:7507 (sofia/default/+27310230365@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  13744. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27310230365@41.160.32.115:5060) State NEW
  13745. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@41.160.32.115:5060) Running State Change CS_INIT (Cur 65 Tot 575016)
  13746. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27310230365@41.160.32.115:5060) State INIT
  13747. 2024-03-22 07:54:31.884173 [DEBUG] mod_sofia.c:90 sofia/default/+27310230365@41.160.32.115:5060 SOFIA INIT
  13748. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27310230365@41.160.32.115:5060 Standard INIT
  13749. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:48 (sofia/default/+27310230365@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  13750. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27310230365@41.160.32.115:5060) State INIT going to sleep
  13751. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 65 Tot 575016)
  13752. 2024-03-22 07:54:31.884173 [DEBUG] switch_channel.c:2249 (sofia/default/+27310230365@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  13753. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27310230365@41.160.32.115:5060) State ROUTING
  13754. 2024-03-22 07:54:31.884173 [DEBUG] mod_sofia.c:143 sofia/default/+27310230365@41.160.32.115:5060 SOFIA ROUTING
  13755. 2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27310230365@41.160.32.115:5060 Standard ROUTING
  13756. 2024-03-22 07:54:31.884173 [INFO] mod_dialplan_xml.c:637 Processing +27310230365 <+27310230365>->D9570325332654 in context default
  13757. 2024-03-22 07:54:31.884173 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:10498 to 156.38.231.105:10498
  13758. 2024-03-22 07:54:31.884173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  13759. 2024-03-22 07:54:31.884173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  13760. 2024-03-22 07:54:31.884173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  13761. 2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  13762. 2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570325332654
  13763. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570325332654' limit 1
  13764. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570325332654' AND status=0 limit 1
  13765. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570325332654' and status=0 LIMIT 1                                                                                                                                                                                                      
  13766. 2024-03-22 07:54:31.904158 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  13767. 2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : +27310230365 / <null>
  13768. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570325332654" LIMIT 1                                                                                                                                                          
  13769. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [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="D9570325332654"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  13770. 2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  13771. 2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  13772. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  13773. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570325332654.*' OR blocked_patterns = '^D957032533265.*' OR blocked_patterns = '^D95703253326.*' OR blocked_patterns = '^D9570325332.*' OR blocked_patterns = '^D957032533.*' OR blocked_patterns = '^D95703253.*' OR blocked_patterns = '^D9570325.*' OR blocked_patterns = '^D957032.*' OR blocked_patterns = '^D95703.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  13774. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570325332654" AND (accountid = 0 OR status = 1) LIMIT 1
  13775. 2024-03-22 07:54:31.904158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  13776. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  13777. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
  13778. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
  13779. 2024-03-22 07:54:31.904158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570325332654
  13780. 2024-03-22 07:54:31.904158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0325332654
  13781. 2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [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 = '^0325332654.*' OR patterns = '^032533265.*' OR patterns = '^03253326.*' OR patterns = '^0325332.*' OR patterns = '^032533.*' OR patterns = '^03253.*' OR patterns = '^0325.*' OR patterns = '^032.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  13782. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" AND A.accountid = '3' limit 1                                                                                                                                                                          
  13783. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
  13784. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  13785. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  13786. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0325332654' OR number = '032533265' OR number = '03253326' OR number = '0325332' OR number = '032533' OR number = '03253' OR number = '0325' OR number = '032' OR number = '03' OR number = '0' OR number ='--') OR (number = '0325332654*' OR number = '032533265*' OR number = '03253326*' OR number = '0325332*' OR number = '032533*' OR number = '03253*' OR number = '0325*' OR number = '032*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  13787. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  13788. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0325332654' OR routing_prefix = '032533265' OR routing_prefix = '03253326' OR routing_prefix = '0325332' OR routing_prefix = '032533' OR routing_prefix = '03253' OR routing_prefix = '0325' OR routing_prefix = '032' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  13789. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  13790. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  13791. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  13792. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  13793. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  13794. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  13795. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  13796. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  13797. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  13798. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  13799. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  13800. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  13801. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  13802. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
  13803. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  13804. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  13805. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  13806. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
  13807. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  13808. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  13809. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  13810. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  13811. 2024-03-22 07:54:31.924156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  13812. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  13813. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  13814. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  13815. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  13816. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  13817. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  13818. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  13819. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  13820. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  13821. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  13822. 2024-03-22 07:54:31.924156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  13823. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  13824. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  13825. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  13826. 2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  13827. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....+27310230365
  13828. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  13829. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  13830. 2024-03-22 07:54:31.924156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  13831. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  13832. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  13833. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  13834. 2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  13835. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  13836. 2024-03-22 07:54:31.945558 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  13837. 2024-03-22 07:54:31.945558 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  13838. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  13839. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  13840. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' and uuid = '6ad391ea-e821-11ee-920a-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  13841. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' order by id desc limit 1
  13842. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  13843. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  13844. 2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  13845. <document type="freeswitch/xml">                                                                                                                                                                                  
  13846. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  13847. <context name="default">                                                                                                                                                                                          
  13848. <extension name="0325332654">                                                                                                                                                                                      
  13849. <condition field="destination_number" expression="D9570325332654">                                                                                                                                                
  13850. <action application="set" data="effective_destination_number=0325332654"/>                                                                                                                                        
  13851. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  13852. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  13853. <action application="set" data="callstart=2024-03-22 07:54:31"/>                                                                                                                                                  
  13854. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  13855. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  13856. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  13857. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  13858. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  13859. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  13860. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  13861. <action application="set" data="accountname=default"/>                                                                                                                                                            
  13862. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  13863. <action application="set" data="origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  13864. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  13865. <action application="set" data="original_caller_id_name=+27310230365"/>                                                                                                                                            
  13866. <action application="set" data="effective_caller_id_name=+27310230365"/>                                                                                                                                          
  13867. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  13868. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  13869. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  13870. <action application="export" data="presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  13871. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  13872. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  13873. <action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>                                                                                                                          
  13874. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  13875. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  13876. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  13877. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  13878. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  13879. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  13880. <action application="sleep" data="1000"/>                                                                                                                                                                          
  13881. <action application="ring_ready"/>                                                                                                                                                                                
  13882. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>                                                      
  13883. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  13884. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  13885. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  13886. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  13887. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  13888. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  13889. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  13890. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  13891. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  13892. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  13893. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  13894. <action application="set" data="sip_destination_number=4607597910"/>                                                                                                                                              
  13895. <action application="set" data="destination_number=0325332654"/>                                                                                                                                                  
  13896. <action application="set" data="did_number=0325332654"/>                                                                                                                                                          
  13897. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  13898. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  13899. <condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  13900. <action application="answer"/>                                                                                                                                                                                    
  13901. <action application="export" data="voicemail_alternate_greet_id=0325332654"/>                                                                                                                                      
  13902. <action application="voicemail" data="default $${domain_name} 4607597910"/>                                                                                                                                        
  13903. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  13904. </condition>                                                                                                                                                                                                      
  13905. </condition>                                                                                                                                                                                                      
  13906. </extension>                                                                                                                                                                                                      
  13907. </context>                                                                                                                                                                                                        
  13908. </section>                                                                                                                                                                                                        
  13909. </document>                                                                                                                                                                                                        
  13910. 2024-03-22 07:54:31.945558 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  13911. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 parsing [default->0325332654] continue=false
  13912. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Regex (PASS) [0325332654] destination_number(D9570325332654) =~ /D9570325332654/ break=on-false
  13913. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(effective_destination_number=0325332654)
  13914. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  13915. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  13916. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:31)
  13917. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  13918. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  13919. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(account_id=3)
  13920. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(parent_id=0)
  13921. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(entity_id=3)
  13922. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(call_processed=internal)
  13923. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(call_direction=inbound)
  13924. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(accountname=default)
  13925. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  13926. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                    
  13927. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(origination_rates=0)
  13928. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(original_caller_id_name=+27310230365)
  13929. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(effective_caller_id_name=+27310230365)
  13930. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(receiver_accid=109)
  13931. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  13932. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  13933. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115)
  13934. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(call_type=5)
  13935. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(calltype=SIP-DID)
  13936. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
  13937. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  13938. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  13939. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  13940. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  13941. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  13942. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  13943. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action sleep(1000)
  13944. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action ring_ready()
  13945. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654)
  13946. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(on_busy_flag=1)
  13947. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(on_busy_destination=)
  13948. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(no_answer_flag=1)
  13949. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(no_answer_destination=)
  13950. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(not_register_flag=1)
  13951. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(not_register_destination=)
  13952. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(opensips_flag=0)
  13953. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  13954. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  13955. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(leg_timeout=20)
  13956. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(userinfo_id=109)
  13957. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(sip_destination_number=4607597910)
  13958. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(destination_number=0325332654)
  13959. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(did_number=0325332654)
  13960. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  13961. Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  13962. |--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
  13963. |--- Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Regex (FAIL) [0325332654_recur_1] ${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  13964. |--- Dialplan: sofia/default/+27310230365@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  13965. 2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:286 (sofia/default/+27310230365@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  13966. 2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27310230365@41.160.32.115:5060) State ROUTING going to sleep
  13967. 2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 65 Tot 575016)
  13968. 2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27310230365@41.160.32.115:5060) State EXECUTE
  13969. 2024-03-22 07:54:31.964155 [DEBUG] mod_sofia.c:198 sofia/default/+27310230365@41.160.32.115:5060 SOFIA EXECUTE
  13970. 2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27310230365@41.160.32.115:5060 Standard EXECUTE
  13971. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(effective_destination_number=0325332654)
  13972. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [effective_destination_number]=[0325332654]
  13973. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  13974. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  13975. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  13976. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  13977. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(callstart=2024-03-22 07:54:31)
  13978. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:31]
  13979. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(hangup_after_bridge=true)
  13980. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [hangup_after_bridge]=[true]
  13981. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(continue_on_fail=TRUE)
  13982. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  13983. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(account_id=3)
  13984. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [account_id]=[3]
  13985. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(parent_id=0)
  13986. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [parent_id]=[0]
  13987. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(entity_id=3)
  13988. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [entity_id]=[3]
  13989. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(call_processed=internal)
  13990. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [call_processed]=[internal]
  13991. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(call_direction=inbound)
  13992. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [call_direction]=[inbound]
  13993. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(accountname=default)
  13994. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [accountname]=[default]
  13995. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  13996. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  13997. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                              
  13998. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [origination_rates_did]=[ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                            
  13999. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(origination_rates=0)
  14000. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [origination_rates]=[0]
  14001. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(original_caller_id_name=+27310230365)
  14002. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [original_caller_id_name]=[+27310230365]
  14003. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(effective_caller_id_name=+27310230365)
  14004. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [effective_caller_id_name]=[+27310230365]
  14005. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(receiver_accid=109)
  14006. 2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [receiver_accid]=[109]
  14007. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  14008. 2024-03-22 07:54:31.964155 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  14009. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  14010. 2024-03-22 07:54:31.964155 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  14011. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115)
  14012. 2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115]
  14013. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(call_type=5)
  14014. 2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  14015. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(calltype=SIP-DID)
  14016. 2024-03-22 07:54:31.984150 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [calltype]=[SIP-DID]
  14017. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 db(insert/pickup_any_group_/4607597910/6ad391ea-e821-11ee-920a-d17fbcf33421)
  14018. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(dialed_extension=transfer_call)
  14019. 2024-03-22 07:54:31.984150 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  14020. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(dialed_extension=transfer_call)
  14021. 2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  14022. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  14023. 2024-03-22 07:54:31.984150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  14024. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  14025. 2024-03-22 07:54:31.984150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  14026. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(hangup_after_bridge=true)
  14027. 2024-03-22 07:54:31.984150 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [hangup_after_bridge]=[true]
  14028. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  14029. 2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  14030. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 sleep(1000)
  14031. 2024-03-22 07:54:32.644171 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [proceeding][180]
  14032. 2024-03-22 07:54:32.644171 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0645582716!
  14033. 2024-03-22 07:54:32.644171 [DEBUG] switch_channel.c:3346 (sofia/default/0645582716) Callstate Change EARLY -> RINGING
  14034. 2024-03-22 07:54:32.804167 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:648
  14035. 2024-03-22 07:54:32.804167 [INFO] switch_channel.c:515 RECV DTMF 2:648
  14036. 2024-03-22 07:54:32.804167 [DEBUG] switch_rtp.c:5261 Send start packet for [2] ts=2781566048 dur=160/160/648 seq=65375 lw=2781566048
  14037. 2024-03-22 07:54:32.824160 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781566048 dur=320/320/648 seq=65376 lw=2781566208
  14038. 2024-03-22 07:54:32.844184 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781566048 dur=480/480/648 seq=65377 lw=2781566368
  14039. 2024-03-22 07:54:32.864176 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781566048 dur=640/640/648 seq=65378 lw=2781566528
  14040. 2024-03-22 07:54:32.884217 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=2781566048 dur=800/800/648 seq=65379 lw=2781566528
  14041. 2024-03-22 07:54:32.884217 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=2781566048 dur=800/800/648 seq=65380 lw=2781566528
  14042. 2024-03-22 07:54:32.884217 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=2781566048 dur=800/800/648 seq=65381 lw=2781566528
  14043. 2024-03-22 07:54:32.884217 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
  14044. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 ring_ready()
  14045. 2024-03-22 07:54:32.984182 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27310230365@41.160.32.115:5060!
  14046. 2024-03-22 07:54:32.984182 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27310230365@41.160.32.115:5060!
  14047. EXECUTE sofia/default/+27310230365@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/4607597910@legalaidsa.nebular.co.za^0325332654)
  14048. 2024-03-22 07:54:32.984182 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  14049. 2024-03-22 07:54:32.984182 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  14050. 2024-03-22 07:54:32.984182 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                    
  14051. 2024-03-22 07:54:32.984182 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  14052. 2024-03-22 07:54:32.984182 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  14053. 2024-03-22 07:54:32.984182 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  14054. 2024-03-22 07:54:32.984182 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  14055. 2024-03-22 07:54:32.984182 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  14056. 2024-03-22 07:54:32.984182 [NOTICE] switch_channel.c:1104 New Channel sofia/default/4607597910@legalaidsa.nebular.co.za [6b7cae38-e821-11ee-9232-d17fbcf33421]
  14057. 2024-03-22 07:54:32.984182 [DEBUG] mod_sofia.c:4819 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  14058. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 66 Tot 575017)
  14059. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
  14060. 2024-03-22 07:54:32.984182 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
  14061. 2024-03-22 07:54:32.984182 [DEBUG] sofia_glue.c:1295 sofia/default/4607597910@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  14062. Local SDP:                                                                                                                                                                                                        
  14063. v=0                                                                                                                                                                                                                
  14064. o=FreeSWITCH 1711076026 1711076027 IN IP4 156.38.231.107                                                                                                                                                          
  14065. s=FreeSWITCH                                                                                                                                                                                                      
  14066. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  14067. t=0 0                                                                                                                                                                                                              
  14068. m=audio 18046 RTP/AVP 8 101                                                                                                                                                                                        
  14069. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14070. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14071. a=fmtp:101 0-16                                                                                                                                                                                                    
  14072. a=ptime:20                                                                                                                                                                                                        
  14073. a=sendrecv                                                                                                                                                                                                        
  14074.  
  14075. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
  14076. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  14077. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT going to sleep
  14078. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 66 Tot 575017)
  14079. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
  14080. 2024-03-22 07:54:32.984182 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
  14081. 2024-03-22 07:54:32.984182 [DEBUG] switch_ivr_originate.c:67 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  14082. 2024-03-22 07:54:32.984182 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [early][180]
  14083. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING going to sleep
  14084. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 66 Tot 575017)
  14085. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  14086. 2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  14087. 2024-03-22 07:54:32.984182 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
  14088. 2024-03-22 07:54:33.084321 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
  14089. 2024-03-22 07:54:33.084321 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
  14090. 2024-03-22 07:54:33.084321 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  14091. 2024-03-22 07:54:33.084321 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27310230365@41.160.32.115:5060!
  14092. 2024-03-22 07:54:33.184164 [NOTICE] switch_channel.c:1104 New Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [6b9af848-e821-11ee-9236-d17fbcf33421]
  14093. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 67 Tot 575018)
  14094. 2024-03-22 07:54:33.184164 [DEBUG] sofia.c:9873 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  14095. 2024-03-22 07:54:33.184164 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  14096. 2024-03-22 07:54:33.184164 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 entering state [received][100]
  14097. 2024-03-22 07:54:33.184164 [DEBUG] sofia.c:7094 Remote SDP:
  14098. v=0                                                                                                                                                                                                                
  14099. o=3cxPS 97542733824 507426897921 IN IP4 156.38.150.6                                                                                                                                                              
  14100. s=3cxPS Audio call                                                                                                                                                                                                
  14101. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  14102. t=0 0                                                                                                                                                                                                              
  14103. m=audio 9004 RTP/AVP 8 0 18 101                                                                                                                                                                                    
  14104. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14105. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  14106. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  14107. a=fmtp:18 annexb=no                                                                                                                                                                                                
  14108. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14109.  
  14110. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  14111. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  14112. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  14113. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  14114. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  14115. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  14116. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  14117. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  14118. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  14119. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  14120. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  14121. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  14122. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  14123. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  14124. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  14125. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  14126. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  14127. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  14128. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_codec.c:111 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  14129. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  14130. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4767 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  14131. 2024-03-22 07:54:33.184164 [DEBUG] sofia.c:7507 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  14132. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State NEW
  14133. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 67 Tot 575018)
  14134. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State INIT
  14135. 2024-03-22 07:54:33.184164 [DEBUG] mod_sofia.c:90 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA INIT
  14136. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard INIT
  14137. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:48 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  14138. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  14139. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 67 Tot 575018)
  14140. 2024-03-22 07:54:33.184164 [DEBUG] switch_channel.c:2249 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  14141. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State ROUTING
  14142. 2024-03-22 07:54:33.184164 [DEBUG] mod_sofia.c:143 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  14143. 2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard ROUTING
  14144. 2024-03-22 07:54:33.184164 [INFO] mod_dialplan_xml.c:637 Processing +27310230365 <+27310230365>->0325332654 in context default
  14145. 2024-03-22 07:54:33.184164 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  14146. 2024-03-22 07:54:33.184164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  14147. 2024-03-22 07:54:33.184164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  14148. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  14149. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0325332654
  14150. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0325332654' limit 1
  14151. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0325332654' AND status=0 limit 1
  14152. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0325332654' and status=0 LIMIT 1                                                                                                                                                                                                          
  14153. 2024-03-22 07:54:33.204870 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  14154. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : +27310230365 / +27310230365
  14155. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  14156. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  14157. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  14158. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  14159. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0325332654" AND (accountid = 0 OR status = 1) LIMIT 1
  14160. 2024-03-22 07:54:33.204870 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  14161. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  14162. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  14163. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 109
  14164. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [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 = '^0325332654.*' OR patterns = '^032533265.*' OR patterns = '^03253326.*' OR patterns = '^0325332.*' OR patterns = '^032533.*' OR patterns = '^03253.*' OR patterns = '^0325.*' OR patterns = '^032.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  14165. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" AND A.accountid = '109' limit 1                                                                                                                                                                        
  14166. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
  14167. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  14168. 2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  14169. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0325332654' OR number = '032533265' OR number = '03253326' OR number = '0325332' OR number = '032533' OR number = '03253' OR number = '0325' OR number = '032' OR number = '03' OR number = '0' OR number ='--') OR (number = '0325332654*' OR number = '032533265*' OR number = '03253326*' OR number = '0325332*' OR number = '032533*' OR number = '03253*' OR number = '0325*' OR number = '032*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = '+27310230365' OR number = '+2731023036' OR number = '+273102303' OR number = '+27310230' OR number = '+2731023' OR number = '+273102' OR number = '+27310' OR number = '+2731' OR number = '+273' OR number = '+27' OR number = '+2' OR number = '+' OR number ='--') OR (number = '+27310230365*' OR number = '+2731023036*' OR number = '+273102303*' OR number = '+27310230*' OR number = '+2731023*' OR number = '+273102*' OR number = '+27310*' OR number = '+2731*' OR number = '+273*' OR number = '+27*' OR number = '+2*' OR number = '+*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                                                                                                                                  
  14170. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  14171. 2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0325332654' OR routing_prefix = '032533265' OR routing_prefix = '03253326' OR routing_prefix = '0325332' OR routing_prefix = '032533' OR routing_prefix = '03253' OR routing_prefix = '0325' OR routing_prefix = '032' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  14172. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  14173. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  14174. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  14175. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
  14176. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  14177. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  14178. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  14179. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  14180. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  14181. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  14182. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  14183. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  14184. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  14185. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
  14186. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  14187. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  14188. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  14189. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
  14190. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  14191. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  14192. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  14193. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
  14194. 2024-03-22 07:54:33.224161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  14195. 2024-03-22 07:54:33.224161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  14196. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  14197. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  14198. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  14199. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  14200. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
  14201. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  14202. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  14203. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  14204. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  14205. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  14206. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  14207. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  14208. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
  14209. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  14210. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  14211. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  14212. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
  14213. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  14214. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  14215. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  14216. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
  14217. 2024-03-22 07:54:33.224161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  14218. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109                                                                                                                                                                                                                
  14219. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  14220. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  14221. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  14222. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  14223. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  14224. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  14225. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  14226. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  14227. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:109
  14228. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:109
  14229. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 109
  14230. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  14231. 2024-03-22 07:54:33.224161 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  14232. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  14233. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  14234. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  14235. 2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  14236. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14237. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14238. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14239. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14240. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14241. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14242. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14243. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14244. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14245. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14246. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14247. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14248. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14249. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14250. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14251. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14252. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14253. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....+27310230365
  14254. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  14255. 2024-03-22 07:54:33.224161 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  14256. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  14257. 2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  14258. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  14259. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  14260. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  14261. 2024-03-22 07:54:33.244197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  14262. 2024-03-22 07:54:33.244197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  14263. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  14264. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  14265. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' and uuid = '6b9af848-e821-11ee-9236-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  14266. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' order by id desc limit 1
  14267. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  14268. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  14269. 2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  14270. <document type="freeswitch/xml">                                                                                                                                                                                  
  14271. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  14272. <context name="default">                                                                                                                                                                                          
  14273. <extension name="0325332654">                                                                                                                                                                                      
  14274. <condition field="destination_number" expression="0325332654">                                                                                                                                                    
  14275. <action application="set" data="effective_destination_number=0325332654"/>                                                                                                                                        
  14276. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  14277. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  14278. <action application="set" data="callstart=2024-03-22 07:54:33"/>                                                                                                                                                  
  14279. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  14280. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  14281. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  14282. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  14283. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  14284. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  14285. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  14286. <action application="set" data="accountname=default"/>                                                                                                                                                            
  14287. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  14288. <action application="set" data="origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                            
  14289. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  14290. <action application="set" data="original_caller_id_name=+27310230365"/>                                                                                                                                            
  14291. <action application="set" data="original_caller_id_number=+27310230365"/>                                                                                                                                          
  14292. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  14293. <action application="set" data="effective_caller_id_name=+27310230365"/>                                                                                                                                          
  14294. <action application="set" data="effective_caller_id_number=+27310230365"/>                                                                                                                                        
  14295. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  14296. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  14297. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  14298. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105"/>                                                      
  14299. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  14300. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  14301. <action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>                                                                                                                          
  14302. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  14303. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  14304. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  14305. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  14306. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  14307. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  14308. <action application="sleep" data="1000"/>                                                                                                                                                                          
  14309. <action application="ring_ready"/>                                                                                                                                                                                
  14310. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>                                                      
  14311. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  14312. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  14313. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  14314. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  14315. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  14316. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  14317. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  14318. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  14319. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  14320. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  14321. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  14322. <action application="set" data="sip_destination_number=4607597910"/>                                                                                                                                              
  14323. <action application="set" data="destination_number=0325332654"/>                                                                                                                                                  
  14324. <action application="set" data="did_number=0325332654"/>                                                                                                                                                          
  14325. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  14326. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  14327. <condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  14328. <action application="answer"/>                                                                                                                                                                                    
  14329. <action application="export" data="voicemail_alternate_greet_id=0325332654"/>                                                                                                                                      
  14330. <action application="voicemail" data="default $${domain_name} 4607597910"/>                                                                                                                                        
  14331. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  14332. </condition>                                                                                                                                                                                                      
  14333. </condition>                                                                                                                                                                                                      
  14334. </extension>                                                                                                                                                                                                      
  14335. </context>                                                                                                                                                                                                        
  14336. </section>                                                                                                                                                                                                        
  14337. </document>                                                                                                                                                                                                        
  14338. 2024-03-22 07:54:33.244197 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  14339. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 parsing [default->0325332654] continue=false
  14340. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Regex (PASS) [0325332654] destination_number(0325332654) =~ /0325332654/ break=on-false
  14341. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0325332654)
  14342. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  14343. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  14344. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:33)
  14345. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  14346. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  14347. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  14348. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  14349. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  14350. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  14351. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(call_direction=inbound)
  14352. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  14353. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  14354. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                                    
  14355. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(origination_rates=0)
  14356. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=+27310230365)
  14357. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=+27310230365)
  14358. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  14359. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=+27310230365)
  14360. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=+27310230365)
  14361. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(receiver_accid=109)
  14362. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  14363. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  14364. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105)
  14365. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(call_type=5)
  14366. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(calltype=SIP-DID)
  14367. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
  14368. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(dialed_extension=transfer_call)
  14369. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(dialed_extension=transfer_call)
  14370. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  14371. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  14372. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  14373. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  14374. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action sleep(1000)
  14375. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action ring_ready()
  14376. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654)
  14377. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(on_busy_flag=1)
  14378. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(on_busy_destination=)
  14379. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(no_answer_flag=1)
  14380. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(no_answer_destination=)
  14381. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(not_register_flag=1)
  14382. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(not_register_destination=)
  14383. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(opensips_flag=0)
  14384. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  14385. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(opensips_domain=156.38.231.106)
  14386. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(leg_timeout=20)
  14387. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(userinfo_id=109)
  14388. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(sip_destination_number=4607597910)
  14389. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(destination_number=0325332654)
  14390. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(did_number=0325332654)
  14391. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  14392. Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  14393. |--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
  14394. |--- Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Regex (FAIL) [0325332654_recur_1] ${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false                                                                                                                                                                                                        
  14395. |--- Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 ANTI-Action hangup(${originate_disposition})
  14396. 2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:286 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  14397. 2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  14398. 2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 67 Tot 575018)
  14399. 2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State EXECUTE
  14400. 2024-03-22 07:54:33.284170 [DEBUG] mod_sofia.c:198 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  14401. 2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  14402. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0325332654)
  14403. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0325332654]
  14404. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  14405. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  14406. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  14407. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  14408. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:33)
  14409. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:33]
  14410. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  14411. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  14412. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  14413. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  14414. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(account_id=109)
  14415. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  14416. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  14417. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  14418. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  14419. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  14420. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  14421. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  14422. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(call_direction=inbound)
  14423. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [call_direction]=[inbound]
  14424. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(accountname=default)
  14425. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  14426. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  14427. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  14428. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                                            
  14429. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [origination_rates_did]=[ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                                                            
  14430. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(origination_rates=0)
  14431. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [origination_rates]=[0]
  14432. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=+27310230365)
  14433. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[+27310230365]
  14434. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=+27310230365)
  14435. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[+27310230365]
  14436. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  14437. 2024-03-22 07:54:33.284170 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  14438. 2024-03-22 07:54:33.284170 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 14/200
  14439. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=+27310230365)
  14440. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[+27310230365]
  14441. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=+27310230365)
  14442. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[+27310230365]
  14443. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(receiver_accid=109)
  14444. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [receiver_accid]=[109]
  14445. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(domain_name=legalaidsa.nebular.co.za)
  14446. 2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  14447. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  14448. 2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  14449. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105)
  14450. 2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105]
  14451. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(call_type=5)
  14452. 2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  14453. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(calltype=SIP-DID)
  14454. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [calltype]=[SIP-DID]
  14455. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 db(insert/pickup_any_group_/4607597910/6b9af848-e821-11ee-9236-d17fbcf33421)
  14456. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(dialed_extension=transfer_call)
  14457. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [dialed_extension]=[transfer_call]
  14458. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(dialed_extension=transfer_call)
  14459. 2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  14460. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  14461. 2024-03-22 07:54:33.284170 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  14462. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  14463. 2024-03-22 07:54:33.284170 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  14464. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  14465. 2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  14466. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  14467. 2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  14468. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 sleep(1000)
  14469. 2024-03-22 07:54:33.664159 [NOTICE] sofia.c:1012 Hangup sofia/default/0728938474 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  14470. 2024-03-22 07:54:33.664159 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0728938474]
  14471. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0728938474) State EXCHANGE_MEDIA going to sleep
  14472. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728938474) Running State Change CS_HANGUP (Cur 67 Tot 575018)
  14473. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0728938474) Callstate Change ACTIVE -> HANGUP
  14474. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728938474) State HANGUP
  14475. 2024-03-22 07:54:33.664159 [DEBUG] mod_sofia.c:438 Channel sofia/default/0728938474 hanging up, cause: NORMAL_CLEARING
  14476. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:60 sofia/default/0728938474 Standard HANGUP, cause: NORMAL_CLEARING
  14477. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728938474) State HANGUP going to sleep
  14478. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0728938474) State Change CS_HANGUP -> CS_REPORTING
  14479. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0728938474) Running State Change CS_REPORTING (Cur 67 Tot 575018)
  14480. 2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728938474) State REPORTING
  14481. 2024-03-22 07:54:33.664159 [INFO] mod_json_cdr.c:271 Process [1e59a368-e821-11ee-8a7b-d17fbcf33421.cdr.json]
  14482. 2024-03-22 07:54:33.684149 [DEBUG] switch_core_state_machine.c:174 sofia/default/0728938474 Standard REPORTING, cause: NORMAL_CLEARING
  14483. 2024-03-22 07:54:33.684149 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728938474) State REPORTING going to sleep
  14484. 2024-03-22 07:54:33.684149 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0728938474) State Change CS_REPORTING -> CS_DESTROY
  14485. 2024-03-22 07:54:33.684149 [DEBUG] switch_core_session.c:1665 Session 574927 (sofia/default/0728938474) Locked, Waiting on external entities
  14486. 2024-03-22 07:54:33.724156 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0728938474 ending bridge by request from write function
  14487. 2024-03-22 07:54:33.724156 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0155331691@legalaidsa.nebular.co.za:5060]
  14488. 2024-03-22 07:54:33.724156 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0155331691@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  14489. 2024-03-22 07:54:33.724156 [NOTICE] switch_core_session.c:1683 Session 574927 (sofia/default/0728938474) Ended
  14490. 2024-03-22 07:54:33.724156 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0728938474 [CS_DESTROY]
  14491. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_session.c:2815 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  14492. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  14493. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 66 Tot 575018)
  14494. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0728938474) Running State Change CS_DESTROY (Cur 66 Tot 575018)
  14495. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  14496. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State HANGUP
  14497. 2024-03-22 07:54:33.724156 [DEBUG] mod_sofia.c:432 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 Overriding SIP cause 480 with 200 from the other leg
  14498. 2024-03-22 07:54:33.724156 [DEBUG] mod_sofia.c:438 Channel sofia/default/0155331691@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  14499. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728938474) State DESTROY
  14500. 2024-03-22 07:54:33.724156 [DEBUG] mod_sofia.c:343 sofia/default/0728938474 SOFIA DESTROY
  14501. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:181 sofia/default/0728938474 Standard DESTROY
  14502. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728938474) State DESTROY going to sleep
  14503. 2024-03-22 07:54:33.724156 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0155331691@legalaidsa.nebular.co.za:5060
  14504. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:60 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  14505. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  14506. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  14507. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 66 Tot 575018)
  14508. 2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State REPORTING
  14509. 2024-03-22 07:54:33.724156 [INFO] mod_json_cdr.c:271 Process [1e4ceb0a-e821-11ee-8a58-d17fbcf33421.cdr.json]
  14510. 2024-03-22 07:54:33.744154 [DEBUG] switch_core_state_machine.c:174 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  14511. 2024-03-22 07:54:33.744154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  14512. 2024-03-22 07:54:33.744154 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  14513. 2024-03-22 07:54:33.744154 [DEBUG] switch_core_session.c:1665 Session 574926 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  14514. 2024-03-22 07:54:33.744154 [NOTICE] switch_core_session.c:1683 Session 574926 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Ended
  14515. 2024-03-22 07:54:33.744154 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0155331691@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  14516. 2024-03-22 07:54:33.744154 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 65 Tot 575018)
  14517. 2024-03-22 07:54:33.744154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State DESTROY
  14518. 2024-03-22 07:54:33.744154 [DEBUG] mod_sofia.c:343 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  14519. 2024-03-22 07:54:33.744154 [INFO] mod_com_g729.c:109 DECODER DESTROYED----------->0x7feda897fa58 0x7feda897fa60
  14520. 2024-03-22 07:54:33.764157 [INFO] mod_com_g729.c:112 DECODER LICENSE DEALLOCATED->0x7feda897fa58 0x7feda897fa60
  14521. 2024-03-22 07:54:33.764157 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda897fad8 0x7feda897fad8
  14522. 2024-03-22 07:54:33.764157 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda897fad8 0x7feda897fad8
  14523. 2024-03-22 07:54:33.764157 [DEBUG] switch_core_state_machine.c:181 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 Standard DESTROY
  14524. 2024-03-22 07:54:33.764157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  14525. 2024-03-22 07:54:33.824172 [DEBUG] switch_scheduler.c:144 Deleting task 232812 switch_ivr_schedule_hangup (1e59a368-e821-11ee-8a7b-d17fbcf33421)
  14526. 2024-03-22 07:54:34.224181 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [completing][200]
  14527. 2024-03-22 07:54:34.224181 [DEBUG] sofia.c:7091 Duplicate SDP
  14528. v=0                                                                                                                                                                                                                
  14529. o=HuaweiSoftX3000 84994386184586 84994386184586 IN IP4 41.160.32.115                                                                                                                                              
  14530. s=-                                                                                                                                                                                                                
  14531. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  14532. t=0 0                                                                                                                                                                                                              
  14533. m=audio 24812 RTP/AVP 8 101                                                                                                                                                                                        
  14534. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14535. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14536. a=fmtp:101 0-15                                                                                                                                                                                                    
  14537. a=ptime:20                                                                                                                                                                                                        
  14538.  
  14539. 2024-03-22 07:54:34.244158 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [ready][200]
  14540. 2024-03-22 07:54:34.244158 [NOTICE] sofia.c:8159 Channel [sofia/default/0780824496] has been answered
  14541. 2024-03-22 07:54:34.244158 [DEBUG] switch_channel.c:3773 (sofia/default/0780824496) Callstate Change RINGING -> ACTIVE
  14542. 2024-03-22 07:54:34.264162 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0514479915@legalaidsa.nebular.co.za:5060.
  14543. 2024-03-22 07:54:34.264162 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0514479915@legalaidsa.nebular.co.za:5060:
  14544. v=0                                                                                                                                                                                                                
  14545. o=FreeSWITCH 1711065458 1711065460 IN IP4 156.38.231.107                                                                                                                                                          
  14546. s=FreeSWITCH                                                                                                                                                                                                      
  14547. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  14548. t=0 0                                                                                                                                                                                                              
  14549. m=audio 28604 RTP/AVP 8 101                                                                                                                                                                                        
  14550. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14551. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14552. a=fmtp:101 0-16                                                                                                                                                                                                    
  14553. a=ptime:20                                                                                                                                                                                                        
  14554. a=sendrecv                                                                                                                                                                                                        
  14555.  
  14556. 2024-03-22 07:54:34.264162 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0514479915@legalaidsa.nebular.co.za:5060] has been answered
  14557. 2024-03-22 07:54:34.264162 [DEBUG] switch_channel.c:3773 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  14558. 2024-03-22 07:54:34.264162 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  14559. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 ring_ready()
  14560. 2024-03-22 07:54:34.304175 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27310230365@legalaidsa.nebular.co.za:5060!
  14561. 2024-03-22 07:54:34.304175 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 entering state [early][180]
  14562. 2024-03-22 07:54:34.304175 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27310230365@legalaidsa.nebular.co.za:5060!
  14563. EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/4607597910@legalaidsa.nebular.co.za^0325332654)
  14564. 2024-03-22 07:54:34.304175 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  14565. 2024-03-22 07:54:34.304175 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  14566. 2024-03-22 07:54:34.304175 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105] to event                                                                                                                                                        
  14567. 2024-03-22 07:54:34.304175 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [call_type]=[5] to event
  14568. 2024-03-22 07:54:34.304175 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  14569. 2024-03-22 07:54:34.304175 [DEBUG] switch_channel.c:1250 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  14570. 2024-03-22 07:54:34.304175 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  14571. 2024-03-22 07:54:34.304175 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  14572. 2024-03-22 07:54:34.304175 [NOTICE] switch_channel.c:1104 New Channel sofia/default/4607597910@legalaidsa.nebular.co.za [6c44a262-e821-11ee-9261-d17fbcf33421]
  14573. 2024-03-22 07:54:34.304175 [DEBUG] mod_sofia.c:4819 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  14574. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 66 Tot 575019)
  14575. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
  14576. 2024-03-22 07:54:34.304175 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
  14577. 2024-03-22 07:54:34.304175 [DEBUG] sofia_glue.c:1295 sofia/default/4607597910@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  14578. Local SDP:                                                                                                                                                                                                        
  14579. v=0                                                                                                                                                                                                                
  14580. o=FreeSWITCH 1711062844 1711062845 IN IP4 156.38.231.107                                                                                                                                                          
  14581. s=FreeSWITCH                                                                                                                                                                                                      
  14582. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  14583. t=0 0                                                                                                                                                                                                              
  14584. m=audio 31230 RTP/AVP 8 101                                                                                                                                                                                        
  14585. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14586. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14587. a=fmtp:101 0-16                                                                                                                                                                                                    
  14588. a=ptime:20                                                                                                                                                                                                        
  14589. a=sendrecv                                                                                                                                                                                                        
  14590.  
  14591. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
  14592. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  14593. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT going to sleep
  14594. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 66 Tot 575019)
  14595. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
  14596. 2024-03-22 07:54:34.304175 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
  14597. 2024-03-22 07:54:34.304175 [DEBUG] switch_ivr_originate.c:67 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  14598. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING going to sleep
  14599. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 66 Tot 575019)
  14600. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  14601. 2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  14602. 2024-03-22 07:54:34.304175 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
  14603. 2024-03-22 07:54:34.304175 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  14604. 2024-03-22 07:54:34.304175 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  14605. 2024-03-22 07:54:34.324158 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  14606. 2024-03-22 07:54:34.384203 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0786191654@41.160.32.115:5060 [6c52e354-e821-11ee-9265-d17fbcf33421]
  14607. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0786191654@41.160.32.115:5060) Running State Change CS_NEW (Cur 67 Tot 575020)
  14608. 2024-03-22 07:54:34.384203 [DEBUG] sofia.c:9873 sofia/default/0786191654@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  14609. 2024-03-22 07:54:34.384203 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  14610. 2024-03-22 07:54:34.384203 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [received][100]
  14611. 2024-03-22 07:54:34.384203 [DEBUG] sofia.c:7094 Remote SDP:
  14612. v=0                                                                                                                                                                                                                
  14613. o=HuaweiSoftX3000 111588823693366 111588823693366 IN IP4 41.160.32.115                                                                                                                                            
  14614. s=-                                                                                                                                                                                                                
  14615. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  14616. t=0 0                                                                                                                                                                                                              
  14617. m=audio 24826 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  14618. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  14619. a=fmtp:18 annexb=no                                                                                                                                                                                                
  14620. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14621. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  14622. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14623. a=fmtp:101 0-15                                                                                                                                                                                                    
  14624. a=ptime:20                                                                                                                                                                                                        
  14625.  
  14626. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  14627. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  14628. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  14629. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  14630. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  14631. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  14632. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  14633. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  14634. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  14635. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  14636. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  14637. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  14638. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  14639. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  14640. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  14641. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  14642. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  14643. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0786191654@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  14644. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_codec.c:111 sofia/default/0786191654@41.160.32.115:5060 Original read codec set to G729:18
  14645. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  14646. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4767 sofia/default/0786191654@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  14647. 2024-03-22 07:54:34.384203 [DEBUG] sofia.c:7507 (sofia/default/0786191654@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  14648. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0786191654@41.160.32.115:5060) State NEW
  14649. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0786191654@41.160.32.115:5060) Running State Change CS_INIT (Cur 67 Tot 575020)
  14650. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0786191654@41.160.32.115:5060) State INIT
  14651. 2024-03-22 07:54:34.384203 [DEBUG] mod_sofia.c:90 sofia/default/0786191654@41.160.32.115:5060 SOFIA INIT
  14652. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:40 sofia/default/0786191654@41.160.32.115:5060 Standard INIT
  14653. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0786191654@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  14654. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0786191654@41.160.32.115:5060) State INIT going to sleep
  14655. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0786191654@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 67 Tot 575020)
  14656. 2024-03-22 07:54:34.384203 [DEBUG] switch_channel.c:2249 (sofia/default/0786191654@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  14657. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0786191654@41.160.32.115:5060) State ROUTING
  14658. 2024-03-22 07:54:34.384203 [DEBUG] mod_sofia.c:143 sofia/default/0786191654@41.160.32.115:5060 SOFIA ROUTING
  14659. 2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:236 sofia/default/0786191654@41.160.32.115:5060 Standard ROUTING
  14660. 2024-03-22 07:54:34.384203 [INFO] mod_dialplan_xml.c:637 Processing 0786191654 <0786191654>->D9570392510098 in context default
  14661. 2024-03-22 07:54:34.404195 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  14662. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  14663. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  14664. 2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  14665. 2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570392510098
  14666. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570392510098' limit 1
  14667. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570392510098' AND status=0 limit 1
  14668. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570392510098' and status=0 LIMIT 1                                                                                                                                                                                                      
  14669. 2024-03-22 07:54:34.404195 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  14670. 2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0786191654 / <null>
  14671. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570392510098" LIMIT 1                                                                                                                                                          
  14672. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [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="D9570392510098"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  14673. 2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  14674. 2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  14675. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  14676. 2024-03-22 07:54:34.404195 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
  14677. 2024-03-22 07:54:34.404195 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
  14678. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570392510098.*' OR blocked_patterns = '^D957039251009.*' OR blocked_patterns = '^D95703925100.*' OR blocked_patterns = '^D9570392510.*' OR blocked_patterns = '^D957039251.*' OR blocked_patterns = '^D95703925.*' OR blocked_patterns = '^D9570392.*' OR blocked_patterns = '^D957039.*' OR blocked_patterns = '^D95703.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  14679. 2024-03-22 07:54:34.404195 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  14680. 2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570392510098" AND (accountid = 0 OR status = 1) LIMIT 1
  14681. 2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  14682. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  14683. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570392510098
  14684. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570392510098
  14685. 2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570392510098
  14686. 2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0392510098
  14687. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [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 = '^0392510098.*' OR patterns = '^039251009.*' OR patterns = '^03925100.*' OR patterns = '^0392510.*' OR patterns = '^039251.*' OR patterns = '^03925.*' OR patterns = '^0392.*' OR patterns = '^039.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  14688. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [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 ="0392510098" AND A.accountid = '3' limit 1                                                                                                                                                                          
  14689. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0392510098
  14690. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [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 ="0392510098" LIMIT 1                                                                                                                                                              
  14691. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  14692. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0392510098' OR number = '039251009' OR number = '03925100' OR number = '0392510' OR number = '039251' OR number = '03925' OR number = '0392' OR number = '039' OR number = '03' OR number = '0' OR number ='--') OR (number = '0392510098*' OR number = '039251009*' OR number = '03925100*' OR number = '0392510*' OR number = '039251*' OR number = '03925*' OR number = '0392*' OR number = '039*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  14693. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  14694. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0392510098' OR routing_prefix = '039251009' OR routing_prefix = '03925100' OR routing_prefix = '0392510' OR routing_prefix = '039251' OR routing_prefix = '03925' OR routing_prefix = '0392' OR routing_prefix = '039' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  14695. 2024-03-22 07:54:34.424156 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27310230365@legalaidsa.nebular.co.za:5060!
  14696. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  14697. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  14698. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  14699. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  14700. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  14701. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  14702. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  14703. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  14704. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  14705. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  14706. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [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 ="0392510098" LIMIT 1                                                                                                                                                              
  14707. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  14708. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  14709. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9059
  14710. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  14711. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  14712. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  14713. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0392510098
  14714. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  14715. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  14716. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  14717. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  14718. 2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  14719. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  14720. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  14721. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  14722. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  14723. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  14724. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  14725. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  14726. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  14727. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  14728. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  14729. 2024-03-22 07:54:34.424156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  14730. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  14731. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  14732. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  14733. 2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  14734. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0786191654
  14735. 2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0786191654
  14736. 2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27786191654
  14737. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  14738. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  14739. 2024-03-22 07:54:34.424156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  14740. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  14741. 2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [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="1025211323"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  14742. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1517 limit 1
  14743. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  14744. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  14745. 2024-03-22 07:54:34.444147 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  14746. 2024-03-22 07:54:34.444147 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  14747. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  14748. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  14749. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='1025211323' and uuid = '6c52e354-e821-11ee-9265-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  14750. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='1025211323' order by id desc limit 1
  14751. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [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="1025211323"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  14752. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1517 limit 1
  14753. 2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  14754. <document type="freeswitch/xml">                                                                                                                                                                                  
  14755. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  14756. <context name="default">                                                                                                                                                                                          
  14757. <extension name="0392510098">                                                                                                                                                                                      
  14758. <condition field="destination_number" expression="D9570392510098">                                                                                                                                                
  14759. <action application="set" data="effective_destination_number=0392510098"/>                                                                                                                                        
  14760. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  14761. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  14762. <action application="set" data="callstart=2024-03-22 07:54:34"/>                                                                                                                                                  
  14763. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  14764. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  14765. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  14766. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  14767. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  14768. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  14769. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  14770. <action application="set" data="accountname=default"/>                                                                                                                                                            
  14771. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  14772. <action application="set" data="origination_rates_did=ID:9059|CODE:^0392510098.*|DESTINATION:0392510098|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  14773. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  14774. <action application="set" data="original_caller_id_name=0786191654"/>                                                                                                                                              
  14775. <action application="set" data="effective_caller_id_name=27786191654"/>                                                                                                                                            
  14776. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  14777. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  14778. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  14779. <action application="export" data="presence_data=x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  14780. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  14781. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  14782. <action application="db" data="insert/pickup_any_group_${callgroup}/1025211323/${uuid}"/>                                                                                                                          
  14783. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  14784. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  14785. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  14786. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  14787. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  14788. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  14789. <action application="sleep" data="1000"/>                                                                                                                                                                          
  14790. <action application="ring_ready"/>                                                                                                                                                                                
  14791. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1025211323@legalaidsa.nebular.co.za^0392510098"/>                                                      
  14792. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  14793. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  14794. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  14795. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  14796. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  14797. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  14798. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  14799. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  14800. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  14801. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  14802. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  14803. <action application="set" data="sip_destination_number=1025211323"/>                                                                                                                                              
  14804. <action application="set" data="destination_number=0392510098"/>                                                                                                                                                  
  14805. <action application="set" data="did_number=0392510098"/>                                                                                                                                                          
  14806. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  14807. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  14808. <condition field="${cond(${user_data 1025211323@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  14809. <action application="answer"/>                                                                                                                                                                                    
  14810. <action application="export" data="voicemail_alternate_greet_id=0392510098"/>                                                                                                                                      
  14811. <action application="voicemail" data="default $${domain_name} 1025211323"/>                                                                                                                                        
  14812. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  14813. </condition>                                                                                                                                                                                                      
  14814. </condition>                                                                                                                                                                                                      
  14815. </extension>                                                                                                                                                                                                      
  14816. </context>                                                                                                                                                                                                        
  14817. </section>                                                                                                                                                                                                        
  14818. </document>                                                                                                                                                                                                        
  14819. 2024-03-22 07:54:34.444147 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  14820. Dialplan: sofia/default/0786191654@41.160.32.115:5060 parsing [default->0392510098] continue=false
  14821. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Regex (PASS) [0392510098] destination_number(D9570392510098) =~ /D9570392510098/ break=on-false
  14822. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(effective_destination_number=0392510098)
  14823. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  14824. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  14825. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:34)
  14826. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  14827. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  14828. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(account_id=3)
  14829. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(parent_id=0)
  14830. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(entity_id=3)
  14831. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(call_processed=internal)
  14832. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(call_direction=inbound)
  14833. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(accountname=default)
  14834. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  14835. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(origination_rates_did=ID:9059|CODE:^0392510098.*|DESTINATION:0392510098|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  14836. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(origination_rates=0)
  14837. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(original_caller_id_name=0786191654)
  14838. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(effective_caller_id_name=27786191654)
  14839. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(receiver_accid=109)
  14840. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  14841. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  14842. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115)
  14843. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(call_type=5)
  14844. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(calltype=SIP-DID)
  14845. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/1025211323/${uuid})
  14846. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  14847. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  14848. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  14849. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  14850. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  14851. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  14852. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action sleep(1000)
  14853. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action ring_ready()
  14854. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1025211323@legalaidsa.nebular.co.za^0392510098)
  14855. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(on_busy_flag=1)
  14856. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(on_busy_destination=)
  14857. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(no_answer_flag=1)
  14858. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(no_answer_destination=)
  14859. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(not_register_flag=1)
  14860. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(not_register_destination=)
  14861. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(opensips_flag=0)
  14862. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  14863. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  14864. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(leg_timeout=20)
  14865. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(userinfo_id=109)
  14866. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(sip_destination_number=1025211323)
  14867. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(destination_number=0392510098)
  14868. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(did_number=0392510098)
  14869. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  14870. Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  14871. |--- Dialplan: Processing recursive conditions level:1 [0392510098_recur_1] require-nested=TRUE
  14872. |--- Dialplan: sofia/default/0786191654@41.160.32.115:5060 Regex (FAIL) [0392510098_recur_1] ${cond(${user_data 1025211323@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  14873. |--- Dialplan: sofia/default/0786191654@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  14874. 2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0786191654@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  14875. 2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0786191654@41.160.32.115:5060) State ROUTING going to sleep
  14876. 2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0786191654@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 67 Tot 575020)
  14877. 2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0786191654@41.160.32.115:5060) State EXECUTE
  14878. 2024-03-22 07:54:34.464163 [DEBUG] mod_sofia.c:198 sofia/default/0786191654@41.160.32.115:5060 SOFIA EXECUTE
  14879. 2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:328 sofia/default/0786191654@41.160.32.115:5060 Standard EXECUTE
  14880. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(effective_destination_number=0392510098)
  14881. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [effective_destination_number]=[0392510098]
  14882. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  14883. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  14884. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  14885. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  14886. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(callstart=2024-03-22 07:54:34)
  14887. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:34]
  14888. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(hangup_after_bridge=true)
  14889. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [hangup_after_bridge]=[true]
  14890. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(continue_on_fail=TRUE)
  14891. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  14892. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(account_id=3)
  14893. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [account_id]=[3]
  14894. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(parent_id=0)
  14895. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [parent_id]=[0]
  14896. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(entity_id=3)
  14897. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [entity_id]=[3]
  14898. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(call_processed=internal)
  14899. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [call_processed]=[internal]
  14900. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(call_direction=inbound)
  14901. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [call_direction]=[inbound]
  14902. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(accountname=default)
  14903. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [accountname]=[default]
  14904. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  14905. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  14906. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(origination_rates_did=ID:9059|CODE:^0392510098.*|DESTINATION:0392510098|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  14907. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [origination_rates_did]=[ID:9059|CODE:^0392510098.*|DESTINATION:0392510098|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  14908. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(origination_rates=0)
  14909. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [origination_rates]=[0]
  14910. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(original_caller_id_name=0786191654)
  14911. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [original_caller_id_name]=[0786191654]
  14912. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(effective_caller_id_name=27786191654)
  14913. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [effective_caller_id_name]=[27786191654]
  14914. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(receiver_accid=109)
  14915. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [receiver_accid]=[109]
  14916. EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  14917. 2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  14918. EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  14919. 2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  14920. EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115)
  14921. 2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115]
  14922. EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(call_type=5)
  14923. 2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  14924. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(calltype=SIP-DID)
  14925. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [calltype]=[SIP-DID]
  14926. EXECUTE sofia/default/0786191654@41.160.32.115:5060 db(insert/pickup_any_group_/1025211323/6c52e354-e821-11ee-9265-d17fbcf33421)
  14927. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(dialed_extension=transfer_call)
  14928. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  14929. EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(dialed_extension=transfer_call)
  14930. 2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  14931. EXECUTE sofia/default/0786191654@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  14932. 2024-03-22 07:54:34.484421 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  14933. EXECUTE sofia/default/0786191654@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  14934. 2024-03-22 07:54:34.484421 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  14935. EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(hangup_after_bridge=true)
  14936. 2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [hangup_after_bridge]=[true]
  14937. EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  14938. 2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  14939. EXECUTE sofia/default/0786191654@41.160.32.115:5060 sleep(1000)
  14940. 2024-03-22 07:54:34.804168 [NOTICE] sofia.c:1012 Hangup sofia/default/+27119421172@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  14941. 2024-03-22 07:54:34.804168 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27119421172@41.160.32.115:5060]
  14942. 2024-03-22 07:54:34.824162 [DEBUG] switch_ivr_bridge.c:706 sofia/default/+27119421172@41.160.32.115:5060 ending bridge by request from write function
  14943. 2024-03-22 07:54:34.824162 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7682330505@legalaidsa.nebular.co.za]
  14944. 2024-03-22 07:54:34.824162 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/7682330505@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  14945. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  14946. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 67 Tot 575020)
  14947. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  14948. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP
  14949. 2024-03-22 07:54:34.824162 [DEBUG] mod_sofia.c:432 sofia/default/7682330505@legalaidsa.nebular.co.za Overriding SIP cause 480 with 200 from the other leg
  14950. 2024-03-22 07:54:34.824162 [DEBUG] mod_sofia.c:438 Channel sofia/default/7682330505@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  14951. 2024-03-22 07:54:34.824162 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/7682330505@legalaidsa.nebular.co.za skip receive message [UNBRIDGE] (channel is hungup already)
  14952. 2024-03-22 07:54:34.824162 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/+27119421172@41.160.32.115:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  14953. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_session.c:2815 sofia/default/+27119421172@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  14954. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27119421172@41.160.32.115:5060) State EXECUTE going to sleep
  14955. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 67 Tot 575020)
  14956. 2024-03-22 07:54:34.824162 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/7682330505@legalaidsa.nebular.co.za
  14957. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:60 sofia/default/7682330505@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  14958. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP going to sleep
  14959. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  14960. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 67 Tot 575020)
  14961. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:850 (sofia/default/+27119421172@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  14962. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27119421172@41.160.32.115:5060) State HANGUP
  14963. 2024-03-22 07:54:34.824162 [DEBUG] mod_sofia.c:438 Channel sofia/default/+27119421172@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  14964. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING
  14965. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:60 sofia/default/+27119421172@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  14966. 2024-03-22 07:54:34.824162 [INFO] mod_json_cdr.c:271 Process [63cb949c-e821-11ee-913e-d17fbcf33421.cdr.json]
  14967. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27119421172@41.160.32.115:5060) State HANGUP going to sleep
  14968. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:619 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  14969. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 67 Tot 575020)
  14970. 2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27119421172@41.160.32.115:5060) State REPORTING
  14971. 2024-03-22 07:54:34.824162 [INFO] mod_json_cdr.c:271 Process [63230930-e821-11ee-90e7-d17fbcf33421.cdr.json]
  14972. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:174 sofia/default/7682330505@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  14973. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING going to sleep
  14974. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7682330505@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  14975. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_session.c:1665 Session 575006 (sofia/default/7682330505@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  14976. 2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1683 Session 575006 (sofia/default/7682330505@legalaidsa.nebular.co.za) Ended
  14977. 2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7682330505@legalaidsa.nebular.co.za [CS_DESTROY]
  14978. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7682330505@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 66 Tot 575020)
  14979. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY
  14980. 2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:343 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA DESTROY
  14981. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:181 sofia/default/7682330505@legalaidsa.nebular.co.za Standard DESTROY
  14982. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY going to sleep
  14983. 2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [completing][200]
  14984. 2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7094 Remote SDP:
  14985. v=0                                                                                                                                                                                                                
  14986. o=3cxPS 90697629696 70783074305 IN IP4 156.38.150.6                                                                                                                                                                
  14987. s=3cxPS Audio call                                                                                                                                                                                                
  14988. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  14989. t=0 0                                                                                                                                                                                                              
  14990. m=audio 9002 RTP/AVP 8 101                                                                                                                                                                                        
  14991. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  14992. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  14993.  
  14994. 2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [ready][200]
  14995. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  14996. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  14997. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  14998. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/4607597910@legalaidsa.nebular.co.za PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  14999. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_codec.c:111 sofia/default/4607597910@legalaidsa.nebular.co.za Original read codec set to PCMA:8
  15000. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  15001. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4767 sofia/default/4607597910@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  15002. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/4607597910@legalaidsa.nebular.co.za] 156.38.231.107 port 18046 -> 156.38.150.6 port 9002 codec: 8 ms: 20
  15003. 2024-03-22 07:54:34.848505 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  15004. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:174 sofia/default/+27119421172@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  15005. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27119421172@41.160.32.115:5060) State REPORTING going to sleep
  15006. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:610 (sofia/default/+27119421172@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  15007. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_session.c:1665 Session 575003 (sofia/default/+27119421172@41.160.32.115:5060) Locked, Waiting on external entities
  15008. 2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1683 Session 575003 (sofia/default/+27119421172@41.160.32.115:5060) Ended
  15009. 2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/+27119421172@41.160.32.115:5060 [CS_DESTROY]
  15010. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:741 (sofia/default/+27119421172@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 65 Tot 575020)
  15011. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27119421172@41.160.32.115:5060) State DESTROY
  15012. 2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:343 sofia/default/+27119421172@41.160.32.115:5060 SOFIA DESTROY
  15013. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27119421172@41.160.32.115:5060 Standard DESTROY
  15014. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27119421172@41.160.32.115:5060) State DESTROY going to sleep
  15015. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:7180 sofia/default/4607597910@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  15016. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:7187 sofia/default/4607597910@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  15017. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:7210 sofia/default/4607597910@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  15018. 2024-03-22 07:54:34.848505 [NOTICE] sofia.c:8218 Channel [sofia/default/4607597910@legalaidsa.nebular.co.za] has been answered
  15019. 2024-03-22 07:54:34.848505 [DEBUG] switch_channel.c:3773 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  15020. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/+27310230365@41.160.32.115:5060] 156.38.231.107 port 22294 -> 41.160.32.115 port 24824 codec: 8 ms: 20
  15021. 2024-03-22 07:54:34.848505 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  15022. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:7180 sofia/default/+27310230365@41.160.32.115:5060 Set 2833 dtmf send payload to 97
  15023. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:7187 sofia/default/+27310230365@41.160.32.115:5060 Set 2833 dtmf receive payload to 97
  15024. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:7210 sofia/default/+27310230365@41.160.32.115:5060 Set rtp dtmf delay to 40
  15025. 2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/+27310230365@41.160.32.115:5060:
  15026. v=0                                                                                                                                                                                                                
  15027. o=FreeSWITCH 1711071780 1711071781 IN IP4 156.38.231.107                                                                                                                                                          
  15028. s=FreeSWITCH                                                                                                                                                                                                      
  15029. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  15030. t=0 0                                                                                                                                                                                                              
  15031. m=audio 22294 RTP/AVP 8 97                                                                                                                                                                                        
  15032. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  15033. a=rtpmap:97 telephone-event/8000                                                                                                                                                                                  
  15034. a=fmtp:97 0-16                                                                                                                                                                                                    
  15035. a=ptime:20                                                                                                                                                                                                        
  15036. a=sendrecv                                                                                                                                                                                                        
  15037.  
  15038. 2024-03-22 07:54:34.848505 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/+27310230365@41.160.32.115:5060] has been answered
  15039. 2024-03-22 07:54:34.848505 [DEBUG] switch_channel.c:3773 (sofia/default/+27310230365@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  15040. 2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [completed][200]
  15041. 2024-03-22 07:54:34.848505 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/4607597910@legalaidsa.nebular.co.za]
  15042. 2024-03-22 07:54:34.848505 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  15043. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 65 Tot 575020)
  15044. 2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:653 (sofia/default/4607597910@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  15045. 2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  15046. 2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 entering state [terminated][487]
  15047. 2024-03-22 07:54:34.848505 [NOTICE] sofia.c:8273 Hangup sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
  15048. 2024-03-22 07:54:34.884159 [NOTICE] switch_ivr_originate.c:3612 Hangup sofia/default/4607597910@legalaidsa.nebular.co.za [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
  15049. 2024-03-22 07:54:34.884159 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
  15050. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 65 Tot 575020)
  15051. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change RINGING -> HANGUP
  15052. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP
  15053. 2024-03-22 07:54:34.884159 [DEBUG] mod_sofia.c:432 sofia/default/4607597910@legalaidsa.nebular.co.za Overriding SIP cause 487 with 487 from the other leg
  15054. 2024-03-22 07:54:34.884159 [DEBUG] mod_sofia.c:438 Channel sofia/default/4607597910@legalaidsa.nebular.co.za hanging up, cause: ORIGINATOR_CANCEL
  15055. 2024-03-22 07:54:34.884159 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: ORIGINATOR_CANCEL
  15056. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_session.c:2815 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  15057. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  15058. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 65 Tot 575020)
  15059. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:850 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> HANGUP
  15060. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State HANGUP
  15061. 2024-03-22 07:54:34.884159 [DEBUG] mod_sofia.c:438 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 hanging up, cause: ORIGINATOR_CANCEL
  15062. 2024-03-22 07:54:34.884159 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/4607597910@legalaidsa.nebular.co.za
  15063. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:60 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: ORIGINATOR_CANCEL
  15064. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  15065. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:619 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  15066. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:60 sofia/default/4607597910@legalaidsa.nebular.co.za Standard HANGUP, cause: ORIGINATOR_CANCEL
  15067. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP going to sleep
  15068. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 65 Tot 575020)
  15069. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:619 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  15070. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 65 Tot 575020)
  15071. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State REPORTING
  15072. 2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING
  15073. 2024-03-22 07:54:34.884159 [INFO] mod_json_cdr.c:271 Process [6c44a262-e821-11ee-9261-d17fbcf33421.cdr.json]
  15074. 2024-03-22 07:54:34.884159 [INFO] mod_json_cdr.c:271 Process [6b9af848-e821-11ee-9236-d17fbcf33421.cdr.json]
  15075. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:174 sofia/default/4607597910@legalaidsa.nebular.co.za Standard REPORTING, cause: ORIGINATOR_CANCEL
  15076. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING going to sleep
  15077. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:610 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  15078. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_session.c:1665 Session 575019 (sofia/default/4607597910@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  15079. 2024-03-22 07:54:34.904400 [NOTICE] switch_core_session.c:1683 Session 575019 (sofia/default/4607597910@legalaidsa.nebular.co.za) Ended
  15080. 2024-03-22 07:54:34.904400 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/4607597910@legalaidsa.nebular.co.za [CS_DESTROY]
  15081. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:741 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 64 Tot 575020)
  15082. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY
  15083. 2024-03-22 07:54:34.904400 [DEBUG] mod_sofia.c:343 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA DESTROY
  15084. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:181 sofia/default/4607597910@legalaidsa.nebular.co.za Standard DESTROY
  15085. 2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY going to sleep
  15086. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:174 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: ORIGINATOR_CANCEL
  15087. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  15088. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:610 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  15089. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_session.c:1665 Session 575018 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  15090. 2024-03-22 07:54:34.924161 [NOTICE] switch_core_session.c:1683 Session 575018 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Ended
  15091. 2024-03-22 07:54:34.924161 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  15092. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:741 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 63 Tot 575020)
  15093. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State DESTROY
  15094. 2024-03-22 07:54:34.924161 [DEBUG] mod_sofia.c:343 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  15095. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard DESTROY
  15096. 2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  15097. 2024-03-22 07:54:35.044165 [DEBUG] switch_ivr_bridge.c:546 sofia/default/4607597910@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  15098. 2024-03-22 07:54:35.064168 [DEBUG] switch_ivr.c:623 sofia/default/4607597910@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  15099. EXECUTE sofia/default/4607597910@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  15100. 2024-03-22 07:54:35.064168 [DEBUG] switch_scheduler.c:249 Added task 232847 switch_ivr_schedule_hangup (6b7cae38-e821-11ee-9232-d17fbcf33421) to run at 1711100075
  15101. 2024-03-22 07:54:35.064168 [DEBUG] switch_scheduler.c:144 Deleting task 232841 switch_ivr_schedule_hangup (63cb949c-e821-11ee-913e-d17fbcf33421)
  15102. 2024-03-22 07:54:35.124826 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:9002 to 156.38.231.105:9002
  15103. 2024-03-22 07:54:35.164303 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  15104. 2024-03-22 07:54:35.224186 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [ready][200]
  15105. EXECUTE sofia/default/0786191654@41.160.32.115:5060 ring_ready()
  15106. 2024-03-22 07:54:35.484171 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0786191654@41.160.32.115:5060!
  15107. 2024-03-22 07:54:35.484171 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [early][180]
  15108. 2024-03-22 07:54:35.484171 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0786191654@41.160.32.115:5060!
  15109. EXECUTE sofia/default/0786191654@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/1025211323@legalaidsa.nebular.co.za^0392510098)
  15110. 2024-03-22 07:54:35.504308 [DEBUG] switch_channel.c:1250 sofia/default/0786191654@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  15111. 2024-03-22 07:54:35.504308 [DEBUG] switch_channel.c:1250 sofia/default/0786191654@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  15112. 2024-03-22 07:54:35.504308 [DEBUG] switch_channel.c:1250 sofia/default/0786191654@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  15113. 2024-03-22 07:54:35.504308 [DEBUG] switch_channel.c:1250 sofia/default/0786191654@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  15114. 2024-03-22 07:54:35.504308 [DEBUG] switch_channel.c:1250 sofia/default/0786191654@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  15115. 2024-03-22 07:54:35.504308 [DEBUG] switch_channel.c:1250 sofia/default/0786191654@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  15116. 2024-03-22 07:54:35.504308 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  15117. 2024-03-22 07:54:35.504308 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  15118. 2024-03-22 07:54:35.504308 [NOTICE] switch_channel.c:1104 New Channel sofia/default/1025211323@legalaidsa.nebular.co.za [6cfb6eac-e821-11ee-928f-d17fbcf33421]
  15119. 2024-03-22 07:54:35.504308 [DEBUG] mod_sofia.c:4819 (sofia/default/1025211323@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  15120. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1025211323@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 64 Tot 575021)
  15121. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1025211323@legalaidsa.nebular.co.za) State INIT
  15122. 2024-03-22 07:54:35.504308 [DEBUG] mod_sofia.c:90 sofia/default/1025211323@legalaidsa.nebular.co.za SOFIA INIT
  15123. 2024-03-22 07:54:35.504308 [DEBUG] sofia_glue.c:1295 sofia/default/1025211323@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  15124. Local SDP:                                                                                                                                                                                                        
  15125. v=0                                                                                                                                                                                                                
  15126. o=FreeSWITCH 1711070229 1711070230 IN IP4 156.38.231.107                                                                                                                                                          
  15127. s=FreeSWITCH                                                                                                                                                                                                      
  15128. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  15129. t=0 0                                                                                                                                                                                                              
  15130. m=audio 23846 RTP/AVP 18 101                                                                                                                                                                                      
  15131. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15132. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15133. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15134. a=fmtp:101 0-16                                                                                                                                                                                                    
  15135. a=ptime:20                                                                                                                                                                                                        
  15136. a=sendrecv                                                                                                                                                                                                        
  15137.  
  15138. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:40 sofia/default/1025211323@legalaidsa.nebular.co.za Standard INIT
  15139. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1025211323@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  15140. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1025211323@legalaidsa.nebular.co.za) State INIT going to sleep
  15141. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1025211323@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 64 Tot 575021)
  15142. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1025211323@legalaidsa.nebular.co.za) State ROUTING
  15143. 2024-03-22 07:54:35.504308 [DEBUG] mod_sofia.c:143 sofia/default/1025211323@legalaidsa.nebular.co.za SOFIA ROUTING
  15144. 2024-03-22 07:54:35.504308 [DEBUG] switch_ivr_originate.c:67 (sofia/default/1025211323@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  15145. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1025211323@legalaidsa.nebular.co.za) State ROUTING going to sleep
  15146. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1025211323@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 64 Tot 575021)
  15147. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1025211323@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  15148. 2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1025211323@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  15149. 2024-03-22 07:54:35.504308 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [calling][0]
  15150. 2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [proceeding][180]
  15151. 2024-03-22 07:54:35.664169 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/1025211323@legalaidsa.nebular.co.za!
  15152. 2024-03-22 07:54:35.664169 [DEBUG] switch_channel.c:3346 (sofia/default/1025211323@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  15153. 2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [completing][200]
  15154. 2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7094 Remote SDP:
  15155. v=0                                                                                                                                                                                                                
  15156. o=3cxPS 229428428800 282142441473 IN IP4 156.38.150.6                                                                                                                                                              
  15157. s=3cxPS Audio call                                                                                                                                                                                                
  15158. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  15159. t=0 0                                                                                                                                                                                                              
  15160. m=audio 9008 RTP/AVP 18 101                                                                                                                                                                                        
  15161. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15162. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15163. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15164.  
  15165. 2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [ready][200]
  15166. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  15167. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  15168. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  15169. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/1025211323@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  15170. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_codec.c:111 sofia/default/1025211323@legalaidsa.nebular.co.za Original read codec set to G729:18
  15171. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  15172. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4767 sofia/default/1025211323@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  15173. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/1025211323@legalaidsa.nebular.co.za] 156.38.231.107 port 23846 -> 156.38.150.6 port 9008 codec: 18 ms: 20
  15174. 2024-03-22 07:54:35.664169 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  15175. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:7180 sofia/default/1025211323@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  15176. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:7187 sofia/default/1025211323@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  15177. 2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:7210 sofia/default/1025211323@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  15178. 2024-03-22 07:54:35.664169 [NOTICE] sofia.c:8218 Channel [sofia/default/1025211323@legalaidsa.nebular.co.za] has been answered
  15179. 2024-03-22 07:54:35.664169 [DEBUG] switch_channel.c:3773 (sofia/default/1025211323@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  15180. 2024-03-22 07:54:35.684155 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0786191654@41.160.32.115:5060!
  15181. 2024-03-22 07:54:35.684155 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0786191654@41.160.32.115:5060] 156.38.231.107 port 18004 -> 41.160.32.115 port 24826 codec: 18 ms: 20
  15182. 2024-03-22 07:54:35.684155 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  15183. 2024-03-22 07:54:35.684155 [DEBUG] switch_core_media.c:7180 sofia/default/0786191654@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  15184. 2024-03-22 07:54:35.684155 [DEBUG] switch_core_media.c:7187 sofia/default/0786191654@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  15185. 2024-03-22 07:54:35.684155 [DEBUG] switch_core_media.c:7210 sofia/default/0786191654@41.160.32.115:5060 Set rtp dtmf delay to 40
  15186. 2024-03-22 07:54:35.684155 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0786191654@41.160.32.115:5060:
  15187. v=0                                                                                                                                                                                                                
  15188. o=FreeSWITCH 1711076071 1711076072 IN IP4 156.38.231.107                                                                                                                                                          
  15189. s=FreeSWITCH                                                                                                                                                                                                      
  15190. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  15191. t=0 0                                                                                                                                                                                                              
  15192. m=audio 18004 RTP/AVP 18 101                                                                                                                                                                                      
  15193. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15194. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15195. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15196. a=fmtp:101 0-16                                                                                                                                                                                                    
  15197. a=ptime:20                                                                                                                                                                                                        
  15198. a=sendrecv                                                                                                                                                                                                        
  15199.  
  15200. 2024-03-22 07:54:35.684155 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0786191654@41.160.32.115:5060] has been answered
  15201. 2024-03-22 07:54:35.684155 [DEBUG] switch_channel.c:3773 (sofia/default/0786191654@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  15202. 2024-03-22 07:54:35.684155 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/1025211323@legalaidsa.nebular.co.za]
  15203. 2024-03-22 07:54:35.684155 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [completed][200]
  15204. 2024-03-22 07:54:35.684155 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/1025211323@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  15205. 2024-03-22 07:54:35.684155 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1025211323@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 64 Tot 575021)
  15206. 2024-03-22 07:54:35.684155 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1025211323@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  15207. 2024-03-22 07:54:35.684155 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  15208. 2024-03-22 07:54:35.864167 [DEBUG] switch_ivr_bridge.c:546 sofia/default/1025211323@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  15209. 2024-03-22 07:54:35.884157 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [ready][200]
  15210. 2024-03-22 07:54:35.884157 [DEBUG] switch_ivr.c:623 sofia/default/1025211323@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  15211. EXECUTE sofia/default/1025211323@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  15212. 2024-03-22 07:54:35.884157 [DEBUG] switch_scheduler.c:249 Added task 232848 switch_ivr_schedule_hangup (6cfb6eac-e821-11ee-928f-d17fbcf33421) to run at 1711100075
  15213. 2024-03-22 07:54:35.924161 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  15214. 2024-03-22 07:54:35.944172 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:9008 to 156.38.231.105:9008
  15215. 2024-03-22 07:54:35.964163 [NOTICE] sofia.c:1012 Hangup sofia/default/7930557423@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  15216. 2024-03-22 07:54:35.964163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7930557423@legalaidsa.nebular.co.za]
  15217. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7930557423@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA going to sleep
  15218. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_HANGUP (Cur 64 Tot 575021)
  15219. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7930557423@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HANGUP
  15220. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7930557423@legalaidsa.nebular.co.za) State HANGUP
  15221. 2024-03-22 07:54:35.964163 [DEBUG] mod_sofia.c:438 Channel sofia/default/7930557423@legalaidsa.nebular.co.za hanging up, cause: NORMAL_CLEARING
  15222. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:60 sofia/default/7930557423@legalaidsa.nebular.co.za Standard HANGUP, cause: NORMAL_CLEARING
  15223. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7930557423@legalaidsa.nebular.co.za) State HANGUP going to sleep
  15224. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7930557423@legalaidsa.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  15225. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_REPORTING (Cur 64 Tot 575021)
  15226. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7930557423@legalaidsa.nebular.co.za) State REPORTING
  15227. 2024-03-22 07:54:35.964163 [INFO] mod_json_cdr.c:271 Process [643c907a-e821-11ee-9149-d17fbcf33421.cdr.json]
  15228. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:174 sofia/default/7930557423@legalaidsa.nebular.co.za Standard REPORTING, cause: NORMAL_CLEARING
  15229. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7930557423@legalaidsa.nebular.co.za) State REPORTING going to sleep
  15230. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7930557423@legalaidsa.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  15231. 2024-03-22 07:54:35.964163 [DEBUG] switch_core_session.c:1665 Session 575007 (sofia/default/7930557423@legalaidsa.nebular.co.za) Locked, Waiting on external entities
  15232. 2024-03-22 07:54:35.984384 [DEBUG] switch_ivr_bridge.c:706 sofia/default/7930557423@legalaidsa.nebular.co.za ending bridge by request from write function
  15233. 2024-03-22 07:54:35.984384 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0664660716@41.160.32.115:5060]
  15234. 2024-03-22 07:54:35.984384 [NOTICE] switch_ivr_bridge.c:1764 Hangup sofia/default/0664660716@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  15235. 2024-03-22 07:54:35.984384 [NOTICE] switch_core_session.c:1683 Session 575007 (sofia/default/7930557423@legalaidsa.nebular.co.za) Ended
  15236. 2024-03-22 07:54:35.984384 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7930557423@legalaidsa.nebular.co.za [CS_DESTROY]
  15237. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_session.c:2815 sofia/default/0664660716@41.160.32.115:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  15238. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0664660716@41.160.32.115:5060) State EXECUTE going to sleep
  15239. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_HANGUP (Cur 63 Tot 575021)
  15240. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7930557423@legalaidsa.nebular.co.za) Running State Change CS_DESTROY (Cur 63 Tot 575021)
  15241. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0664660716@41.160.32.115:5060) Callstate Change ACTIVE -> HANGUP
  15242. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0664660716@41.160.32.115:5060) State HANGUP
  15243. 2024-03-22 07:54:35.984384 [DEBUG] mod_sofia.c:432 sofia/default/0664660716@41.160.32.115:5060 Overriding SIP cause 480 with 200 from the other leg
  15244. 2024-03-22 07:54:35.984384 [DEBUG] mod_sofia.c:438 Channel sofia/default/0664660716@41.160.32.115:5060 hanging up, cause: NORMAL_CLEARING
  15245. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7930557423@legalaidsa.nebular.co.za) State DESTROY
  15246. 2024-03-22 07:54:35.984384 [DEBUG] mod_sofia.c:343 sofia/default/7930557423@legalaidsa.nebular.co.za SOFIA DESTROY
  15247. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:181 sofia/default/7930557423@legalaidsa.nebular.co.za Standard DESTROY
  15248. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7930557423@legalaidsa.nebular.co.za) State DESTROY going to sleep
  15249. 2024-03-22 07:54:35.984384 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0664660716@41.160.32.115:5060
  15250. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:60 sofia/default/0664660716@41.160.32.115:5060 Standard HANGUP, cause: NORMAL_CLEARING
  15251. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0664660716@41.160.32.115:5060) State HANGUP going to sleep
  15252. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0664660716@41.160.32.115:5060) State Change CS_HANGUP -> CS_REPORTING
  15253. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_REPORTING (Cur 63 Tot 575021)
  15254. 2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0664660716@41.160.32.115:5060) State REPORTING
  15255. 2024-03-22 07:54:35.984384 [INFO] mod_json_cdr.c:271 Process [6393e542-e821-11ee-9116-d17fbcf33421.cdr.json]
  15256. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:174 sofia/default/0664660716@41.160.32.115:5060 Standard REPORTING, cause: NORMAL_CLEARING
  15257. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0664660716@41.160.32.115:5060) State REPORTING going to sleep
  15258. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0664660716@41.160.32.115:5060) State Change CS_REPORTING -> CS_DESTROY
  15259. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_session.c:1665 Session 575005 (sofia/default/0664660716@41.160.32.115:5060) Locked, Waiting on external entities
  15260. 2024-03-22 07:54:36.004155 [NOTICE] switch_core_session.c:1683 Session 575005 (sofia/default/0664660716@41.160.32.115:5060) Ended
  15261. 2024-03-22 07:54:36.004155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0664660716@41.160.32.115:5060 [CS_DESTROY]
  15262. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0664660716@41.160.32.115:5060) Running State Change CS_DESTROY (Cur 62 Tot 575021)
  15263. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0664660716@41.160.32.115:5060) State DESTROY
  15264. 2024-03-22 07:54:36.004155 [DEBUG] mod_sofia.c:343 sofia/default/0664660716@41.160.32.115:5060 SOFIA DESTROY
  15265. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:181 sofia/default/0664660716@41.160.32.115:5060 Standard DESTROY
  15266. 2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0664660716@41.160.32.115:5060) State DESTROY going to sleep
  15267. 2024-03-22 07:54:36.384174 [DEBUG] switch_scheduler.c:144 Deleting task 232843 switch_ivr_schedule_hangup (643c907a-e821-11ee-9149-d17fbcf33421)
  15268. 2024-03-22 07:54:36.964164 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0738101266@41.160.32.115:5060 [6dda285e-e821-11ee-9295-d17fbcf33421]
  15269. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0738101266@41.160.32.115:5060) Running State Change CS_NEW (Cur 63 Tot 575022)
  15270. 2024-03-22 07:54:36.964164 [DEBUG] sofia.c:9873 sofia/default/0738101266@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  15271. 2024-03-22 07:54:36.964164 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  15272. 2024-03-22 07:54:36.964164 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [received][100]
  15273. 2024-03-22 07:54:36.964164 [DEBUG] sofia.c:7094 Remote SDP:
  15274. v=0                                                                                                                                                                                                                
  15275. o=HuaweiSoftX3000 117189461049912 117189461049912 IN IP4 41.160.32.115                                                                                                                                            
  15276. s=-                                                                                                                                                                                                                
  15277. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  15278. t=0 0                                                                                                                                                                                                              
  15279. m=audio 24828 RTP/AVP 18 8 0 101                                                                                                                                                                                  
  15280. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15281. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15282. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  15283. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  15284. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15285. a=fmtp:101 0-15                                                                                                                                                                                                    
  15286. a=ptime:20                                                                                                                                                                                                        
  15287.  
  15288. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  15289. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  15290. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  15291. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  15292. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  15293. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  15294. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  15295. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  15296. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  15297. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  15298. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  15299. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  15300. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  15301. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  15302. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  15303. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  15304. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  15305. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/0738101266@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  15306. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_codec.c:111 sofia/default/0738101266@41.160.32.115:5060 Original read codec set to G729:18
  15307. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  15308. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4767 sofia/default/0738101266@41.160.32.115:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  15309. 2024-03-22 07:54:36.964164 [DEBUG] sofia.c:7507 (sofia/default/0738101266@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  15310. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0738101266@41.160.32.115:5060) State NEW
  15311. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0738101266@41.160.32.115:5060) Running State Change CS_INIT (Cur 63 Tot 575022)
  15312. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0738101266@41.160.32.115:5060) State INIT
  15313. 2024-03-22 07:54:36.964164 [DEBUG] mod_sofia.c:90 sofia/default/0738101266@41.160.32.115:5060 SOFIA INIT
  15314. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:40 sofia/default/0738101266@41.160.32.115:5060 Standard INIT
  15315. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0738101266@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  15316. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0738101266@41.160.32.115:5060) State INIT going to sleep
  15317. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0738101266@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 63 Tot 575022)
  15318. 2024-03-22 07:54:36.964164 [DEBUG] switch_channel.c:2249 (sofia/default/0738101266@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  15319. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0738101266@41.160.32.115:5060) State ROUTING
  15320. 2024-03-22 07:54:36.964164 [DEBUG] mod_sofia.c:143 sofia/default/0738101266@41.160.32.115:5060 SOFIA ROUTING
  15321. 2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:236 sofia/default/0738101266@41.160.32.115:5060 Standard ROUTING
  15322. 2024-03-22 07:54:36.964164 [INFO] mod_dialplan_xml.c:637 Processing 0738101266 <0738101266>->D9570119383547 in context default
  15323. 2024-03-22 07:54:36.964164 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  15324. 2024-03-22 07:54:36.964164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  15325. 2024-03-22 07:54:36.964164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  15326. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  15327. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570119383547
  15328. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570119383547' limit 1
  15329. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570119383547' AND status=0 limit 1
  15330. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570119383547' and status=0 LIMIT 1                                                                                                                                                                                                      
  15331. 2024-03-22 07:54:36.984205 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  15332. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 0738101266 / <null>
  15333. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570119383547" LIMIT 1                                                                                                                                                          
  15334. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [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="D9570119383547"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  15335. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  15336. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  15337. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  15338. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570119383547.*' OR blocked_patterns = '^D957011938354.*' OR blocked_patterns = '^D95701193835.*' OR blocked_patterns = '^D9570119383.*' OR blocked_patterns = '^D957011938.*' OR blocked_patterns = '^D95701193.*' OR blocked_patterns = '^D9570119.*' OR blocked_patterns = '^D957011.*' OR blocked_patterns = '^D95701.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  15339. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570119383547" AND (accountid = 0 OR status = 1) LIMIT 1
  15340. 2024-03-22 07:54:36.984205 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  15341. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  15342. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
  15343. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
  15344. 2024-03-22 07:54:36.984205 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570119383547
  15345. 2024-03-22 07:54:36.984205 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0119383547
  15346. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [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 = '^0119383547.*' OR patterns = '^011938354.*' OR patterns = '^01193835.*' OR patterns = '^0119383.*' OR patterns = '^011938.*' OR patterns = '^01193.*' OR patterns = '^0119.*' OR patterns = '^011.*' OR patterns = '^01.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  15347. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [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 ="0119383547" AND A.accountid = '3' limit 1                                                                                                                                                                          
  15348. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0119383547
  15349. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [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 ="0119383547" LIMIT 1                                                                                                                                                              
  15350. 2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  15351. 2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0119383547' OR number = '011938354' OR number = '01193835' OR number = '0119383' OR number = '011938' OR number = '01193' OR number = '0119' OR number = '011' OR number = '01' OR number = '0' OR number ='--') OR (number = '0119383547*' OR number = '011938354*' OR number = '01193835*' OR number = '0119383*' OR number = '011938*' OR number = '01193*' OR number = '0119*' OR number = '011*' OR number = '01*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  15352. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  15353. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0119383547' OR routing_prefix = '011938354' OR routing_prefix = '01193835' OR routing_prefix = '0119383' OR routing_prefix = '011938' OR routing_prefix = '01193' OR routing_prefix = '0119' OR routing_prefix = '011' OR routing_prefix = '01' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  15354. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  15355. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  15356. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  15357. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  15358. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  15359. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  15360. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  15361. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  15362. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  15363. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  15364. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [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 ="0119383547" LIMIT 1                                                                                                                                                              
  15365. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  15366. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  15367. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 7969
  15368. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  15369. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  15370. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  15371. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0119383547
  15372. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  15373. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  15374. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  15375. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  15376. 2024-03-22 07:54:37.004156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  15377. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  15378. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  15379. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  15380. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  15381. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  15382. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  15383. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  15384. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  15385. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  15386. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  15387. 2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  15388. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  15389. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  15390. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  15391. 2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  15392. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0738101266
  15393. 2024-03-22 07:54:37.004156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0738101266
  15394. 2024-03-22 07:54:37.004156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27738101266
  15395. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  15396. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  15397. 2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  15398. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  15399. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [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="7106027339"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  15400. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1137 limit 1
  15401. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  15402. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  15403. 2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  15404. 2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  15405. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  15406. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  15407. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7106027339' and uuid = '6dda285e-e821-11ee-9295-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  15408. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='7106027339' order by id desc limit 1
  15409. 2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [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="7106027339"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  15410. 2024-03-22 07:54:37.024161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1137 limit 1
  15411. 2024-03-22 07:54:37.024161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  15412. <document type="freeswitch/xml">                                                                                                                                                                                  
  15413. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  15414. <context name="default">                                                                                                                                                                                          
  15415. <extension name="0119383547">                                                                                                                                                                                      
  15416. <condition field="destination_number" expression="D9570119383547">                                                                                                                                                
  15417. <action application="set" data="effective_destination_number=0119383547"/>                                                                                                                                        
  15418. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  15419. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  15420. <action application="set" data="callstart=2024-03-22 07:54:37"/>                                                                                                                                                  
  15421. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  15422. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  15423. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  15424. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  15425. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  15426. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  15427. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  15428. <action application="set" data="accountname=default"/>                                                                                                                                                            
  15429. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  15430. <action application="set" data="origination_rates_did=ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  15431. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  15432. <action application="set" data="original_caller_id_name=0738101266"/>                                                                                                                                              
  15433. <action application="set" data="effective_caller_id_name=27738101266"/>                                                                                                                                            
  15434. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  15435. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  15436. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  15437. <action application="export" data="presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  15438. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  15439. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  15440. <action application="db" data="insert/pickup_any_group_${callgroup}/7106027339/${uuid}"/>                                                                                                                          
  15441. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  15442. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  15443. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  15444. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  15445. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  15446. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  15447. <action application="sleep" data="1000"/>                                                                                                                                                                          
  15448. <action application="ring_ready"/>                                                                                                                                                                                
  15449. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7106027339@legalaidsa.nebular.co.za^0119383547"/>                                                    
  15450. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  15451. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  15452. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  15453. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  15454. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  15455. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  15456. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  15457. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  15458. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  15459. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  15460. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  15461. <action application="set" data="sip_destination_number=7106027339"/>                                                                                                                                              
  15462. <action application="set" data="destination_number=0119383547"/>                                                                                                                                                  
  15463. <action application="set" data="did_number=0119383547"/>                                                                                                                                                          
  15464. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  15465. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  15466. <condition field="${cond(${user_data 7106027339@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  15467. <action application="answer"/>                                                                                                                                                                                    
  15468. <action application="export" data="voicemail_alternate_greet_id=0119383547"/>                                                                                                                                      
  15469. <action application="voicemail" data="default $${domain_name} 7106027339"/>                                                                                                                                        
  15470. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  15471. </condition>                                                                                                                                                                                                      
  15472. </condition>                                                                                                                                                                                                      
  15473. </extension>                                                                                                                                                                                                      
  15474. </context>                                                                                                                                                                                                        
  15475. </section>                                                                                                                                                                                                        
  15476. </document>                                                                                                                                                                                                        
  15477. 2024-03-22 07:54:37.024161 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  15478. Dialplan: sofia/default/0738101266@41.160.32.115:5060 parsing [default->0119383547] continue=false
  15479. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Regex (PASS) [0119383547] destination_number(D9570119383547) =~ /D9570119383547/ break=on-false
  15480. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(effective_destination_number=0119383547)
  15481. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  15482. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  15483. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:37)
  15484. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  15485. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  15486. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(account_id=3)
  15487. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(parent_id=0)
  15488. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(entity_id=3)
  15489. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(call_processed=internal)
  15490. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(call_direction=inbound)
  15491. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(accountname=default)
  15492. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  15493. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(origination_rates_did=ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                      
  15494. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(origination_rates=0)
  15495. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(original_caller_id_name=0738101266)
  15496. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(effective_caller_id_name=27738101266)
  15497. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(receiver_accid=109)
  15498. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  15499. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  15500. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115)
  15501. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(call_type=5)
  15502. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(calltype=SIP-DID)
  15503. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7106027339/${uuid})
  15504. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  15505. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  15506. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  15507. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  15508. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  15509. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  15510. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action sleep(1000)
  15511. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action ring_ready()
  15512. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7106027339@legalaidsa.nebular.co.za^0119383547)
  15513. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(on_busy_flag=1)
  15514. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(on_busy_destination=)
  15515. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(no_answer_flag=1)
  15516. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(no_answer_destination=)
  15517. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(not_register_flag=1)
  15518. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(not_register_destination=)
  15519. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(opensips_flag=0)
  15520. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  15521. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  15522. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(leg_timeout=20)
  15523. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(userinfo_id=109)
  15524. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(sip_destination_number=7106027339)
  15525. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(destination_number=0119383547)
  15526. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(did_number=0119383547)
  15527. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  15528. Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  15529. |--- Dialplan: Processing recursive conditions level:1 [0119383547_recur_1] require-nested=TRUE
  15530. |--- Dialplan: sofia/default/0738101266@41.160.32.115:5060 Regex (FAIL) [0119383547_recur_1] ${cond(${user_data 7106027339@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  15531. |--- Dialplan: sofia/default/0738101266@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  15532. 2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:286 (sofia/default/0738101266@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  15533. 2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0738101266@41.160.32.115:5060) State ROUTING going to sleep
  15534. 2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0738101266@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 63 Tot 575022)
  15535. 2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0738101266@41.160.32.115:5060) State EXECUTE
  15536. 2024-03-22 07:54:37.044153 [DEBUG] mod_sofia.c:198 sofia/default/0738101266@41.160.32.115:5060 SOFIA EXECUTE
  15537. 2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0738101266@41.160.32.115:5060 Standard EXECUTE
  15538. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(effective_destination_number=0119383547)
  15539. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [effective_destination_number]=[0119383547]
  15540. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  15541. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  15542. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  15543. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  15544. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(callstart=2024-03-22 07:54:37)
  15545. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:37]
  15546. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(hangup_after_bridge=true)
  15547. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [hangup_after_bridge]=[true]
  15548. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(continue_on_fail=TRUE)
  15549. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  15550. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(account_id=3)
  15551. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [account_id]=[3]
  15552. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(parent_id=0)
  15553. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [parent_id]=[0]
  15554. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(entity_id=3)
  15555. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [entity_id]=[3]
  15556. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(call_processed=internal)
  15557. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [call_processed]=[internal]
  15558. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(call_direction=inbound)
  15559. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [call_direction]=[inbound]
  15560. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(accountname=default)
  15561. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [accountname]=[default]
  15562. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  15563. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  15564. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(origination_rates_did=ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  15565. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [origination_rates_did]=[ID:7969|CODE:^0119383547.*|DESTINATION:0119383547|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                              
  15566. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(origination_rates=0)
  15567. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [origination_rates]=[0]
  15568. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(original_caller_id_name=0738101266)
  15569. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [original_caller_id_name]=[0738101266]
  15570. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(effective_caller_id_name=27738101266)
  15571. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [effective_caller_id_name]=[27738101266]
  15572. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(receiver_accid=109)
  15573. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [receiver_accid]=[109]
  15574. EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  15575. 2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  15576. EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  15577. 2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  15578. EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115)
  15579. 2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115]
  15580. EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(call_type=5)
  15581. 2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  15582. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(calltype=SIP-DID)
  15583. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [calltype]=[SIP-DID]
  15584. EXECUTE sofia/default/0738101266@41.160.32.115:5060 db(insert/pickup_any_group_/7106027339/6dda285e-e821-11ee-9295-d17fbcf33421)
  15585. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(dialed_extension=transfer_call)
  15586. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  15587. EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(dialed_extension=transfer_call)
  15588. 2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  15589. EXECUTE sofia/default/0738101266@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  15590. 2024-03-22 07:54:37.044153 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  15591. EXECUTE sofia/default/0738101266@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  15592. 2024-03-22 07:54:37.044153 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  15593. EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(hangup_after_bridge=true)
  15594. 2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [hangup_after_bridge]=[true]
  15595. EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  15596. 2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  15597. EXECUTE sofia/default/0738101266@41.160.32.115:5060 sleep(1000)
  15598. 2024-03-22 07:54:37.744492 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [completing][200]
  15599. 2024-03-22 07:54:37.744492 [DEBUG] sofia.c:7091 Duplicate SDP
  15600. v=0                                                                                                                                                                                                                
  15601. o=HuaweiSoftX3000 123232480029889 123232480029889 IN IP4 41.160.32.115                                                                                                                                            
  15602. s=-                                                                                                                                                                                                                
  15603. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  15604. t=0 0                                                                                                                                                                                                              
  15605. m=audio 24822 RTP/AVP 8 101                                                                                                                                                                                        
  15606. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  15607. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15608. a=fmtp:101 0-15                                                                                                                                                                                                    
  15609. a=ptime:20                                                                                                                                                                                                        
  15610.  
  15611. 2024-03-22 07:54:37.764178 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [ready][200]
  15612. 2024-03-22 07:54:37.764178 [NOTICE] sofia.c:8159 Channel [sofia/default/0645582716] has been answered
  15613. 2024-03-22 07:54:37.764178 [DEBUG] switch_channel.c:3773 (sofia/default/0645582716) Callstate Change RINGING -> ACTIVE
  15614. 2024-03-22 07:54:37.764178 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0458073204@legalaidsa.nebular.co.za:5060.
  15615. 2024-03-22 07:54:37.764178 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0458073204@legalaidsa.nebular.co.za:5060:
  15616. v=0                                                                                                                                                                                                                
  15617. o=FreeSWITCH 1711076967 1711076969 IN IP4 156.38.231.107                                                                                                                                                          
  15618. s=FreeSWITCH                                                                                                                                                                                                      
  15619. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  15620. t=0 0                                                                                                                                                                                                              
  15621. m=audio 17104 RTP/AVP 8 101                                                                                                                                                                                        
  15622. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  15623. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15624. a=fmtp:101 0-16                                                                                                                                                                                                    
  15625. a=ptime:20                                                                                                                                                                                                        
  15626. a=sendrecv                                                                                                                                                                                                        
  15627.  
  15628. 2024-03-22 07:54:37.764178 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0458073204@legalaidsa.nebular.co.za:5060] has been answered
  15629. 2024-03-22 07:54:37.764178 [DEBUG] switch_channel.c:3773 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  15630. 2024-03-22 07:54:37.764178 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  15631. 2024-03-22 07:54:37.784201 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  15632. 2024-03-22 07:54:37.824187 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  15633. 2024-03-22 07:54:37.824187 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  15634. EXECUTE sofia/default/0738101266@41.160.32.115:5060 ring_ready()
  15635. 2024-03-22 07:54:38.064186 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0738101266@41.160.32.115:5060!
  15636. 2024-03-22 07:54:38.064186 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [early][180]
  15637. 2024-03-22 07:54:38.064186 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0738101266@41.160.32.115:5060!
  15638. EXECUTE sofia/default/0738101266@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/default/7106027339@legalaidsa.nebular.co.za^0119383547)
  15639. 2024-03-22 07:54:38.064186 [DEBUG] switch_channel.c:1250 sofia/default/0738101266@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  15640. 2024-03-22 07:54:38.064186 [DEBUG] switch_channel.c:1250 sofia/default/0738101266@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  15641. 2024-03-22 07:54:38.064186 [DEBUG] switch_channel.c:1250 sofia/default/0738101266@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  15642. 2024-03-22 07:54:38.064186 [DEBUG] switch_channel.c:1250 sofia/default/0738101266@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  15643. 2024-03-22 07:54:38.064186 [DEBUG] switch_channel.c:1250 sofia/default/0738101266@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  15644. 2024-03-22 07:54:38.064186 [DEBUG] switch_channel.c:1250 sofia/default/0738101266@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  15645. 2024-03-22 07:54:38.064186 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  15646. 2024-03-22 07:54:38.064186 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  15647. 2024-03-22 07:54:38.064186 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7106027339@legalaidsa.nebular.co.za [6e8367a2-e821-11ee-92bd-d17fbcf33421]
  15648. 2024-03-22 07:54:38.064186 [DEBUG] mod_sofia.c:4819 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  15649. 2024-03-22 07:54:38.064186 [DEBUG] switch_ivr_originate.c:2963 sofia/default/7106027339@legalaidsa.nebular.co.za Setting leg timeout to 30
  15650. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 64 Tot 575023)
  15651. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7106027339@legalaidsa.nebular.co.za) State INIT
  15652. 2024-03-22 07:54:38.064186 [DEBUG] mod_sofia.c:90 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA INIT
  15653. 2024-03-22 07:54:38.064186 [DEBUG] sofia_glue.c:1295 sofia/default/7106027339@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  15654. Local SDP:                                                                                                                                                                                                        
  15655. v=0                                                                                                                                                                                                                
  15656. o=FreeSWITCH 1711061330 1711061331 IN IP4 156.38.231.107                                                                                                                                                          
  15657. s=FreeSWITCH                                                                                                                                                                                                      
  15658. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  15659. t=0 0                                                                                                                                                                                                              
  15660. m=audio 32748 RTP/AVP 18 101                                                                                                                                                                                      
  15661. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15662. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15663. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15664. a=fmtp:101 0-16                                                                                                                                                                                                    
  15665. a=ptime:20                                                                                                                                                                                                        
  15666. a=sendrecv                                                                                                                                                                                                        
  15667.  
  15668. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:40 sofia/default/7106027339@legalaidsa.nebular.co.za Standard INIT
  15669. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  15670. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7106027339@legalaidsa.nebular.co.za) State INIT going to sleep
  15671. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 64 Tot 575023)
  15672. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7106027339@legalaidsa.nebular.co.za) State ROUTING
  15673. 2024-03-22 07:54:38.064186 [DEBUG] mod_sofia.c:143 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA ROUTING
  15674. 2024-03-22 07:54:38.064186 [DEBUG] switch_ivr_originate.c:67 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  15675. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7106027339@legalaidsa.nebular.co.za) State ROUTING going to sleep
  15676. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 64 Tot 575023)
  15677. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7106027339@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  15678. 2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7106027339@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  15679. 2024-03-22 07:54:38.064186 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [calling][0]
  15680. 2024-03-22 07:54:38.304179 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [proceeding][180]
  15681. 2024-03-22 07:54:38.304179 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7106027339@legalaidsa.nebular.co.za!
  15682. 2024-03-22 07:54:38.304179 [DEBUG] switch_channel.c:3346 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  15683. 2024-03-22 07:54:38.304179 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0738101266@41.160.32.115:5060!
  15684. 2024-03-22 07:54:40.304170 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [completing][200]
  15685. 2024-03-22 07:54:40.304170 [DEBUG] sofia.c:7094 Remote SDP:
  15686. v=0                                                                                                                                                                                                                
  15687. o=3cxPS 370222825472 441542770689 IN IP4 156.38.150.6                                                                                                                                                              
  15688. s=3cxPS Audio call                                                                                                                                                                                                
  15689. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  15690. t=0 0                                                                                                                                                                                                              
  15691. m=audio 9010 RTP/AVP 18 101                                                                                                                                                                                        
  15692. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15693. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15694. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15695.  
  15696. 2024-03-22 07:54:40.304170 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [ready][200]
  15697. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  15698. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  15699. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  15700. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/7106027339@legalaidsa.nebular.co.za G729/8000 20 ms 160 samples 8000 bits 1 channels
  15701. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_codec.c:111 sofia/default/7106027339@legalaidsa.nebular.co.za Original read codec set to G729:18
  15702. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  15703. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4767 sofia/default/7106027339@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101 recv payload to 101
  15704. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/7106027339@legalaidsa.nebular.co.za] 156.38.231.107 port 32748 -> 156.38.150.6 port 9010 codec: 18 ms: 20
  15705. 2024-03-22 07:54:40.304170 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  15706. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:7180 sofia/default/7106027339@legalaidsa.nebular.co.za Set 2833 dtmf send payload to 101
  15707. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:7187 sofia/default/7106027339@legalaidsa.nebular.co.za Set 2833 dtmf receive payload to 101
  15708. 2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:7210 sofia/default/7106027339@legalaidsa.nebular.co.za Set rtp dtmf delay to 40
  15709. 2024-03-22 07:54:40.304170 [NOTICE] sofia.c:8218 Channel [sofia/default/7106027339@legalaidsa.nebular.co.za] has been answered
  15710. 2024-03-22 07:54:40.304170 [DEBUG] switch_channel.c:3773 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
  15711. 2024-03-22 07:54:40.324174 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/0738101266@41.160.32.115:5060] 156.38.231.107 port 16500 -> 41.160.32.115 port 24828 codec: 18 ms: 20
  15712. 2024-03-22 07:54:40.324174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  15713. 2024-03-22 07:54:40.324174 [DEBUG] switch_core_media.c:7180 sofia/default/0738101266@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  15714. 2024-03-22 07:54:40.324174 [DEBUG] switch_core_media.c:7187 sofia/default/0738101266@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  15715. 2024-03-22 07:54:40.324174 [DEBUG] switch_core_media.c:7210 sofia/default/0738101266@41.160.32.115:5060 Set rtp dtmf delay to 40
  15716. 2024-03-22 07:54:40.324174 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0738101266@41.160.32.115:5060:
  15717. v=0                                                                                                                                                                                                                
  15718. o=FreeSWITCH 1711077580 1711077581 IN IP4 156.38.231.107                                                                                                                                                          
  15719. s=FreeSWITCH                                                                                                                                                                                                      
  15720. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  15721. t=0 0                                                                                                                                                                                                              
  15722. m=audio 16500 RTP/AVP 18 101                                                                                                                                                                                      
  15723. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15724. a=fmtp:18 annexb=no                                                                                                                                                                                                
  15725. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  15726. a=fmtp:101 0-16                                                                                                                                                                                                    
  15727. a=ptime:20                                                                                                                                                                                                        
  15728. a=sendrecv                                                                                                                                                                                                        
  15729.  
  15730. 2024-03-22 07:54:40.324174 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/0738101266@41.160.32.115:5060] has been answered
  15731. 2024-03-22 07:54:40.324174 [DEBUG] switch_channel.c:3773 (sofia/default/0738101266@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  15732. 2024-03-22 07:54:40.324174 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [completed][200]
  15733. 2024-03-22 07:54:40.324174 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7106027339@legalaidsa.nebular.co.za]
  15734. 2024-03-22 07:54:40.324174 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/7106027339@legalaidsa.nebular.co.za) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  15735. 2024-03-22 07:54:40.324174 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7106027339@legalaidsa.nebular.co.za) Running State Change CS_EXCHANGE_MEDIA (Cur 64 Tot 575023)
  15736. 2024-03-22 07:54:40.324174 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7106027339@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
  15737. 2024-03-22 07:54:40.324174 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  15738. 2024-03-22 07:54:40.504204 [DEBUG] switch_ivr_bridge.c:546 sofia/default/7106027339@legalaidsa.nebular.co.za Bridge execute app sched_hangup(+6000 normal_clearing)
  15739. 2024-03-22 07:54:40.524170 [DEBUG] switch_ivr.c:623 sofia/default/7106027339@legalaidsa.nebular.co.za Command Execute sched_hangup(+6000 normal_clearing)
  15740. EXECUTE sofia/default/7106027339@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
  15741. 2024-03-22 07:54:40.524170 [DEBUG] switch_scheduler.c:249 Added task 232849 switch_ivr_schedule_hangup (6e8367a2-e821-11ee-92bd-d17fbcf33421) to run at 1711100080
  15742. 2024-03-22 07:54:40.524170 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [ready][200]
  15743. 2024-03-22 07:54:40.564175 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  15744. 2024-03-22 07:54:40.584178 [DEBUG] sofia.c:7084 Channel sofia/default/7542292398@metrobus.nebular.co.za entering state [proceeding][180]
  15745. 2024-03-22 07:54:40.584178 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7542292398@metrobus.nebular.co.za!
  15746. 2024-03-22 07:54:40.584178 [DEBUG] switch_channel.c:3346 (sofia/default/7542292398@metrobus.nebular.co.za) Callstate Change DOWN -> RINGING
  15747. 2024-03-22 07:54:40.604186 [INFO] switch_rtp.c:7268 Auto Changing audio port from 156.38.150.6:9010 to 156.38.231.105:9010
  15748. 2024-03-22 07:54:40.604186 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/027670264866@41.160.32.115:5060!
  15749. 2024-03-22 07:54:41.884183 [NOTICE] switch_channel.c:1104 New Channel sofia/default/Anonymous@41.160.32.115:5060 [70cb29a0-e821-11ee-92c3-d17fbcf33421]
  15750. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_NEW (Cur 65 Tot 575024)
  15751. 2024-03-22 07:54:41.884183 [DEBUG] sofia.c:9873 sofia/default/Anonymous@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  15752. 2024-03-22 07:54:41.884183 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  15753. 2024-03-22 07:54:41.884183 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@41.160.32.115:5060 entering state [received][100]
  15754. 2024-03-22 07:54:41.884183 [DEBUG] sofia.c:7094 Remote SDP:
  15755. v=0                                                                                                                                                                                                                
  15756. o=HuaweiSoftX3000 38436940715391 38436940715391 IN IP4 41.160.32.115                                                                                                                                              
  15757. s=-                                                                                                                                                                                                                
  15758. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  15759. t=0 0                                                                                                                                                                                                              
  15760. m=audio 24830 RTP/AVP 18 4 8 116                                                                                                                                                                                  
  15761. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  15762. a=fmtp:18 annexb=yes                                                                                                                                                                                              
  15763. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  15764. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  15765. a=rtpmap:116 telephone-event/8000                                                                                                                                                                                  
  15766. a=fmtp:116 0-15                                                                                                                                                                                                    
  15767. a=ptime:20                                                                                                                                                                                                        
  15768.  
  15769. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  15770. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  15771. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  15772. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  15773. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  15774. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  15775. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  15776. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  15777. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  15778. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  15779. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  15780. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  15781. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  15782. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  15783. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  15784. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 116@8000
  15785. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/Anonymous@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  15786. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_codec.c:111 sofia/default/Anonymous@41.160.32.115:5060 Original read codec set to G729:18
  15787. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 116@8000
  15788. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4767 sofia/default/Anonymous@41.160.32.115:5060 Set 2833 dtmf send payload to 116 recv payload to 116
  15789. 2024-03-22 07:54:41.884183 [DEBUG] sofia.c:7507 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  15790. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:603 (sofia/default/Anonymous@41.160.32.115:5060) State NEW
  15791. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_INIT (Cur 65 Tot 575024)
  15792. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:627 (sofia/default/Anonymous@41.160.32.115:5060) State INIT
  15793. 2024-03-22 07:54:41.884183 [DEBUG] mod_sofia.c:90 sofia/default/Anonymous@41.160.32.115:5060 SOFIA INIT
  15794. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:40 sofia/default/Anonymous@41.160.32.115:5060 Standard INIT
  15795. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:48 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  15796. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:627 (sofia/default/Anonymous@41.160.32.115:5060) State INIT going to sleep
  15797. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 65 Tot 575024)
  15798. 2024-03-22 07:54:41.884183 [DEBUG] switch_channel.c:2249 (sofia/default/Anonymous@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  15799. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:643 (sofia/default/Anonymous@41.160.32.115:5060) State ROUTING
  15800. 2024-03-22 07:54:41.884183 [DEBUG] mod_sofia.c:143 sofia/default/Anonymous@41.160.32.115:5060 SOFIA ROUTING
  15801. 2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:236 sofia/default/Anonymous@41.160.32.115:5060 Standard ROUTING
  15802. 2024-03-22 07:54:41.884183 [INFO] mod_dialplan_xml.c:637 Processing Anonymous <Anonymous>->D9570325332654 in context default
  15803. 2024-03-22 07:54:41.884183 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  15804. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  15805. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  15806. 2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  15807. 2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570325332654
  15808. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570325332654' limit 1
  15809. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570325332654' AND status=0 limit 1
  15810. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570325332654' and status=0 LIMIT 1                                                                                                                                                                                                      
  15811. 2024-03-22 07:54:41.904153 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  15812. 2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : Anonymous / <null>
  15813. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570325332654" LIMIT 1                                                                                                                                                          
  15814. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [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="D9570325332654"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  15815. 2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  15816. 2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  15817. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  15818. 2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570325332654.*' OR blocked_patterns = '^D957032533265.*' OR blocked_patterns = '^D95703253326.*' OR blocked_patterns = '^D9570325332.*' OR blocked_patterns = '^D957032533.*' OR blocked_patterns = '^D95703253.*' OR blocked_patterns = '^D9570325.*' OR blocked_patterns = '^D957032.*' OR blocked_patterns = '^D95703.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  15819. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570325332654" AND (accountid = 0 OR status = 1) LIMIT 1
  15820. 2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  15821. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  15822. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
  15823. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
  15824. 2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570325332654
  15825. 2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0325332654
  15826. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [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 = '^0325332654.*' OR patterns = '^032533265.*' OR patterns = '^03253326.*' OR patterns = '^0325332.*' OR patterns = '^032533.*' OR patterns = '^03253.*' OR patterns = '^0325.*' OR patterns = '^032.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 3 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                          
  15827. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" AND A.accountid = '3' limit 1                                                                                                                                                                          
  15828. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
  15829. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  15830. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  15831. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0325332654' OR number = '032533265' OR number = '03253326' OR number = '0325332' OR number = '032533' OR number = '03253' OR number = '0325' OR number = '032' OR number = '03' OR number = '0' OR number ='--') OR (number = '0325332654*' OR number = '032533265*' OR number = '03253326*' OR number = '0325332*' OR number = '032533*' OR number = '03253*' OR number = '0325*' OR number = '032*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = '<null>' OR number = '<null' OR number = '<nul' OR number = '<nu' OR number = '<n' OR number = '<' OR number ='--') OR (number = '<null>*' OR number = '<null*' OR number = '<nul*' OR number = '<nu*' OR number = '<n*' OR number = '<*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                        
  15832. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  15833. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0325332654' OR routing_prefix = '032533265' OR routing_prefix = '03253326' OR routing_prefix = '0325332' OR routing_prefix = '032533' OR routing_prefix = '03253' OR routing_prefix = '0325' OR routing_prefix = '032' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1                                                                                                                      
  15834. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  15835. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
  15836. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
  15837. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  15838. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  15839. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
  15840. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  15841. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  15842. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  15843. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  15844. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  15845. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  15846. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  15847. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
  15848. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  15849. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  15850. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  15851. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
  15852. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  15853. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
  15854. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  15855. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  15856. 2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  15857. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  15858. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  15859. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  15860. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 3 AND status=0 LIMIT 1                                                                                                                                                                                                
  15861. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  15862. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  15863. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  15864. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
  15865. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  15866. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  15867. 2024-03-22 07:54:41.924152 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  15868. 2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  15869. 2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  15870. 2024-03-22 07:54:41.944183 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  15871. 2024-03-22 07:54:41.944183 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  15872. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....Anonymous
  15873. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
  15874. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  15875. 2024-03-22 07:54:41.944183 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  15876. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  15877. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  15878. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  15879. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  15880. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  15881. 2024-03-22 07:54:41.944183 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  15882. 2024-03-22 07:54:41.944183 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  15883. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  15884. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  15885. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' and uuid = '70cb29a0-e821-11ee-92c3-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  15886. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' order by id desc limit 1
  15887. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  15888. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  15889. 2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  15890. <document type="freeswitch/xml">                                                                                                                                                                                  
  15891. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  15892. <context name="default">                                                                                                                                                                                          
  15893. <extension name="0325332654">                                                                                                                                                                                      
  15894. <condition field="destination_number" expression="D9570325332654">                                                                                                                                                
  15895. <action application="set" data="effective_destination_number=0325332654"/>                                                                                                                                        
  15896. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  15897. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  15898. <action application="set" data="callstart=2024-03-22 07:54:41"/>                                                                                                                                                  
  15899. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  15900. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  15901. <action application="set" data="account_id=3"/>                                                                                                                                                                    
  15902. <action application="set" data="parent_id=0"/>                                                                                                                                                                    
  15903. <action application="set" data="entity_id=3"/>                                                                                                                                                                    
  15904. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  15905. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  15906. <action application="set" data="accountname=default"/>                                                                                                                                                            
  15907. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  15908. <action application="set" data="origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                                                                                                                                                                                                      
  15909. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  15910. <action application="set" data="original_caller_id_name=Anonymous"/>                                                                                                                                              
  15911. <action application="set" data="effective_caller_id_name=Anonymous"/>                                                                                                                                              
  15912. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  15913. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  15914. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  15915. <action application="export" data="presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115"/>                                                                      
  15916. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  15917. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  15918. <action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>                                                                                                                          
  15919. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  15920. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  15921. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  15922. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  15923. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  15924. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  15925. <action application="sleep" data="1000"/>                                                                                                                                                                          
  15926. <action application="ring_ready"/>                                                                                                                                                                                
  15927. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>                                                      
  15928. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  15929. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  15930. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  15931. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  15932. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  15933. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  15934. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  15935. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  15936. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  15937. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  15938. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  15939. <action application="set" data="sip_destination_number=4607597910"/>                                                                                                                                              
  15940. <action application="set" data="destination_number=0325332654"/>                                                                                                                                                  
  15941. <action application="set" data="did_number=0325332654"/>                                                                                                                                                          
  15942. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  15943. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  15944. <condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  15945. <action application="answer"/>                                                                                                                                                                                    
  15946. <action application="export" data="voicemail_alternate_greet_id=0325332654"/>                                                                                                                                      
  15947. <action application="voicemail" data="default $${domain_name} 4607597910"/>                                                                                                                                        
  15948. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  15949. </condition>                                                                                                                                                                                                      
  15950. </condition>                                                                                                                                                                                                      
  15951. </extension>                                                                                                                                                                                                      
  15952. </context>                                                                                                                                                                                                        
  15953. </section>                                                                                                                                                                                                        
  15954. </document>                                                                                                                                                                                                        
  15955. 2024-03-22 07:54:41.944183 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  15956. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 parsing [default->0325332654] continue=false
  15957. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Regex (PASS) [0325332654] destination_number(D9570325332654) =~ /D9570325332654/ break=on-false
  15958. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(effective_destination_number=0325332654)
  15959. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  15960. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  15961. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:41)
  15962. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  15963. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
  15964. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(account_id=3)
  15965. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(parent_id=0)
  15966. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(entity_id=3)
  15967. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(call_processed=internal)
  15968. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(call_direction=inbound)
  15969. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(accountname=default)
  15970. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
  15971. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                        
  15972. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(origination_rates=0)
  15973. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(original_caller_id_name=Anonymous)
  15974. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(effective_caller_id_name=Anonymous)
  15975. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(receiver_accid=109)
  15976. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  15977. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  15978. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115)
  15979. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(call_type=5)
  15980. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(calltype=SIP-DID)
  15981. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
  15982. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
  15983. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
  15984. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  15985. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  15986. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(hangup_after_bridge=true)
  15987. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  15988. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action sleep(1000)
  15989. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action ring_ready()
  15990. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654)
  15991. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(on_busy_flag=1)
  15992. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(on_busy_destination=)
  15993. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(no_answer_flag=1)
  15994. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(no_answer_destination=)
  15995. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(not_register_flag=1)
  15996. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(not_register_destination=)
  15997. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(opensips_flag=0)
  15998. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  15999. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
  16000. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(leg_timeout=20)
  16001. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(userinfo_id=109)
  16002. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(sip_destination_number=4607597910)
  16003. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(destination_number=0325332654)
  16004. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(did_number=0325332654)
  16005. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  16006. Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  16007. |--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
  16008. |--- Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Regex (FAIL) [0325332654_recur_1] ${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  16009. |--- Dialplan: sofia/default/Anonymous@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
  16010. 2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:286 (sofia/default/Anonymous@41.160.32.115:5060) State Change CS_ROUTING -> CS_EXECUTE
  16011. 2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:643 (sofia/default/Anonymous@41.160.32.115:5060) State ROUTING going to sleep
  16012. 2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@41.160.32.115:5060) Running State Change CS_EXECUTE (Cur 65 Tot 575024)
  16013. 2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:650 (sofia/default/Anonymous@41.160.32.115:5060) State EXECUTE
  16014. 2024-03-22 07:54:41.984316 [DEBUG] mod_sofia.c:198 sofia/default/Anonymous@41.160.32.115:5060 SOFIA EXECUTE
  16015. 2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:328 sofia/default/Anonymous@41.160.32.115:5060 Standard EXECUTE
  16016. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(effective_destination_number=0325332654)
  16017. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [effective_destination_number]=[0325332654]
  16018. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  16019. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  16020. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  16021. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  16022. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(callstart=2024-03-22 07:54:41)
  16023. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [callstart]=[2024-03-22 07:54:41]
  16024. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(hangup_after_bridge=true)
  16025. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [hangup_after_bridge]=[true]
  16026. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(continue_on_fail=TRUE)
  16027. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [continue_on_fail]=[TRUE]
  16028. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(account_id=3)
  16029. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [account_id]=[3]
  16030. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(parent_id=0)
  16031. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [parent_id]=[0]
  16032. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(entity_id=3)
  16033. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [entity_id]=[3]
  16034. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(call_processed=internal)
  16035. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [call_processed]=[internal]
  16036. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(call_direction=inbound)
  16037. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [call_direction]=[inbound]
  16038. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(accountname=default)
  16039. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [accountname]=[default]
  16040. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
  16041. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [filename1]=[astpp.pbx.lua]
  16042. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                
  16043. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [origination_rates_did]=[ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                                
  16044. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(origination_rates=0)
  16045. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [origination_rates]=[0]
  16046. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(original_caller_id_name=Anonymous)
  16047. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [original_caller_id_name]=[Anonymous]
  16048. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(effective_caller_id_name=Anonymous)
  16049. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [effective_caller_id_name]=[Anonymous]
  16050. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(receiver_accid=109)
  16051. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [receiver_accid]=[109]
  16052. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
  16053. 2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  16054. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  16055. 2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  16056. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115)
  16057. 2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115]
  16058. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(call_type=5)
  16059. 2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  16060. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(calltype=SIP-DID)
  16061. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [calltype]=[SIP-DID]
  16062. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 db(insert/pickup_any_group_/4607597910/70cb29a0-e821-11ee-92c3-d17fbcf33421)
  16063. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(dialed_extension=transfer_call)
  16064. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [dialed_extension]=[transfer_call]
  16065. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(dialed_extension=transfer_call)
  16066. 2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  16067. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  16068. 2024-03-22 07:54:41.984316 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  16069. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  16070. 2024-03-22 07:54:41.984316 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  16071. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(hangup_after_bridge=true)
  16072. 2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [hangup_after_bridge]=[true]
  16073. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  16074. 2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  16075. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 sleep(1000)
  16076. 2024-03-22 07:54:42.264203 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:808
  16077. 2024-03-22 07:54:42.264203 [INFO] switch_channel.c:515 RECV DTMF 2:808
  16078. 2024-03-22 07:54:42.264203 [DEBUG] switch_rtp.c:5261 Send start packet for [2] ts=2781641568 dur=160/160/808 seq=314 lw=2781641568
  16079. 2024-03-22 07:54:42.284170 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781641568 dur=320/320/808 seq=315 lw=2781641728
  16080. 2024-03-22 07:54:42.304180 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781641568 dur=480/480/808 seq=316 lw=2781641888
  16081. 2024-03-22 07:54:42.324204 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781641568 dur=640/640/808 seq=317 lw=2781642048
  16082. 2024-03-22 07:54:42.344175 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=2781641568 dur=800/800/808 seq=318 lw=2781642208
  16083. 2024-03-22 07:54:42.364179 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=2781641568 dur=960/960/808 seq=319 lw=2781642208
  16084. 2024-03-22 07:54:42.364179 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=2781641568 dur=960/960/808 seq=320 lw=2781642208
  16085. 2024-03-22 07:54:42.364179 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=2781641568 dur=960/960/808 seq=321 lw=2781642208
  16086. 2024-03-22 07:54:42.364179 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
  16087. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 ring_ready()
  16088. 2024-03-22 07:54:42.984174 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/Anonymous@41.160.32.115:5060!
  16089. 2024-03-22 07:54:42.984174 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@41.160.32.115:5060 entering state [early][180]
  16090. 2024-03-22 07:54:42.984174 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/Anonymous@41.160.32.115:5060!
  16091. EXECUTE sofia/default/Anonymous@41.160.32.115:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/4607597910@legalaidsa.nebular.co.za^0325332654)
  16092. 2024-03-22 07:54:42.984174 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@41.160.32.115:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  16093. 2024-03-22 07:54:42.984174 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@41.160.32.115:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  16094. 2024-03-22 07:54:42.984174 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@41.160.32.115:5060 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115] to event                                                                                                                                                                                      
  16095. 2024-03-22 07:54:42.984174 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@41.160.32.115:5060 EXPORTING[export_vars] [call_type]=[5] to event
  16096. 2024-03-22 07:54:42.984174 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@41.160.32.115:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  16097. 2024-03-22 07:54:42.984174 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@41.160.32.115:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  16098. 2024-03-22 07:54:42.984174 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  16099. 2024-03-22 07:54:42.984174 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  16100. 2024-03-22 07:54:42.984174 [NOTICE] switch_channel.c:1104 New Channel sofia/default/4607597910@legalaidsa.nebular.co.za [71734504-e821-11ee-92eb-d17fbcf33421]
  16101. 2024-03-22 07:54:42.984174 [DEBUG] mod_sofia.c:4819 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  16102. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 66 Tot 575025)
  16103. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
  16104. 2024-03-22 07:54:42.984174 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
  16105. 2024-03-22 07:54:42.984174 [DEBUG] sofia_glue.c:1295 sofia/default/4607597910@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  16106. Local SDP:                                                                                                                                                                                                        
  16107. v=0                                                                                                                                                                                                                
  16108. o=FreeSWITCH 1711069690 1711069691 IN IP4 156.38.231.107                                                                                                                                                          
  16109. s=FreeSWITCH                                                                                                                                                                                                      
  16110. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  16111. t=0 0                                                                                                                                                                                                              
  16112. m=audio 24392 RTP/AVP 18 101                                                                                                                                                                                      
  16113. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  16114. a=fmtp:18 annexb=no                                                                                                                                                                                                
  16115. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  16116. a=fmtp:101 0-16                                                                                                                                                                                                    
  16117. a=ptime:20                                                                                                                                                                                                        
  16118. a=sendrecv                                                                                                                                                                                                        
  16119.  
  16120. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
  16121. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  16122. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT going to sleep
  16123. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 66 Tot 575025)
  16124. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
  16125. 2024-03-22 07:54:42.984174 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
  16126. 2024-03-22 07:54:42.984174 [DEBUG] switch_ivr_originate.c:67 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  16127. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING going to sleep
  16128. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 66 Tot 575025)
  16129. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  16130. 2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  16131. 2024-03-22 07:54:42.984174 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
  16132. 2024-03-22 07:54:43.044163 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [completing][200]
  16133. 2024-03-22 07:54:43.044163 [DEBUG] sofia.c:7091 Duplicate SDP
  16134. v=0                                                                                                                                                                                                                
  16135. o=HuaweiSoftX3000 26587125923337 26587125923337 IN IP4 41.160.32.115                                                                                                                                              
  16136. s=-                                                                                                                                                                                                                
  16137. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  16138. t=0 0                                                                                                                                                                                                              
  16139. m=audio 24808 RTP/AVP 8 101                                                                                                                                                                                        
  16140. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  16141. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  16142. a=fmtp:101 0-15                                                                                                                                                                                                    
  16143. a=ptime:20                                                                                                                                                                                                        
  16144.  
  16145. 2024-03-22 07:54:43.064183 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [ready][200]
  16146. 2024-03-22 07:54:43.064183 [NOTICE] sofia.c:8159 Channel [sofia/default/0787850991] has been answered
  16147. 2024-03-22 07:54:43.064183 [DEBUG] switch_channel.c:3773 (sofia/default/0787850991) Callstate Change RINGING -> ACTIVE
  16148. 2024-03-22 07:54:43.064183 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0543379200@legalaidsa.nebular.co.za:5060.
  16149. 2024-03-22 07:54:43.064183 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0543379200@legalaidsa.nebular.co.za:5060:
  16150. v=0                                                                                                                                                                                                                
  16151. o=FreeSWITCH 1711066625 1711066627 IN IP4 156.38.231.107                                                                                                                                                          
  16152. s=FreeSWITCH                                                                                                                                                                                                      
  16153. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  16154. t=0 0                                                                                                                                                                                                              
  16155. m=audio 27434 RTP/AVP 8 101                                                                                                                                                                                        
  16156. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  16157. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  16158. a=fmtp:101 0-16                                                                                                                                                                                                    
  16159. a=ptime:20                                                                                                                                                                                                        
  16160. a=sendrecv                                                                                                                                                                                                        
  16161.  
  16162. 2024-03-22 07:54:43.064183 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/0543379200@legalaidsa.nebular.co.za:5060] has been answered
  16163. 2024-03-22 07:54:43.064183 [DEBUG] switch_channel.c:3773 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
  16164. 2024-03-22 07:54:43.064183 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [completed][200]
  16165. 2024-03-22 07:54:43.084205 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [ready][200]
  16166. 2024-03-22 07:54:43.124203 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  16167. 2024-03-22 07:54:43.124203 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
  16168. 2024-03-22 07:54:43.124203 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
  16169. 2024-03-22 07:54:43.124203 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  16170. 2024-03-22 07:54:43.124203 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  16171. 2024-03-22 07:54:43.124203 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/Anonymous@41.160.32.115:5060!
  16172. 2024-03-22 07:54:43.224192 [NOTICE] switch_channel.c:1104 New Channel sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [71983ac6-e821-11ee-92ef-d17fbcf33421]
  16173. 2024-03-22 07:54:43.224192 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) Running State Change CS_NEW (Cur 67 Tot 575026)
  16174. 2024-03-22 07:54:43.224192 [DEBUG] sofia.c:9873 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  16175. 2024-03-22 07:54:43.224192 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  16176. 2024-03-22 07:54:43.244170 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 entering state [received][100]
  16177. 2024-03-22 07:54:43.244170 [DEBUG] sofia.c:7094 Remote SDP:
  16178. v=0                                                                                                                                                                                                                
  16179. o=3cxPS 96603209728 520949334017 IN IP4 156.38.150.6                                                                                                                                                              
  16180. s=3cxPS Audio call                                                                                                                                                                                                
  16181. c=IN IP4 156.38.150.6                                                                                                                                                                                              
  16182. t=0 0                                                                                                                                                                                                              
  16183. m=audio 9014 RTP/AVP 8 0 18 101                                                                                                                                                                                    
  16184. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  16185. a=rtpmap:0 PCMU/8000                                                                                                                                                                                              
  16186. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  16187. a=fmtp:18 annexb=no                                                                                                                                                                                                
  16188. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  16189.  
  16190. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  16191. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  16192. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  16193. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  16194. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  16195. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  16196. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  16197. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  16198. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  16199. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  16200. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  16201. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:60:8000:1] ++++ is saved as a match
  16202. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  16203. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  16204. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  16205. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  16206. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  16207. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  16208. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_codec.c:111 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Original read codec set to PCMA:8
  16209. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  16210. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4767 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  16211. 2024-03-22 07:54:43.244170 [DEBUG] sofia.c:7507 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State Change CS_NEW -> CS_INIT
  16212. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:603 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State NEW
  16213. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) Running State Change CS_INIT (Cur 67 Tot 575026)
  16214. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:627 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State INIT
  16215. 2024-03-22 07:54:43.244170 [DEBUG] mod_sofia.c:90 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 SOFIA INIT
  16216. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:40 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Standard INIT
  16217. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:48 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State Change CS_INIT -> CS_ROUTING
  16218. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:627 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State INIT going to sleep
  16219. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) Running State Change CS_ROUTING (Cur 67 Tot 575026)
  16220. 2024-03-22 07:54:43.244170 [DEBUG] switch_channel.c:2249 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
  16221. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:643 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State ROUTING
  16222. 2024-03-22 07:54:43.244170 [DEBUG] mod_sofia.c:143 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
  16223. 2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:236 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Standard ROUTING
  16224. 2024-03-22 07:54:43.244170 [INFO] mod_dialplan_xml.c:637 Processing Anonymous <Anonymous>->0325332654 in context default
  16225. 2024-03-22 07:54:43.244170 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  16226. 2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  16227. 2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  16228. 2024-03-22 07:54:43.244170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  16229. 2024-03-22 07:54:43.244170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0325332654
  16230. 2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '0325332654' limit 1
  16231. 2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '0325332654' AND status=0 limit 1
  16232. 2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '0325332654' and status=0 LIMIT 1                                                                                                                                                                                                          
  16233. 2024-03-22 07:54:43.244170 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  16234. 2024-03-22 07:54:43.244170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : Anonymous / Anonymous
  16235. 2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  16236. 2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  16237. 2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
  16238. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "196083" AND deleted = 0 limit 1
  16239. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="0325332654" AND (accountid = 0 OR status = 1) LIMIT 1
  16240. 2024-03-22 07:54:43.264158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
  16241. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 3 AND status=0 limit 1                                                                                                                                                                                                  
  16242. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  16243. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 109
  16244. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [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 = '^0325332654.*' OR patterns = '^032533265.*' OR patterns = '^03253326.*' OR patterns = '^0325332.*' OR patterns = '^032533.*' OR patterns = '^03253.*' OR patterns = '^0325.*' OR patterns = '^032.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 109 ORDER BY LENGTH(PKGPTR.patterns) DESC                                                        
  16245. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" AND A.accountid = '109' limit 1                                                                                                                                                                        
  16246. 2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
  16247. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  16248. 2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
  16249. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '0325332654' OR number = '032533265' OR number = '03253326' OR number = '0325332' OR number = '032533' OR number = '03253' OR number = '0325' OR number = '032' OR number = '03' OR number = '0' OR number ='--') OR (number = '0325332654*' OR number = '032533265*' OR number = '03253326*' OR number = '0325332*' OR number = '032533*' OR number = '03253*' OR number = '0325*' OR number = '032*' OR number = '03*' OR number = '0*' OR number ='--') OR (number = 'Anonymous' OR number = 'Anonymou' OR number = 'Anonymo' OR number = 'Anonym' OR number = 'Anony' OR number = 'Anon' OR number = 'Ano' OR number = 'An' OR number = 'A' OR number ='--') OR (number = 'Anonymous*' OR number = 'Anonymou*' OR number = 'Anonymo*' OR number = 'Anonym*' OR number = 'Anony*' OR number = 'Anon*' OR number = 'Ano*' OR number = 'An*' OR number = 'A*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC                                                                                                                                              
  16250. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  16251. 2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '0325332654' OR routing_prefix = '032533265' OR routing_prefix = '03253326' OR routing_prefix = '0325332' OR routing_prefix = '032533' OR routing_prefix = '03253' OR routing_prefix = '0325' OR routing_prefix = '032' OR routing_prefix = '03' OR routing_prefix = '0' OR routing_prefix ='--') AND status = 0 and reseller_id = 13 limit 1                                                                                                                    
  16252. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  16253. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
  16254. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
  16255. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19917.9835
  16256. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  16257. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
  16258. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  16259. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  16260. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 93 AND status = 0
  16261. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  16262. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  16263. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  16264. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  16265. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
  16266. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  16267. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  16268. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  16269. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
  16270. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  16271. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
  16272. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  16273. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19917.9835 balance Accountid 109 !!!
  16274. 2024-03-22 07:54:43.284177 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  16275. 2024-03-22 07:54:43.284177 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
  16276. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  16277. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
  16278. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  16279. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
  16280. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.2483
  16281. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  16282. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
  16283. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 83 AND status = 0
  16284. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  16285. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [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 ="0325332654" LIMIT 1                                                                                                                                                              
  16286. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP]  Call Direction : inbound
  16287. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  16288. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
  16289. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  16290. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  16291. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  16292. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
  16293. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
  16294. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  16295. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  16296. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.2483 balance Accountid 13 !!!
  16297. 2024-03-22 07:54:43.284177 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  16298. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Reseller xml_user_rates : ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109                                                                                                                                                                                                                
  16299. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  16300. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
  16301. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
  16302. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  16303. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  16304. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 109 AND status=0 LIMIT 1                                                                                                                                                                                              
  16305. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
  16306. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "109" AND deleted = 0 limit 1
  16307. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:109
  16308. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:109
  16309. 2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 109
  16310. 2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  16311. 2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
  16312. 2024-03-22 07:54:43.304157 [INFO] switch_cpp.cpp:1365 [ASTPP]  Maxlength : 100
  16313. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  16314. 2024-03-22 07:54:43.304157 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
  16315. 2024-03-22 07:54:43.304157 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
  16316. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16317. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16318. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16319. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16320. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16321. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16322. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16323. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16324. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16325. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16326. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16327. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16328. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16329. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16330. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16331. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16332. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16333. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D943/,D890/,D002/,D891/,D007/,D864/,D869/,D912/".....Anonymous
  16334. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
  16335. 2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
  16336. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
  16337. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  16338. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  16339. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  16340. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  16341. 2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
  16342. 2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
  16343. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
  16344. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
  16345. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Not Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' and uuid = '71983ac6-e821-11ee-92ef-d17fbcf33421' order by id desc limit 1                                                                                                                                                            
  16346. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] Query :SELECT apns_token, callkit_token, mobile_type, id, uuid FROM dialer_device_info WHERE username='4607597910' order by id desc limit 1
  16347. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [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="4607597910"  AND domains.domain="legalaidsa.nebular.co.za" limit 1                                                                                      
  16348. 2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 1375 limit 1
  16349. 2024-03-22 07:54:43.324159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  16350. <document type="freeswitch/xml">                                                                                                                                                                                  
  16351. <section name="dialplan" description="ASTPP Dialplan">                                                                                                                                                            
  16352. <context name="default">                                                                                                                                                                                          
  16353. <extension name="0325332654">                                                                                                                                                                                      
  16354. <condition field="destination_number" expression="0325332654">                                                                                                                                                    
  16355. <action application="set" data="effective_destination_number=0325332654"/>                                                                                                                                        
  16356. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>                                                                                                                                        
  16357. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>                                                                                                                              
  16358. <action application="set" data="callstart=2024-03-22 07:54:43"/>                                                                                                                                                  
  16359. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  16360. <action application="set" data="continue_on_fail=TRUE"/>                                                                                                                                                          
  16361. <action application="set" data="account_id=109"/>                                                                                                                                                                  
  16362. <action application="set" data="parent_id=13"/>                                                                                                                                                                    
  16363. <action application="set" data="entity_id=0"/>                                                                                                                                                                    
  16364. <action application="set" data="call_processed=internal"/>                                                                                                                                                        
  16365. <action application="set" data="call_direction=inbound"/>                                                                                                                                                          
  16366. <action application="set" data="accountname=default"/>                                                                                                                                                            
  16367. <action application="set" data="filename1=astpp.pbx.lua"/>                                                                                                                                                        
  16368. <action application="set" data="origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109"/>                            
  16369. <action application="set" data="origination_rates=0"/>                                                                                                                                                            
  16370. <action application="set" data="original_caller_id_name=Anonymous"/>                                                                                                                                              
  16371. <action application="set" data="original_caller_id_number=Anonymous"/>                                                                                                                                            
  16372. <action application="limit" data="db 196083 user_196083 200 "/>                                                                                                                                                    
  16373. <action application="set" data="effective_caller_id_name=Anonymous"/>                                                                                                                                              
  16374. <action application="set" data="effective_caller_id_number=Anonymous"/>                                                                                                                                            
  16375. <action application="set" data="receiver_accid=109"/>                                                                                                                                                              
  16376. <action application="export" data="domain_name=legalaidsa.nebular.co.za"/>                                                                                                                                        
  16377. <action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                        
  16378. <action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105"/>                                                      
  16379. <action application="export" data="call_type=5"/>                                                                                                                                                                  
  16380. <action application="set" data="calltype=SIP-DID"/>                                                                                                                                                                
  16381. <action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>                                                                                                                          
  16382. <action application="set" data="dialed_extension=transfer_call"/>                                                                                                                                                  
  16383. <action application="export" data="dialed_extension=transfer_call"/>                                                                                                                                              
  16384. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>                                                                                                                  
  16385. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>                                                                                                                  
  16386. <action application="set" data="hangup_after_bridge=true"/>                                                                                                                                                        
  16387. <action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                    
  16388. <action application="sleep" data="1000"/>                                                                                                                                                                          
  16389. <action application="ring_ready"/>                                                                                                                                                                                
  16390. <action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>                                                      
  16391. <action application="set" data="on_busy_flag=1"/>                                                                                                                                                                  
  16392. <action application="set" data="on_busy_destination="/>                                                                                                                                                            
  16393. <action application="set" data="no_answer_flag=1"/>                                                                                                                                                                
  16394. <action application="set" data="no_answer_destination="/>                                                                                                                                                          
  16395. <action application="set" data="not_register_flag=1"/>                                                                                                                                                            
  16396. <action application="set" data="not_register_destination="/>                                                                                                                                                      
  16397. <action application="set" data="opensips_flag=0"/>                                                                                                                                                                
  16398. <action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>                                                                                                                                  
  16399. <action application="set" data="opensips_domain=156.38.231.106"/>                                                                                                                                                  
  16400. <action application="set" data="leg_timeout=20"/>                                                                                                                                                                  
  16401. <action application="set" data="userinfo_id=109"/>                                                                                                                                                                
  16402. <action application="set" data="sip_destination_number=4607597910"/>                                                                                                                                              
  16403. <action application="set" data="destination_number=0325332654"/>                                                                                                                                                  
  16404. <action application="set" data="did_number=0325332654"/>                                                                                                                                                          
  16405. <action application="set" data="user_domain=legalaidsa.nebular.co.za"/>                                                                                                                                            
  16406. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>                                                                                                                                      
  16407. <condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">                                                                                        
  16408. <action application="answer"/>                                                                                                                                                                                    
  16409. <action application="export" data="voicemail_alternate_greet_id=0325332654"/>                                                                                                                                      
  16410. <action application="voicemail" data="default $${domain_name} 4607597910"/>                                                                                                                                        
  16411. <anti-action application="hangup" data="${originate_disposition}"/>                                                                                                                                                
  16412. </condition>                                                                                                                                                                                                      
  16413. </condition>                                                                                                                                                                                                      
  16414. </extension>                                                                                                                                                                                                      
  16415. </context>                                                                                                                                                                                                        
  16416. </section>                                                                                                                                                                                                        
  16417. </document>                                                                                                                                                                                                        
  16418. 2024-03-22 07:54:43.324159 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
  16419. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 parsing [default->0325332654] continue=false
  16420. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Regex (PASS) [0325332654] destination_number(0325332654) =~ /0325332654/ break=on-false
  16421. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0325332654)
  16422. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  16423. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  16424. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:43)
  16425. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  16426. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
  16427. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
  16428. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
  16429. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
  16430. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
  16431. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(call_direction=inbound)
  16432. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
  16433. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
  16434. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                                      
  16435. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(origination_rates=0)
  16436. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=Anonymous)
  16437. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=Anonymous)
  16438. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
  16439. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=Anonymous)
  16440. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=Anonymous)
  16441. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(receiver_accid=109)
  16442. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(domain_name=legalaidsa.nebular.co.za)
  16443. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
  16444. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105)
  16445. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(call_type=5)
  16446. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(calltype=SIP-DID)
  16447. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
  16448. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(dialed_extension=transfer_call)
  16449. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(dialed_extension=transfer_call)
  16450. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  16451. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  16452. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
  16453. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
  16454. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action sleep(1000)
  16455. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action ring_ready()
  16456. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654)
  16457. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(on_busy_flag=1)
  16458. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(on_busy_destination=)
  16459. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(no_answer_flag=1)
  16460. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(no_answer_destination=)
  16461. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(not_register_flag=1)
  16462. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(not_register_destination=)
  16463. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(opensips_flag=0)
  16464. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
  16465. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(opensips_domain=156.38.231.106)
  16466. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(leg_timeout=20)
  16467. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(userinfo_id=109)
  16468. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(sip_destination_number=4607597910)
  16469. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(destination_number=0325332654)
  16470. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(did_number=0325332654)
  16471. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(user_domain=legalaidsa.nebular.co.za)
  16472. Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  16473. |--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
  16474. |--- Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Regex (FAIL) [0325332654_recur_1] ${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false                                                                                                                                                                                                            
  16475. |--- Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 ANTI-Action hangup(${originate_disposition})
  16476. 2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:286 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State Change CS_ROUTING -> CS_EXECUTE
  16477. 2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:643 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State ROUTING going to sleep
  16478. 2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:584 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) Running State Change CS_EXECUTE (Cur 67 Tot 575026)
  16479. 2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:650 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State EXECUTE
  16480. 2024-03-22 07:54:43.344161 [DEBUG] mod_sofia.c:198 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
  16481. 2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:328 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Standard EXECUTE
  16482. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0325332654)
  16483. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [effective_destination_number]=[0325332654]
  16484. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
  16485. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_app]=[sched_hangup]
  16486. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  16487. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  16488. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:43)
  16489. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [callstart]=[2024-03-22 07:54:43]
  16490. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  16491. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  16492. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
  16493. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [continue_on_fail]=[TRUE]
  16494. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(account_id=109)
  16495. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [account_id]=[109]
  16496. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(parent_id=13)
  16497. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
  16498. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(entity_id=0)
  16499. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
  16500. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
  16501. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
  16502. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(call_direction=inbound)
  16503. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [call_direction]=[inbound]
  16504. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(accountname=default)
  16505. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [accountname]=[default]
  16506. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
  16507. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [filename1]=[astpp.pbx.lua]
  16508. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(origination_rates_did=ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109)                                                                                                                                                                                                                
  16509. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [origination_rates_did]=[ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109||ID:8427|CODE:^0325332654.*|DESTINATION:0325332654|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:5|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:171|ACCID:109]                                                                                                                                                              
  16510. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(origination_rates=0)
  16511. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [origination_rates]=[0]
  16512. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=Anonymous)
  16513. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [original_caller_id_name]=[Anonymous]
  16514. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=Anonymous)
  16515. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [original_caller_id_number]=[Anonymous]
  16516. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
  16517. 2024-03-22 07:54:43.344161 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
  16518. 2024-03-22 07:54:43.344161 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
  16519. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=Anonymous)
  16520. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [effective_caller_id_name]=[Anonymous]
  16521. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=Anonymous)
  16522. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [effective_caller_id_number]=[Anonymous]
  16523. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(receiver_accid=109)
  16524. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [receiver_accid]=[109]
  16525. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(domain_name=legalaidsa.nebular.co.za)
  16526. 2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
  16527. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(sip_to_host=legalaidsa.nebular.co.za)
  16528. 2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
  16529. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105)
  16530. 2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105]
  16531. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(call_type=5)
  16532. 2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
  16533. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(calltype=SIP-DID)
  16534. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [calltype]=[SIP-DID]
  16535. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 db(insert/pickup_any_group_/4607597910/71983ac6-e821-11ee-92ef-d17fbcf33421)
  16536. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(dialed_extension=transfer_call)
  16537. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [dialed_extension]=[transfer_call]
  16538. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(dialed_extension=transfer_call)
  16539. 2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  16540. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  16541. 2024-03-22 07:54:43.344161 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  16542. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  16543. 2024-03-22 07:54:43.344161 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  16544. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
  16545. 2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [hangup_after_bridge]=[true]
  16546. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(did_user_domain=legalaidsa.nebular.co.za)
  16547. 2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
  16548. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 sleep(1000)
  16549. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 ring_ready()
  16550. 2024-03-22 07:54:44.364239 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/Anonymous@legalaidsa.nebular.co.za:5060!
  16551. 2024-03-22 07:54:44.364239 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 entering state [early][180]
  16552. 2024-03-22 07:54:44.364239 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/Anonymous@legalaidsa.nebular.co.za:5060!
  16553. EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 bridge({sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/default/4607597910@legalaidsa.nebular.co.za^0325332654)
  16554. 2024-03-22 07:54:44.364239 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [domain_name]=[legalaidsa.nebular.co.za] to event
  16555. 2024-03-22 07:54:44.364239 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [sip_to_host]=[legalaidsa.nebular.co.za] to event
  16556. 2024-03-22 07:54:44.364239 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [presence_data]=[x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105] to event                                                                                                                                                            
  16557. 2024-03-22 07:54:44.364239 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [call_type]=[5] to event
  16558. 2024-03-22 07:54:44.364239 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  16559. 2024-03-22 07:54:44.364239 [DEBUG] switch_channel.c:1250 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 EXPORTING[export_vars] [did_user_domain]=[legalaidsa.nebular.co.za] to event
  16560. 2024-03-22 07:54:44.364239 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  16561. 2024-03-22 07:54:44.364239 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  16562. 2024-03-22 07:54:44.364239 [NOTICE] switch_channel.c:1104 New Channel sofia/default/4607597910@legalaidsa.nebular.co.za [72449b18-e821-11ee-931a-d17fbcf33421]
  16563. 2024-03-22 07:54:44.364239 [DEBUG] mod_sofia.c:4819 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_NEW -> CS_INIT
  16564. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_INIT (Cur 68 Tot 575027)
  16565. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
  16566. 2024-03-22 07:54:44.364239 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
  16567. 2024-03-22 07:54:44.364239 [DEBUG] sofia_glue.c:1295 sofia/default/4607597910@legalaidsa.nebular.co.za sending invite version: 1.6.20  64bit
  16568. Local SDP:                                                                                                                                                                                                        
  16569. v=0                                                                                                                                                                                                                
  16570. o=FreeSWITCH 1711070598 1711070599 IN IP4 156.38.231.107                                                                                                                                                          
  16571. s=FreeSWITCH                                                                                                                                                                                                      
  16572. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  16573. t=0 0                                                                                                                                                                                                              
  16574. m=audio 23486 RTP/AVP 8 101                                                                                                                                                                                        
  16575. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  16576. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  16577. a=fmtp:101 0-16                                                                                                                                                                                                    
  16578. a=ptime:20                                                                                                                                                                                                        
  16579. a=sendrecv                                                                                                                                                                                                        
  16580.  
  16581. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
  16582. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_INIT -> CS_ROUTING
  16583. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT going to sleep
  16584. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_ROUTING (Cur 68 Tot 575027)
  16585. 2024-03-22 07:54:44.364239 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
  16586. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
  16587. 2024-03-22 07:54:44.364239 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
  16588. 2024-03-22 07:54:44.364239 [DEBUG] switch_ivr_originate.c:67 (sofia/default/4607597910@legalaidsa.nebular.co.za) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  16589. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING going to sleep
  16590. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:584 (sofia/default/4607597910@legalaidsa.nebular.co.za) Running State Change CS_CONSUME_MEDIA (Cur 68 Tot 575027)
  16591. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
  16592. 2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA going to sleep
  16593. 2024-03-22 07:54:44.504164 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
  16594. 2024-03-22 07:54:44.504164 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
  16595. 2024-03-22 07:54:44.504164 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
  16596. 2024-03-22 07:54:44.504164 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/Anonymous@legalaidsa.nebular.co.za:5060!
  16597. 2024-03-22 07:54:45.004187 [NOTICE] switch_ivr_originate.c:327 Hangup sofia/default/7542292398@metrobus.nebular.co.za [CS_CONSUME_MEDIA] [ALLOTTED_TIMEOUT]
  16598. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7542292398@metrobus.nebular.co.za) Running State Change CS_HANGUP (Cur 68 Tot 575027)
  16599. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7542292398@metrobus.nebular.co.za) Callstate Change RINGING -> HANGUP
  16600. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7542292398@metrobus.nebular.co.za) State HANGUP
  16601. 2024-03-22 07:54:45.004187 [DEBUG] mod_sofia.c:438 Channel sofia/default/7542292398@metrobus.nebular.co.za hanging up, cause: ALLOTTED_TIMEOUT
  16602. 2024-03-22 07:54:45.004187 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/7542292398@metrobus.nebular.co.za
  16603. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:60 sofia/default/7542292398@metrobus.nebular.co.za Standard HANGUP, cause: ALLOTTED_TIMEOUT
  16604. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7542292398@metrobus.nebular.co.za) State HANGUP going to sleep
  16605. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7542292398@metrobus.nebular.co.za) State Change CS_HANGUP -> CS_REPORTING
  16606. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7542292398@metrobus.nebular.co.za) Running State Change CS_REPORTING (Cur 68 Tot 575027)
  16607. 2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7542292398@metrobus.nebular.co.za) State REPORTING
  16608. 2024-03-22 07:54:45.004187 [INFO] mod_json_cdr.c:271 Process [66966f30-e821-11ee-91af-d17fbcf33421.cdr.json]
  16609. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:174 sofia/default/7542292398@metrobus.nebular.co.za Standard REPORTING, cause: ALLOTTED_TIMEOUT
  16610. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7542292398@metrobus.nebular.co.za) State REPORTING going to sleep
  16611. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7542292398@metrobus.nebular.co.za) State Change CS_REPORTING -> CS_DESTROY
  16612. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_session.c:1665 Session 575011 (sofia/default/7542292398@metrobus.nebular.co.za) Locked, Waiting on external entities
  16613. 2024-03-22 07:54:45.024213 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 602 [ALLOTTED_TIMEOUT]
  16614. 2024-03-22 07:54:45.024213 [NOTICE] switch_core_session.c:1683 Session 575011 (sofia/default/7542292398@metrobus.nebular.co.za) Ended
  16615. 2024-03-22 07:54:45.024213 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7542292398@metrobus.nebular.co.za [CS_DESTROY]
  16616. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7542292398@metrobus.nebular.co.za) Running State Change CS_DESTROY (Cur 67 Tot 575027)
  16617. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7542292398@metrobus.nebular.co.za) State DESTROY
  16618. 2024-03-22 07:54:45.024213 [DEBUG] mod_sofia.c:343 sofia/default/7542292398@metrobus.nebular.co.za SOFIA DESTROY
  16619. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:181 sofia/default/7542292398@metrobus.nebular.co.za Standard DESTROY
  16620. 2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7542292398@metrobus.nebular.co.za) State DESTROY going to sleep
  16621. 2024-03-22 07:54:45.024213 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: ALLOTTED_TIMEOUT
  16622. EXECUTE sofia/default/027670264866@41.160.32.115:5060 sleep(1000)
  16623. 2024-03-22 07:54:45.144170 [NOTICE] sofia.c:1012 Hangup sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  16624. 2024-03-22 07:54:45.144170 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27118772377@legalaidsa.nebular.co.za:5060]
  16625. 2024-03-22 07:54:45.164163 [DEBUG] switch_ivr_bridge.c:706 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 ending bridge by request from write function
  16626. 2024-03-22 07:54:45.164163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0721141624]
  16627. 2024-03-22 07:54:45.164163 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0721141624 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  16628. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721141624) State EXCHANGE_MEDIA going to sleep
  16629. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721141624) Running State Change CS_HANGUP (Cur 67 Tot 575027)
  16630. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0721141624) Callstate Change ACTIVE -> HANGUP
  16631. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721141624) State HANGUP
  16632. 2024-03-22 07:54:45.164163 [DEBUG] mod_sofia.c:432 sofia/default/0721141624 Overriding SIP cause 480 with 200 from the other leg
  16633. 2024-03-22 07:54:45.164163 [DEBUG] mod_sofia.c:438 Channel sofia/default/0721141624 hanging up, cause: NORMAL_CLEARING
  16634. 2024-03-22 07:54:45.164163 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0721141624 skip receive message [UNBRIDGE] (channel is hungup already)
  16635. 2024-03-22 07:54:45.164163 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 skip receive message [UNBRIDGE] (channel is hungup already)
  16636. 2024-03-22 07:54:45.164163 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0721141624
  16637. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:60 sofia/default/0721141624 Standard HANGUP, cause: NORMAL_CLEARING
  16638. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721141624) State HANGUP going to sleep
  16639. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0721141624) State Change CS_HANGUP -> CS_REPORTING
  16640. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/0721141624) Running State Change CS_REPORTING (Cur 67 Tot 575027)
  16641. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721141624) State REPORTING
  16642. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_session.c:2815 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  16643. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State EXECUTE going to sleep
  16644. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_HANGUP (Cur 67 Tot 575027)
  16645. 2024-03-22 07:54:45.164163 [INFO] mod_json_cdr.c:271 Process [5cfb5d46-e821-11ee-9032-d17fbcf33421.cdr.json]
  16646. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:850 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change ACTIVE -> HANGUP
  16647. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State HANGUP
  16648. 2024-03-22 07:54:45.164163 [DEBUG] mod_sofia.c:438 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 hanging up, cause: NORMAL_CLEARING
  16649. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:60 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard HANGUP, cause: NORMAL_CLEARING
  16650. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State HANGUP going to sleep
  16651. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:619 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_HANGUP -> CS_REPORTING
  16652. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:584 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_REPORTING (Cur 67 Tot 575027)
  16653. 2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State REPORTING
  16654. 2024-03-22 07:54:45.164163 [INFO] mod_json_cdr.c:271 Process [5ceeff42-e821-11ee-900f-d17fbcf33421.cdr.json]
  16655. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:174 sofia/default/0721141624 Standard REPORTING, cause: NORMAL_CLEARING
  16656. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721141624) State REPORTING going to sleep
  16657. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0721141624) State Change CS_REPORTING -> CS_DESTROY
  16658. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_session.c:1665 Session 574995 (sofia/default/0721141624) Locked, Waiting on external entities
  16659. 2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1683 Session 574995 (sofia/default/0721141624) Ended
  16660. 2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0721141624 [CS_DESTROY]
  16661. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:741 (sofia/default/0721141624) Running State Change CS_DESTROY (Cur 66 Tot 575027)
  16662. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721141624) State DESTROY
  16663. 2024-03-22 07:54:45.184312 [DEBUG] mod_sofia.c:343 sofia/default/0721141624 SOFIA DESTROY
  16664. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:181 sofia/default/0721141624 Standard DESTROY
  16665. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721141624) State DESTROY going to sleep
  16666. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:174 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard REPORTING, cause: NORMAL_CLEARING
  16667. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State REPORTING going to sleep
  16668. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:610 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State Change CS_REPORTING -> CS_DESTROY
  16669. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_session.c:1665 Session 574994 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Locked, Waiting on external entities
  16670. 2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1683 Session 574994 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Ended
  16671. 2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [CS_DESTROY]
  16672. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:741 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Running State Change CS_DESTROY (Cur 65 Tot 575027)
  16673. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State DESTROY
  16674. 2024-03-22 07:54:45.184312 [DEBUG] mod_sofia.c:343 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
  16675. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:181 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard DESTROY
  16676. 2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State DESTROY going to sleep
  16677. 2024-03-22 07:54:45.524169 [DEBUG] switch_scheduler.c:144 Deleting task 232837 switch_ivr_schedule_hangup (5cfb5d46-e821-11ee-9032-d17fbcf33421)
  16678. 2024-03-22 07:54:45.704170 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:1928
  16679. 2024-03-22 07:54:45.704170 [INFO] switch_channel.c:515 RECV DTMF 2:1928
  16680. 2024-03-22 07:54:45.724157 [DEBUG] switch_rtp.c:5261 Send start packet for [2] ts=571348112 dur=160/160/1928 seq=4535 lw=571348112
  16681. 2024-03-22 07:54:45.744198 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=320/320/1928 seq=4536 lw=571348272
  16682. 2024-03-22 07:54:45.764166 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=480/480/1928 seq=4537 lw=571348432
  16683. 2024-03-22 07:54:45.784177 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=640/640/1928 seq=4538 lw=571348592
  16684. 2024-03-22 07:54:45.804182 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=800/800/1928 seq=4539 lw=571348752
  16685. 2024-03-22 07:54:45.824186 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=960/960/1928 seq=4540 lw=571348912
  16686. 2024-03-22 07:54:45.844195 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=1120/1120/1928 seq=4541 lw=571349072
  16687. 2024-03-22 07:54:45.864186 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=1280/1280/1928 seq=4542 lw=571349232
  16688. 2024-03-22 07:54:45.884200 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=1440/1440/1928 seq=4543 lw=571349392
  16689. 2024-03-22 07:54:45.904169 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=1600/1600/1928 seq=4544 lw=571349552
  16690. 2024-03-22 07:54:45.924157 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=1760/1760/1928 seq=4545 lw=571349712
  16691. 2024-03-22 07:54:45.944171 [DEBUG] switch_rtp.c:5160 Send middle packet for [2] ts=571348112 dur=1920/1920/1928 seq=4546 lw=571349872
  16692. 2024-03-22 07:54:45.964176 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=571348112 dur=2080/2080/1928 seq=4547 lw=571349872
  16693. 2024-03-22 07:54:45.964176 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=571348112 dur=2080/2080/1928 seq=4548 lw=571349872
  16694. 2024-03-22 07:54:45.964176 [DEBUG] switch_rtp.c:5160 Send end packet for [2] ts=571348112 dur=2080/2080/1928 seq=4549 lw=571349872
  16695. 2024-03-22 07:54:45.964176 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
  16696. EXECUTE sofia/default/027670264866@41.160.32.115:5060 ring_ready()
  16697. 2024-03-22 07:54:46.024164 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/027670264866@41.160.32.115:5060!
  16698. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(on_busy_flag=1)
  16699. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [on_busy_flag]=[1]
  16700. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(on_busy_destination=)
  16701. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [on_busy_destination]=[UNDEF]
  16702. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(no_answer_flag=1)
  16703. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [no_answer_flag]=[1]
  16704. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(no_answer_destination=)
  16705. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [no_answer_destination]=[UNDEF]
  16706. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(not_register_flag=1)
  16707. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [not_register_flag]=[1]
  16708. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(not_register_destination=)
  16709. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [not_register_destination]=[UNDEF]
  16710. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(opensips_flag=0)
  16711. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [opensips_flag]=[0]
  16712. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(variable_sip_to_host=metrobus.nebular.co.za)
  16713. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [variable_sip_to_host]=[metrobus.nebular.co.za]
  16714. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(opensips_domain=156.38.231.106)
  16715. 2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [opensips_domain]=[156.38.231.106]
  16716. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(leg_timeout=20)
  16717. 2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [leg_timeout]=[20]
  16718. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(userinfo_id=89)
  16719. 2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [userinfo_id]=[89]
  16720. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(sip_destination_number=7542292398)
  16721. 2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [sip_destination_number]=[7542292398]
  16722. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(did_number=7542292398)
  16723. 2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [did_number]=[7542292398]
  16724. EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(user_domain=metrobus.nebular.co.za)
  16725. 2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [user_domain]=[metrobus.nebular.co.za]
  16726. EXECUTE sofia/default/027670264866@41.160.32.115:5060 lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  16727. 2024-03-22 07:54:46.044319 [NOTICE] switch_cpp.cpp:1365 [Astpp_SIP-Devices] This Is Last Dispositions ALLOTTED_TIMEOUT This Is SIP Number : 7542292398
  16728. EXECUTE sofia/default/027670264866@41.160.32.115:5060 answer()
  16729. 2024-03-22 07:54:46.044319 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/027670264866@41.160.32.115:5060] 156.38.231.107 port 21656 -> 41.160.32.115 port 24818 codec: 18 ms: 20
  16730. 2024-03-22 07:54:46.044319 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  16731. 2024-03-22 07:54:46.044319 [DEBUG] switch_core_media.c:7180 sofia/default/027670264866@41.160.32.115:5060 Set 2833 dtmf send payload to 101
  16732. 2024-03-22 07:54:46.044319 [DEBUG] switch_core_media.c:7187 sofia/default/027670264866@41.160.32.115:5060 Set 2833 dtmf receive payload to 101
  16733. 2024-03-22 07:54:46.044319 [DEBUG] switch_core_media.c:7210 sofia/default/027670264866@41.160.32.115:5060 Set rtp dtmf delay to 40
  16734. 2024-03-22 07:54:46.044319 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/027670264866@41.160.32.115:5060:
  16735. v=0                                                                                                                                                                                                                
  16736. o=FreeSWITCH 1711072430 1711072431 IN IP4 156.38.231.107                                                                                                                                                          
  16737. s=FreeSWITCH                                                                                                                                                                                                      
  16738. c=IN IP4 156.38.231.107                                                                                                                                                                                            
  16739. t=0 0                                                                                                                                                                                                              
  16740. m=audio 21656 RTP/AVP 18 101                                                                                                                                                                                      
  16741. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  16742. a=fmtp:18 annexb=no                                                                                                                                                                                                
  16743. a=rtpmap:101 telephone-event/8000                                                                                                                                                                                  
  16744. a=fmtp:101 0-16                                                                                                                                                                                                    
  16745. a=ptime:20                                                                                                                                                                                                        
  16746. a=sendrecv                                                                                                                                                                                                        
  16747.  
  16748. 2024-03-22 07:54:46.044319 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/027670264866@41.160.32.115:5060] has been answered
  16749. 2024-03-22 07:54:46.044319 [DEBUG] switch_channel.c:3773 (sofia/default/027670264866@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
  16750. 2024-03-22 07:54:46.044319 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [completed][200]
  16751. 2024-03-22 07:54:46.044319 [NOTICE] switch_cpp.cpp:1365 [Astpp_SIP-Devices] Dialed User For Voicemail :7542292398
  16752. EXECUTE sofia/default/027670264866@41.160.32.115:5060 voicemail(default metrobus.nebular.co.za 7542292398)
  16753. 2024-03-22 07:54:46.164192 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
  16754. 2024-03-22 07:54:46.164192 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-person.wav] (en:en)
  16755. 2024-03-22 07:54:46.164192 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  16756. 2024-03-22 07:54:46.184185 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda86522c0 0x7feda86522c0
  16757. 2024-03-22 07:54:46.184185 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda86522c0 0x7feda86522c0
  16758. 2024-03-22 07:54:46.204178 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  16759. 2024-03-22 07:54:46.504181 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [ready][200]
  16760. 2024-03-22 07:54:47.524173 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/voicemail/vm-person.wav
  16761. 2024-03-22 07:54:47.624185 [DEBUG] switch_ivr_play_say.c:250 Handle say:[7542292398] (en:en)
  16762. 2024-03-22 07:54:47.624185 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  16763. 2024-03-22 07:54:48.624180 [NOTICE] switch_channel.c:1104 New Channel sofia/default/027812062126@41.160.32.115:5060 [74ce0b08-e821-11ee-9333-d17fbcf33421]
  16764. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027812062126@41.160.32.115:5060) Running State Change CS_NEW (Cur 66 Tot 575028)
  16765. 2024-03-22 07:54:48.624180 [DEBUG] sofia.c:9873 sofia/default/027812062126@41.160.32.115:5060 receiving invite from 156.38.231.106:5060 version: 1.6.20  64bit
  16766. 2024-03-22 07:54:48.624180 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
  16767. 2024-03-22 07:54:48.624180 [DEBUG] sofia.c:7084 Channel sofia/default/027812062126@41.160.32.115:5060 entering state [received][100]
  16768. 2024-03-22 07:54:48.624180 [DEBUG] sofia.c:7094 Remote SDP:
  16769. v=0                                                                                                                                                                                                                
  16770. o=HuaweiSoftX3000 40919431819209 40919431819209 IN IP4 41.160.32.115                                                                                                                                              
  16771. s=-                                                                                                                                                                                                                
  16772. c=IN IP4 41.160.32.115                                                                                                                                                                                            
  16773. t=0 0                                                                                                                                                                                                              
  16774. m=audio 24832 RTP/AVP 18 4 8 110                                                                                                                                                                                  
  16775. a=rtpmap:18 G729/8000                                                                                                                                                                                              
  16776. a=fmtp:18 annexb=no                                                                                                                                                                                                
  16777. a=rtpmap:4 G723/8000                                                                                                                                                                                              
  16778. a=rtpmap:8 PCMA/8000                                                                                                                                                                                              
  16779. a=rtpmap:110 telephone-event/8000                                                                                                                                                                                  
  16780. a=fmtp:110 0-15                                                                                                                                                                                                    
  16781. a=ptime:20                                                                                                                                                                                                        
  16782.  
  16783. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:60:8000:1]
  16784. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4485 Audio Codec Compare [G729:18:8000:60:8000:1] is saved as a near-match
  16785. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  16786. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  16787. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  16788. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  16789. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:60:8000:1]
  16790. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  16791. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  16792. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  16793. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:60:8000:1]
  16794. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  16795. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  16796. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  16797. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  16798. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 110@8000
  16799. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/027812062126@41.160.32.115:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels
  16800. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_codec.c:111 sofia/default/027812062126@41.160.32.115:5060 Original read codec set to G729:18
  16801. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 110@8000
  16802. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4767 sofia/default/027812062126@41.160.32.115:5060 Set 2833 dtmf send payload to 110 recv payload to 110
  16803. 2024-03-22 07:54:48.624180 [DEBUG] sofia.c:7507 (sofia/default/027812062126@41.160.32.115:5060) State Change CS_NEW -> CS_INIT
  16804. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:603 (sofia/default/027812062126@41.160.32.115:5060) State NEW
  16805. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027812062126@41.160.32.115:5060) Running State Change CS_INIT (Cur 66 Tot 575028)
  16806. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:627 (sofia/default/027812062126@41.160.32.115:5060) State INIT
  16807. 2024-03-22 07:54:48.624180 [DEBUG] mod_sofia.c:90 sofia/default/027812062126@41.160.32.115:5060 SOFIA INIT
  16808. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:40 sofia/default/027812062126@41.160.32.115:5060 Standard INIT
  16809. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:48 (sofia/default/027812062126@41.160.32.115:5060) State Change CS_INIT -> CS_ROUTING
  16810. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:627 (sofia/default/027812062126@41.160.32.115:5060) State INIT going to sleep
  16811. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:584 (sofia/default/027812062126@41.160.32.115:5060) Running State Change CS_ROUTING (Cur 66 Tot 575028)
  16812. 2024-03-22 07:54:48.624180 [DEBUG] switch_channel.c:2249 (sofia/default/027812062126@41.160.32.115:5060) Callstate Change DOWN -> RINGING
  16813. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:643 (sofia/default/027812062126@41.160.32.115:5060) State ROUTING
  16814. 2024-03-22 07:54:48.624180 [DEBUG] mod_sofia.c:143 sofia/default/027812062126@41.160.32.115:5060 SOFIA ROUTING
  16815. 2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:236 sofia/default/027812062126@41.160.32.115:5060 Standard ROUTING
  16816. 2024-03-22 07:54:48.624180 [INFO] mod_dialplan_xml.c:637 Processing 027812062126 <0812062126>->D9570514479915 in context default
  16817. 2024-03-22 07:54:48.624180 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
  16818. 2024-03-22 07:54:48.624180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  16819. 2024-03-22 07:54:48.624180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  16820. 2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
  16821. 2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570514479915
  16822. 2024-03-22 07:54:48.644434 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = 'D9570514479915' limit 1
  16823. 2024-03-22 07:54:48.644434 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = 'D9570514479915' AND status=0 limit 1
  16824. 2024-03-22 07:54:48.644434 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 'D9570514479915' and status=0 LIMIT 1                                                                                                                                                                                                      
  16825. 2024-03-22 07:54:48.644434 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
  16826. 2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 027812062126 / <null>
  16827. 2024-03-22 07:54:48.644434 [DEBUG] switch_cpp.cpp:1365 [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 ="D9570514479915" LIMIT 1                                                                                                                                                          
  16828. 2024-03-22 07:54:48.644434 [DEBUG] switch_cpp.cpp:1365 [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="D9570514479915"  AND domains.domain="156.38.231.106" limit 1                                                                                            
  16829. 2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
  16830. 2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
  16831. 2024-03-22 07:54:48.644434 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  16832. 2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^D9570514479915.*' OR blocked_patterns = '^D957051447991.*' OR blocked_patterns = '^D95705144799.*' OR blocked_patterns = '^D9570514479.*' OR blocked_patterns = '^D957051447.*' OR blocked_patterns = '^D95705144.*' OR blocked_patterns = '^D9570514.*' OR blocked_patterns = '^D957051.*' OR blocked_patterns = '^D95705.*' OR blocked_patterns = '^D9570.*' OR blocked_patterns = '^D957.*' OR blocked_patterns = '^D95.*' OR blocked_patterns = '^D9.*' OR blocked_patterns = '^D.*' OR blocked_patterns ='--') AND accountid = 3 limit 1                                                                                                                                                                        
  16833. 2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="D9570514479915" AND (accountid = 0 OR status = 1) LIMIT 1
  16834. 2024-03-22 07:54:48.664180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
  16835. 2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 5 AND status=0 limit 1                                                                                                                                                                                                  
  16836. 2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
  16837. 2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
  16838. 2024-03-22 07:54:48.664180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570514479915
  16839. 2024-03-22 07:54:48.664180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0514479915
  16840.