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)
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]
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)
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
2024-03-22 07:53:14.484168 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:14.484168 [DEBUG] sofia.c:7084 Channel sofia/default/0104938458@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:14.484168 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 135550446157835 135550446157835 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24770 RTP/AVP 18 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:14.484168 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0104938458@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0104938458@41.160.32.115:5060) State INIT
2024-03-22 07:53:14.484168 [DEBUG] mod_sofia.c:90 sofia/default/0104938458@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:40 sofia/default/0104938458@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:14.484168 [DEBUG] switch_channel.c:2249 (sofia/default/0104938458@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0104938458@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:14.484168 [DEBUG] mod_sofia.c:143 sofia/default/0104938458@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:14.484168 [DEBUG] switch_core_state_machine.c:236 sofia/default/0104938458@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:14.484168 [INFO] mod_dialplan_xml.c:637 Processing 0104938458 <0104938458>->D9570397275081 in context default
2024-03-22 07:53:14.484168 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:14.484168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570397275081
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
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
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
2024-03-22 07:53:14.484168 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0104938458 / <null>
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
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
2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:14.484168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570397275081
2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570397275081
2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570397275081
2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0397275081
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
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
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0397275081
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
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:14.524160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9281
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0397275081
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:14.524160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:14.524160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:14.544160 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0104938458
2024-03-22 07:53:14.544160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0104938458
2024-03-22 07:53:14.544160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27104938458
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:14.544160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:14.544160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0397275081">
<condition field="destination_number" expression="D9570397275081">
<action application="set" data="effective_destination_number=0397275081"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:14"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0104938458"/>
<action application="set" data="effective_caller_id_name=27104938458"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/9851635928/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/9851635928@legalaidsa.nebular.co.za^0397275081"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=9851635928"/>
<action application="set" data="destination_number=0397275081"/>
<action application="set" data="did_number=0397275081"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 9851635928@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0397275081"/>
<action application="voicemail" data="default $${domain_name} 9851635928"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:14.544160 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0104938458@41.160.32.115:5060 parsing [default->0397275081] continue=false
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Regex (PASS) [0397275081] destination_number(D9570397275081) =~ /D9570397275081/ break=on-false
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(effective_destination_number=0397275081)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:14)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(original_caller_id_name=0104938458)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(effective_caller_id_name=27104938458)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/9851635928/${uuid})
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(sip_destination_number=9851635928)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(destination_number=0397275081)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(did_number=0397275081)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104938458@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0397275081_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0104938458@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0104938458@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:14.584157 [DEBUG] mod_sofia.c:198 sofia/default/0104938458@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:14.584157 [DEBUG] switch_core_state_machine.c:328 sofia/default/0104938458@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(effective_destination_number=0397275081)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(callstart=2024-03-22 07:53:14)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(original_caller_id_name=0104938458)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(effective_caller_id_name=27104938458)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0397275081.* // 0397275081 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:14.584157 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104938458@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 db(insert/pickup_any_group_/9851635928/3cb1055e-e821-11ee-8d66-d17fbcf33421)
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:14.584157 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0104938458@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:14.584157 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0104938458@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:14.584157 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0104938458@41.160.32.115:5060 sleep(1000)
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]
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)
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
2024-03-22 07:53:15.184483 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:15.184483 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:53:15.184483 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 221090152448 340560707585 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10450 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:15.184483 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:53:15.184483 [DEBUG] mod_sofia.c:90 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:40 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:53:15.184483 [DEBUG] switch_channel.c:2249 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:53:15.184483 [DEBUG] mod_sofia.c:143 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:53:15.184483 [DEBUG] switch_core_state_machine.c:236 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:53:15.184483 [INFO] mod_dialplan_xml.c:637 Processing 0488814867 <0488814867>->0604893575 in context default
2024-03-22 07:53:15.184483 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:15.184483 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0604893575
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
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
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
2024-03-22 07:53:15.184483 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0488814867 / 0488814867
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
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
2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:15.184483 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:53:15.204188 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0604893575
2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0604893575
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
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
2024-03-22 07:53:15.204188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0604893575
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
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
2024-03-22 07:53:15.204188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:15.204188 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0604893575)!!!!
2024-03-22 07:53:15.204188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27604893575
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
2024-03-22 07:53:15.224218 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0604893575)!!!!
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19932.1335
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0488814867
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
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148273
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19932.1335 balance Accountid 109 !!!
2024-03-22 07:53:15.224218 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:53:15.224218 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9959.4983
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:15.224218 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:53:15.224218 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426173
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Incluudedseconds : 0
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9959.4983 balance Accountid 13 !!!
2024-03-22 07:53:15.244168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148273
2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:15.244168 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0604893575
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
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
2024-03-22 07:53:15.244168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0604893575">
<condition field="destination_number" expression="0604893575">
<action application="set" data="effective_destination_number=0604893575"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:15"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0488814867"/>
<action application="set" data="original_caller_id_number=0488814867"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0488814867"/>
<action application="set" data="effective_caller_id_number=0488814867"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148273"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:15.244168 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 parsing [default->0604893575] continue=false
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Regex (PASS) [0604893575] destination_number(0604893575) =~ /0604893575/ break=on-false
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0604893575)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:15)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0488814867)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0488814867)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0488814867)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0488814867)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148273)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:53:15.244168 [DEBUG] mod_sofia.c:198 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:53:15.244168 [DEBUG] switch_core_state_machine.c:328 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0604893575)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:15)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0488814867)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0488814867)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:53:15.244168 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:53:15.244168 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:53:15.244168 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:53:15.244168 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 15/800
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0488814867)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0488814867)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148273)
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]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:53:15.244168 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0488814867@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:53:15.244168 [DEBUG] mod_dptools.c:1548 SET sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:53:15.264182 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:15.264182 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:53:15.264182 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0604893575 [3d27e37c-e821-11ee-8dac-d17fbcf33421]
2024-03-22 07:53:15.264182 [DEBUG] mod_sofia.c:4819 (sofia/default/0604893575) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604893575) State INIT
2024-03-22 07:53:15.264182 [DEBUG] mod_sofia.c:90 sofia/default/0604893575 SOFIA INIT
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
2024-03-22 07:53:15.264182 [DEBUG] sofia_glue.c:1295 sofia/default/0604893575 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711067645 1711067646 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 26350 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:40 sofia/default/0604893575 Standard INIT
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0604893575) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604893575) State INIT going to sleep
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)
2024-03-22 07:53:15.264182 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [calling][0]
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604893575) State ROUTING
2024-03-22 07:53:15.264182 [DEBUG] mod_sofia.c:143 sofia/default/0604893575 SOFIA ROUTING
2024-03-22 07:53:15.264182 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0604893575) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604893575) State ROUTING going to sleep
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)
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0604893575) State CONSUME_MEDIA
2024-03-22 07:53:15.264182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0604893575) State CONSUME_MEDIA going to sleep
EXECUTE sofia/default/0104938458@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:15.584190 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0104938458@41.160.32.115:5060!
2024-03-22 07:53:15.604168 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0104938458@41.160.32.115:5060!
2024-03-22 07:53:15.604168 [DEBUG] sofia.c:7084 Channel sofia/default/0104938458@41.160.32.115:5060 entering state [early][180]
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)
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
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
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
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
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
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
2024-03-22 07:53:15.604168 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:15.604168 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/9851635928@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:15.604168 [DEBUG] mod_sofia.c:90 sofia/default/9851635928@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711071755 1711071756 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 22240 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:40 sofia/default/9851635928@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/9851635928@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:15.604168 [DEBUG] mod_sofia.c:143 sofia/default/9851635928@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:15.604168 [DEBUG] switch_core_state_machine.c:662 (sofia/default/9851635928@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:15.604168 [DEBUG] sofia.c:7084 Channel sofia/default/9851635928@legalaidsa.nebular.co.za entering state [calling][0]
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]
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)
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
2024-03-22 07:53:15.704188 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:15.704188 [DEBUG] sofia.c:7084 Channel sofia/default/0788023267@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:15.704188 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 52056281924824 52056281924824 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24774 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:15.704188 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0788023267@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0788023267@41.160.32.115:5060) State INIT
2024-03-22 07:53:15.704188 [DEBUG] mod_sofia.c:90 sofia/default/0788023267@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:40 sofia/default/0788023267@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:15.704188 [DEBUG] switch_channel.c:2249 (sofia/default/0788023267@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0788023267@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:15.704188 [DEBUG] mod_sofia.c:143 sofia/default/0788023267@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:15.704188 [DEBUG] switch_core_state_machine.c:236 sofia/default/0788023267@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:15.704188 [INFO] mod_dialplan_xml.c:637 Processing 0788023267 <0788023267>->0103130010 in context default
2024-03-22 07:53:15.704188 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:15.704188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0103130010
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
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
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
2024-03-22 07:53:15.724160 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0788023267 / <null>
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
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
2024-03-22 07:53:15.724160 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 15
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
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
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0103130010
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
2024-03-22 07:53:15.724160 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:15.724160 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2025
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0103130010
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:15.744187 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++15
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
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 15 limit 1
2024-03-22 07:53:15.744187 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : karlovac.nebular.co.za
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0788023267
2024-03-22 07:53:15.744187 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0788023267
2024-03-22 07:53:15.744187 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27788023267
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 15 limit 1
2024-03-22 07:53:15.744187 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : karlovac.nebular.co.za
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_10
2024-03-22 07:53:15.744187 [DEBUG] switch_cpp.cpp:1365 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2025
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : 10
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : IVR
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
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
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== announcement=File name==================ThistreeRe_.wav
2024-03-22 07:53:15.744187 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== sandip here===========================
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0103130010">
<condition field="destination_number" expression="0103130010">
<action application="set" data="effective_destination_number=0103130010"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:15"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0788023267"/>
<action application="set" data="effective_caller_id_name=27788023267"/>
<action application="set" data="receiver_accid=15"/>
<action application="export" data="domain_name=karlovac.nebular.co.za"/>
<action application="export" data="sip_to_host=karlovac.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=10"/>
<action application="set" data="did_calltype=10"/>
<action application="set" data="did_extensions=13"/>
<action application="set" data="ringback=/var/www/html/astpp//upload/pbx/ThistreeRe_.wav"/>
<action application="set" data="module_name=pbx"/>
<action application="set" data="sip_h_P-call_type=custom_forward"/>
<action application="set" data="sip_h_P-Accountcode=15"/>
<action application="set" data="no_answer_number=145"/>
<action application="export" data="no_answer_number=145"/>
<action application="set" data="no_answer_call_type=extension"/>
<action application="set" data="no_answer_call_type_value=145"/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="originate_disposition=no_key_press"/>
<action application="set" data="variable_sip_to_host=karlovac.nebular.co.za"/>
<action application="set" data="userinfo_id=3"/>
<action application="set" data="variable_sip_to_host=karlovac.nebular.co.za"/>
<action application="set" data="original_did_number=0103130010"/>
<action application="set" data="absolute_codec_string=PCMU,PCMA,G729"/>
<action application="answer"/>
<action application="ivr" data="ThisTree IVR13"/>
<action application="lua" data="astpp/lib/pbx/astpp-failover_ivr_destination.lua"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:15.744187 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0788023267@41.160.32.115:5060 parsing [default->0103130010] continue=false
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Regex (PASS) [0103130010] destination_number(0103130010) =~ /0103130010/ break=on-false
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(effective_destination_number=0103130010)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:15)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(original_caller_id_name=0788023267)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(effective_caller_id_name=27788023267)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(receiver_accid=15)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(domain_name=karlovac.nebular.co.za)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(sip_to_host=karlovac.nebular.co.za)
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)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(call_type=10)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(did_calltype=10)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(did_extensions=13)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(ringback=/var/www/html/astpp//upload/pbx/ThistreeRe_.wav)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(module_name=pbx)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(sip_h_P-call_type=custom_forward)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(sip_h_P-Accountcode=15)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(no_answer_number=145)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action export(no_answer_number=145)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(no_answer_call_type=extension)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(no_answer_call_type_value=145)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(originate_disposition=no_key_press)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(variable_sip_to_host=karlovac.nebular.co.za)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(userinfo_id=3)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(variable_sip_to_host=karlovac.nebular.co.za)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(original_did_number=0103130010)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action set(absolute_codec_string=PCMU,PCMA,G729)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action answer()
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action ivr(ThisTree IVR13)
Dialplan: sofia/default/0788023267@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-failover_ivr_destination.lua)
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
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
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)
2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0788023267@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:15.744187 [DEBUG] mod_sofia.c:198 sofia/default/0788023267@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:15.744187 [DEBUG] switch_core_state_machine.c:328 sofia/default/0788023267@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(effective_destination_number=0103130010)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(callstart=2024-03-22 07:53:15)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(original_caller_id_name=0788023267)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(effective_caller_id_name=27788023267)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(receiver_accid=15)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [receiver_accid]=[15]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(domain_name=karlovac.nebular.co.za)
2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[karlovac.nebular.co.za]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(sip_to_host=karlovac.nebular.co.za)
2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[karlovac.nebular.co.za]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0103130010.* // 0103130010 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(call_type=10)
2024-03-22 07:53:15.744187 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[10]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(did_calltype=10)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [did_calltype]=[10]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(did_extensions=13)
2024-03-22 07:53:15.744187 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [did_extensions]=[13]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(ringback=/var/www/html/astpp//upload/pbx/ThistreeRe_.wav)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(module_name=pbx)
2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [module_name]=[pbx]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(sip_h_P-call_type=custom_forward)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(sip_h_P-Accountcode=15)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(no_answer_number=145)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 export(no_answer_number=145)
2024-03-22 07:53:15.764174 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [no_answer_number]=[145]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(no_answer_call_type=extension)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(no_answer_call_type_value=145)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(opensips_flag=0)
2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [opensips_flag]=[0]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(originate_disposition=no_key_press)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(variable_sip_to_host=karlovac.nebular.co.za)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(userinfo_id=3)
2024-03-22 07:53:15.764174 [DEBUG] mod_dptools.c:1548 SET sofia/default/0788023267@41.160.32.115:5060 [userinfo_id]=[3]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(variable_sip_to_host=karlovac.nebular.co.za)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(original_did_number=0103130010)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 set(absolute_codec_string=PCMU,PCMA,G729)
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]
EXECUTE sofia/default/0788023267@41.160.32.115:5060 answer()
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
2024-03-22 07:53:15.764174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:15.764174 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0788023267@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711075635 1711075636 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 18360 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:15.764174 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/0788023267@41.160.32.115:5060] has been answered
2024-03-22 07:53:15.764174 [DEBUG] switch_channel.c:3773 (sofia/default/0788023267@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
EXECUTE sofia/default/0788023267@41.160.32.115:5060 ivr(ThisTree IVR13)
2024-03-22 07:53:15.784192 [DEBUG] sofia.c:7084 Channel sofia/default/9851635928@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:15.784192 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/9851635928@legalaidsa.nebular.co.za!
2024-03-22 07:53:15.784192 [DEBUG] switch_channel.c:3346 (sofia/default/9851635928@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:880 building menu 'ThisTree IVR13'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '1'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '2'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,20})$/'
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu ThisTree IVR13
2024-03-22 07:53:15.784192 [DEBUG] sofia.c:7084 Channel sofia/default/0788023267@41.160.32.115:5060 entering state [completed][200]
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
2024-03-22 07:53:15.784192 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
2024-03-22 07:53:15.784192 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda8225978 0x7feda8225978
2024-03-22 07:53:15.784192 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda8225978 0x7feda8225978
2024-03-22 07:53:15.804153 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0104938458@41.160.32.115:5060!
2024-03-22 07:53:15.944348 [DEBUG] sofia.c:7084 Channel sofia/default/0788023267@41.160.32.115:5060 entering state [ready][200]
2024-03-22 07:53:16.404221 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:17.584203 [NOTICE] sofia.c:1012 Hangup sofia/default/27123676133@saws.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:17.584203 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27123676133@saws.nebular.co.za:5060]
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
2024-03-22 07:53:17.604157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/5923718012@saws.nebular.co.za]
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]
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
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)
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
2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5923718012@saws.nebular.co.za) State HANGUP
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
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
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)
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)
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)
2024-03-22 07:53:17.604157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/5923718012@saws.nebular.co.za
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
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)
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
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
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
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)
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
2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5923718012@saws.nebular.co.za) State REPORTING
2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27123676133@saws.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:17.604157 [INFO] mod_json_cdr.c:271 Process [f1827de2-e820-11ee-85ab-d17fbcf33421.cdr.json]
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
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
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
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)
2024-03-22 07:53:17.604157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27123676133@saws.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:17.604157 [INFO] mod_json_cdr.c:271 Process [f0d9378c-e820-11ee-856e-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1683 Session 574870 (sofia/default/5923718012@saws.nebular.co.za) Ended
2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5923718012@saws.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5923718012@saws.nebular.co.za) State DESTROY
2024-03-22 07:53:17.624159 [DEBUG] mod_sofia.c:343 sofia/default/5923718012@saws.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:17.624159 [DEBUG] switch_core_state_machine.c:181 sofia/default/5923718012@saws.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:17.624159 [NOTICE] switch_core_session.c:1683 Session 574867 (sofia/default/27123676133@saws.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:17.644373 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27123676133@saws.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:17.644373 [DEBUG] mod_sofia.c:343 sofia/default/27123676133@saws.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:17.644373 [DEBUG] switch_core_state_machine.c:181 sofia/default/27123676133@saws.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:17.964188 [DEBUG] switch_scheduler.c:144 Deleting task 232786 switch_ivr_schedule_hangup (f1827de2-e820-11ee-85ab-d17fbcf33421)
2024-03-22 07:53:18.344182 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [proceeding][183]
2024-03-22 07:53:18.344182 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 86115372584755 86115372584755 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24772 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:18.344182 [DEBUG] switch_core_codec.c:111 sofia/default/0604893575 Original read codec set to PCMA:8
2024-03-22 07:53:18.344182 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:18.364187 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:53:18.364187 [DEBUG] switch_core_media.c:7180 sofia/default/0604893575 Set 2833 dtmf send payload to 101
2024-03-22 07:53:18.364187 [DEBUG] switch_core_media.c:7187 sofia/default/0604893575 Set 2833 dtmf receive payload to 101
2024-03-22 07:53:18.364187 [DEBUG] switch_core_media.c:7210 sofia/default/0604893575 Set rtp dtmf delay to 40
2024-03-22 07:53:18.364187 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0604893575!
2024-03-22 07:53:18.364187 [DEBUG] switch_channel.c:3474 (sofia/default/0604893575) Callstate Change DOWN -> EARLY
2024-03-22 07:53:18.384171 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:53:18.384171 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:18.384171 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711064524 1711064525 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 29474 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:18.384171 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0488814867@legalaidsa.nebular.co.za:5060!
2024-03-22 07:53:18.384171 [DEBUG] switch_channel.c:3474 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:53:18.384171 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0604893575]
2024-03-22 07:53:18.384171 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:53:18.384171 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0604893575) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:53:18.384171 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0604893575) State EXCHANGE_MEDIA
2024-03-22 07:53:18.384171 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:18.544168 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0604893575 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:53:18.564594 [DEBUG] switch_ivr.c:623 sofia/default/0604893575 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0604893575 sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:53:19.444164 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:19.524162 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [proceeding][180]
2024-03-22 07:53:19.524162 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0604893575!
2024-03-22 07:53:19.524162 [DEBUG] switch_channel.c:3346 (sofia/default/0604893575) Callstate Change EARLY -> RINGING
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]
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)
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
2024-03-22 07:53:20.364173 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:20.364173 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:53:20.364173 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 506856472576 5637144577 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10456 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:20.364173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:53:20.364173 [DEBUG] mod_sofia.c:90 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:40 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:53:20.364173 [DEBUG] switch_channel.c:2249 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:53:20.364173 [DEBUG] mod_sofia.c:143 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:53:20.364173 [DEBUG] switch_core_state_machine.c:236 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:53:20.364173 [INFO] mod_dialplan_xml.c:637 Processing 0333942190 <0333942190>->0721916283 in context default
2024-03-22 07:53:20.364173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:20.364173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0721916283
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
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
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
2024-03-22 07:53:20.384154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0333942190 / 0333942190
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
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
2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:20.384154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:53:20.384154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721916283
2024-03-22 07:53:20.384154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721916283
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
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
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0721916283
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
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
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0721916283)!!!!
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27721916283
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
2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0721916283)!!!!
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19932.1335
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
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
2024-03-22 07:53:20.404250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148455
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - MOBILE
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:20.404250 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19932.1335 balance Accountid 109 !!!
2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:53:20.404250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9959.4983
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426357
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D082-VODACOM
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9959.4983 balance Accountid 13 !!!
2024-03-22 07:53:20.426217 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148455
2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:20.426217 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0721916283
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
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
2024-03-22 07:53:20.426217 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0721916283">
<condition field="destination_number" expression="0721916283">
<action application="set" data="effective_destination_number=0721916283"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:20"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0333942190"/>
<action application="set" data="original_caller_id_number=0333942190"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0333942190"/>
<action application="set" data="effective_caller_id_number=0333942190"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148455"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:20.426217 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 parsing [default->0721916283] continue=false
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Regex (PASS) [0721916283] destination_number(0721916283) =~ /0721916283/ break=on-false
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0721916283)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:20)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148455)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:198 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:328 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0721916283)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:20)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:53:20.426217 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:53:20.426217 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 14/200
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:53:20.426217 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:53:20.426217 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 16/800
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148455)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:53:20.426217 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:53:20.426217 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:53:20.426217 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:20.426217 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:53:20.426217 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0721916283 [403edfb6-e821-11ee-8e0a-d17fbcf33421]
2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:4819 (sofia/default/0721916283) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721916283) State INIT
2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:90 sofia/default/0721916283 SOFIA INIT
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
2024-03-22 07:53:20.426217 [DEBUG] sofia_glue.c:1295 sofia/default/0721916283 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711065154 1711065155 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28846 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:40 sofia/default/0721916283 Standard INIT
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0721916283) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721916283) State INIT going to sleep
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)
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721916283) State ROUTING
2024-03-22 07:53:20.426217 [DEBUG] mod_sofia.c:143 sofia/default/0721916283 SOFIA ROUTING
2024-03-22 07:53:20.426217 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0721916283) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721916283) State ROUTING going to sleep
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)
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721916283) State CONSUME_MEDIA
2024-03-22 07:53:20.426217 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721916283) State CONSUME_MEDIA going to sleep
2024-03-22 07:53:20.426217 [DEBUG] sofia.c:7084 Channel sofia/default/0721916283 entering state [calling][0]
2024-03-22 07:53:21.744204 [DEBUG] sofia.c:7084 Channel sofia/default/0648339420 entering state [completing][200]
2024-03-22 07:53:21.764378 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 6409369483067 6409369483067 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24756 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:53:21.764378 [DEBUG] sofia.c:7084 Channel sofia/default/0648339420 entering state [ready][200]
2024-03-22 07:53:21.764378 [NOTICE] sofia.c:8159 Channel [sofia/default/0648339420] has been answered
2024-03-22 07:53:21.764378 [DEBUG] switch_channel.c:3773 (sofia/default/0648339420) Callstate Change EARLY -> ACTIVE
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.
2024-03-22 07:53:21.784170 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0543379200@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711067551 1711067553 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 26424 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:21.784170 [DEBUG] switch_channel.c:3773 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:53:21.784170 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:53:21.824177 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:21.844209 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:21.844209 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [ready][200]
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]
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)
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
2024-03-22 07:53:22.104168 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:22.104168 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:53:22.104168 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 52328136704 174600486913 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10458 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:22.104168 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:53:22.104168 [DEBUG] mod_sofia.c:90 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:40 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:53:22.104168 [DEBUG] switch_channel.c:2249 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:53:22.104168 [DEBUG] mod_sofia.c:143 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:53:22.104168 [DEBUG] switch_core_state_machine.c:236 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:53:22.104168 [INFO] mod_dialplan_xml.c:637 Processing 0155191100 <0155191100>->0837207317 in context default
2024-03-22 07:53:22.104168 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:22.104168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0837207317
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
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
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
2024-03-22 07:53:22.124151 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0155191100 / 0155191100
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
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
2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:53:22.124151 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0837207317
2024-03-22 07:53:22.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0837207317
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
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
2024-03-22 07:53:22.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0837207317
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
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
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0837207317)!!!!
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27837207317
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
2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0837207317)!!!!
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19932.1335
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0155191100
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
2024-03-22 07:53:22.144155 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148495
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:22.144155 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19932.1335 balance Accountid 109 !!!
2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:53:22.144155 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9959.4983
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426397
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9959.4983 balance Accountid 13 !!!
2024-03-22 07:53:22.164173 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148495
2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:22.164173 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0837207317
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
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
2024-03-22 07:53:22.164173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0837207317">
<condition field="destination_number" expression="0837207317">
<action application="set" data="effective_destination_number=0837207317"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:22"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0155191100"/>
<action application="set" data="original_caller_id_number=0155191100"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0155191100"/>
<action application="set" data="effective_caller_id_number=0155191100"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148495"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:22.164173 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 parsing [default->0837207317] continue=false
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Regex (PASS) [0837207317] destination_number(0837207317) =~ /0837207317/ break=on-false
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0837207317)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:22)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0155191100)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0155191100)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0155191100)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0155191100)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148495)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:53:22.164173 [DEBUG] mod_sofia.c:198 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:53:22.164173 [DEBUG] switch_core_state_machine.c:328 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0837207317)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:22)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:53:22.164173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0155191100)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0155191100)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:53:22.184160 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:53:22.184160 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 15/200
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:53:22.184160 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:53:22.184160 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 17/800
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0155191100)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0155191100)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148495)
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]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:53:22.184160 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0155191100@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:53:22.184160 [DEBUG] mod_dptools.c:1548 SET sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:53:22.184160 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:22.184160 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:53:22.184160 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0837207317 [41489e38-e821-11ee-8e31-d17fbcf33421]
2024-03-22 07:53:22.184160 [DEBUG] mod_sofia.c:4819 (sofia/default/0837207317) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837207317) State INIT
2024-03-22 07:53:22.184160 [DEBUG] mod_sofia.c:90 sofia/default/0837207317 SOFIA INIT
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
2024-03-22 07:53:22.184160 [DEBUG] sofia_glue.c:1295 sofia/default/0837207317 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711071748 1711071749 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 22254 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:40 sofia/default/0837207317 Standard INIT
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0837207317) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837207317) State INIT going to sleep
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)
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837207317) State ROUTING
2024-03-22 07:53:22.184160 [DEBUG] mod_sofia.c:143 sofia/default/0837207317 SOFIA ROUTING
2024-03-22 07:53:22.184160 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0837207317) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837207317) State ROUTING going to sleep
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)
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0837207317) State CONSUME_MEDIA
2024-03-22 07:53:22.184160 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0837207317) State CONSUME_MEDIA going to sleep
2024-03-22 07:53:22.184160 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [calling][0]
2024-03-22 07:53:23.164241 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [proceeding][183]
2024-03-22 07:53:23.164241 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 18744515584518 18744515584518 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24778 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:23.164241 [DEBUG] switch_core_codec.c:111 sofia/default/0837207317 Original read codec set to PCMA:8
2024-03-22 07:53:23.164241 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:23.164241 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7180 sofia/default/0837207317 Set 2833 dtmf send payload to 101
2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7187 sofia/default/0837207317 Set 2833 dtmf receive payload to 101
2024-03-22 07:53:23.184172 [DEBUG] switch_core_media.c:7210 sofia/default/0837207317 Set rtp dtmf delay to 40
2024-03-22 07:53:23.184172 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0837207317!
2024-03-22 07:53:23.184172 [DEBUG] switch_channel.c:3474 (sofia/default/0837207317) Callstate Change DOWN -> EARLY
2024-03-22 07:53:23.184172 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:53:23.184172 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:23.184172 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711063705 1711063706 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 30298 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:23.184172 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0155191100@legalaidsa.nebular.co.za:5060!
2024-03-22 07:53:23.184172 [DEBUG] switch_channel.c:3474 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:53:23.184172 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0837207317]
2024-03-22 07:53:23.184172 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0837207317) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:53:23.184172 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0837207317) State EXCHANGE_MEDIA
2024-03-22 07:53:23.184172 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:23.184172 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:53:23.224165 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [proceeding][180]
2024-03-22 07:53:23.224165 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0837207317!
2024-03-22 07:53:23.224165 [DEBUG] switch_channel.c:3346 (sofia/default/0837207317) Callstate Change EARLY -> RINGING
2024-03-22 07:53:23.324183 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:23.364194 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0837207317 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:53:23.384224 [DEBUG] switch_ivr.c:623 sofia/default/0837207317 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0837207317 sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:53:23.564165 [NOTICE] sofia.c:1012 Hangup sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0543379200@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0648339420]
2024-03-22 07:53:23.564165 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0648339420 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0648339420) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0648339420) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:23.564165 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0648339420 skip receive message [UNBRIDGE] (channel is hungup already)
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)
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)
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
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)
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
2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:23.564165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:23.584166 [INFO] mod_json_cdr.c:271 Process [30078d28-e821-11ee-8c0a-d17fbcf33421.cdr.json]
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0648339420) State HANGUP
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
2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:438 Channel sofia/default/0648339420 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0648339420
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:60 sofia/default/0648339420 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0648339420) State HANGUP going to sleep
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0648339420) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0648339420) State REPORTING
2024-03-22 07:53:23.584166 [INFO] mod_json_cdr.c:271 Process [30151470-e821-11ee-8c2d-d17fbcf33421.cdr.json]
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:174 sofia/default/0648339420 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0648339420) State REPORTING going to sleep
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0648339420) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:23.584166 [DEBUG] switch_core_session.c:1665 Session 574947 (sofia/default/0648339420) Locked, Waiting on external entities
2024-03-22 07:53:23.584166 [NOTICE] switch_core_session.c:1683 Session 574947 (sofia/default/0648339420) Ended
2024-03-22 07:53:23.584166 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0648339420 [CS_DESTROY]
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)
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0648339420) State DESTROY
2024-03-22 07:53:23.584166 [DEBUG] mod_sofia.c:343 sofia/default/0648339420 SOFIA DESTROY
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:181 sofia/default/0648339420 Standard DESTROY
2024-03-22 07:53:23.584166 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0648339420) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:23.604153 [NOTICE] switch_core_session.c:1683 Session 574946 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:23.604153 [DEBUG] mod_sofia.c:343 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:23.604153 [DEBUG] switch_core_state_machine.c:181 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:23.824180 [DEBUG] sofia.c:7084 Channel sofia/default/7623690379@legalaidsa.nebular.co.za entering state [received][100]
2024-03-22 07:53:23.824180 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 194934472704 319421415427 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10436 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
2024-03-22 07:53:23.884172 [DEBUG] switch_scheduler.c:144 Deleting task 232819 switch_ivr_schedule_hangup (30151470-e821-11ee-8c2d-d17fbcf33421)
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]
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)
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
2024-03-22 07:53:23.984159 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:23.984159 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:23.984159 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 15922722071859 15922722071859 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24780 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:23.984159 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0604746864@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0604746864@41.160.32.115:5060) State INIT
2024-03-22 07:53:23.984159 [DEBUG] mod_sofia.c:90 sofia/default/0604746864@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:23.984159 [DEBUG] switch_core_state_machine.c:40 sofia/default/0604746864@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:23.984159 [DEBUG] switch_channel.c:2249 (sofia/default/0604746864@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:24.004151 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0604746864@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:24.004151 [DEBUG] mod_sofia.c:143 sofia/default/0604746864@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:24.004151 [DEBUG] switch_core_state_machine.c:236 sofia/default/0604746864@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:24.004151 [INFO] mod_dialplan_xml.c:637 Processing 0604746864 <0604746864>->D9570214264126 in context default
2024-03-22 07:53:24.004151 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:24.004151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570214264126
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
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
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
2024-03-22 07:53:24.004151 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0604746864 / <null>
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
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
2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:24.004151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570214264126
2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570214264126
2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570214264126
2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0214264126
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
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
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0214264126
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
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9171
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0214264126
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:24.024354 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:24.024354 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:24.024354 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:24.044213 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:24.044213 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:24.044213 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0604746864
2024-03-22 07:53:24.044213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0604746864
2024-03-22 07:53:24.044213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27604746864
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:24.044213 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:24.044213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0214264126">
<condition field="destination_number" expression="D9570214264126">
<action application="set" data="effective_destination_number=0214264126"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:24"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0604746864"/>
<action application="set" data="effective_caller_id_name=27604746864"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/2693458380/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/2693458380@legalaidsa.nebular.co.za^0214264126"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=2693458380"/>
<action application="set" data="destination_number=0214264126"/>
<action application="set" data="did_number=0214264126"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 2693458380@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0214264126"/>
<action application="voicemail" data="default $${domain_name} 2693458380"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:24.044213 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0604746864@41.160.32.115:5060 parsing [default->0214264126] continue=false
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Regex (PASS) [0214264126] destination_number(D9570214264126) =~ /D9570214264126/ break=on-false
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(effective_destination_number=0214264126)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:24)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(original_caller_id_name=0604746864)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(effective_caller_id_name=27604746864)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/2693458380/${uuid})
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(sip_destination_number=2693458380)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(destination_number=0214264126)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(did_number=0214264126)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0604746864@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0214264126_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0604746864@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0604746864@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:24.064214 [DEBUG] mod_sofia.c:198 sofia/default/0604746864@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:24.064214 [DEBUG] switch_core_state_machine.c:328 sofia/default/0604746864@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(effective_destination_number=0214264126)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(callstart=2024-03-22 07:53:24)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(original_caller_id_name=0604746864)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(effective_caller_id_name=27604746864)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0214264126.* // 0214264126 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:24.084306 [DEBUG] mod_dptools.c:1548 SET sofia/default/0604746864@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 db(insert/pickup_any_group_/2693458380/425cf9f4-e821-11ee-8e37-d17fbcf33421)
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:24.084306 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0604746864@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:24.084306 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0604746864@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0604746864@41.160.32.115:5060 sleep(1000)
2024-03-22 07:53:24.084306 [DEBUG] switch_ivr_play_say.c:1942 done playing file local_stream://moh
2024-03-22 07:53:24.084306 [DEBUG] switch_channel.c:2029 (sofia/default/7623690379@legalaidsa.nebular.co.za) Callstate Change HELD -> UNHELD
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]
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
2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:53:24.084306 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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.
2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7999 Processing updated SDP
2024-03-22 07:53:24.084306 [DEBUG] switch_core_io.c:941 (sofia/default/7623690379@legalaidsa.nebular.co.za) Callstate Change UNHELD -> ACTIVE
2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7084 Channel sofia/default/7623690379@legalaidsa.nebular.co.za entering state [completed][200]
2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7084 Channel sofia/default/0713596820 entering state [completing][200]
2024-03-22 07:53:24.084306 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 68789474499152 68789474499152 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24766 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:53:24.105550 [DEBUG] sofia.c:7084 Channel sofia/default/0713596820 entering state [ready][200]
2024-03-22 07:53:24.105550 [NOTICE] sofia.c:8159 Channel [sofia/default/0713596820] has been answered
2024-03-22 07:53:24.105550 [DEBUG] switch_channel.c:3773 (sofia/default/0713596820) Callstate Change EARLY -> ACTIVE
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.
2024-03-22 07:53:24.124153 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/27124315120@saqa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711067758 1711067760 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 26226 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:24.124153 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:24.124153 [DEBUG] switch_channel.c:3773 (sofia/default/27124315120@saqa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:53:24.124153 [DEBUG] sofia.c:7084 Channel sofia/default/27124315120@saqa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:53:24.144162 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:24.164163 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:24.164163 [DEBUG] sofia.c:7084 Channel sofia/default/7623690379@legalaidsa.nebular.co.za entering state [ready][200]
2024-03-22 07:53:24.244157 [DEBUG] sofia.c:7084 Channel sofia/default/27124315120@saqa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:53:24.744161 [NOTICE] sofia.c:1012 Hangup sofia/default/0437044700@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0437044700@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0116621444]
2024-03-22 07:53:24.744161 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0116621444 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0116621444) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0116621444) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:24.744161 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0116621444 skip receive message [UNBRIDGE] (channel is hungup already)
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)
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0116621444) State HANGUP
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
2024-03-22 07:53:24.744161 [DEBUG] mod_sofia.c:438 Channel sofia/default/0116621444 hanging up, cause: NORMAL_CLEARING
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)
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
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)
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
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:24.744161 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0116621444
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:60 sofia/default/0116621444 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0116621444) State HANGUP going to sleep
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0116621444) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0116621444) State REPORTING
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
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
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
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)
2024-03-22 07:53:24.744161 [INFO] mod_json_cdr.c:271 Process [d0d3d3fc-e820-11ee-834a-d17fbcf33421.cdr.json]
2024-03-22 07:53:24.744161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:24.744161 [INFO] mod_json_cdr.c:271 Process [d0c69048-e820-11ee-8327-d17fbcf33421.cdr.json]
2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:174 sofia/default/0116621444 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0116621444) State REPORTING going to sleep
2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0116621444) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:24.764191 [DEBUG] switch_core_session.c:1665 Session 574841 (sofia/default/0116621444) Locked, Waiting on external entities
2024-03-22 07:53:24.764191 [NOTICE] switch_core_session.c:1683 Session 574841 (sofia/default/0116621444) Ended
2024-03-22 07:53:24.764191 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0116621444 [CS_DESTROY]
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)
2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0116621444) State DESTROY
2024-03-22 07:53:24.764191 [DEBUG] mod_sofia.c:343 sofia/default/0116621444 SOFIA DESTROY
2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:181 sofia/default/0116621444 Standard DESTROY
2024-03-22 07:53:24.764191 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0116621444) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:24.784170 [NOTICE] switch_core_session.c:1683 Session 574840 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0437044700@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:24.784170 [DEBUG] mod_sofia.c:343 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:24.784170 [DEBUG] switch_core_state_machine.c:181 sofia/default/0437044700@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:24.904176 [DEBUG] switch_scheduler.c:144 Deleting task 232775 switch_ivr_schedule_hangup (d0d3d3fc-e820-11ee-834a-d17fbcf33421)
2024-03-22 07:53:25.024163 [NOTICE] sofia.c:1012 Hangup sofia/default/3242002977@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:25.044157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/3242002977@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3242002977@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3242002977@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:53:25.044157 [INFO] mod_json_cdr.c:271 Process [2f5fddda-e821-11ee-8c06-d17fbcf33421.cdr.json]
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
2024-03-22 07:53:25.044157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0640547054@41.160.32.115:5060]
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)
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]
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)
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
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)
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
2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0640547054@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0640547054@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0640547054@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:25.044157 [INFO] mod_json_cdr.c:271 Process [2eb40c44-e821-11ee-8bb5-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:25.044157 [NOTICE] switch_core_session.c:1683 Session 574945 (sofia/default/3242002977@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:25.044157 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/3242002977@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3242002977@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:25.044157 [DEBUG] mod_sofia.c:343 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:25.044157 [DEBUG] switch_core_state_machine.c:181 sofia/default/3242002977@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:25.064293 [NOTICE] switch_core_session.c:1683 Session 574942 (sofia/default/0640547054@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0640547054@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:25.064293 [DEBUG] mod_sofia.c:343 sofia/default/0640547054@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:25.064293 [DEBUG] switch_core_state_machine.c:181 sofia/default/0640547054@41.160.32.115:5060 Standard DESTROY
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
EXECUTE sofia/default/0604746864@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:25.084169 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0604746864@41.160.32.115:5060!
2024-03-22 07:53:25.084169 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:53:25.084169 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0604746864@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:53:25.084169 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:25.084169 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2693458380@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:25.084169 [DEBUG] mod_sofia.c:90 sofia/default/2693458380@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711063237 1711063238 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 30768 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:40 sofia/default/2693458380@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2693458380@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:25.084169 [DEBUG] mod_sofia.c:143 sofia/default/2693458380@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:25.084169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/2693458380@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:25.084169 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:25.324190 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:25.324190 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/2693458380@legalaidsa.nebular.co.za!
2024-03-22 07:53:25.324190 [DEBUG] switch_channel.c:3346 (sofia/default/2693458380@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:25.344163 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0604746864@41.160.32.115:5060!
2024-03-22 07:53:25.404161 [DEBUG] switch_scheduler.c:144 Deleting task 232821 switch_ivr_schedule_hangup (2f5fddda-e821-11ee-8c06-d17fbcf33421)
2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [received][100]
2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 29578231808 444814327810 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10442 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=sendonly
2024-03-22 07:53:25.544218 [DEBUG] switch_channel.c:1844 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change ACTIVE -> HELD
2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [received][100]
2024-03-22 07:53:25.544218 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 21122514944 531619643395 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10424 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:53:25.604165 [NOTICE] sofia.c:1012 Hangup sofia/default/27118772122@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:25.604165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27118772122@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:25.625043 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0837846909]
2024-03-22 07:53:25.625043 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0837846909 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0837846909) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0837846909) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837846909) State HANGUP
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
2024-03-22 07:53:25.625043 [DEBUG] mod_sofia.c:438 Channel sofia/default/0837846909 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:53:25.625043 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0837846909 skip receive message [UNBRIDGE] (channel is hungup already)
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)
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)
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
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)
2024-03-22 07:53:25.625043 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0837846909
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:60 sofia/default/0837846909 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837846909) State HANGUP going to sleep
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0837846909) State Change CS_HANGUP -> CS_REPORTING
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)
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
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837846909) State REPORTING
2024-03-22 07:53:25.625043 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:25.625043 [INFO] mod_json_cdr.c:271 Process [ac189f30-e81f-11ee-a16c-d17fbcf33421.cdr.json]
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
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
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
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)
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:25.644155 [INFO] mod_json_cdr.c:271 Process [ac0d38b6-e81f-11ee-a149-d17fbcf33421.cdr.json]
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:174 sofia/default/0837846909 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837846909) State REPORTING going to sleep
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0837846909) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:25.644155 [DEBUG] switch_core_session.c:1665 Session 574446 (sofia/default/0837846909) Locked, Waiting on external entities
2024-03-22 07:53:25.644155 [NOTICE] switch_core_session.c:1683 Session 574446 (sofia/default/0837846909) Ended
2024-03-22 07:53:25.644155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0837846909 [CS_DESTROY]
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)
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837846909) State DESTROY
2024-03-22 07:53:25.644155 [DEBUG] mod_sofia.c:343 sofia/default/0837846909 SOFIA DESTROY
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:181 sofia/default/0837846909 Standard DESTROY
2024-03-22 07:53:25.644155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837846909) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:25.664159 [NOTICE] switch_core_session.c:1683 Session 574445 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772122@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:25.664159 [DEBUG] mod_sofia.c:343 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:25.664159 [DEBUG] switch_core_state_machine.c:181 sofia/default/27118772122@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
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)
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 playback(local_stream://moh)
2024-03-22 07:53:25.724162 [DEBUG] mod_local_stream.c:871 Opening Stream [moh/8000] 8000hz
2024-03-22 07:53:25.724162 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
2024-03-22 07:53:25.744162 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda8489dc0 0x7feda8489dc0
2024-03-22 07:53:25.744162 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda8489dc0 0x7feda8489dc0
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]
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
2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:53:25.784203 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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.
2024-03-22 07:53:25.784203 [DEBUG] sofia.c:7999 Processing updated SDP
2024-03-22 07:53:25.804192 [DEBUG] switch_ivr_play_say.c:1942 done playing file local_stream://moh
2024-03-22 07:53:25.804192 [DEBUG] switch_channel.c:2029 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change HELD -> UNHELD
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]
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
2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:53:25.804192 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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.
2024-03-22 07:53:25.804192 [DEBUG] sofia.c:7999 Processing updated SDP
2024-03-22 07:53:25.804192 [DEBUG] switch_core_io.c:941 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change UNHELD -> ACTIVE
2024-03-22 07:53:25.824154 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [completed][200]
2024-03-22 07:53:25.824154 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [completed][200]
2024-03-22 07:53:25.824154 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [ready][200]
2024-03-22 07:53:25.844167 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [ready][200]
2024-03-22 07:53:25.844167 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:25.904162 [DEBUG] switch_scheduler.c:144 Deleting task 232616 switch_ivr_schedule_hangup (ac189f30-e81f-11ee-a16c-d17fbcf33421)
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]
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)
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
2024-03-22 07:53:26.944171 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:26.964519 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:26.964519 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 92373139943625 92373139943625 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24782 RTP/AVP 102 8 18 102 102 116
a=rtpmap:102 AMR/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:116 telephone-event/8000
a=fmtp:116 0-15
a=ptime:20
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]
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]
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]
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]
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]
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]
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]
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
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]
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 116@8000
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
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
2024-03-22 07:53:26.964519 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 116@8000
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
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
2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0613423198@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0613423198@41.160.32.115:5060) State INIT
2024-03-22 07:53:26.964519 [DEBUG] mod_sofia.c:90 sofia/default/0613423198@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:40 sofia/default/0613423198@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:26.964519 [DEBUG] switch_channel.c:2249 (sofia/default/0613423198@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0613423198@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:26.964519 [DEBUG] mod_sofia.c:143 sofia/default/0613423198@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:26.964519 [DEBUG] switch_core_state_machine.c:236 sofia/default/0613423198@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:26.964519 [INFO] mod_dialplan_xml.c:637 Processing 0613423198 <0613423198>->D9570414082800 in context default
2024-03-22 07:53:26.964519 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:26.964519 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570414082800
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
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
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
2024-03-22 07:53:26.964519 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0613423198 / <null>
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
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
2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:26.964519 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570414082800
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570414082800
2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570414082800
2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0414082800
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
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
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0414082800
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
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9693
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0414082800
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:26.989277 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0613423198
2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0613423198
2024-03-22 07:53:26.989277 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27613423198
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:26.989277 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:26.989277 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0414082800">
<condition field="destination_number" expression="D9570414082800">
<action application="set" data="effective_destination_number=0414082800"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:27"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0613423198"/>
<action application="set" data="effective_caller_id_name=27613423198"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/6085507138/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/6085507138@legalaidsa.nebular.co.za^0414082800"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=6085507138"/>
<action application="set" data="destination_number=0414082800"/>
<action application="set" data="did_number=0414082800"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 6085507138@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0414082800"/>
<action application="voicemail" data="default $${domain_name} 6085507138"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:27.024177 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0613423198@41.160.32.115:5060 parsing [default->0414082800] continue=false
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Regex (PASS) [0414082800] destination_number(D9570414082800) =~ /D9570414082800/ break=on-false
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(effective_destination_number=0414082800)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:27)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(original_caller_id_name=0613423198)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(effective_caller_id_name=27613423198)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/6085507138/${uuid})
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(sip_destination_number=6085507138)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(destination_number=0414082800)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(did_number=0414082800)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0613423198@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0414082800_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0613423198@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0613423198@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:27.044403 [DEBUG] mod_sofia.c:198 sofia/default/0613423198@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:27.044403 [DEBUG] switch_core_state_machine.c:328 sofia/default/0613423198@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(effective_destination_number=0414082800)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(callstart=2024-03-22 07:53:27)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:27.044403 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(original_caller_id_name=0613423198)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(effective_caller_id_name=27613423198)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0414082800.* // 0414082800 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:27.064152 [DEBUG] mod_dptools.c:1548 SET sofia/default/0613423198@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 db(insert/pickup_any_group_/6085507138/4420f560-e821-11ee-8e64-d17fbcf33421)
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:27.064152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0613423198@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:27.064152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0613423198@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:27.064152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0613423198@41.160.32.115:5060 sleep(1000)
EXECUTE sofia/default/0613423198@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:28.064176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0613423198@41.160.32.115:5060!
2024-03-22 07:53:28.064176 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:53:28.064176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0613423198@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:53:28.064176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:28.064176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6085507138@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:28.084235 [DEBUG] mod_sofia.c:90 sofia/default/6085507138@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711061946 1711061947 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 32062 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:40 sofia/default/6085507138@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6085507138@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:28.084235 [DEBUG] mod_sofia.c:143 sofia/default/6085507138@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:28.084235 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:28.084235 [DEBUG] switch_core_state_machine.c:662 (sofia/default/6085507138@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:29.044172 [DEBUG] sofia.c:7084 Channel sofia/default/0721916283 entering state [proceeding][183]
2024-03-22 07:53:29.044172 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 19788192643317 19788192643317 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24776 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:29.044172 [DEBUG] switch_core_codec.c:111 sofia/default/0721916283 Original read codec set to PCMA:8
2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:29.044172 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:7180 sofia/default/0721916283 Set 2833 dtmf send payload to 101
2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:7187 sofia/default/0721916283 Set 2833 dtmf receive payload to 101
2024-03-22 07:53:29.044172 [DEBUG] switch_core_media.c:7210 sofia/default/0721916283 Set rtp dtmf delay to 40
2024-03-22 07:53:29.044172 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0721916283!
2024-03-22 07:53:29.044172 [DEBUG] switch_channel.c:3474 (sofia/default/0721916283) Callstate Change DOWN -> EARLY
2024-03-22 07:53:29.064171 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:53:29.064171 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:29.064171 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711070065 1711070066 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 23944 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:29.064171 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0333942190@legalaidsa.nebular.co.za:5060!
2024-03-22 07:53:29.064171 [DEBUG] switch_channel.c:3474 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:53:29.064171 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0721916283]
2024-03-22 07:53:29.064171 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:53:29.064171 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0721916283) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:53:29.064171 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721916283) State EXCHANGE_MEDIA
2024-03-22 07:53:29.064171 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:29.184157 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:29.244178 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0721916283 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:53:29.264183 [DEBUG] switch_ivr.c:623 sofia/default/0721916283 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0721916283 sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:53:29.325367 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:29.325367 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/6085507138@legalaidsa.nebular.co.za!
2024-03-22 07:53:29.325367 [DEBUG] switch_channel.c:3346 (sofia/default/6085507138@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:29.325367 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0613423198@41.160.32.115:5060!
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
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]
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)
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
2024-03-22 07:53:29.844172 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:29.844172 [DEBUG] sofia.c:7084 Channel sofia/default/0640547054@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:29.844172 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 15205462539285 15205462539285 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24784 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:29.844172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0640547054@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0640547054@41.160.32.115:5060) State INIT
2024-03-22 07:53:29.844172 [DEBUG] mod_sofia.c:90 sofia/default/0640547054@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:40 sofia/default/0640547054@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:29.844172 [DEBUG] switch_channel.c:2249 (sofia/default/0640547054@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0640547054@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:29.844172 [DEBUG] mod_sofia.c:143 sofia/default/0640547054@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:29.844172 [DEBUG] switch_core_state_machine.c:236 sofia/default/0640547054@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:29.844172 [INFO] mod_dialplan_xml.c:637 Processing 0640547054 <0640547054>->D9570216975252 in context default
2024-03-22 07:53:29.844172 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:29.844172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570216975252
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
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
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
2024-03-22 07:53:29.864286 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0640547054 / <null>
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
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
2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:29.864286 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:29.864286 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570216975252
2024-03-22 07:53:29.864286 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570216975252
2024-03-22 07:53:29.864286 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570216975252
2024-03-22 07:53:29.864286 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0216975252
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
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
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0216975252
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
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9115
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0216975252
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:29.884180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:29.884180 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:29.884180 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0640547054
2024-03-22 07:53:29.884180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0640547054
2024-03-22 07:53:29.884180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27640547054
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:29.884180 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:29.884180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:29.904207 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:29.904207 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:29.904207 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0216975252">
<condition field="destination_number" expression="D9570216975252">
<action application="set" data="effective_destination_number=0216975252"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:29"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0640547054"/>
<action application="set" data="effective_caller_id_name=27640547054"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/3242002977/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/3242002977@legalaidsa.nebular.co.za^0216975252"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=3242002977"/>
<action application="set" data="destination_number=0216975252"/>
<action application="set" data="did_number=0216975252"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 3242002977@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0216975252"/>
<action application="voicemail" data="default $${domain_name} 3242002977"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:29.904207 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0640547054@41.160.32.115:5060 parsing [default->0216975252] continue=false
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Regex (PASS) [0216975252] destination_number(D9570216975252) =~ /D9570216975252/ break=on-false
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(effective_destination_number=0216975252)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:29)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(original_caller_id_name=0640547054)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(effective_caller_id_name=27640547054)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/3242002977/${uuid})
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(sip_destination_number=3242002977)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(destination_number=0216975252)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(did_number=0216975252)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0640547054@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0216975252_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0640547054@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0640547054@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:29.925517 [DEBUG] mod_sofia.c:198 sofia/default/0640547054@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:29.925517 [DEBUG] switch_core_state_machine.c:328 sofia/default/0640547054@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(effective_destination_number=0216975252)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(callstart=2024-03-22 07:53:29)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(original_caller_id_name=0640547054)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(effective_caller_id_name=27640547054)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:29.925517 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0216975252.* // 0216975252 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:29.925517 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:29.944277 [DEBUG] mod_dptools.c:1548 SET sofia/default/0640547054@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 db(insert/pickup_any_group_/3242002977/45da2232-e821-11ee-8e92-d17fbcf33421)
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:29.944277 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:29.944277 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0640547054@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:29.944277 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0640547054@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:29.944277 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0640547054@41.160.32.115:5060 sleep(1000)
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
2024-03-22 07:53:30.604181 [DEBUG] switch_ivr_menu.c:377 waiting for 20/20 digits t/o 2000
2024-03-22 07:53:30.804163 [DEBUG] sofia.c:7084 Channel sofia/default/0104938458@41.160.32.115:5060 entering state [terminated][487]
2024-03-22 07:53:30.804163 [NOTICE] sofia.c:8273 Hangup sofia/default/0104938458@41.160.32.115:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
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]
2024-03-22 07:53:30.824159 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
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)
2024-03-22 07:53:30.824159 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ORIGINATOR_CANCEL
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
2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/9851635928@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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
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)
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
2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0104938458@41.160.32.115:5060) State HANGUP
2024-03-22 07:53:30.824159 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/9851635928@legalaidsa.nebular.co.za
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
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
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
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
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)
2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/9851635928@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:53:30.824159 [INFO] mod_json_cdr.c:271 Process [3d5bbc88-e821-11ee-8db5-d17fbcf33421.cdr.json]
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
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
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
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)
2024-03-22 07:53:30.824159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0104938458@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:30.824159 [INFO] mod_json_cdr.c:271 Process [3cb1055e-e821-11ee-8d66-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1683 Session 574965 (sofia/default/9851635928@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/9851635928@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/9851635928@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:30.844159 [DEBUG] mod_sofia.c:343 sofia/default/9851635928@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:181 sofia/default/9851635928@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:30.844159 [NOTICE] switch_core_session.c:1683 Session 574962 (sofia/default/0104938458@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0104938458@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:30.844159 [DEBUG] mod_sofia.c:343 sofia/default/0104938458@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:30.844159 [DEBUG] switch_core_state_machine.c:181 sofia/default/0104938458@41.160.32.115:5060 Standard DESTROY
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
EXECUTE sofia/default/0640547054@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:30.944163 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0640547054@41.160.32.115:5060!
2024-03-22 07:53:30.944163 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0640547054@41.160.32.115:5060!
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)
2024-03-22 07:53:30.944163 [DEBUG] sofia.c:7084 Channel sofia/default/0640547054@41.160.32.115:5060 entering state [early][180]
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
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
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
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
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
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
2024-03-22 07:53:30.944163 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:30.944163 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:627 (sofia/default/3242002977@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:30.944163 [DEBUG] mod_sofia.c:90 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711067102 1711067103 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 26908 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:40 sofia/default/3242002977@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:643 (sofia/default/3242002977@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:30.944163 [DEBUG] mod_sofia.c:143 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:30.944163 [DEBUG] switch_core_state_machine.c:662 (sofia/default/3242002977@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:30.944163 [DEBUG] sofia.c:7084 Channel sofia/default/3242002977@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:31.004181 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [terminated][487]
2024-03-22 07:53:31.004181 [NOTICE] sofia.c:8273 Hangup sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
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
2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0333942190@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0721916283]
2024-03-22 07:53:31.004181 [NOTICE] switch_ivr_bridge.c:900 Hangup sofia/default/0721916283 [CS_EXCHANGE_MEDIA] [ORIGINATOR_CANCEL]
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721916283) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0721916283) Callstate Change EARLY -> HANGUP
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721916283) State HANGUP
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
2024-03-22 07:53:31.004181 [DEBUG] mod_sofia.c:438 Channel sofia/default/0721916283 hanging up, cause: ORIGINATOR_CANCEL
2024-03-22 07:53:31.004181 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0721916283 skip receive message [UNBRIDGE] (channel is hungup already)
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)
2024-03-22 07:53:31.004181 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/0721916283
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)
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
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)
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:60 sofia/default/0721916283 Standard HANGUP, cause: ORIGINATOR_CANCEL
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721916283) State HANGUP going to sleep
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0721916283) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721916283) State REPORTING
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
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:31.004181 [INFO] mod_json_cdr.c:271 Process [403edfb6-e821-11ee-8e0a-d17fbcf33421.cdr.json]
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
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
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
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)
2024-03-22 07:53:31.004181 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:31.004181 [INFO] mod_json_cdr.c:271 Process [4033e20a-e821-11ee-8de7-d17fbcf33421.cdr.json]
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:174 sofia/default/0721916283 Standard REPORTING, cause: ORIGINATOR_CANCEL
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721916283) State REPORTING going to sleep
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0721916283) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:31.026409 [DEBUG] switch_core_session.c:1665 Session 574968 (sofia/default/0721916283) Locked, Waiting on external entities
2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1683 Session 574968 (sofia/default/0721916283) Ended
2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0721916283 [CS_DESTROY]
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)
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721916283) State DESTROY
2024-03-22 07:53:31.026409 [DEBUG] mod_sofia.c:343 sofia/default/0721916283 SOFIA DESTROY
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:181 sofia/default/0721916283 Standard DESTROY
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721916283) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:31.026409 [NOTICE] switch_core_session.c:1683 Session 574967 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:31.026409 [DEBUG] mod_sofia.c:343 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:31.026409 [DEBUG] switch_core_state_machine.c:181 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:31.224166 [DEBUG] sofia.c:7084 Channel sofia/default/3242002977@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:31.224166 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/3242002977@legalaidsa.nebular.co.za!
2024-03-22 07:53:31.224166 [DEBUG] switch_channel.c:3346 (sofia/default/3242002977@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:31.224166 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0640547054@41.160.32.115:5060!
2024-03-22 07:53:31.264164 [DEBUG] switch_scheduler.c:144 Deleting task 232829 switch_ivr_schedule_hangup (403edfb6-e821-11ee-8e0a-d17fbcf33421)
2024-03-22 07:53:32.884165 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:53:32.884165 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 384064028672 457078472705 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10462 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
2024-03-22 07:53:32.884165 [DEBUG] sofia.c:7084 Channel sofia/default/6085507138@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:32.904591 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:32.904591 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:32.904591 [NOTICE] sofia.c:8218 Channel [sofia/default/6085507138@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:53:32.904591 [DEBUG] switch_channel.c:3773 (sofia/default/6085507138@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:53:32.904591 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:32.904591 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0613423198@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711061878 1711061879 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 32134 RTP/AVP 8 116
a=rtpmap:8 PCMA/8000
a=rtpmap:116 telephone-event/8000
a=fmtp:116 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:32.904591 [DEBUG] switch_channel.c:3773 (sofia/default/0613423198@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:53:32.904591 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:53:32.904591 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/6085507138@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:53:32.904591 [DEBUG] switch_core_state_machine.c:653 (sofia/default/6085507138@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:53:32.904591 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:33.064196 [DEBUG] sofia.c:7084 Channel sofia/default/0613423198@41.160.32.115:5060 entering state [ready][200]
2024-03-22 07:53:33.084315 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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)
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)
EXECUTE sofia/default/6085507138@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:53:34.304174 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [received][100]
2024-03-22 07:53:34.304174 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 61471719424 232347664387 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10376 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
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]
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
2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:53:34.304174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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.
2024-03-22 07:53:34.304174 [DEBUG] sofia.c:7999 Processing updated SDP
2024-03-22 07:53:34.324160 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [completed][200]
2024-03-22 07:53:34.344169 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [ready][200]
2024-03-22 07:53:34.624173 [DEBUG] switch_ivr_menu.c:424 digits ''
2024-03-22 07:53:34.624173 [DEBUG] switch_ivr_menu.c:513 Maximum timeouts
2024-03-22 07:53:34.624173 [DEBUG] switch_ivr_menu.c:673 exit-sound '(null)'
EXECUTE sofia/default/0788023267@41.160.32.115:5060 lua(astpp/lib/pbx/astpp-failover_ivr_destination.lua)
2024-03-22 07:53:34.624173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
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
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
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
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)
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
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
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
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
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
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
2024-03-22 07:53:34.724209 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
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]
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
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)
2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5805@karlovac.nebular.co.za) State INIT
2024-03-22 07:53:34.724209 [DEBUG] mod_sofia.c:90 sofia/default/5805@karlovac.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711061272 1711061273 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 32742 RTP/AVP 18 0 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:40 sofia/default/5805@karlovac.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5805@karlovac.nebular.co.za) State ROUTING
2024-03-22 07:53:34.724209 [DEBUG] mod_sofia.c:143 sofia/default/5805@karlovac.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:34.724209 [DEBUG] switch_core_state_machine.c:662 (sofia/default/5805@karlovac.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:34.724209 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [calling][0]
2024-03-22 07:53:34.824170 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:34.824170 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/5805@karlovac.nebular.co.za!
2024-03-22 07:53:34.824170 [DEBUG] switch_channel.c:3346 (sofia/default/5805@karlovac.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:34.844168 [DEBUG] switch_ivr_originate.c:1273 Raw Codec Activation Success L16@8000hz 1 channel 20ms
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
2024-03-22 07:53:34.844168 [DEBUG] switch_ivr_originate.c:1305 Play Ringback File [/var/www/html/astpp//upload/pbx/ThistreeRe_.wav]
2024-03-22 07:53:34.844168 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [proceeding][180]
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
2024-03-22 07:53:34.864161 [INFO] mod_com_g729.c:178 DECODER LICENSE ALLOCATED--->0x7feda82258f8 0x7feda8225900
2024-03-22 07:53:34.864161 [INFO] mod_com_g729.c:185 DECODER CREATED------------->0x7feda82258f8 0x7feda8225900
2024-03-22 07:53:34.944167 [DEBUG] sofia.c:7084 Channel sofia/default/5805@karlovac.nebular.co.za entering state [proceeding][180]
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]
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)
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
2024-03-22 07:53:35.825247 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:35.825247 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:35.825247 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 32694569374566 32694569374566 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24786 RTP/AVP 18 8 0 96
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 96@8000
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
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
2024-03-22 07:53:35.825247 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 96@8000
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
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
2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0728413043@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0728413043@41.160.32.115:5060) State INIT
2024-03-22 07:53:35.825247 [DEBUG] mod_sofia.c:90 sofia/default/0728413043@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:40 sofia/default/0728413043@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:35.825247 [DEBUG] switch_channel.c:2249 (sofia/default/0728413043@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0728413043@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:35.825247 [DEBUG] mod_sofia.c:143 sofia/default/0728413043@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:35.825247 [DEBUG] switch_core_state_machine.c:236 sofia/default/0728413043@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:35.825247 [INFO] mod_dialplan_xml.c:637 Processing 0728413043 <0728413043>->D9570514479915 in context default
2024-03-22 07:53:35.825247 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
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')
2024-03-22 07:53:35.825247 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:35.825247 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:35.825247 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570514479915
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
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
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
2024-03-22 07:53:35.825247 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:35.825247 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0728413043 / <null>
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
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
2024-03-22 07:53:35.844329 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:35.844329 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:35.844329 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
2024-03-22 07:53:35.844329 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
2024-03-22 07:53:35.844329 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570514479915
2024-03-22 07:53:35.844329 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0514479915
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
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
2024-03-22 07:53:35.844329 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0514479915
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
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8199
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0514479915
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:35.864628 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:35.864628 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0728413043
2024-03-22 07:53:35.864628 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0728413043
2024-03-22 07:53:35.864628 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27728413043
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:35.864628 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:35.864628 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0514479915">
<condition field="destination_number" expression="D9570514479915">
<action application="set" data="effective_destination_number=0514479915"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:35"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0728413043"/>
<action application="set" data="effective_caller_id_name=27728413043"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/1730119070/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1730119070@legalaidsa.nebular.co.za^0514479915"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=1730119070"/>
<action application="set" data="destination_number=0514479915"/>
<action application="set" data="did_number=0514479915"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 1730119070@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0514479915"/>
<action application="voicemail" data="default $${domain_name} 1730119070"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:35.886011 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
Dialplan: sofia/default/0728413043@41.160.32.115:5060 parsing [default->0514479915] continue=false
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Regex (PASS) [0514479915] destination_number(D9570514479915) =~ /D9570514479915/ break=on-false
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(effective_destination_number=0514479915)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:35)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(original_caller_id_name=0728413043)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(effective_caller_id_name=27728413043)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/1730119070/${uuid})
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(sip_destination_number=1730119070)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(destination_number=0514479915)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(did_number=0514479915)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0728413043@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0514479915_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0728413043@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0728413043@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:35.886011 [DEBUG] mod_sofia.c:198 sofia/default/0728413043@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:35.886011 [DEBUG] switch_core_state_machine.c:328 sofia/default/0728413043@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(effective_destination_number=0514479915)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(callstart=2024-03-22 07:53:35)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(original_caller_id_name=0728413043)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(effective_caller_id_name=27728413043)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0514479915.* // 0514479915 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:35.886011 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:35.886011 [DEBUG] mod_dptools.c:1548 SET sofia/default/0728413043@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 db(insert/pickup_any_group_/1730119070/496939ba-e821-11ee-8ec9-d17fbcf33421)
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:35.924152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:35.924152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0728413043@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:35.924152 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0728413043@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:35.924152 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0728413043@41.160.32.115:5060 sleep(1000)
2024-03-22 07:53:36.144158 [DEBUG] sofia.c:7084 Channel sofia/default/0640547054@41.160.32.115:5060 entering state [terminated][487]
2024-03-22 07:53:36.144158 [NOTICE] sofia.c:8273 Hangup sofia/default/0640547054@41.160.32.115:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
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]
2024-03-22 07:53:36.144158 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
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)
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
2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:852 (sofia/default/3242002977@legalaidsa.nebular.co.za) State HANGUP
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
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
2024-03-22 07:53:36.144158 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ORIGINATOR_CANCEL
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)
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
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)
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
2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0640547054@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/3242002977@legalaidsa.nebular.co.za
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
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
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
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)
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
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
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
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)
2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:938 (sofia/default/3242002977@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:53:36.144158 [INFO] mod_json_cdr.c:271 Process [4681e846-e821-11ee-8eba-d17fbcf33421.cdr.json]
2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0640547054@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:36.144158 [INFO] mod_json_cdr.c:271 Process [45da2232-e821-11ee-8e92-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:36.144158 [NOTICE] switch_core_session.c:1683 Session 574976 (sofia/default/3242002977@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:36.144158 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/3242002977@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:751 (sofia/default/3242002977@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:36.144158 [DEBUG] mod_sofia.c:343 sofia/default/3242002977@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:36.144158 [DEBUG] switch_core_state_machine.c:181 sofia/default/3242002977@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:36.164154 [NOTICE] switch_core_session.c:1683 Session 574975 (sofia/default/0640547054@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0640547054@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:36.164154 [DEBUG] mod_sofia.c:343 sofia/default/0640547054@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:36.164154 [DEBUG] switch_core_state_machine.c:181 sofia/default/0640547054@41.160.32.115:5060 Standard DESTROY
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
EXECUTE sofia/default/0728413043@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:36.924167 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0728413043@41.160.32.115:5060!
2024-03-22 07:53:36.924167 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:53:36.924167 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0728413043@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:53:36.924167 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:36.924167 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1730119070@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:36.924167 [DEBUG] mod_sofia.c:90 sofia/default/1730119070@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711065534 1711065535 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28482 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:40 sofia/default/1730119070@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1730119070@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:36.924167 [DEBUG] mod_sofia.c:143 sofia/default/1730119070@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:36.924167 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1730119070@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:36.924167 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:37.124188 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:37.124188 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/1730119070@legalaidsa.nebular.co.za!
2024-03-22 07:53:37.124188 [DEBUG] switch_channel.c:3346 (sofia/default/1730119070@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:37.124188 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0728413043@41.160.32.115:5060!
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]
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)
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
2024-03-22 07:53:38.084247 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:38.084247 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:53:38.084247 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 378124894208 16374562817 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10470 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:38.084247 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:53:38.084247 [DEBUG] mod_sofia.c:90 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:40 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:53:38.084247 [DEBUG] switch_channel.c:2249 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:53:38.084247 [DEBUG] mod_sofia.c:143 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:53:38.084247 [DEBUG] switch_core_state_machine.c:236 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:53:38.084247 [INFO] mod_dialplan_xml.c:637 Processing 0514479915 <0514479915>->0514924654 in context default
2024-03-22 07:53:38.104157 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
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')
2024-03-22 07:53:38.104157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:38.104157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:38.104157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0514924654
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
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
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
2024-03-22 07:53:38.104157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:38.104157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0514479915 / 0514479915
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
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
2024-03-22 07:53:38.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:38.124151 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:53:38.124151 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0514924654
2024-03-22 07:53:38.124151 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0514924654
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
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
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0514924654
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
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
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:38.144158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0514924654)!!!!
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27514924654
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
2024-03-22 07:53:38.144158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0514924654)!!!!
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19925.8335
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:38.144158 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
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
2024-03-22 07:53:38.144158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2146841
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - GEOGRAPHIC
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19925.8335 balance Accountid 109 !!!
2024-03-22 07:53:38.165025 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:53:38.165025 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9955.3483
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1424969
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D864-VODAGNP
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9955.3483 balance Accountid 13 !!!
2024-03-22 07:53:38.165025 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2146841
2024-03-22 07:53:38.165025 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:53:38.165025 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:38.184169 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0514924654
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
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
2024-03-22 07:53:38.184169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0514924654">
<condition field="destination_number" expression="0514924654">
<action application="set" data="effective_destination_number=0514924654"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:38"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0514479915"/>
<action application="set" data="original_caller_id_number=0514479915"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0514479915"/>
<action application="set" data="effective_caller_id_number=0514479915"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2146841"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:38.184169 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 parsing [default->0514924654] continue=false
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Regex (PASS) [0514924654] destination_number(0514924654) =~ /0514924654/ break=on-false
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0514924654)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:38)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2146841)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:198 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:328 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0514924654)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:38)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:53:38.184169 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:53:38.184169 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 12/200
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:53:38.184169 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:53:38.184169 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 14/800
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2146841)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:53:38.184169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:53:38.184169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:53:38.184169 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:38.184169 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:53:38.184169 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0514924654 [4ad36154-e821-11ee-8f18-d17fbcf33421]
2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:4819 (sofia/default/0514924654) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514924654) State INIT
2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:90 sofia/default/0514924654 SOFIA INIT
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
2024-03-22 07:53:38.184169 [DEBUG] sofia_glue.c:1295 sofia/default/0514924654 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711068522 1711068523 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 25496 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:40 sofia/default/0514924654 Standard INIT
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0514924654) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514924654) State INIT going to sleep
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)
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514924654) State ROUTING
2024-03-22 07:53:38.184169 [DEBUG] mod_sofia.c:143 sofia/default/0514924654 SOFIA ROUTING
2024-03-22 07:53:38.184169 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0514924654) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514924654) State ROUTING going to sleep
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)
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0514924654) State CONSUME_MEDIA
2024-03-22 07:53:38.184169 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0514924654) State CONSUME_MEDIA going to sleep
2024-03-22 07:53:38.184169 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [calling][0]
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]
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)
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
2024-03-22 07:53:38.644169 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:38.644169 [DEBUG] sofia.c:7084 Channel sofia/default/5835@karlovac.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:53:38.644169 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=- 20004 20004 IN IP4 102.219.180.81
s=SDP data
i=(o=IN IP4 102.219.180.66)
c=IN IP4 102.219.180.81
t=0 0
m=audio 38030 RTP/AVP 9 0 8 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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]
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]
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]
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]
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]
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]
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]
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
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]
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]
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]
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
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]
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]
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
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]
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
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]
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]
2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:38.644169 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:603 (sofia/default/5835@karlovac.nebular.co.za:5060) State NEW
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)
2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5835@karlovac.nebular.co.za:5060) State INIT
2024-03-22 07:53:38.644169 [DEBUG] mod_sofia.c:90 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:40 sofia/default/5835@karlovac.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:53:38.644169 [DEBUG] switch_channel.c:2249 (sofia/default/5835@karlovac.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5835@karlovac.nebular.co.za:5060) State ROUTING
2024-03-22 07:53:38.644169 [DEBUG] mod_sofia.c:143 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:53:38.644169 [DEBUG] switch_core_state_machine.c:236 sofia/default/5835@karlovac.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:53:38.644169 [INFO] mod_dialplan_xml.c:637 Processing 5835 <5835>->*100 in context default
2024-03-22 07:53:38.644169 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
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')
2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] TRAN user_domain: karlovac.nebular.co.za
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] hunt_destination_number: *100
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
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
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Cod..transfer_blind_value*2
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code blind_value_two_digit*2
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code destination_number_two_digit*1
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code transfer_attended_two_digit*3
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : *100
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
2024-03-22 07:53:38.664159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Feature Code Action :::: call_pickup_all_group
2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [FEATURE_CODE] sip_number :5835
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
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
2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [FEATURE_CODE] sip_info id :1647
2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [FEATURE_CODE] feature_code_action :call_pickup_all_group
2024-03-22 07:53:38.664159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="\*100">
<condition field="destination_number" expression="\*100">
<action application="export" data="did_user_domain=karlovac.nebular.co.za"/>
<action application="answer"/>
<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+"/>
<action application="intercept" data="${db(select/pickup_any_group_${callgroup}/${foobar})}"/>
<action application="sleep" data="2000"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:38.664159 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 parsing [default->\*100] continue=false
Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Regex (PASS) [\*100] destination_number(*100) =~ /\*100/ break=on-false
Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action export(did_user_domain=karlovac.nebular.co.za)
Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action answer()
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+)
Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action intercept(${db(select/pickup_any_group_${callgroup}/${foobar})})
Dialplan: sofia/default/5835@karlovac.nebular.co.za:5060 Action sleep(2000)
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
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
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)
2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:650 (sofia/default/5835@karlovac.nebular.co.za:5060) State EXECUTE
2024-03-22 07:53:38.664159 [DEBUG] mod_sofia.c:198 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:53:38.664159 [DEBUG] switch_core_state_machine.c:328 sofia/default/5835@karlovac.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 export(did_user_domain=karlovac.nebular.co.za)
2024-03-22 07:53:38.664159 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[karlovac.nebular.co.za]
EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 answer()
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
2024-03-22 07:53:38.684279 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:38.684279 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/5835@karlovac.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711076612 1711076613 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 17406 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:38.684279 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/5835@karlovac.nebular.co.za:5060] has been answered
2024-03-22 07:53:38.684279 [DEBUG] switch_channel.c:3773 (sofia/default/5835@karlovac.nebular.co.za:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:53:38.684279 [DEBUG] sofia.c:7084 Channel sofia/default/5835@karlovac.nebular.co.za:5060 entering state [completed][200]
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+)
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
2024-03-22 07:53:38.684279 [WARNING] switch_core_file.c:360 File has 2 channels, muxing to 1 channel will occur.
2024-03-22 07:53:38.684279 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
2024-03-22 07:53:38.724177 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [proceeding][183]
2024-03-22 07:53:38.724177 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 137251253231303 137251253231303 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24788 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:38.724177 [DEBUG] switch_core_codec.c:111 sofia/default/0514924654 Original read codec set to PCMA:8
2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:38.724177 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:7180 sofia/default/0514924654 Set 2833 dtmf send payload to 101
2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:7187 sofia/default/0514924654 Set 2833 dtmf receive payload to 101
2024-03-22 07:53:38.724177 [DEBUG] switch_core_media.c:7210 sofia/default/0514924654 Set rtp dtmf delay to 40
2024-03-22 07:53:38.724177 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0514924654!
2024-03-22 07:53:38.724177 [DEBUG] switch_channel.c:3474 (sofia/default/0514924654) Callstate Change DOWN -> EARLY
2024-03-22 07:53:38.744162 [DEBUG] sofia.c:7084 Channel sofia/default/5835@karlovac.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:53:38.744162 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:53:38.744162 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:38.744162 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711070048 1711070049 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 23970 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:38.744162 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0514479915@legalaidsa.nebular.co.za:5060!
2024-03-22 07:53:38.744162 [DEBUG] switch_channel.c:3474 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:53:38.744162 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0514924654]
2024-03-22 07:53:38.744162 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:53:38.744162 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0514924654) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:53:38.744162 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0514924654) State EXCHANGE_MEDIA
2024-03-22 07:53:38.744162 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:38.864225 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:38.924172 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0514924654 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:53:38.944165 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:38.944165 [DEBUG] switch_ivr.c:623 sofia/default/0514924654 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0514924654 sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:53:38.984174 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [proceeding][180]
2024-03-22 07:53:38.984174 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 137251253231303 137251253231303 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24788 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:38.984174 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0514924654.
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
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]
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)
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
2024-03-22 07:53:39.944220 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:39.944220 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:39.944220 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 43139929842571 43139929842571 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24790 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:39.944220 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0837792192@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0837792192@41.160.32.115:5060) State INIT
2024-03-22 07:53:39.944220 [DEBUG] mod_sofia.c:90 sofia/default/0837792192@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:40 sofia/default/0837792192@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:39.944220 [DEBUG] switch_channel.c:2249 (sofia/default/0837792192@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0837792192@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:39.944220 [DEBUG] mod_sofia.c:143 sofia/default/0837792192@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:39.944220 [DEBUG] switch_core_state_machine.c:236 sofia/default/0837792192@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:39.944220 [INFO] mod_dialplan_xml.c:637 Processing 0837792192 <0837792192>->D9570319188110 in context default
2024-03-22 07:53:39.944220 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
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')
2024-03-22 07:53:39.944220 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570319188110
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
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
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
2024-03-22 07:53:39.966197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0837792192 / <null>
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
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570319188110
2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570319188110
2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570319188110
2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0319188110
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
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0319188110
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 11518
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0319188110
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:39.966197 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:39.966197 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:39.966197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:40.004250 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:40.004250 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:40.004250 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0837792192
2024-03-22 07:53:40.004250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0837792192
2024-03-22 07:53:40.004250 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27837792192
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:40.004250 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:40.004250 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0319188110">
<condition field="destination_number" expression="D9570319188110">
<action application="set" data="effective_destination_number=0319188110"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:40"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0837792192"/>
<action application="set" data="effective_caller_id_name=27837792192"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/1033021106/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1033021106@legalaidsa.nebular.co.za^0319188110"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=1033021106"/>
<action application="set" data="destination_number=0319188110"/>
<action application="set" data="did_number=0319188110"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 1033021106@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0319188110"/>
<action application="voicemail" data="default $${domain_name} 1033021106"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:40.004250 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
Dialplan: sofia/default/0837792192@41.160.32.115:5060 parsing [default->0319188110] continue=false
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Regex (PASS) [0319188110] destination_number(D9570319188110) =~ /D9570319188110/ break=on-false
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(effective_destination_number=0319188110)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:40)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(original_caller_id_name=0837792192)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(effective_caller_id_name=27837792192)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/1033021106/${uuid})
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(sip_destination_number=1033021106)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(destination_number=0319188110)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(did_number=0319188110)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0837792192@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0319188110_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0837792192@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0837792192@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:40.044169 [DEBUG] mod_sofia.c:198 sofia/default/0837792192@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:40.044169 [DEBUG] switch_core_state_machine.c:328 sofia/default/0837792192@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(effective_destination_number=0319188110)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(callstart=2024-03-22 07:53:40)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(original_caller_id_name=0837792192)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(effective_caller_id_name=27837792192)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0319188110.* // 0319188110 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:40.044169 [DEBUG] mod_dptools.c:1548 SET sofia/default/0837792192@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 db(insert/pickup_any_group_/1033021106/4bdf885c-e821-11ee-8f23-d17fbcf33421)
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:40.044169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0837792192@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:40.044169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0837792192@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:40.044169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0837792192@41.160.32.115:5060 sleep(1000)
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]
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)
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
2024-03-22 07:53:40.284199 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:40.284199 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:40.284199 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 23112497341663 23112497341663 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24792 RTP/AVP 18 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:40.284199 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0104988840@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0104988840@41.160.32.115:5060) State INIT
2024-03-22 07:53:40.284199 [DEBUG] mod_sofia.c:90 sofia/default/0104988840@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:40 sofia/default/0104988840@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:40.284199 [DEBUG] switch_channel.c:2249 (sofia/default/0104988840@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0104988840@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:40.284199 [DEBUG] mod_sofia.c:143 sofia/default/0104988840@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:40.284199 [DEBUG] switch_core_state_machine.c:236 sofia/default/0104988840@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:40.284199 [INFO] mod_dialplan_xml.c:637 Processing 0104988840 <0104988840>->D9570119383547 in context default
2024-03-22 07:53:40.284199 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
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')
2024-03-22 07:53:40.304172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570119383547
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
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
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
2024-03-22 07:53:40.304172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0104988840 / <null>
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
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
2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:40.304172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:40.324179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
2024-03-22 07:53:40.324179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570119383547
2024-03-22 07:53:40.324179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0119383547
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
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
2024-03-22 07:53:40.324179 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0119383547
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
2024-03-22 07:53:40.324179 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:40.324179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 7969
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0119383547
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:40.344191 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:40.344191 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0104988840
2024-03-22 07:53:40.344191 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0104988840
2024-03-22 07:53:40.344191 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27104988840
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:40.344191 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:40.344191 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0119383547">
<condition field="destination_number" expression="D9570119383547">
<action application="set" data="effective_destination_number=0119383547"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:40"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0104988840"/>
<action application="set" data="effective_caller_id_name=27104988840"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7106027339/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7106027339@legalaidsa.nebular.co.za^0119383547"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=7106027339"/>
<action application="set" data="destination_number=0119383547"/>
<action application="set" data="did_number=0119383547"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 7106027339@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0119383547"/>
<action application="voicemail" data="default $${domain_name} 7106027339"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:40.364160 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
Dialplan: sofia/default/0104988840@41.160.32.115:5060 parsing [default->0119383547] continue=false
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Regex (PASS) [0119383547] destination_number(D9570119383547) =~ /D9570119383547/ break=on-false
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(effective_destination_number=0119383547)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:40)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(original_caller_id_name=0104988840)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(effective_caller_id_name=27104988840)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7106027339/${uuid})
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(sip_destination_number=7106027339)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(destination_number=0119383547)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(did_number=0119383547)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0104988840@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0119383547_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0104988840@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0104988840@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:40.384158 [DEBUG] mod_sofia.c:198 sofia/default/0104988840@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:40.384158 [DEBUG] switch_core_state_machine.c:328 sofia/default/0104988840@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(effective_destination_number=0119383547)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(callstart=2024-03-22 07:53:40)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(original_caller_id_name=0104988840)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(effective_caller_id_name=27104988840)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:40.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:40.384158 [DEBUG] mod_dptools.c:1548 SET sofia/default/0104988840@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 db(insert/pickup_any_group_/7106027339/4c13c2e8-e821-11ee-8f46-d17fbcf33421)
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:40.404169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:40.404169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0104988840@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:40.404169 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0104988840@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:40.404169 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0104988840@41.160.32.115:5060 sleep(1000)
EXECUTE sofia/default/0837792192@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:41.044198 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0837792192@41.160.32.115:5060!
2024-03-22 07:53:41.044198 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:53:41.044198 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0837792192@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:53:41.044198 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:41.044198 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1033021106@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:41.064368 [DEBUG] mod_sofia.c:90 sofia/default/1033021106@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711062683 1711062684 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 31338 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:40 sofia/default/1033021106@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1033021106@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:41.064368 [DEBUG] mod_sofia.c:143 sofia/default/1033021106@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:41.064368 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1033021106@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:41.064368 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:41.304155 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:41.304155 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/1033021106@legalaidsa.nebular.co.za!
2024-03-22 07:53:41.304155 [DEBUG] switch_channel.c:3346 (sofia/default/1033021106@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:41.324170 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0837792192@41.160.32.115:5060!
EXECUTE sofia/default/0104988840@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:41.404185 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0104988840@41.160.32.115:5060!
2024-03-22 07:53:41.404185 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:53:41.404185 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0104988840@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:53:41.404185 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:41.404185 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7106027339@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:41.404185 [DEBUG] mod_sofia.c:90 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711068393 1711068394 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 25628 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:40 sofia/default/7106027339@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:41.404185 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7106027339@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:41.404185 [DEBUG] mod_sofia.c:143 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:41.404185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7106027339@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:41.684163 [NOTICE] sofia.c:1012 Hangup sofia/default/Anonymous@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:41.684163 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:41.684163 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7106027339@legalaidsa.nebular.co.za!
2024-03-22 07:53:41.684163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/Anonymous@41.160.32.115:5060]
2024-03-22 07:53:41.684163 [DEBUG] switch_channel.c:3346 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:41.684163 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0104988840@41.160.32.115:5060!
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
2024-03-22 07:53:41.704165 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1728936062@legalaidsa.nebular.co.za]
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]
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
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)
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
2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1728936062@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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)
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)
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
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)
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
2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/1728936062@legalaidsa.nebular.co.za
2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:852 (sofia/default/Anonymous@41.160.32.115:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1728936062@legalaidsa.nebular.co.za) State REPORTING
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
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
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
2024-03-22 07:53:41.704165 [INFO] mod_json_cdr.c:271 Process [ce950818-e820-11ee-829b-d17fbcf33421.cdr.json]
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)
2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:938 (sofia/default/Anonymous@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:41.704165 [INFO] mod_json_cdr.c:271 Process [cde903e2-e820-11ee-824c-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:41.704165 [NOTICE] switch_core_session.c:1683 Session 574833 (sofia/default/1728936062@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:41.704165 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1728936062@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1728936062@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:41.704165 [DEBUG] mod_sofia.c:343 sofia/default/1728936062@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:41.704165 [DEBUG] switch_core_state_machine.c:181 sofia/default/1728936062@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:41.724163 [NOTICE] switch_core_session.c:1683 Session 574830 (sofia/default/Anonymous@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:751 (sofia/default/Anonymous@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:41.724163 [DEBUG] mod_sofia.c:343 sofia/default/Anonymous@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:41.724163 [DEBUG] switch_core_state_machine.c:181 sofia/default/Anonymous@41.160.32.115:5060 Standard DESTROY
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
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
2024-03-22 07:53:41.944236 [DEBUG] switch_scheduler.c:144 Deleting task 232773 switch_ivr_schedule_hangup (ce950818-e820-11ee-829b-d17fbcf33421)
2024-03-22 07:53:42.304156 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 5:800
2024-03-22 07:53:42.304156 [INFO] switch_channel.c:515 RECV DTMF 5:800
2024-03-22 07:53:42.444948 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [completing][200]
2024-03-22 07:53:42.444948 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 86115372584755 86115372584755 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24772 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:53:42.444948 [DEBUG] sofia.c:7084 Channel sofia/default/0604893575 entering state [ready][200]
2024-03-22 07:53:42.444948 [NOTICE] sofia.c:8159 Channel [sofia/default/0604893575] has been answered
2024-03-22 07:53:42.444948 [DEBUG] switch_channel.c:3773 (sofia/default/0604893575) Callstate Change RINGING -> ACTIVE
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.
2024-03-22 07:53:42.464172 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0488814867@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711064524 1711064526 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 29474 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:42.464172 [DEBUG] switch_channel.c:3773 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:53:42.464172 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:53:42.524173 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:42.524173 [DEBUG] sofia.c:7084 Channel sofia/default/0488814867@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:53:42.704177 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 8:800
2024-03-22 07:53:42.704177 [INFO] switch_channel.c:515 RECV DTMF 8:800
2024-03-22 07:53:42.784226 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [completing][200]
2024-03-22 07:53:42.784226 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 137251253231303 137251253231303 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24788 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:53:42.804176 [DEBUG] sofia.c:7084 Channel sofia/default/0514924654 entering state [ready][200]
2024-03-22 07:53:42.804176 [NOTICE] sofia.c:8159 Channel [sofia/default/0514924654] has been answered
2024-03-22 07:53:42.804176 [DEBUG] switch_channel.c:3773 (sofia/default/0514924654) Callstate Change EARLY -> ACTIVE
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.
2024-03-22 07:53:42.824184 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0514479915@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711070048 1711070050 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 23970 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:42.824184 [DEBUG] switch_channel.c:3773 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:53:42.824184 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:53:42.864186 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:42.884176 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:42.884176 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:53:43.024191 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 0:800
2024-03-22 07:53:43.024191 [INFO] switch_channel.c:515 RECV DTMF 0:800
2024-03-22 07:53:43.424224 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 5:800
2024-03-22 07:53:43.424224 [INFO] switch_channel.c:515 RECV DTMF 5:800
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]
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)
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
2024-03-22 07:53:43.604184 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:43.604184 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:53:43.604184 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 127892717568 408692981761 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10476 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:43.604184 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:53:43.604184 [DEBUG] mod_sofia.c:90 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:40 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:53:43.604184 [DEBUG] switch_channel.c:2249 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:53:43.604184 [DEBUG] mod_sofia.c:143 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:53:43.604184 [DEBUG] switch_core_state_machine.c:236 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:53:43.604184 [INFO] mod_dialplan_xml.c:637 Processing 0333942190 <0333942190>->0764147705 in context default
2024-03-22 07:53:43.624163 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fedc00ed790 Connected.
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')
2024-03-22 07:53:43.624163 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0764147705
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
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
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
2024-03-22 07:53:43.624163 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0333942190 / 0333942190
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
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
2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:43.624163 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:53:43.644231 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0764147705
2024-03-22 07:53:43.644231 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0764147705
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
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
2024-03-22 07:53:43.644231 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0764147705
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
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
2024-03-22 07:53:43.644231 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:53:43.664183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:43.664183 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0764147705)!!!!
2024-03-22 07:53:43.664183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27764147705
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
2024-03-22 07:53:43.664183 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0764147705)!!!!
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19925.8335
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0333942190
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
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148461
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - MOBILE
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19925.8335 balance Accountid 109 !!!
2024-03-22 07:53:43.684279 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:53:43.684279 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9955.3483
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426363
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D082-VODACOM
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9955.3483 balance Accountid 13 !!!
2024-03-22 07:53:43.684279 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148461
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:53:43.684279 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:43.684279 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:43.704161 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:43.704161 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0764147705
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
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
2024-03-22 07:53:43.704161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0764147705">
<condition field="destination_number" expression="0764147705">
<action application="set" data="effective_destination_number=0764147705"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:43"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0333942190"/>
<action application="set" data="original_caller_id_number=0333942190"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0333942190"/>
<action application="set" data="effective_caller_id_number=0333942190"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148461"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:43.704161 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fedc00ed790 released.
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 parsing [default->0764147705] continue=false
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Regex (PASS) [0764147705] destination_number(0764147705) =~ /0764147705/ break=on-false
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0764147705)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:53:43)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0333942190)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148461)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:198 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:328 sofia/default/0333942190@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0764147705)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:53:43)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:53:43.704161 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:53:43.704161 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:53:43.704161 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:53:43.704161 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 15/800
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0333942190)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148461)
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]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:53:43.704161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0333942190@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:53:43.704161 [DEBUG] mod_dptools.c:1548 SET sofia/default/0333942190@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:53:43.704161 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:43.704161 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:53:43.704161 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0764147705 [4e1de78a-e821-11ee-8f9e-d17fbcf33421]
2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:4819 (sofia/default/0764147705) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0764147705) State INIT
2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:90 sofia/default/0764147705 SOFIA INIT
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
2024-03-22 07:53:43.704161 [DEBUG] sofia_glue.c:1295 sofia/default/0764147705 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711066843 1711066844 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 27180 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:40 sofia/default/0764147705 Standard INIT
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0764147705) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0764147705) State INIT going to sleep
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)
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0764147705) State ROUTING
2024-03-22 07:53:43.704161 [DEBUG] mod_sofia.c:143 sofia/default/0764147705 SOFIA ROUTING
2024-03-22 07:53:43.704161 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0764147705) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0764147705) State ROUTING going to sleep
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)
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0764147705) State CONSUME_MEDIA
2024-03-22 07:53:43.704161 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0764147705) State CONSUME_MEDIA going to sleep
2024-03-22 07:53:43.704161 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [calling][0]
2024-03-22 07:53:43.804169 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [completing][200]
2024-03-22 07:53:43.804169 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 18744515584518 18744515584518 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24778 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:53:43.804169 [DEBUG] sofia.c:7084 Channel sofia/default/0837207317 entering state [ready][200]
2024-03-22 07:53:43.804169 [NOTICE] sofia.c:8159 Channel [sofia/default/0837207317] has been answered
2024-03-22 07:53:43.824256 [DEBUG] switch_channel.c:3773 (sofia/default/0837207317) Callstate Change RINGING -> ACTIVE
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.
2024-03-22 07:53:43.824256 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0155191100@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711063705 1711063707 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 30298 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:43.824256 [DEBUG] switch_channel.c:3773 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:53:43.824256 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 14596177920 54542729217 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10474 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:43.844588 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:43.844588 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:43.844588 [NOTICE] sofia.c:8218 Channel [sofia/default/7106027339@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:53:43.844588 [DEBUG] switch_channel.c:3773 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:53:43.844588 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:43.844588 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0104988840@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711073217 1711073218 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 20806 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:43.844588 [DEBUG] switch_channel.c:3773 (sofia/default/0104988840@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:53:43.844588 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7106027339@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:53:43.844588 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7106027339@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:53:43.844588 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:43.844588 [DEBUG] sofia.c:7084 Channel sofia/default/0155191100@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:53:43.864186 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:43.884169 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:43.964159 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:43.984173 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:53:43.984173 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 319387860992 441039454209 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10468 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:53:43.984173 [DEBUG] sofia.c:7084 Channel sofia/default/1730119070@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:43.984173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:43.984173 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:43.984173 [NOTICE] sofia.c:8218 Channel [sofia/default/1730119070@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:53:43.984173 [DEBUG] switch_channel.c:3773 (sofia/default/1730119070@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:53:44.004350 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:44.004350 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0728413043@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711069686 1711069687 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24338 RTP/AVP 18 96
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:44.004350 [DEBUG] switch_channel.c:3773 (sofia/default/0728413043@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:53:44.004350 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:53:44.004350 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/1730119070@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:53:44.004350 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1730119070@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:53:44.004350 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:44.004350 [DEBUG] sofia.c:7084 Channel sofia/default/0104988840@41.160.32.115:5060 entering state [ready][200]
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)
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)
EXECUTE sofia/default/7106027339@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:53:44.084164 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF #:800
span style="color: green; font-weight: bold;"> 2024-03-22 07:53:44.084164 [INFO] switch_channel.c:515 RECV DTMF #:800
EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 intercept(6b9d227a-e5ca-11ee-b931-d17fbcf33421)
2024-03-22 07:53:44.084164 [DEBUG] switch_ivr_bridge.c:2093 no uuid 6b9d227a-e5ca-11ee-b931-d17fbcf33421
EXECUTE sofia/default/5835@karlovac.nebular.co.za:5060 sleep(2000)
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
2024-03-22 07:53:44.144196 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:44.184157 [DEBUG] sofia.c:7084 Channel sofia/default/0728413043@41.160.32.115:5060 entering state [ready][200]
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)
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)
EXECUTE sofia/default/1730119070@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:53:44.284330 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:44.864174 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [proceeding][183]
2024-03-22 07:53:44.864174 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 45910183753419 45910183753419 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24794 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:44.864174 [DEBUG] switch_core_codec.c:111 sofia/default/0764147705 Original read codec set to PCMA:8
2024-03-22 07:53:44.864174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:44.864174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7180 sofia/default/0764147705 Set 2833 dtmf send payload to 101
2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7187 sofia/default/0764147705 Set 2833 dtmf receive payload to 101
2024-03-22 07:53:44.884170 [DEBUG] switch_core_media.c:7210 sofia/default/0764147705 Set rtp dtmf delay to 40
2024-03-22 07:53:44.884170 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0764147705!
2024-03-22 07:53:44.884170 [DEBUG] switch_channel.c:3474 (sofia/default/0764147705) Callstate Change DOWN -> EARLY
2024-03-22 07:53:44.884170 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:53:44.884170 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:44.884170 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711069642 1711069643 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24382 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:44.884170 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0333942190@legalaidsa.nebular.co.za:5060!
2024-03-22 07:53:44.884170 [DEBUG] switch_channel.c:3474 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:53:44.884170 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0764147705]
2024-03-22 07:53:44.884170 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:53:44.884170 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0764147705) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:53:44.884170 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0764147705) State EXCHANGE_MEDIA
2024-03-22 07:53:44.884170 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:53:44.984155 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:45.004296 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [proceeding][180]
2024-03-22 07:53:45.004296 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 45910183753419 45910183753419 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24794 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
2024-03-22 07:53:45.004296 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0764147705.
2024-03-22 07:53:45.084344 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0764147705 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:53:45.084344 [DEBUG] switch_ivr.c:623 sofia/default/0764147705 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0764147705 sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:53:45.244183 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:53:45.244183 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 217835372544 440469028865 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10460 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:53:45.244183 [DEBUG] sofia.c:7084 Channel sofia/default/2693458380@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:45.244183 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:45.264325 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:45.264325 [NOTICE] sofia.c:8218 Channel [sofia/default/2693458380@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:53:45.264325 [DEBUG] switch_channel.c:3773 (sofia/default/2693458380@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:53:45.284175 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:53:45.284175 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0604746864@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711063911 1711063912 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 30114 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:45.284175 [DEBUG] switch_channel.c:3773 (sofia/default/0604746864@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:53:45.284175 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:53:45.284175 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/2693458380@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:53:45.284175 [DEBUG] switch_core_state_machine.c:653 (sofia/default/2693458380@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:53:45.284175 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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)
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)
EXECUTE sofia/default/2693458380@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:53:45.584173 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:45.644168 [DEBUG] sofia.c:7084 Channel sofia/default/0604746864@41.160.32.115:5060 entering state [ready][200]
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.
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]
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
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)
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
2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5835@karlovac.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:46.084168 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/5835@karlovac.nebular.co.za:5060
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
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
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
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)
2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5835@karlovac.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:46.084168 [INFO] mod_json_cdr.c:271 Process [4b18f43a-e821-11ee-8f1c-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:46.084168 [NOTICE] switch_core_session.c:1683 Session 574982 (sofia/default/5835@karlovac.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5835@karlovac.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:46.084168 [DEBUG] mod_sofia.c:343 sofia/default/5835@karlovac.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:46.084168 [DEBUG] switch_core_state_machine.c:181 sofia/default/5835@karlovac.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:48.404157 [NOTICE] sofia.c:1012 Hangup sofia/default/0488814867@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:48.404157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0488814867@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:48.424321 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0604893575]
2024-03-22 07:53:48.424321 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0604893575 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0604893575) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0604893575) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604893575) State HANGUP
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
2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:438 Channel sofia/default/0604893575 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:53:48.424321 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0604893575 skip receive message [UNBRIDGE] (channel is hungup already)
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)
2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0604893575
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:60 sofia/default/0604893575 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604893575) State HANGUP going to sleep
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)
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
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)
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0604893575) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604893575) State REPORTING
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
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:48.424321 [INFO] mod_json_cdr.c:271 Process [3d27e37c-e821-11ee-8dac-d17fbcf33421.cdr.json]
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
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
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
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)
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:48.424321 [INFO] mod_json_cdr.c:271 Process [3d1b8f1e-e821-11ee-8d89-d17fbcf33421.cdr.json]
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:174 sofia/default/0604893575 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604893575) State REPORTING going to sleep
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0604893575) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:48.424321 [DEBUG] switch_core_session.c:1665 Session 574964 (sofia/default/0604893575) Locked, Waiting on external entities
2024-03-22 07:53:48.424321 [NOTICE] switch_core_session.c:1683 Session 574964 (sofia/default/0604893575) Ended
2024-03-22 07:53:48.424321 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0604893575 [CS_DESTROY]
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)
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604893575) State DESTROY
2024-03-22 07:53:48.424321 [DEBUG] mod_sofia.c:343 sofia/default/0604893575 SOFIA DESTROY
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:181 sofia/default/0604893575 Standard DESTROY
2024-03-22 07:53:48.424321 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604893575) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:48.444170 [NOTICE] switch_core_session.c:1683 Session 574963 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0488814867@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:48.444170 [DEBUG] mod_sofia.c:343 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:48.444170 [DEBUG] switch_core_state_machine.c:181 sofia/default/0488814867@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:48.484155 [DEBUG] switch_scheduler.c:144 Deleting task 232827 switch_ivr_schedule_hangup (3d27e37c-e821-11ee-8dac-d17fbcf33421)
2024-03-22 07:53:49.024166 [NOTICE] sofia.c:1012 Hangup sofia/default/0604746864@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:49.024166 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0604746864@41.160.32.115:5060]
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
2024-03-22 07:53:49.044170 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/2693458380@legalaidsa.nebular.co.za]
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]
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
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)
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
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)
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)
2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2693458380@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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
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)
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
2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0604746864@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/2693458380@legalaidsa.nebular.co.za
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
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
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
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)
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
2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2693458380@legalaidsa.nebular.co.za) State REPORTING
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
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
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)
2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0604746864@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:49.044170 [INFO] mod_json_cdr.c:271 Process [4304b7de-e821-11ee-8e5f-d17fbcf33421.cdr.json]
2024-03-22 07:53:49.044170 [INFO] mod_json_cdr.c:271 Process [425cf9f4-e821-11ee-8e37-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:49.044170 [NOTICE] switch_core_session.c:1683 Session 574972 (sofia/default/2693458380@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:49.044170 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/2693458380@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2693458380@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:49.044170 [DEBUG] mod_sofia.c:343 sofia/default/2693458380@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:49.044170 [DEBUG] switch_core_state_machine.c:181 sofia/default/2693458380@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:49.064159 [NOTICE] switch_core_session.c:1683 Session 574971 (sofia/default/0604746864@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0604746864@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:49.064159 [DEBUG] mod_sofia.c:343 sofia/default/0604746864@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:49.064159 [DEBUG] switch_core_state_machine.c:181 sofia/default/0604746864@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:53:49.484175 [DEBUG] switch_scheduler.c:144 Deleting task 232835 switch_ivr_schedule_hangup (4304b7de-e821-11ee-8e5f-d17fbcf33421)
2024-03-22 07:53:50.024154 [NOTICE] sofia.c:1012 Hangup sofia/default/0788023267@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
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.
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]
2024-03-22 07:53:50.024154 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2024-03-22 07:53:50.024154 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ORIGINATOR_CANCEL
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)
2024-03-22 07:53:50.024154 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
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
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)
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
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)
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
2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0788023267@41.160.32.115:5060) State HANGUP
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
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)
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
2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5805@karlovac.nebular.co.za) State HANGUP
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
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
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
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
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
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)
2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0788023267@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:50.024154 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/5805@karlovac.nebular.co.za
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
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
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
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)
2024-03-22 07:53:50.024154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5805@karlovac.nebular.co.za) State REPORTING
2024-03-22 07:53:50.024154 [INFO] mod_json_cdr.c:271 Process [3d6c7d3e-e821-11ee-8db9-d17fbcf33421.cdr.json]
2024-03-22 07:53:50.024154 [INFO] mod_json_cdr.c:271 Process [48c173ec-e821-11ee-8ec5-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1683 Session 574977 (sofia/default/5805@karlovac.nebular.co.za) Ended
2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5805@karlovac.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5805@karlovac.nebular.co.za) State DESTROY
2024-03-22 07:53:50.045294 [DEBUG] mod_sofia.c:343 sofia/default/5805@karlovac.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:181 sofia/default/5805@karlovac.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:50.045294 [NOTICE] switch_core_session.c:1683 Session 574966 (sofia/default/0788023267@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:50.045294 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0788023267@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:50.045294 [DEBUG] mod_sofia.c:343 sofia/default/0788023267@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:50.045294 [INFO] mod_com_g729.c:109 DECODER DESTROYED----------->0x7feda82258f8 0x7feda8225900
2024-03-22 07:53:50.064372 [INFO] mod_com_g729.c:112 DECODER LICENSE DEALLOCATED->0x7feda82258f8 0x7feda8225900
2024-03-22 07:53:50.064372 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda8225978 0x7feda8225978
2024-03-22 07:53:50.064372 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda8225978 0x7feda8225978
2024-03-22 07:53:50.064372 [DEBUG] switch_core_state_machine.c:181 sofia/default/0788023267@41.160.32.115:5060 Standard DESTROY
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
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]
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)
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
2024-03-22 07:53:50.724188 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:50.724188 [DEBUG] sofia.c:7084 Channel sofia/default/0870869784@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:50.724188 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 39175675039133 39175675039133 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24796 RTP/AVP 18 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:50.724188 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0870869784@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0870869784@41.160.32.115:5060) State INIT
2024-03-22 07:53:50.724188 [DEBUG] mod_sofia.c:90 sofia/default/0870869784@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:40 sofia/default/0870869784@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:50.724188 [DEBUG] switch_channel.c:2249 (sofia/default/0870869784@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0870869784@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:50.724188 [DEBUG] mod_sofia.c:143 sofia/default/0870869784@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:50.724188 [DEBUG] switch_core_state_machine.c:236 sofia/default/0870869784@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:50.724188 [INFO] mod_dialplan_xml.c:637 Processing 0870869784 <0870869784>->D9570124315108 in context default
2024-03-22 07:53:50.724188 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:50.724188 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:50.724188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:50.724188 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570124315108
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
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
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
2024-03-22 07:53:50.744154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:50.744154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0870869784 / <null>
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
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
2024-03-22 07:53:50.744154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:50.744154 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:50.744154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570124315108
2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570124315108
2024-03-22 07:53:50.764168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570124315108
2024-03-22 07:53:50.764168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0124315108
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
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
2024-03-22 07:53:50.764168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0124315108
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
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
2024-03-22 07:53:50.764168 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:50.764168 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0124315108)!!!!
2024-03-22 07:53:50.764168 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27124315108
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
2024-03-22 07:53:50.784173 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0124315108)!!!!
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 929618.1734
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:53:50.784173 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:53:50.784173 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Rates Not Found :
2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Post Cdrs : 0
2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 3
2024-03-22 07:53:50.784173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="D9570124315108">
<condition field="destination_number" expression="D9570124315108">
<action application="log" data="WARNING Accountcode . Dialed number (0124315108) origination rates not found!!"/>
<action application="set" data="original_caller_id_name=0870869784"/>
<action application="set" data="error_cdr=1"/>
<action application="set" data="callstart=2024-03-22 07:53:50"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="sip_ignore_remote_cause=true"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="effective_destination_number=0124315108"/>
<action application="set" data="last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND"/>
<action application="hangup" data="ORIGINATION_RATE_NOT_FOUND"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:50.784173 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0870869784@41.160.32.115:5060 parsing [default->D9570124315108] continue=false
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Regex (PASS) [D9570124315108] destination_number(D9570124315108) =~ /D9570124315108/ break=on-false
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action log(WARNING Accountcode . Dialed number (0124315108) origination rates not found!!)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(original_caller_id_name=0870869784)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(error_cdr=1)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:50)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(sip_ignore_remote_cause=true)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(effective_destination_number=0124315108)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
Dialplan: sofia/default/0870869784@41.160.32.115:5060 Action hangup(ORIGINATION_RATE_NOT_FOUND)
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
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
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)
2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0870869784@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:50.784173 [DEBUG] mod_sofia.c:198 sofia/default/0870869784@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:328 sofia/default/0870869784@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0870869784@41.160.32.115:5060 log(WARNING Accountcode . Dialed number (0124315108) origination rates not found!!)
2024-03-22 07:53:50.784173 [WARNING] mod_dptools.c:1742 Accountcode . Dialed number (0124315108) origination rates not found!!
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(original_caller_id_name=0870869784)
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]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(error_cdr=1)
2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [error_cdr]=[1]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(callstart=2024-03-22 07:53:50)
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]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(call_direction=outbound)
2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(sip_ignore_remote_cause=true)
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]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:50.784173 [DEBUG] mod_dptools.c:1548 SET sofia/default/0870869784@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(effective_destination_number=0124315108)
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]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
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]
EXECUTE sofia/default/0870869784@41.160.32.115:5060 hangup(ORIGINATION_RATE_NOT_FOUND)
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]
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)
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
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)
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
2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0870869784@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:53:50.784173 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480
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
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
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
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)
2024-03-22 07:53:50.784173 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0870869784@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:50.784173 [INFO] mod_json_cdr.c:271 Process [524b4870-e821-11ee-8fac-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:50.804152 [NOTICE] switch_core_session.c:1683 Session 574989 (sofia/default/0870869784@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0870869784@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:50.804152 [DEBUG] mod_sofia.c:343 sofia/default/0870869784@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:50.804152 [DEBUG] switch_core_state_machine.c:181 sofia/default/0870869784@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:53:51.184154 [NOTICE] sofia.c:1012 Hangup sofia/default/0645067100 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:51.184154 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0645067100]
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0645067100) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0645067100) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0645067100) State HANGUP
2024-03-22 07:53:51.184154 [DEBUG] mod_sofia.c:438 Channel sofia/default/0645067100 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:60 sofia/default/0645067100 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0645067100) State HANGUP going to sleep
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0645067100) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:51.184154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0645067100) State REPORTING
2024-03-22 07:53:51.184154 [INFO] mod_json_cdr.c:271 Process [338383a8-e821-11ee-8cad-d17fbcf33421.cdr.json]
2024-03-22 07:53:51.204177 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0645067100 ending bridge by request from write function
2024-03-22 07:53:51.204177 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0475014600@legalaidsa.nebular.co.za:5060]
2024-03-22 07:53:51.204177 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0645067100 skip receive message [UNBRIDGE] (channel is hungup already)
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]
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)
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
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)
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
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
2024-03-22 07:53:51.204177 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0475014600@legalaidsa.nebular.co.za:5060
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
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
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
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)
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:51.204177 [INFO] mod_json_cdr.c:271 Process [33783d22-e821-11ee-8c89-d17fbcf33421.cdr.json]
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:174 sofia/default/0645067100 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0645067100) State REPORTING going to sleep
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0645067100) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:51.204177 [DEBUG] switch_core_session.c:1665 Session 574953 (sofia/default/0645067100) Locked, Waiting on external entities
2024-03-22 07:53:51.204177 [NOTICE] switch_core_session.c:1683 Session 574953 (sofia/default/0645067100) Ended
2024-03-22 07:53:51.204177 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0645067100 [CS_DESTROY]
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)
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0645067100) State DESTROY
2024-03-22 07:53:51.204177 [DEBUG] mod_sofia.c:343 sofia/default/0645067100 SOFIA DESTROY
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:181 sofia/default/0645067100 Standard DESTROY
2024-03-22 07:53:51.204177 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0645067100) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:51.224167 [NOTICE] switch_core_session.c:1683 Session 574952 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0475014600@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:51.224167 [DEBUG] mod_sofia.c:343 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:51.224167 [DEBUG] switch_core_state_machine.c:181 sofia/default/0475014600@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:51.484187 [DEBUG] switch_scheduler.c:144 Deleting task 232823 switch_ivr_schedule_hangup (338383a8-e821-11ee-8cad-d17fbcf33421)
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]
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)
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
2024-03-22 07:53:51.904178 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:53:51.904178 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:53:51.904178 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 73896190661188 73896190661188 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24798 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:51.904178 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0732745146@41.160.32.115:5060) State NEW
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)
2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0732745146@41.160.32.115:5060) State INIT
2024-03-22 07:53:51.904178 [DEBUG] mod_sofia.c:90 sofia/default/0732745146@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:40 sofia/default/0732745146@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:53:51.904178 [DEBUG] switch_channel.c:2249 (sofia/default/0732745146@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0732745146@41.160.32.115:5060) State ROUTING
2024-03-22 07:53:51.904178 [DEBUG] mod_sofia.c:143 sofia/default/0732745146@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:53:51.904178 [DEBUG] switch_core_state_machine.c:236 sofia/default/0732745146@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:53:51.904178 [INFO] mod_dialplan_xml.c:637 Processing 0732745146 <0732745146>->D9570442792255 in context default
2024-03-22 07:53:51.924169 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:53:51.924169 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:51.924169 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:53:51.924169 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570442792255
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
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
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
2024-03-22 07:53:51.924169 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:53:51.924169 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0732745146 / <null>
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
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
2024-03-22 07:53:51.944239 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:53:51.944239 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:53:51.944239 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570442792255
2024-03-22 07:53:51.944239 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570442792255
2024-03-22 07:53:51.944239 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570442792255
2024-03-22 07:53:51.944239 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0442792255
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
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
2024-03-22 07:53:51.944239 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0442792255
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
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8513
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0442792255
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:53:51.964215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:51.964215 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:53:51.964215 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0732745146
2024-03-22 07:53:51.964215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0732745146
2024-03-22 07:53:51.964215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27732745146
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:53:51.964215 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:53:51.964215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:53:51.984189 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:53:51.984189 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:53:51.984189 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0442792255">
<condition field="destination_number" expression="D9570442792255">
<action application="set" data="effective_destination_number=0442792255"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:53:51"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0732745146"/>
<action application="set" data="effective_caller_id_name=27732745146"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/2123267554/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/2123267554@legalaidsa.nebular.co.za^0442792255"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=2123267554"/>
<action application="set" data="destination_number=0442792255"/>
<action application="set" data="did_number=0442792255"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 2123267554@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0442792255"/>
<action application="voicemail" data="default $${domain_name} 2123267554"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:53:51.984189 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0732745146@41.160.32.115:5060 parsing [default->0442792255] continue=false
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Regex (PASS) [0442792255] destination_number(D9570442792255) =~ /D9570442792255/ break=on-false
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(effective_destination_number=0442792255)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(callstart=2024-03-22 07:53:51)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(original_caller_id_name=0732745146)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(effective_caller_id_name=27732745146)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/2123267554/${uuid})
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(sip_destination_number=2123267554)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(destination_number=0442792255)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(did_number=0442792255)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0732745146@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0442792255_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0732745146@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0732745146@41.160.32.115:5060) State EXECUTE
2024-03-22 07:53:52.004153 [DEBUG] mod_sofia.c:198 sofia/default/0732745146@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:53:52.004153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0732745146@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(effective_destination_number=0442792255)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(callstart=2024-03-22 07:53:51)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:53:52.004153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(original_caller_id_name=0732745146)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(effective_caller_id_name=27732745146)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:53:52.024171 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0442792255.* // 0442792255 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:53:52.024171 [DEBUG] mod_dptools.c:1548 SET sofia/default/0732745146@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 db(insert/pickup_any_group_/2123267554/5300f0b2-e821-11ee-8fba-d17fbcf33421)
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:53:52.024171 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0732745146@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:53:52.024171 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0732745146@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:53:52.024171 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0732745146@41.160.32.115:5060 sleep(1000)
EXECUTE sofia/default/0732745146@41.160.32.115:5060 ring_ready()
2024-03-22 07:53:53.024176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0732745146@41.160.32.115:5060!
2024-03-22 07:53:53.024176 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:53:53.024176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0732745146@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:53:53.024176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:53:53.024176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2123267554@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:53:53.024176 [DEBUG] mod_sofia.c:90 sofia/default/2123267554@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711069037 1711069038 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24996 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:40 sofia/default/2123267554@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2123267554@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:53:53.024176 [DEBUG] mod_sofia.c:143 sofia/default/2123267554@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:53:53.024176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/2123267554@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:53:53.024176 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:53:53.124178 [NOTICE] sofia.c:1012 Hangup sofia/default/6085507138@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:53.124178 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/6085507138@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:852 (sofia/default/6085507138@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:938 (sofia/default/6085507138@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:53:53.124178 [INFO] mod_json_cdr.c:271 Process [44cbe970-e821-11ee-8e8c-d17fbcf33421.cdr.json]
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
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
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
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
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
2024-03-22 07:53:53.124178 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0613423198@41.160.32.115:5060]
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]
2024-03-22 07:53:53.124178 [NOTICE] switch_core_session.c:1683 Session 574974 (sofia/default/6085507138@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:53.124178 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/6085507138@legalaidsa.nebular.co.za [CS_DESTROY]
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)
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)
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
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)
2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:751 (sofia/default/6085507138@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:343 sofia/default/6085507138@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:181 sofia/default/6085507138@legalaidsa.nebular.co.za Standard DESTROY
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
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
2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0613423198@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:53:53.124178 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0613423198@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:53:53.124178 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0613423198@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:53.124178 [INFO] mod_json_cdr.c:271 Process [4420f560-e821-11ee-8e64-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:53.164160 [NOTICE] switch_core_session.c:1683 Session 574973 (sofia/default/0613423198@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0613423198@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:53.164160 [DEBUG] mod_sofia.c:343 sofia/default/0613423198@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:53.164160 [DEBUG] switch_core_state_machine.c:181 sofia/default/0613423198@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:53:53.264164 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:53:53.264164 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/2123267554@legalaidsa.nebular.co.za!
2024-03-22 07:53:53.264164 [DEBUG] switch_channel.c:3346 (sofia/default/2123267554@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:53:53.264164 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0732745146@41.160.32.115:5060!
2024-03-22 07:53:53.484171 [DEBUG] switch_scheduler.c:144 Deleting task 232830 switch_ivr_schedule_hangup (44cbe970-e821-11ee-8e8c-d17fbcf33421)
2024-03-22 07:53:54.424157 [NOTICE] sofia.c:1012 Hangup sofia/default/+27119421172@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27119421172@41.160.32.115:5060]
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
2024-03-22 07:53:54.424157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7682330505@legalaidsa.nebular.co.za]
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]
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
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)
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
2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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)
2024-03-22 07:53:54.424157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/7682330505@legalaidsa.nebular.co.za
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
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
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
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)
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)
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
2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING
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)
2024-03-22 07:53:54.424157 [INFO] mod_json_cdr.c:271 Process [ebba5520-e81f-11ee-a9c5-d17fbcf33421.cdr.json]
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
2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27119421172@41.160.32.115:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:54.424157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27119421172@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:54.424157 [INFO] mod_json_cdr.c:271 Process [eb1139fe-e81f-11ee-a971-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:54.444291 [NOTICE] switch_core_session.c:1683 Session 574543 (sofia/default/7682330505@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:54.444291 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7682330505@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:54.444291 [DEBUG] mod_sofia.c:343 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:54.444291 [DEBUG] switch_core_state_machine.c:181 sofia/default/7682330505@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:54.464159 [NOTICE] switch_core_session.c:1683 Session 574540 (sofia/default/+27119421172@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27119421172@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:54.464159 [DEBUG] mod_sofia.c:343 sofia/default/+27119421172@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:54.464159 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27119421172@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:53:54.484166 [DEBUG] switch_scheduler.c:144 Deleting task 232657 switch_ivr_schedule_hangup (ebba5520-e81f-11ee-a9c5-d17fbcf33421)
2024-03-22 07:53:57.504484 [NOTICE] sofia.c:1012 Hangup sofia/default/0419911811@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:57.504484 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0419911811@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:57.524157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0823875957]
2024-03-22 07:53:57.524157 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0823875957 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0823875957) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0823875957) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:57.524157 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0823875957 skip receive message [UNBRIDGE] (channel is hungup already)
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)
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0823875957) State HANGUP
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
2024-03-22 07:53:57.524157 [DEBUG] mod_sofia.c:438 Channel sofia/default/0823875957 hanging up, cause: NORMAL_CLEARING
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)
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
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)
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
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:53:57.524157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0823875957
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:60 sofia/default/0823875957 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0823875957) State HANGUP going to sleep
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0823875957) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0823875957) State REPORTING
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
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
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
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)
2024-03-22 07:53:57.524157 [INFO] mod_json_cdr.c:271 Process [ebb8c984-e820-11ee-8500-d17fbcf33421.cdr.json]
2024-03-22 07:53:57.524157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:57.524157 [INFO] mod_json_cdr.c:271 Process [ebabc752-e820-11ee-84dd-d17fbcf33421.cdr.json]
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:174 sofia/default/0823875957 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0823875957) State REPORTING going to sleep
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0823875957) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:57.545286 [DEBUG] switch_core_session.c:1665 Session 574862 (sofia/default/0823875957) Locked, Waiting on external entities
2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1683 Session 574862 (sofia/default/0823875957) Ended
2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0823875957 [CS_DESTROY]
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)
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0823875957) State DESTROY
2024-03-22 07:53:57.545286 [DEBUG] mod_sofia.c:343 sofia/default/0823875957 SOFIA DESTROY
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:181 sofia/default/0823875957 Standard DESTROY
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0823875957) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:57.545286 [NOTICE] switch_core_session.c:1683 Session 574861 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0419911811@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:57.545286 [DEBUG] mod_sofia.c:343 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:57.545286 [DEBUG] switch_core_state_machine.c:181 sofia/default/0419911811@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:57.984161 [DEBUG] switch_scheduler.c:144 Deleting task 232783 switch_ivr_schedule_hangup (ebb8c984-e820-11ee-8500-d17fbcf33421)
2024-03-22 07:53:58.784175 [NOTICE] sofia.c:1012 Hangup sofia/default/7106027339@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:58.784175 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7106027339@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7106027339@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7106027339@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:53:58.784175 [INFO] mod_json_cdr.c:271 Process [4cbe3c3c-e821-11ee-8f77-d17fbcf33421.cdr.json]
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
2024-03-22 07:53:58.784175 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0104988840@41.160.32.115:5060]
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)
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]
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)
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
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)
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
2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0104988840@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:53:58.784175 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0104988840@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:53:58.784175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0104988840@41.160.32.115:5060) State REPORTING
2024-03-22 07:53:58.784175 [INFO] mod_json_cdr.c:271 Process [4c13c2e8-e821-11ee-8f46-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1683 Session 574986 (sofia/default/7106027339@legalaidsa.nebular.co.za) Ended
2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7106027339@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7106027339@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:53:58.804171 [DEBUG] mod_sofia.c:343 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:181 sofia/default/7106027339@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:53:58.804171 [NOTICE] switch_core_session.c:1683 Session 574984 (sofia/default/0104988840@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0104988840@41.160.32.115:5060) State DESTROY
2024-03-22 07:53:58.804171 [DEBUG] mod_sofia.c:343 sofia/default/0104988840@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:53:58.804171 [DEBUG] switch_core_state_machine.c:181 sofia/default/0104988840@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:53:58.924192 [NOTICE] sofia.c:1012 Hangup sofia/default/0155191100@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:58.924192 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0155191100@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:58.924192 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0837207317]
2024-03-22 07:53:58.944160 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0837207317 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0837207317) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:58.944160 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0837207317 skip receive message [UNBRIDGE] (channel is hungup already)
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)
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)
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
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)
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
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:58.944160 [INFO] mod_json_cdr.c:271 Process [413d6fea-e821-11ee-8e0e-d17fbcf33421.cdr.json]
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0837207317) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837207317) State HANGUP
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
2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:438 Channel sofia/default/0837207317 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0837207317
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:60 sofia/default/0837207317 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837207317) State HANGUP going to sleep
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0837207317) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837207317) State REPORTING
2024-03-22 07:53:58.944160 [INFO] mod_json_cdr.c:271 Process [41489e38-e821-11ee-8e31-d17fbcf33421.cdr.json]
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:174 sofia/default/0837207317 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837207317) State REPORTING going to sleep
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0837207317) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:58.944160 [DEBUG] switch_core_session.c:1665 Session 574970 (sofia/default/0837207317) Locked, Waiting on external entities
2024-03-22 07:53:58.944160 [NOTICE] switch_core_session.c:1683 Session 574970 (sofia/default/0837207317) Ended
2024-03-22 07:53:58.944160 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0837207317 [CS_DESTROY]
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)
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837207317) State DESTROY
2024-03-22 07:53:58.944160 [DEBUG] mod_sofia.c:343 sofia/default/0837207317 SOFIA DESTROY
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:181 sofia/default/0837207317 Standard DESTROY
2024-03-22 07:53:58.944160 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837207317) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:58.964286 [NOTICE] switch_core_session.c:1683 Session 574969 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0155191100@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:58.964286 [DEBUG] mod_sofia.c:343 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:58.964286 [DEBUG] switch_core_state_machine.c:181 sofia/default/0155191100@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:58.984161 [DEBUG] switch_scheduler.c:144 Deleting task 232828 switch_ivr_schedule_hangup (41489e38-e821-11ee-8e31-d17fbcf33421)
2024-03-22 07:53:58.984161 [DEBUG] switch_scheduler.c:144 Deleting task 232832 switch_ivr_schedule_hangup (4cbe3c3c-e821-11ee-8f77-d17fbcf33421)
2024-03-22 07:53:59.264169 [NOTICE] sofia.c:1012 Hangup sofia/default/0117030023@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:53:59.264169 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0117030023@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:53:59.284216 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0696180286]
2024-03-22 07:53:59.284216 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0696180286 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0696180286) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0696180286) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0696180286) State HANGUP
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
2024-03-22 07:53:59.284216 [DEBUG] mod_sofia.c:438 Channel sofia/default/0696180286 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:53:59.284216 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0696180286
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:60 sofia/default/0696180286 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0696180286) State HANGUP going to sleep
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0696180286) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0696180286) State REPORTING
2024-03-22 07:53:59.284216 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0696180286 skip receive message [UNBRIDGE] (channel is hungup already)
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)
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)
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
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)
2024-03-22 07:53:59.284216 [INFO] mod_json_cdr.c:271 Process [9f605792-e81f-11ee-a072-d17fbcf33421.cdr.json]
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
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:53:59.284216 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:53:59.284216 [INFO] mod_json_cdr.c:271 Process [9f5204c6-e81f-11ee-a04f-d17fbcf33421.cdr.json]
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:174 sofia/default/0696180286 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0696180286) State REPORTING going to sleep
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0696180286) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:53:59.304296 [DEBUG] switch_core_session.c:1665 Session 574434 (sofia/default/0696180286) Locked, Waiting on external entities
2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1683 Session 574434 (sofia/default/0696180286) Ended
2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0696180286 [CS_DESTROY]
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)
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0696180286) State DESTROY
2024-03-22 07:53:59.304296 [DEBUG] mod_sofia.c:343 sofia/default/0696180286 SOFIA DESTROY
2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:109 DECODER DESTROYED----------->0x7fedb01cc328 0x7fedb01cc330
2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:112 DECODER LICENSE DEALLOCATED->0x7fedb01cc328 0x7fedb01cc330
2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7fedb01cc3a8 0x7fedb01cc3a8
2024-03-22 07:53:59.304296 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7fedb01cc3a8 0x7fedb01cc3a8
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:181 sofia/default/0696180286 Standard DESTROY
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0696180286) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:53:59.304296 [NOTICE] switch_core_session.c:1683 Session 574433 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0117030023@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:53:59.304296 [DEBUG] mod_sofia.c:343 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:53:59.304296 [DEBUG] switch_core_state_machine.c:181 sofia/default/0117030023@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:53:59.324174 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [completing][200]
2024-03-22 07:53:59.324174 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 45910183753419 45910183753419 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24794 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:53:59.324174 [DEBUG] sofia.c:7084 Channel sofia/default/0764147705 entering state [ready][200]
2024-03-22 07:53:59.324174 [NOTICE] sofia.c:8159 Channel [sofia/default/0764147705] has been answered
2024-03-22 07:53:59.324174 [DEBUG] switch_channel.c:3773 (sofia/default/0764147705) Callstate Change EARLY -> ACTIVE
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.
2024-03-22 07:53:59.344560 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0333942190@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711069642 1711069644 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24382 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:53:59.344560 [DEBUG] switch_channel.c:3773 (sofia/default/0333942190@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:53:59.344560 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:53:59.364178 [DEBUG] sofia.c:7084 Channel sofia/default/0333942190@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:53:59.384155 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:59.404161 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:53:59.484171 [DEBUG] switch_scheduler.c:144 Deleting task 232612 switch_ivr_schedule_hangup (9f605792-e81f-11ee-a072-d17fbcf33421)
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]
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)
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
2024-03-22 07:54:00.944199 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:00.964172 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:00.964172 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 528918511616 397871677441 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10482 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:00.964172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:603 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:00.964172 [DEBUG] mod_sofia.c:90 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:40 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:00.964172 [DEBUG] switch_channel.c:2249 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:643 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:00.964172 [DEBUG] mod_sofia.c:143 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:00.964172 [DEBUG] switch_core_state_machine.c:236 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:00.964172 [INFO] mod_dialplan_xml.c:637 Processing 27118772377 <27118772377>->0105109307 in context default
2024-03-22 07:54:00.964172 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:00.964172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:00.964172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:00.964172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0105109307
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
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
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
2024-03-22 07:54:00.964172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:00.964172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 27118772377 / 27118772377
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
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
2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:54:00.984157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0105109307
2024-03-22 07:54:00.984157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0105109307
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
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
2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0105109307
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
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
2024-03-22 07:54:00.984157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0105109307)!!!!
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27105109307
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
2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0105109307)!!!!
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
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
2024-03-22 07:54:01.004172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2138357
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - CENTRACOM - GEOGRAPHIC
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:01.004172 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:54:01.004172 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9950.7683
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1410783
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - CENTRACOM - GEOGRAPHIC
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9950.7683 balance Accountid 13 !!!
2024-03-22 07:54:01.024170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2138357
2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:01.024170 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0105109307
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
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
2024-03-22 07:54:01.024170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0105109307">
<condition field="destination_number" expression="0105109307">
<action application="set" data="effective_destination_number=0105109307"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:01"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=27118772377"/>
<action application="set" data="original_caller_id_number=27118772377"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=27118772377"/>
<action application="set" data="effective_caller_id_number=27118772377"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2138357"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:01.024170 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 parsing [default->0105109307] continue=false
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Regex (PASS) [0105109307] destination_number(0105109307) =~ /0105109307/ break=on-false
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0105109307)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:01)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2138357)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:01.024170 [DEBUG] mod_sofia.c:198 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:01.024170 [DEBUG] switch_core_state_machine.c:328 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0105109307)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:01)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:01.044151 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:01.044151 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 9/200
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:54:01.044151 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:54:01.044151 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 11/800
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2138357)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:54:01.044151 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:54:01.044151 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:54:01.044151 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:01.044151 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:54:01.044151 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0105109307 [58728830-e821-11ee-9009-d17fbcf33421]
2024-03-22 07:54:01.044151 [DEBUG] mod_sofia.c:4819 (sofia/default/0105109307) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0105109307) State INIT
2024-03-22 07:54:01.044151 [DEBUG] mod_sofia.c:90 sofia/default/0105109307 SOFIA INIT
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
2024-03-22 07:54:01.044151 [DEBUG] sofia_glue.c:1295 sofia/default/0105109307 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711070003 1711070004 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24038 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:40 sofia/default/0105109307 Standard INIT
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0105109307) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0105109307) State INIT going to sleep
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)
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0105109307) State ROUTING
2024-03-22 07:54:01.044151 [DEBUG] mod_sofia.c:143 sofia/default/0105109307 SOFIA ROUTING
2024-03-22 07:54:01.044151 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0105109307) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0105109307) State ROUTING going to sleep
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)
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0105109307) State CONSUME_MEDIA
2024-03-22 07:54:01.044151 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0105109307) State CONSUME_MEDIA going to sleep
2024-03-22 07:54:01.044151 [DEBUG] sofia.c:7084 Channel sofia/default/0105109307 entering state [calling][0]
2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 545494401024 264660582401 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10472 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7084 Channel sofia/default/1033021106@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:01.224330 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:01.224330 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:01.224330 [NOTICE] sofia.c:8218 Channel [sofia/default/1033021106@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:01.224330 [DEBUG] switch_channel.c:3773 (sofia/default/1033021106@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:01.224330 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:01.224330 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0837792192@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711071183 1711071184 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 22858 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:01.224330 [DEBUG] switch_channel.c:3773 (sofia/default/0837792192@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:01.224330 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:01.224330 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/1033021106@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:01.224330 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1033021106@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:01.224330 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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)
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)
EXECUTE sofia/default/1033021106@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:54:01.504188 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:01.604285 [DEBUG] sofia.c:7084 Channel sofia/default/0837792192@41.160.32.115:5060 entering state [ready][200]
2024-03-22 07:54:01.764157 [NOTICE] sofia.c:1012 Hangup sofia/default/7623690379@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:01.764157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7623690379@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7623690379@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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
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)
2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7623690379@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:01.764157 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27419220740@41.160.32.115:5060]
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)
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]
2024-03-22 07:54:01.764157 [INFO] mod_json_cdr.c:271 Process [30ce611e-e821-11ee-8c59-d17fbcf33421.cdr.json]
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)
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
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)
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
2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27419220740@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:54:01.764157 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/+27419220740@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:54:01.764157 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27419220740@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:01.764157 [INFO] mod_json_cdr.c:271 Process [302535d0-e821-11ee-8c31-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1683 Session 574949 (sofia/default/7623690379@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7623690379@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7623690379@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:01.784157 [DEBUG] mod_sofia.c:343 sofia/default/7623690379@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:181 sofia/default/7623690379@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:01.784157 [NOTICE] switch_core_session.c:1683 Session 574948 (sofia/default/+27419220740@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27419220740@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:01.784157 [DEBUG] mod_sofia.c:343 sofia/default/+27419220740@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:01.784157 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27419220740@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:01.944226 [DEBUG] switch_scheduler.c:144 Deleting task 232820 switch_ivr_schedule_hangup (30ce611e-e821-11ee-8c59-d17fbcf33421)
2024-03-22 07:54:01.964158 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [terminated][487]
2024-03-22 07:54:01.964158 [NOTICE] sofia.c:8273 Hangup sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2024-03-22 07:54:01.984154 [NOTICE] switch_ivr_originate.c:3612 Hangup sofia/default/0105109307 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2024-03-22 07:54:01.984154 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2024-03-22 07:54:01.984154 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ORIGINATOR_CANCEL
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)
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
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)
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
2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:54:01.984154 [INFO] mod_json_cdr.c:271 Process [5864dcda-e821-11ee-8fe6-d17fbcf33421.cdr.json]
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)
2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0105109307) Callstate Change DOWN -> HANGUP
2024-03-22 07:54:01.984154 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0105109307) State HANGUP
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
2024-03-22 07:54:01.984154 [DEBUG] mod_sofia.c:438 Channel sofia/default/0105109307 hanging up, cause: ORIGINATOR_CANCEL
2024-03-22 07:54:02.004244 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/0105109307
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:60 sofia/default/0105109307 Standard HANGUP, cause: ORIGINATOR_CANCEL
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0105109307) State HANGUP going to sleep
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0105109307) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0105109307) State REPORTING
2024-03-22 07:54:02.004244 [INFO] mod_json_cdr.c:271 Process [58728830-e821-11ee-9009-d17fbcf33421.cdr.json]
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:174 sofia/default/0105109307 Standard REPORTING, cause: ORIGINATOR_CANCEL
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0105109307) State REPORTING going to sleep
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0105109307) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:54:02.004244 [DEBUG] switch_core_session.c:1665 Session 574993 (sofia/default/0105109307) Locked, Waiting on external entities
2024-03-22 07:54:02.004244 [NOTICE] switch_core_session.c:1683 Session 574993 (sofia/default/0105109307) Ended
2024-03-22 07:54:02.004244 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0105109307 [CS_DESTROY]
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)
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0105109307) State DESTROY
2024-03-22 07:54:02.004244 [DEBUG] mod_sofia.c:343 sofia/default/0105109307 SOFIA DESTROY
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:181 sofia/default/0105109307 Standard DESTROY
2024-03-22 07:54:02.004244 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0105109307) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:54:02.024155 [NOTICE] switch_core_session.c:1683 Session 574992 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:54:02.024155 [DEBUG] mod_sofia.c:343 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:54:02.024155 [DEBUG] switch_core_state_machine.c:181 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:54:02.904163 [NOTICE] sofia.c:1012 Hangup sofia/default/7682330505@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:02.904163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7682330505@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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
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)
2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:02.904163 [INFO] mod_json_cdr.c:271 Process [ff7e8238-e820-11ee-8758-d17fbcf33421.cdr.json]
2024-03-22 07:54:02.904163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27712533585@41.160.32.115:5060]
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)
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]
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)
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
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)
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
2024-03-22 07:54:02.904163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27712533585@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:54:02.924175 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/+27712533585@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27712533585@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:02.924175 [INFO] mod_json_cdr.c:271 Process [fed6f3ba-e820-11ee-8730-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:02.924175 [NOTICE] switch_core_session.c:1683 Session 574889 (sofia/default/7682330505@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:02.924175 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7682330505@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:02.924175 [DEBUG] mod_sofia.c:343 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:02.924175 [DEBUG] switch_core_state_machine.c:181 sofia/default/7682330505@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:02.944162 [NOTICE] switch_core_session.c:1683 Session 574888 (sofia/default/+27712533585@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27712533585@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:02.944162 [DEBUG] mod_sofia.c:343 sofia/default/+27712533585@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:02.944162 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27712533585@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:02.944162 [DEBUG] switch_scheduler.c:144 Deleting task 232791 switch_ivr_schedule_hangup (ff7e8238-e820-11ee-8758-d17fbcf33421)
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]
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)
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
2024-03-22 07:54:08.564173 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:08.564173 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:08.564173 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 397452247040 284189261825 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10484 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:08.564173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:603 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:08.564173 [DEBUG] mod_sofia.c:90 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:40 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:08.564173 [DEBUG] switch_channel.c:2249 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:08.564173 [DEBUG] mod_sofia.c:143 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:08.564173 [DEBUG] switch_core_state_machine.c:236 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:08.564173 [INFO] mod_dialplan_xml.c:637 Processing 27118772377 <27118772377>->0721141624 in context default
2024-03-22 07:54:08.564173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:08.584172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0721141624
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
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
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
2024-03-22 07:54:08.584172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 27118772377 / 27118772377
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
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
2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:08.584172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:54:08.604213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721141624
2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0721141624
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
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
2024-03-22 07:54:08.604213 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0721141624
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
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
2024-03-22 07:54:08.604213 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:08.604213 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0721141624)!!!!
2024-03-22 07:54:08.604213 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27721141624
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
2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0721141624)!!!!
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....27118772377
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
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148455
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - VODACOM - MOBILE
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9950.7683
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426357
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D082-VODACOM
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9950.7683 balance Accountid 13 !!!
2024-03-22 07:54:08.624154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:08.624154 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148455
2024-03-22 07:54:08.624154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:08.644158 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0721141624
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
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
2024-03-22 07:54:08.644158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0721141624">
<condition field="destination_number" expression="0721141624">
<action application="set" data="effective_destination_number=0721141624"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:08"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=27118772377"/>
<action application="set" data="original_caller_id_number=27118772377"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=27118772377"/>
<action application="set" data="effective_caller_id_number=27118772377"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148455"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:08.644158 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 parsing [default->0721141624] continue=false
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Regex (PASS) [0721141624] destination_number(0721141624) =~ /0721141624/ break=on-false
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0721141624)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:08)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=27118772377)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148455)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:650 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:198 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:328 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0721141624)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:08)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:08.644158 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:08.644158 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 9/200
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:54:08.644158 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:54:08.644158 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 11/800
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=27118772377)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148455)
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]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:54:08.644158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/27118772377@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:54:08.644158 [DEBUG] mod_dptools.c:1548 SET sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:54:08.644158 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:08.644158 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:54:08.644158 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0721141624 [5cfb5d46-e821-11ee-9032-d17fbcf33421]
2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:4819 (sofia/default/0721141624) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721141624) State INIT
2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:90 sofia/default/0721141624 SOFIA INIT
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
2024-03-22 07:54:08.644158 [DEBUG] sofia_glue.c:1295 sofia/default/0721141624 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711073552 1711073553 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 20496 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:40 sofia/default/0721141624 Standard INIT
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0721141624) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0721141624) State INIT going to sleep
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)
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721141624) State ROUTING
2024-03-22 07:54:08.644158 [DEBUG] mod_sofia.c:143 sofia/default/0721141624 SOFIA ROUTING
2024-03-22 07:54:08.644158 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0721141624) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0721141624) State ROUTING going to sleep
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)
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721141624) State CONSUME_MEDIA
2024-03-22 07:54:08.644158 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0721141624) State CONSUME_MEDIA going to sleep
2024-03-22 07:54:08.644158 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [calling][0]
2024-03-22 07:54:09.524285 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF *:3280
2024-03-22 07:54:09.524285 [INFO] switch_channel.c:515 RECV DTMF *:3280
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
2024-03-22 07:54:09.944224 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
2024-03-22 07:54:10.144164 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [proceeding][183]
2024-03-22 07:54:10.144164 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 100430498634112 100430498634112 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24802 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:54:10.144164 [DEBUG] switch_core_codec.c:111 sofia/default/0721141624 Original read codec set to PCMA:8
2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:10.144164 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:7180 sofia/default/0721141624 Set 2833 dtmf send payload to 101
2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:7187 sofia/default/0721141624 Set 2833 dtmf receive payload to 101
2024-03-22 07:54:10.144164 [DEBUG] switch_core_media.c:7210 sofia/default/0721141624 Set rtp dtmf delay to 40
2024-03-22 07:54:10.144164 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0721141624!
2024-03-22 07:54:10.144164 [DEBUG] switch_channel.c:3474 (sofia/default/0721141624) Callstate Change DOWN -> EARLY
2024-03-22 07:54:10.164199 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:54:10.164199 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:10.164199 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711065990 1711065991 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28060 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:10.164199 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/27118772377@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:10.164199 [DEBUG] switch_channel.c:3474 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:54:10.164199 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0721141624]
2024-03-22 07:54:10.164199 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:54:10.164199 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0721141624) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:54:10.164199 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721141624) State EXCHANGE_MEDIA
2024-03-22 07:54:10.164199 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:10.344174 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0721141624 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:54:10.364170 [DEBUG] switch_ivr.c:623 sofia/default/0721141624 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0721141624 sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:54:10.724196 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:10.724196 [NOTICE] sofia.c:1012 Hangup sofia/default/27124315191@saqa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:10.724196 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27124315191@saqa.nebular.co.za:5060]
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
2024-03-22 07:54:10.744160 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0793232268]
2024-03-22 07:54:10.744160 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0793232268 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0793232268) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0793232268) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0793232268) State HANGUP
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
2024-03-22 07:54:10.744160 [DEBUG] mod_sofia.c:438 Channel sofia/default/0793232268 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:54:10.744160 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0793232268 skip receive message [UNBRIDGE] (channel is hungup already)
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)
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)
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
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)
2024-03-22 07:54:10.744160 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0793232268
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:60 sofia/default/0793232268 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0793232268) State HANGUP going to sleep
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
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0793232268) State Change CS_HANGUP -> CS_REPORTING
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27124315191@saqa.nebular.co.za:5060) State HANGUP
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)
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
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0793232268) State REPORTING
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
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
2024-03-22 07:54:10.744160 [INFO] mod_json_cdr.c:271 Process [e37bc9a6-e820-11ee-8446-d17fbcf33421.cdr.json]
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
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)
2024-03-22 07:54:10.744160 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27124315191@saqa.nebular.co.za:5060) State REPORTING
2024-03-22 07:54:10.744160 [INFO] mod_json_cdr.c:271 Process [e36f85b0-e820-11ee-8423-d17fbcf33421.cdr.json]
2024-03-22 07:54:10.744160 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [proceeding][180]
2024-03-22 07:54:10.744160 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 100430498634112 100430498634112 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24802 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
2024-03-22 07:54:10.744160 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/0721141624.
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:174 sofia/default/0793232268 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0793232268) State REPORTING going to sleep
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0793232268) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:54:10.764284 [DEBUG] switch_core_session.c:1665 Session 574853 (sofia/default/0793232268) Locked, Waiting on external entities
2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1683 Session 574853 (sofia/default/0793232268) Ended
2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0793232268 [CS_DESTROY]
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)
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0793232268) State DESTROY
2024-03-22 07:54:10.764284 [DEBUG] mod_sofia.c:343 sofia/default/0793232268 SOFIA DESTROY
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:181 sofia/default/0793232268 Standard DESTROY
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0793232268) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:54:10.764284 [NOTICE] switch_core_session.c:1683 Session 574852 (sofia/default/27124315191@saqa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27124315191@saqa.nebular.co.za:5060) State DESTROY
2024-03-22 07:54:10.764284 [DEBUG] mod_sofia.c:343 sofia/default/27124315191@saqa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:54:10.764284 [DEBUG] switch_core_state_machine.c:181 sofia/default/27124315191@saqa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:54:10.864175 [DEBUG] switch_scheduler.c:144 Deleting task 232781 switch_ivr_schedule_hangup (e37bc9a6-e820-11ee-8446-d17fbcf33421)
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]
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)
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
2024-03-22 07:54:12.064185 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:12.064185 [DEBUG] sofia.c:7084 Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:12.064185 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 39728447488 235250122753 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10486 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:12.064185 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:12.064185 [DEBUG] mod_sofia.c:90 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:40 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:12.064185 [DEBUG] switch_channel.c:2249 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:12.064185 [DEBUG] mod_sofia.c:143 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:12.064185 [DEBUG] switch_core_state_machine.c:236 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:12.064185 [INFO] mod_dialplan_xml.c:637 Processing 0272011030 <0272011030>->0214436700 in context default
2024-03-22 07:54:12.064185 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:12.064185 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0214436700
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
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
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
2024-03-22 07:54:12.084197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0272011030 / 0272011030
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
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
2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:12.084197 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:54:12.104170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0214436700
2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0214436700
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
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
2024-03-22 07:54:12.104170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0214436700
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
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
2024-03-22 07:54:12.104170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:12.104170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0214436700)!!!!
2024-03-22 07:54:12.104170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27214436700
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
2024-03-22 07:54:12.104170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0214436700)!!!!
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0272011030
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
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2141845
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - TELKOM - GEOGRAPHIC
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:12.124175 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:54:12.124175 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1420059
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D000-TELKOMGNP
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
2024-03-22 07:54:12.124175 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2141845
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:12.124175 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:54:12.124175 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0214436700
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
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
2024-03-22 07:54:12.144185 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0214436700">
<condition field="destination_number" expression="0214436700">
<action application="set" data="effective_destination_number=0214436700"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:12"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0272011030"/>
<action application="set" data="original_caller_id_number=0272011030"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0272011030"/>
<action application="set" data="effective_caller_id_number=0272011030"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2141845"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:12.144185 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 parsing [default->0214436700] continue=false
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Regex (PASS) [0214436700] destination_number(0214436700) =~ /0214436700/ break=on-false
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0214436700)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:12)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0272011030)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0272011030)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0272011030)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0272011030)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2141845)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:198 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:328 sofia/default/0272011030@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0214436700)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:12)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0272011030)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0272011030)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:12.144185 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:12.144185 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 10/200
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:54:12.144185 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:54:12.144185 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 11/800
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0272011030)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0272011030)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2141845)
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]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:54:12.144185 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0272011030@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:54:12.144185 [DEBUG] mod_dptools.c:1548 SET sofia/default/0272011030@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:54:12.144185 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:12.144185 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:54:12.144185 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0214436700 [5f10e132-e821-11ee-905b-d17fbcf33421]
2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:4819 (sofia/default/0214436700) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0214436700) State INIT
2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:90 sofia/default/0214436700 SOFIA INIT
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
2024-03-22 07:54:12.144185 [DEBUG] sofia_glue.c:1295 sofia/default/0214436700 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711069458 1711069459 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24594 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:40 sofia/default/0214436700 Standard INIT
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0214436700) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0214436700) State INIT going to sleep
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)
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0214436700) State ROUTING
2024-03-22 07:54:12.144185 [DEBUG] mod_sofia.c:143 sofia/default/0214436700 SOFIA ROUTING
2024-03-22 07:54:12.144185 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0214436700) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0214436700) State ROUTING going to sleep
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)
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0214436700) State CONSUME_MEDIA
2024-03-22 07:54:12.144185 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0214436700) State CONSUME_MEDIA going to sleep
2024-03-22 07:54:12.144185 [DEBUG] sofia.c:7084 Channel sofia/default/0214436700 entering state [calling][0]
2024-03-22 07:54:13.024174 [DEBUG] sofia.c:7084 Channel sofia/default/0214436700 entering state [completing][200]
2024-03-22 07:54:13.024174 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 96814136173752 96814136173752 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24804 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:54:13.024174 [DEBUG] sofia.c:7084 Channel sofia/default/0214436700 entering state [ready][200]
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]
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
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]
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]
2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:54:13.024174 [DEBUG] switch_core_codec.c:111 sofia/default/0214436700 Original read codec set to PCMA:8
2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:13.024174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:7180 sofia/default/0214436700 Set 2833 dtmf send payload to 101
2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:7187 sofia/default/0214436700 Set 2833 dtmf receive payload to 101
2024-03-22 07:54:13.024174 [DEBUG] switch_core_media.c:7210 sofia/default/0214436700 Set rtp dtmf delay to 40
2024-03-22 07:54:13.024174 [NOTICE] sofia.c:8218 Channel [sofia/default/0214436700] has been answered
2024-03-22 07:54:13.024174 [DEBUG] switch_channel.c:3773 (sofia/default/0214436700) Callstate Change DOWN -> ACTIVE
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
2024-03-22 07:54:13.044166 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:13.044166 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0272011030@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711064059 1711064060 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 29994 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:13.044166 [DEBUG] switch_channel.c:3773 (sofia/default/0272011030@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:13.044166 [DEBUG] sofia.c:7084 Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:54:13.044166 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0214436700]
2024-03-22 07:54:13.044166 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0214436700) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:54:13.044166 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0214436700) State EXCHANGE_MEDIA
2024-03-22 07:54:13.044166 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:13.144178 [DEBUG] sofia.c:7084 Channel sofia/default/0272011030@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:54:13.224172 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0214436700 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:54:13.244178 [DEBUG] switch_ivr.c:623 sofia/default/0214436700 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0214436700 sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 101904809984 92476014593 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10478 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7084 Channel sofia/default/2123267554@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:13.284354 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:13.284354 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:13.284354 [NOTICE] sofia.c:8218 Channel [sofia/default/2123267554@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:13.284354 [DEBUG] switch_channel.c:3773 (sofia/default/2123267554@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:13.284354 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:13.284354 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0732745146@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711075761 1711075762 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 18292 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:13.284354 [DEBUG] switch_channel.c:3773 (sofia/default/0732745146@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:13.284354 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:13.284354 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/2123267554@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:13.284354 [DEBUG] switch_core_state_machine.c:653 (sofia/default/2123267554@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:13.284354 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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
2024-03-22 07:54:13.444186 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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)
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]
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)
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
2024-03-22 07:54:13.484176 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:13.484176 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:13.484176 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 91080354834062 91080354834062 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24806 RTP/AVP 18 4 8 116
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:116 telephone-event/8000
a=fmtp:116 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 116@8000
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
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
2024-03-22 07:54:13.484176 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 116@8000
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
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
2024-03-22 07:54:13.484176 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0671765330@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0671765330@41.160.32.115:5060) State INIT
2024-03-22 07:54:13.504172 [DEBUG] mod_sofia.c:90 sofia/default/0671765330@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:40 sofia/default/0671765330@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:13.504172 [DEBUG] switch_channel.c:2249 (sofia/default/0671765330@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0671765330@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:13.504172 [DEBUG] mod_sofia.c:143 sofia/default/0671765330@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:13.504172 [DEBUG] switch_core_state_machine.c:236 sofia/default/0671765330@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:13.504172 [INFO] mod_dialplan_xml.c:637 Processing 0671765330 <0671765330>->0103130060 in context default
2024-03-22 07:54:13.504172 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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)
EXECUTE sofia/default/2123267554@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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')
2024-03-22 07:54:13.504172 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:13.504172 [DEBUG] sofia.c:7084 Channel sofia/default/0732745146@41.160.32.115:5060 entering state [ready][200]
2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0103130060
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
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
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
2024-03-22 07:54:13.504172 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0671765330 / <null>
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
2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
2024-03-22 07:54:13.504172 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
2024-03-22 07:54:13.524174 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 107
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
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
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0103130060
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
2024-03-22 07:54:13.524174 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:13.524174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2125
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0103130060
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:13.524174 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:13.524174 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++107
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
2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 107 limit 1
2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : meililogistics.nebular.co.za
2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:13.544167 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0671765330
2024-03-22 07:54:13.544167 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0671765330
2024-03-22 07:54:13.544167 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27671765330
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 107 limit 1
2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : meililogistics.nebular.co.za
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforemeililogistics.nebular.co.za
2024-03-22 07:54:13.544167 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:13.544167 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0103130060">
<condition field="destination_number" expression="0103130060">
<action application="set" data="effective_destination_number=0103130060"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:13"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0671765330"/>
<action application="set" data="effective_caller_id_name=27671765330"/>
<action application="set" data="receiver_accid=107"/>
<action application="export" data="domain_name=meililogistics.nebular.co.za"/>
<action application="export" data="sip_to_host=meililogistics.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/5734184911/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=meililogistics.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/5734184911@meililogistics.nebular.co.za^0103130060"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=meililogistics.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=107"/>
<action application="set" data="sip_destination_number=5734184911"/>
<action application="set" data="destination_number=0103130060"/>
<action application="set" data="did_number=0103130060"/>
<action application="set" data="user_domain=meililogistics.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 5734184911@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0103130060"/>
<action application="voicemail" data="default $${domain_name} 5734184911"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:13.564175 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0671765330@41.160.32.115:5060 parsing [default->0103130060] continue=false
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Regex (PASS) [0103130060] destination_number(0103130060) =~ /0103130060/ break=on-false
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(effective_destination_number=0103130060)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:13)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(original_caller_id_name=0671765330)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(effective_caller_id_name=27671765330)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(receiver_accid=107)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(domain_name=meililogistics.nebular.co.za)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(sip_to_host=meililogistics.nebular.co.za)
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)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/5734184911/${uuid})
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action export(did_user_domain=meililogistics.nebular.co.za)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(variable_sip_to_host=meililogistics.nebular.co.za)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(userinfo_id=107)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(sip_destination_number=5734184911)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(destination_number=0103130060)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(did_number=0103130060)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action set(user_domain=meililogistics.nebular.co.za)
Dialplan: sofia/default/0671765330@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0103130060_recur_1] require-nested=TRUE
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
|--- 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
|--- Dialplan: sofia/default/0671765330@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0671765330@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:13.584150 [DEBUG] mod_sofia.c:198 sofia/default/0671765330@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:13.584150 [DEBUG] switch_core_state_machine.c:328 sofia/default/0671765330@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(effective_destination_number=0103130060)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(callstart=2024-03-22 07:54:13)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(original_caller_id_name=0671765330)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(effective_caller_id_name=27671765330)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(receiver_accid=107)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [receiver_accid]=[107]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(domain_name=meililogistics.nebular.co.za)
2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[meililogistics.nebular.co.za]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(sip_to_host=meililogistics.nebular.co.za)
2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[meililogistics.nebular.co.za]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0103130060.* // 0103130060 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:13.584150 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 db(insert/pickup_any_group_/5734184911/5fde00ae-e821-11ee-9062-d17fbcf33421)
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:13.584150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0671765330@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:13.584150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 export(did_user_domain=meililogistics.nebular.co.za)
2024-03-22 07:54:13.584150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[meililogistics.nebular.co.za]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:13.924160 [NOTICE] sofia.c:1012 Hangup sofia/default/0837792192@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:13.924160 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0837792192@41.160.32.115:5060]
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
2024-03-22 07:54:13.944177 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1033021106@legalaidsa.nebular.co.za]
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]
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
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)
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
2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1033021106@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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)
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)
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
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)
2024-03-22 07:54:13.944177 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/1033021106@legalaidsa.nebular.co.za
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
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
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
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)
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
2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1033021106@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0837792192@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:54:13.944177 [INFO] mod_json_cdr.c:271 Process [4c888538-e821-11ee-8f6e-d17fbcf33421.cdr.json]
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
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
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
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)
2024-03-22 07:54:13.944177 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0837792192@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:13.944177 [INFO] mod_json_cdr.c:271 Process [4bdf885c-e821-11ee-8f23-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1683 Session 574985 (sofia/default/1033021106@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1033021106@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1033021106@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:13.964156 [DEBUG] mod_sofia.c:343 sofia/default/1033021106@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:181 sofia/default/1033021106@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:13.964156 [NOTICE] switch_core_session.c:1683 Session 574983 (sofia/default/0837792192@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0837792192@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:13.964156 [DEBUG] mod_sofia.c:343 sofia/default/0837792192@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:13.964156 [DEBUG] switch_core_state_machine.c:181 sofia/default/0837792192@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:14.004185 [DEBUG] switch_scheduler.c:144 Deleting task 232836 switch_ivr_schedule_hangup (4c888538-e821-11ee-8f6e-d17fbcf33421)
EXECUTE sofia/default/0671765330@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:14.604168 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0671765330@41.160.32.115:5060!
2024-03-22 07:54:14.604168 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:14.604168 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0671765330@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:14.604168 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:14.604168 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:627 (sofia/default/5734184911@meililogistics.nebular.co.za) State INIT
2024-03-22 07:54:14.604168 [DEBUG] mod_sofia.c:90 sofia/default/5734184911@meililogistics.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711068546 1711068547 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 25508 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:40 sofia/default/5734184911@meililogistics.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:643 (sofia/default/5734184911@meililogistics.nebular.co.za) State ROUTING
2024-03-22 07:54:14.604168 [DEBUG] mod_sofia.c:143 sofia/default/5734184911@meililogistics.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:662 (sofia/default/5734184911@meililogistics.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:14.604168 [DEBUG] sofia.c:7084 Channel sofia/default/5734184911@meililogistics.nebular.co.za entering state [calling][0]
2024-03-22 07:54:14.604168 [DEBUG] sofia.c:7084 Channel sofia/default/5734184911@meililogistics.nebular.co.za entering state [terminated][404]
2024-03-22 07:54:14.604168 [NOTICE] sofia.c:8273 Hangup sofia/default/5734184911@meililogistics.nebular.co.za [CS_CONSUME_MEDIA] [UNALLOCATED_NUMBER]
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)
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
2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:852 (sofia/default/5734184911@meililogistics.nebular.co.za) State HANGUP
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
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
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
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
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)
2024-03-22 07:54:14.604168 [DEBUG] switch_core_state_machine.c:938 (sofia/default/5734184911@meililogistics.nebular.co.za) State REPORTING
2024-03-22 07:54:14.604168 [INFO] mod_json_cdr.c:271 Process [60873e76-e821-11ee-908b-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:14.624155 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 1 [UNALLOCATED_NUMBER]
2024-03-22 07:54:14.624155 [NOTICE] switch_core_session.c:1683 Session 574999 (sofia/default/5734184911@meililogistics.nebular.co.za) Ended
2024-03-22 07:54:14.624155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/5734184911@meililogistics.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/5734184911@meililogistics.nebular.co.za) State DESTROY
2024-03-22 07:54:14.624155 [DEBUG] mod_sofia.c:343 sofia/default/5734184911@meililogistics.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:14.624155 [DEBUG] switch_core_state_machine.c:181 sofia/default/5734184911@meililogistics.nebular.co.za Standard DESTROY
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
2024-03-22 07:54:14.624155 [INFO] mod_dptools.c:3436 Originate Failed. Cause: UNALLOCATED_NUMBER
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(on_busy_flag=1)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(on_busy_destination=)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(no_answer_flag=1)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(no_answer_destination=)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(not_register_flag=1)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(not_register_destination=)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(opensips_flag=0)
2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [opensips_flag]=[0]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(variable_sip_to_host=meililogistics.nebular.co.za)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(opensips_domain=156.38.231.106)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(leg_timeout=20)
2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [leg_timeout]=[20]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(userinfo_id=107)
2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [userinfo_id]=[107]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(sip_destination_number=5734184911)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(destination_number=0103130060)
2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [destination_number]=[0103130060]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(did_number=0103130060)
2024-03-22 07:54:14.624155 [DEBUG] mod_dptools.c:1548 SET sofia/default/0671765330@41.160.32.115:5060 [did_number]=[0103130060]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 set(user_domain=meililogistics.nebular.co.za)
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]
EXECUTE sofia/default/0671765330@41.160.32.115:5060 lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
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
EXECUTE sofia/default/0671765330@41.160.32.115:5060 answer()
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
2024-03-22 07:54:14.624155 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:14.644161 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0671765330@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711066362 1711066363 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 27692 RTP/AVP 18 116
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:116 telephone-event/8000
a=fmtp:116 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:14.644161 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/0671765330@41.160.32.115:5060] has been answered
2024-03-22 07:54:14.644161 [DEBUG] switch_channel.c:3773 (sofia/default/0671765330@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:14.644161 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:14.644161 [NOTICE] switch_cpp.cpp:1365 [Astpp_SIP-Devices] Dialed User For Voicemail :5734184911
EXECUTE sofia/default/0671765330@41.160.32.115:5060 voicemail(default meililogistics.nebular.co.za 5734184911)
2024-03-22 07:54:14.744213 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
2024-03-22 07:54:14.764172 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-person.wav] (en:en)
2024-03-22 07:54:14.764172 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
2024-03-22 07:54:14.764172 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda896d6e0 0x7feda896d6e0
2024-03-22 07:54:14.764172 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda896d6e0 0x7feda896d6e0
2024-03-22 07:54:15.104874 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:15.224168 [DEBUG] sofia.c:7084 Channel sofia/default/0671765330@41.160.32.115:5060 entering state [ready][200]
2024-03-22 07:54:15.824162 [NOTICE] sofia.c:1012 Hangup sofia/default/1730119070@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:15.824162 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1730119070@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1730119070@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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)
2024-03-22 07:54:15.824162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1730119070@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:15.824162 [INFO] mod_json_cdr.c:271 Process [4a128f4c-e821-11ee-8ef1-d17fbcf33421.cdr.json]
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
2024-03-22 07:54:15.844288 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0728413043@41.160.32.115:5060]
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)
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]
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)
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
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)
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
2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728413043@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:54:15.844288 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0728413043@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728413043@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:15.844288 [INFO] mod_json_cdr.c:271 Process [496939ba-e821-11ee-8ec9-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:15.844288 [NOTICE] switch_core_session.c:1683 Session 574979 (sofia/default/1730119070@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:15.844288 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1730119070@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1730119070@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:15.844288 [DEBUG] mod_sofia.c:343 sofia/default/1730119070@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:15.844288 [DEBUG] switch_core_state_machine.c:181 sofia/default/1730119070@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:15.864310 [NOTICE] switch_core_session.c:1683 Session 574978 (sofia/default/0728413043@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728413043@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:15.864310 [DEBUG] mod_sofia.c:343 sofia/default/0728413043@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:15.864310 [DEBUG] switch_core_state_machine.c:181 sofia/default/0728413043@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:16.004174 [DEBUG] switch_scheduler.c:144 Deleting task 232833 switch_ivr_schedule_hangup (4a128f4c-e821-11ee-8ef1-d17fbcf33421)
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
2024-03-22 07:54:16.224165 [DEBUG] switch_ivr_play_say.c:250 Handle say:[5734184911] (en:en)
2024-03-22 07:54:16.244225 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
2024-03-22 07:54:16.264188 [NOTICE] sofia.c:1012 Hangup sofia/default/0732745146@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:16.264188 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0732745146@41.160.32.115:5060]
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
2024-03-22 07:54:16.284166 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/2123267554@legalaidsa.nebular.co.za]
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]
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
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)
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
2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2123267554@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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)
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)
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
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)
2024-03-22 07:54:16.284166 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/2123267554@legalaidsa.nebular.co.za
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
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
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
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
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)
2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0732745146@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2123267554@legalaidsa.nebular.co.za) State REPORTING
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
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
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
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)
2024-03-22 07:54:16.284166 [INFO] mod_json_cdr.c:271 Process [53aba534-e821-11ee-8fe2-d17fbcf33421.cdr.json]
2024-03-22 07:54:16.284166 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0732745146@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:16.284166 [INFO] mod_json_cdr.c:271 Process [5300f0b2-e821-11ee-8fba-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:16.304159 [NOTICE] switch_core_session.c:1683 Session 574991 (sofia/default/2123267554@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:16.304159 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/2123267554@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2123267554@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:16.304159 [DEBUG] mod_sofia.c:343 sofia/default/2123267554@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:16.304159 [DEBUG] switch_core_state_machine.c:181 sofia/default/2123267554@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:16.324153 [NOTICE] switch_core_session.c:1683 Session 574990 (sofia/default/0732745146@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0732745146@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:16.324153 [DEBUG] mod_sofia.c:343 sofia/default/0732745146@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:16.324153 [DEBUG] switch_core_state_machine.c:181 sofia/default/0732745146@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:16.504261 [DEBUG] switch_scheduler.c:144 Deleting task 232839 switch_ivr_schedule_hangup (53aba534-e821-11ee-8fe2-d17fbcf33421)
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]
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)
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
2024-03-22 07:54:17.384171 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:17.384171 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:17.384171 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 329068314624 303298510849 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10488 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:17.384171 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:17.384171 [DEBUG] mod_sofia.c:90 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:40 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:17.384171 [DEBUG] switch_channel.c:2249 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:17.384171 [DEBUG] mod_sofia.c:143 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:17.384171 [DEBUG] switch_core_state_machine.c:236 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:17.384171 [INFO] mod_dialplan_xml.c:637 Processing 0543379200 <0543379200>->0787850991 in context default
2024-03-22 07:54:17.384171 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:17.384171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0787850991
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
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
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
2024-03-22 07:54:17.404159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0543379200 / 0543379200
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
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
2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:54:17.404159 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0787850991
2024-03-22 07:54:17.404159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0787850991
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
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
2024-03-22 07:54:17.404159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0787850991
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
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
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:17.424179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0787850991)!!!!
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27787850991
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
2024-03-22 07:54:17.424179 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0787850991)!!!!
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:17.424179 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0543379200
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
2024-03-22 07:54:17.424179 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148463
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:17.444184 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:54:17.444184 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426365
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
2024-03-22 07:54:17.444184 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:17.444184 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148463
2024-03-22 07:54:17.444184 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:17.464153 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0787850991
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
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
2024-03-22 07:54:17.464153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0787850991">
<condition field="destination_number" expression="0787850991">
<action application="set" data="effective_destination_number=0787850991"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:17"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0543379200"/>
<action application="set" data="original_caller_id_number=0543379200"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0543379200"/>
<action application="set" data="effective_caller_id_number=0543379200"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148463"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:17.464153 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 parsing [default->0787850991] continue=false
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Regex (PASS) [0787850991] destination_number(0787850991) =~ /0787850991/ break=on-false
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0787850991)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:17)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0543379200)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0543379200)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0543379200)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0543379200)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148463)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:198 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0543379200@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0787850991)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:17)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0543379200)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0543379200)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:17.464153 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:17.464153 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 11/200
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:54:17.464153 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:54:17.464153 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 12/800
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0543379200)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0543379200)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148463)
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]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:54:17.464153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0543379200@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:54:17.464153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0543379200@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:54:17.464153 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:17.464153 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:54:17.464153 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0787850991 [623d528c-e821-11ee-90c6-d17fbcf33421]
2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:4819 (sofia/default/0787850991) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0787850991) State INIT
2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:90 sofia/default/0787850991 SOFIA INIT
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
2024-03-22 07:54:17.464153 [DEBUG] sofia_glue.c:1295 sofia/default/0787850991 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711072767 1711072768 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 21290 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:40 sofia/default/0787850991 Standard INIT
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0787850991) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0787850991) State INIT going to sleep
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)
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0787850991) State ROUTING
2024-03-22 07:54:17.464153 [DEBUG] mod_sofia.c:143 sofia/default/0787850991 SOFIA ROUTING
2024-03-22 07:54:17.464153 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0787850991) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0787850991) State ROUTING going to sleep
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)
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0787850991) State CONSUME_MEDIA
2024-03-22 07:54:17.464153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0787850991) State CONSUME_MEDIA going to sleep
2024-03-22 07:54:17.464153 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [calling][0]
2024-03-22 07:54:18.804318 [NOTICE] sofia.c:1012 Hangup sofia/default/0671765330@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
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
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)
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
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)
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
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)
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
2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0671765330@41.160.32.115:5060) State HANGUP
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
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
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
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
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
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)
2024-03-22 07:54:18.804318 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0671765330@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:18.804318 [INFO] mod_json_cdr.c:271 Process [5fde00ae-e821-11ee-9062-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:18.824154 [NOTICE] switch_core_session.c:1683 Session 574998 (sofia/default/0671765330@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0671765330@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:18.824154 [DEBUG] mod_sofia.c:343 sofia/default/0671765330@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:18.824154 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda896d6e0 0x7feda896d6e0
2024-03-22 07:54:18.824154 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda896d6e0 0x7feda896d6e0
2024-03-22 07:54:18.824154 [DEBUG] switch_core_state_machine.c:181 sofia/default/0671765330@41.160.32.115:5060 Standard DESTROY
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
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]
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)
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
2024-03-22 07:54:18.904158 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:18.904158 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:18.904158 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 415303204864 233622732801 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10490 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:18.904158 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:18.904158 [DEBUG] mod_sofia.c:90 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:40 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:18.904158 [DEBUG] switch_channel.c:2249 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:18.904158 [DEBUG] mod_sofia.c:143 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:18.904158 [DEBUG] switch_core_state_machine.c:236 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:18.904158 [INFO] mod_dialplan_xml.c:637 Processing 0514479915 <0514479915>->0780824496 in context default
2024-03-22 07:54:18.904158 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:18.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0780824496
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
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
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
2024-03-22 07:54:18.924157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0514479915 / 0514479915
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
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
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:54:18.924157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0780824496
2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0780824496
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
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
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0780824496
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
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
2024-03-22 07:54:18.924157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:18.924157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0780824496)!!!!
2024-03-22 07:54:18.924157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27780824496
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
2024-03-22 07:54:18.944470 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0780824496)!!!!
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0514479915
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
2024-03-22 07:54:18.944470 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148463
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - MTN - MOBILE
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:18.944470 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:18.944470 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:54:18.944470 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426365
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D083-MTN
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
2024-03-22 07:54:18.964165 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148463
2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:18.964165 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0780824496
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
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
2024-03-22 07:54:18.964165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0780824496">
<condition field="destination_number" expression="0780824496">
<action application="set" data="effective_destination_number=0780824496"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:18"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0514479915"/>
<action application="set" data="original_caller_id_number=0514479915"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0514479915"/>
<action application="set" data="effective_caller_id_number=0514479915"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148463"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:18.964165 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 parsing [default->0780824496] continue=false
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Regex (PASS) [0780824496] destination_number(0780824496) =~ /0780824496/ break=on-false
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0780824496)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:18)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0514479915)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148463)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:18.964165 [DEBUG] mod_sofia.c:198 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:18.964165 [DEBUG] switch_core_state_machine.c:328 sofia/default/0514479915@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0780824496)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:18)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:18.964165 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:18.964165 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:18.964165 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 12/200
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:54:18.984211 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:54:18.984211 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 13/800
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0514479915)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148463)
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]
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
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]
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)
EXECUTE sofia/default/0514479915@legalaidsa.nebular.co.za:5060 set(intcall=0)
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
2024-03-22 07:54:18.984211 [DEBUG] mod_dptools.c:1548 SET sofia/default/0514479915@legalaidsa.nebular.co.za:5060 [intcall]=[0]
2024-03-22 07:54:18.984211 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
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)
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]
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)
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
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
2024-03-22 07:54:18.984211 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:18.984211 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:54:18.984211 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0780824496 [632343c8-e821-11ee-90ef-d17fbcf33421]
2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:4819 (sofia/default/0780824496) State Change CS_NEW -> CS_INIT
2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 132986350746624 132986350746624 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24810 RTP/AVP 8 0 18 4 2 98 99 97
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:4 G723/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:98 G726-40/8000
a=rtpmap:99 G726-32/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-15
a=ptime:20
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)
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0780824496) State INIT
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
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]
2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:90 sofia/default/0780824496 SOFIA INIT
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 97@8000
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
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
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
2024-03-22 07:54:18.984211 [DEBUG] sofia_glue.c:1295 sofia/default/0780824496 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711073586 1711073587 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 20472 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:40 sofia/default/0780824496 Standard INIT
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0780824496) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0780824496) State INIT going to sleep
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)
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0780824496) State ROUTING
2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:143 sofia/default/0780824496 SOFIA ROUTING
2024-03-22 07:54:18.984211 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0780824496) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0780824496) State ROUTING going to sleep
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)
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0780824496) State CONSUME_MEDIA
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0780824496) State CONSUME_MEDIA going to sleep
2024-03-22 07:54:18.984211 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 97@8000
2024-03-22 07:54:18.984211 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [calling][0]
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
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
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27119421172@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27119421172@41.160.32.115:5060) State INIT
2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:90 sofia/default/+27119421172@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27119421172@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:18.984211 [DEBUG] switch_channel.c:2249 (sofia/default/+27119421172@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27119421172@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:18.984211 [DEBUG] mod_sofia.c:143 sofia/default/+27119421172@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:18.984211 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27119421172@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:18.984211 [INFO] mod_dialplan_xml.c:637 Processing +27119421172 <+27119421172>->D9570117030000 in context default
2024-03-22 07:54:18.984211 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:18.984211 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:18.984211 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:18.984211 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570117030000
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
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
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
2024-03-22 07:54:19.004157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : +27119421172 / <null>
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
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
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:19.004157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
2024-03-22 07:54:19.004157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570117030000
2024-03-22 07:54:19.004157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0117030000
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
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
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0117030000
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
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:19.004157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:19.004157 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 10873
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0117030000
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:19.024154 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:19.024154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....+27119421172
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:19.024154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:19.024154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0117030000">
<condition field="destination_number" expression="D9570117030000">
<action application="set" data="effective_destination_number=0117030000"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:19"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=+27119421172"/>
<action application="set" data="effective_caller_id_name=+27119421172"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7682330505/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7682330505@legalaidsa.nebular.co.za^0117030000"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=7682330505"/>
<action application="set" data="destination_number=0117030000"/>
<action application="set" data="did_number=0117030000"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 7682330505@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0117030000"/>
<action application="voicemail" data="default $${domain_name} 7682330505"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:19.044803 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 parsing [default->0117030000] continue=false
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Regex (PASS) [0117030000] destination_number(D9570117030000) =~ /D9570117030000/ break=on-false
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(effective_destination_number=0117030000)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:19)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(original_caller_id_name=+27119421172)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(effective_caller_id_name=+27119421172)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7682330505/${uuid})
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(sip_destination_number=7682330505)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(destination_number=0117030000)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(did_number=0117030000)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27119421172@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0117030000_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/+27119421172@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27119421172@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:19.064162 [DEBUG] mod_sofia.c:198 sofia/default/+27119421172@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:19.064162 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27119421172@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(effective_destination_number=0117030000)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(callstart=2024-03-22 07:54:19)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(original_caller_id_name=+27119421172)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(effective_caller_id_name=+27119421172)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:19.064162 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27119421172@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 db(insert/pickup_any_group_/7682330505/63230930-e821-11ee-90e7-d17fbcf33421)
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:19.064162 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:19.064162 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:19.064162 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:19.484189 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [proceeding][183]
2024-03-22 07:54:19.484189 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 26587125923337 26587125923337 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24808 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:54:19.484189 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:54:19.484189 [DEBUG] switch_core_codec.c:111 sofia/default/0787850991 Original read codec set to PCMA:8
2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:19.504200 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7180 sofia/default/0787850991 Set 2833 dtmf send payload to 101
2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7187 sofia/default/0787850991 Set 2833 dtmf receive payload to 101
2024-03-22 07:54:19.504200 [DEBUG] switch_core_media.c:7210 sofia/default/0787850991 Set rtp dtmf delay to 40
2024-03-22 07:54:19.504200 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0787850991!
2024-03-22 07:54:19.504200 [DEBUG] switch_channel.c:3474 (sofia/default/0787850991) Callstate Change DOWN -> EARLY
2024-03-22 07:54:19.504200 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:54:19.504200 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:19.504200 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711066625 1711066626 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 27434 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:19.504200 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0543379200@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:19.504200 [DEBUG] switch_channel.c:3474 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:54:19.504200 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0787850991]
2024-03-22 07:54:19.504200 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:54:19.524164 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0787850991) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:54:19.524164 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0787850991) State EXCHANGE_MEDIA
2024-03-22 07:54:19.524164 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:19.704184 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0787850991 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:54:19.724201 [DEBUG] switch_ivr.c:623 sofia/default/0787850991 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0787850991 sched_hangup(+6000 normal_clearing)
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
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]
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)
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
2024-03-22 07:54:19.724201 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:19.724201 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:19.724201 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 8629867658981 8629867658981 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24814 RTP/AVP 18 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:19.724201 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0664660716@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0664660716@41.160.32.115:5060) State INIT
2024-03-22 07:54:19.724201 [DEBUG] mod_sofia.c:90 sofia/default/0664660716@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:40 sofia/default/0664660716@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:19.724201 [DEBUG] switch_channel.c:2249 (sofia/default/0664660716@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0664660716@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:19.724201 [DEBUG] mod_sofia.c:143 sofia/default/0664660716@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:19.724201 [DEBUG] switch_core_state_machine.c:236 sofia/default/0664660716@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:19.724201 [INFO] mod_dialplan_xml.c:637 Processing 0664660716 <0664660716>->D9570152912429 in context default
2024-03-22 07:54:19.724201 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:19.724201 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570152912429
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
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
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
2024-03-22 07:54:19.724201 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0664660716 / <null>
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
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
2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:19.724201 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570152912429
2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570152912429
2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570152912429
2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0152912429
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
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
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0152912429
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
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8339
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0152912429
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:19.744170 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
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
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:19.744170 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:19.744170 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:19.744170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:19.764164 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:19.764164 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0664660716
2024-03-22 07:54:19.764164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0664660716
2024-03-22 07:54:19.764164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27664660716
2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:19.764164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:19.764164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:19.764164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:19.764164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0152912429">
<condition field="destination_number" expression="D9570152912429">
<action application="set" data="effective_destination_number=0152912429"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:19"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0664660716"/>
<action application="set" data="effective_caller_id_name=27664660716"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7930557423/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/7930557423@legalaidsa.nebular.co.za^0152912429"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=7930557423"/>
<action application="set" data="destination_number=0152912429"/>
<action application="set" data="did_number=0152912429"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 7930557423@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0152912429"/>
<action application="voicemail" data="default $${domain_name} 7930557423"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:19.784162 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0664660716@41.160.32.115:5060 parsing [default->0152912429] continue=false
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Regex (PASS) [0152912429] destination_number(D9570152912429) =~ /D9570152912429/ break=on-false
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(effective_destination_number=0152912429)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:19)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(original_caller_id_name=0664660716)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(effective_caller_id_name=27664660716)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7930557423/${uuid})
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(sip_destination_number=7930557423)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(destination_number=0152912429)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(did_number=0152912429)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0664660716@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0152912429_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0664660716@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0664660716@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:19.804365 [DEBUG] mod_sofia.c:198 sofia/default/0664660716@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:19.804365 [DEBUG] switch_core_state_machine.c:328 sofia/default/0664660716@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(effective_destination_number=0152912429)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(callstart=2024-03-22 07:54:19)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(original_caller_id_name=0664660716)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(effective_caller_id_name=27664660716)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0152912429.* // 0152912429 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:19.804365 [DEBUG] mod_dptools.c:1548 SET sofia/default/0664660716@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 db(insert/pickup_any_group_/7930557423/6393e542-e821-11ee-9116-d17fbcf33421)
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:19.804365 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0664660716@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:19.804365 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0664660716@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:19.804365 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 sleep(1000)
EXECUTE sofia/default/+27119421172@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:20.084179 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27119421172@41.160.32.115:5060!
2024-03-22 07:54:20.084179 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:20.084179 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27119421172@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:20.084179 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:20.084179 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7682330505@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:20.084179 [DEBUG] mod_sofia.c:90 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711067480 1711067481 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 26580 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:40 sofia/default/7682330505@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7682330505@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:20.084179 [DEBUG] mod_sofia.c:143 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:20.084179 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7682330505@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:20.084179 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:20.144199 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:20.144199 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7682330505@legalaidsa.nebular.co.za!
2024-03-22 07:54:20.144199 [DEBUG] switch_channel.c:3346 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:20.164157 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27119421172@41.160.32.115:5060!
2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 483133489152 305278222337 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10492 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:20.224191 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:20.224191 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:20.224191 [NOTICE] sofia.c:8218 Channel [sofia/default/7682330505@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:20.224191 [DEBUG] switch_channel.c:3773 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:20.224191 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:20.224191 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/+27119421172@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711072284 1711072285 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 21776 RTP/AVP 8 97
a=rtpmap:8 PCMA/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:20.224191 [DEBUG] switch_channel.c:3773 (sofia/default/+27119421172@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:20.224191 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:20.224191 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7682330505@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:20.224191 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:20.224191 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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)
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)
EXECUTE sofia/default/7682330505@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:54:20.584168 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:20.664906 [DEBUG] sofia.c:7084 Channel sofia/default/+27119421172@41.160.32.115:5060 entering state [ready][200]
EXECUTE sofia/default/0664660716@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:20.824176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0664660716@41.160.32.115:5060!
2024-03-22 07:54:20.824176 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:20.824176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0664660716@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:20.824176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:20.824176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7930557423@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:20.824176 [DEBUG] mod_sofia.c:90 sofia/default/7930557423@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711070274 1711070275 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 23786 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:40 sofia/default/7930557423@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7930557423@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:20.824176 [DEBUG] mod_sofia.c:143 sofia/default/7930557423@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:20.824176 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:20.824176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7930557423@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:20.884185 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [proceeding][180]
2024-03-22 07:54:20.884185 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0787850991!
2024-03-22 07:54:20.884185 [DEBUG] switch_channel.c:3346 (sofia/default/0787850991) Callstate Change EARLY -> RINGING
2024-03-22 07:54:20.964371 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:21.044181 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:21.044181 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7930557423@legalaidsa.nebular.co.za!
2024-03-22 07:54:21.044181 [DEBUG] switch_channel.c:3346 (sofia/default/7930557423@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:21.064194 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0664660716@41.160.32.115:5060!
2024-03-22 07:54:22.224166 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [completing][200]
2024-03-22 07:54:22.224166 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 100430498634112 100430498634112 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24802 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:54:22.244160 [DEBUG] sofia.c:7084 Channel sofia/default/0721141624 entering state [ready][200]
2024-03-22 07:54:22.244160 [NOTICE] sofia.c:8159 Channel [sofia/default/0721141624] has been answered
2024-03-22 07:54:22.244160 [DEBUG] switch_channel.c:3773 (sofia/default/0721141624) Callstate Change EARLY -> ACTIVE
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.
2024-03-22 07:54:22.244160 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/27118772377@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711065990 1711065992 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28060 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:22.244160 [DEBUG] switch_channel.c:3773 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:54:22.244160 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:54:22.264167 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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]
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)
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
2024-03-22 07:54:22.284177 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:22.284177 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:22.284177 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 137199713667310 137199713667310 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24816 RTP/AVP 8 0 18 4 2 98 99 97
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:4 G723/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:98 G726-40/8000
a=rtpmap:99 G726-32/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-15
a=ptime:20
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 97@8000
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
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
2024-03-22 07:54:22.284177 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 97@8000
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
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
2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27760453624@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27760453624@41.160.32.115:5060) State INIT
2024-03-22 07:54:22.284177 [DEBUG] mod_sofia.c:90 sofia/default/+27760453624@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27760453624@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:22.284177 [DEBUG] switch_channel.c:2249 (sofia/default/+27760453624@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27760453624@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:22.284177 [DEBUG] mod_sofia.c:143 sofia/default/+27760453624@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:22.284177 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27760453624@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:22.284177 [INFO] mod_dialplan_xml.c:637 Processing +27760453624 <+27760453624>->D9570117030000 in context default
2024-03-22 07:54:22.284177 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:22.304159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:22.304159 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:22.304159 [DEBUG] sofia.c:7084 Channel sofia/default/27118772377@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570117030000
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
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
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
2024-03-22 07:54:22.304159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : +27760453624 / <null>
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
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
2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:22.304159 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570117030000
2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570117030000
2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0117030000
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
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
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0117030000
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
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 10873
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0117030000
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:22.324166 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:22.324166 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:22.324166 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....+27760453624
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:22.324166 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:22.324166 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:22.344156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:22.344156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:22.344156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0117030000">
<condition field="destination_number" expression="D9570117030000">
<action application="set" data="effective_destination_number=0117030000"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:22"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=+27760453624"/>
<action application="set" data="effective_caller_id_name=+27760453624"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7682330505/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7682330505@legalaidsa.nebular.co.za^0117030000"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=7682330505"/>
<action application="set" data="destination_number=0117030000"/>
<action application="set" data="did_number=0117030000"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 7682330505@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0117030000"/>
<action application="voicemail" data="default $${domain_name} 7682330505"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:22.344156 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 parsing [default->0117030000] continue=false
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Regex (PASS) [0117030000] destination_number(D9570117030000) =~ /D9570117030000/ break=on-false
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(effective_destination_number=0117030000)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:22)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(original_caller_id_name=+27760453624)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(effective_caller_id_name=+27760453624)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7682330505/${uuid})
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(sip_destination_number=7682330505)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(destination_number=0117030000)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(did_number=0117030000)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27760453624@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0117030000_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/+27760453624@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27760453624@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:22.364164 [DEBUG] mod_sofia.c:198 sofia/default/+27760453624@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:22.364164 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27760453624@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(effective_destination_number=0117030000)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(callstart=2024-03-22 07:54:22)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(original_caller_id_name=+27760453624)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(effective_caller_id_name=+27760453624)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0117030000.* // 0117030000 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:22.364164 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:22.364164 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27760453624@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 db(insert/pickup_any_group_/7682330505/651c249c-e821-11ee-914d-d17fbcf33421)
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:22.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:22.384158 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:22.384158 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:22.384158 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:22.504181 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [proceeding][183]
2024-03-22 07:54:22.504181 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 84994386184586 84994386184586 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24812 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:54:22.504181 [DEBUG] switch_core_codec.c:111 sofia/default/0780824496 Original read codec set to PCMA:8
2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:22.504181 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:7180 sofia/default/0780824496 Set 2833 dtmf send payload to 101
2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:7187 sofia/default/0780824496 Set 2833 dtmf receive payload to 101
2024-03-22 07:54:22.504181 [DEBUG] switch_core_media.c:7210 sofia/default/0780824496 Set rtp dtmf delay to 40
2024-03-22 07:54:22.504181 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0780824496!
2024-03-22 07:54:22.504181 [DEBUG] switch_channel.c:3474 (sofia/default/0780824496) Callstate Change DOWN -> EARLY
2024-03-22 07:54:22.524793 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:54:22.524793 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:22.524793 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711065458 1711065459 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28604 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:22.524793 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0514479915@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:22.524793 [DEBUG] switch_channel.c:3474 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:54:22.524793 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0780824496]
2024-03-22 07:54:22.524793 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:54:22.524793 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0780824496) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:54:22.524793 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0780824496) State EXCHANGE_MEDIA
2024-03-22 07:54:22.524793 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:22.704179 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0780824496 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:54:22.724161 [DEBUG] switch_ivr.c:623 sofia/default/0780824496 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0780824496 sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:54:22.864284 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:22.864284 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 522408951808 47915728897 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10494 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:22.864284 [DEBUG] sofia.c:7084 Channel sofia/default/7930557423@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:22.864284 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:22.864284 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:22.864284 [NOTICE] sofia.c:8218 Channel [sofia/default/7930557423@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:22.864284 [DEBUG] switch_channel.c:3773 (sofia/default/7930557423@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:22.884190 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:22.884190 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0664660716@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711074870 1711074871 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 19192 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:22.884190 [DEBUG] switch_channel.c:3773 (sofia/default/0664660716@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:22.884190 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:22.884190 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7930557423@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:22.884190 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7930557423@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:22.884190 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:22.984155 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:23.044190 [DEBUG] sofia.c:7084 Channel sofia/default/0664660716@41.160.32.115:5060 entering state [ready][200]
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)
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)
EXECUTE sofia/default/7930557423@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:54:23.184179 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:23.264226 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [proceeding][180]
2024-03-22 07:54:23.264226 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0780824496!
2024-03-22 07:54:23.264226 [DEBUG] switch_channel.c:3346 (sofia/default/0780824496) Callstate Change EARLY -> RINGING
EXECUTE sofia/default/+27760453624@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:23.384167 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27760453624@41.160.32.115:5060!
2024-03-22 07:54:23.384167 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:23.384167 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27760453624@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:23.384167 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:23.384167 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7682330505@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:23.384167 [DEBUG] mod_sofia.c:90 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711065683 1711065684 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28380 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:40 sofia/default/7682330505@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7682330505@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:23.384167 [DEBUG] mod_sofia.c:143 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:23.384167 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:23.384167 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7682330505@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:23.504165 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:23.504165 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7682330505@legalaidsa.nebular.co.za!
2024-03-22 07:54:23.504165 [DEBUG] switch_channel.c:3346 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:23.504165 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27760453624@41.160.32.115:5060!
2024-03-22 07:54:23.624298 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:23.624298 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 116031225856 490230251521 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10496 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:23.624298 [DEBUG] sofia.c:7084 Channel sofia/default/7682330505@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:23.624298 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:23.624298 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:23.624298 [NOTICE] sofia.c:8218 Channel [sofia/default/7682330505@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:23.624298 [DEBUG] switch_channel.c:3773 (sofia/default/7682330505@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:23.624298 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:23.624298 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/+27760453624@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711065963 1711065964 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28100 RTP/AVP 8 97
a=rtpmap:8 PCMA/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:23.644320 [DEBUG] switch_channel.c:3773 (sofia/default/+27760453624@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:23.644320 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7682330505@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7682330505@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:23.644320 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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]
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)
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
2024-03-22 07:54:23.644320 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:23.644320 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 2702812794430 2702812794430 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24818 RTP/AVP 18 4 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:23.644320 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:603 (sofia/default/027670264866@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:627 (sofia/default/027670264866@41.160.32.115:5060) State INIT
2024-03-22 07:54:23.644320 [DEBUG] mod_sofia.c:90 sofia/default/027670264866@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:40 sofia/default/027670264866@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:23.644320 [DEBUG] switch_channel.c:2249 (sofia/default/027670264866@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:643 (sofia/default/027670264866@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:23.644320 [DEBUG] mod_sofia.c:143 sofia/default/027670264866@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:23.644320 [DEBUG] switch_core_state_machine.c:236 sofia/default/027670264866@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:23.644320 [INFO] mod_dialplan_xml.c:637 Processing 027670264866 <0670264866>->D9570114034300 in context default
2024-03-22 07:54:23.644320 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570114034300
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
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
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
2024-03-22 07:54:23.664152 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 027670264866 / <null>
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
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
2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:23.664152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:23.664152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570114034300
2024-03-22 07:54:23.664152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570114034300
2024-03-22 07:54:23.664152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570114034300
2024-03-22 07:54:23.664152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0114034300
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
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
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0114034300
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
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 4755
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0114034300
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:23.684164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++89
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
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 89 limit 1
2024-03-22 07:54:23.684164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : metrobus.nebular.co.za
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:23.684164 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....027670264866
2024-03-22 07:54:23.684164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 027670264866
2024-03-22 07:54:23.684164 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 2727670264866
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 89 limit 1
2024-03-22 07:54:23.684164 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : metrobus.nebular.co.za
2024-03-22 07:54:23.684164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_0
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
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
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
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
2024-03-22 07:54:23.704154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforemetrobus.nebular.co.za
2024-03-22 07:54:23.704154 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
2024-03-22 07:54:23.704154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 961
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
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
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
2024-03-22 07:54:23.704154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] call_forwarding_flag : 1
2024-03-22 07:54:23.704154 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX_SIP_ROUTING] SIP Call forwarding Disable
2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:23.704154 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0114034300">
<condition field="destination_number" expression="D9570114034300">
<action application="set" data="effective_destination_number=0114034300"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:23"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=027670264866"/>
<action application="set" data="effective_caller_id_name=2727670264866"/>
<action application="set" data="receiver_accid=89"/>
<action application="export" data="domain_name=metrobus.nebular.co.za"/>
<action application="export" data="sip_to_host=metrobus.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=0"/>
<action application="set" data="calltype=DID-LOCAL"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7542292398/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=metrobus.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="set" data="sip_h_X-call-type=did"/>
<action application="set" data="sip_h_X-did-call-type=DID-LOCAL"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7542292398/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<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"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=metrobus.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=89"/>
<action application="set" data="sip_destination_number=7542292398"/>
<action application="set" data="did_number=7542292398"/>
<action application="set" data="user_domain=metrobus.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=metrobus.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=89"/>
<action application="set" data="sip_destination_number=7542292398"/>
<action application="set" data="destination_number=0114034300"/>
<action application="set" data="did_number=0114034300"/>
<action application="set" data="user_domain=metrobus.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 7542292398@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0114034300"/>
<action application="voicemail" data="default $${domain_name} 7542292398"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:23.724516 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/027670264866@41.160.32.115:5060 parsing [default->0114034300] continue=false
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Regex (PASS) [0114034300] destination_number(D9570114034300) =~ /D9570114034300/ break=on-false
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(effective_destination_number=0114034300)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:23)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(original_caller_id_name=027670264866)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(effective_caller_id_name=2727670264866)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(receiver_accid=89)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(domain_name=metrobus.nebular.co.za)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(sip_to_host=metrobus.nebular.co.za)
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)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(call_type=0)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(calltype=DID-LOCAL)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7542292398/${uuid})
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(did_user_domain=metrobus.nebular.co.za)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action ring_ready()
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_h_X-call-type=did)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_h_X-did-call-type=DID-LOCAL)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7542292398/${uuid})
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(hangup_after_bridge=true)
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)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action ring_ready()
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(variable_sip_to_host=metrobus.nebular.co.za)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(userinfo_id=89)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_destination_number=7542292398)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(did_number=7542292398)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(user_domain=metrobus.nebular.co.za)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(variable_sip_to_host=metrobus.nebular.co.za)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(userinfo_id=89)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(sip_destination_number=7542292398)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(destination_number=0114034300)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(did_number=0114034300)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action set(user_domain=metrobus.nebular.co.za)
Dialplan: sofia/default/027670264866@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0114034300_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/027670264866@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:650 (sofia/default/027670264866@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:23.744156 [DEBUG] mod_sofia.c:198 sofia/default/027670264866@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:23.744156 [DEBUG] switch_core_state_machine.c:328 sofia/default/027670264866@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(effective_destination_number=0114034300)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(callstart=2024-03-22 07:54:23)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(original_caller_id_name=027670264866)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(effective_caller_id_name=2727670264866)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(receiver_accid=89)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [receiver_accid]=[89]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(domain_name=metrobus.nebular.co.za)
2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[metrobus.nebular.co.za]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(sip_to_host=metrobus.nebular.co.za)
2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[metrobus.nebular.co.za]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0114034300.* // 0114034300 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(call_type=0)
2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[0]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(calltype=DID-LOCAL)
2024-03-22 07:54:23.744156 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [calltype]=[DID-LOCAL]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 db(insert/pickup_any_group_/7542292398/65ebda98-e821-11ee-917e-d17fbcf33421)
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:23.744156 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:23.744156 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(did_user_domain=metrobus.nebular.co.za)
2024-03-22 07:54:23.744156 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[metrobus.nebular.co.za]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 sleep(1000)
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)
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)
EXECUTE sofia/default/7682330505@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
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
2024-03-22 07:54:23.904192 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:23.984178 [DEBUG] sofia.c:7084 Channel sofia/default/+27760453624@41.160.32.115:5060 entering state [ready][200]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:24.764189 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/027670264866@41.160.32.115:5060!
2024-03-22 07:54:24.764189 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:24.764189 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/027670264866@41.160.32.115:5060!
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(sip_h_X-call-type=did)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(sip_h_X-did-call-type=DID-LOCAL)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 db(insert/pickup_any_group_/7542292398/65ebda98-e821-11ee-917e-d17fbcf33421)
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:24.764189 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:24.764189 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/027670264866@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:24.764189 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
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)
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
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
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
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
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
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
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
2024-03-22 07:54:24.764189 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:24.764189 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7542292398@metrobus.nebular.co.za) State INIT
2024-03-22 07:54:24.764189 [DEBUG] mod_sofia.c:90 sofia/default/7542292398@metrobus.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711064626 1711064627 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 29438 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:40 sofia/default/7542292398@metrobus.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7542292398@metrobus.nebular.co.za) State ROUTING
2024-03-22 07:54:24.764189 [DEBUG] mod_sofia.c:143 sofia/default/7542292398@metrobus.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:24.764189 [DEBUG] sofia.c:7084 Channel sofia/default/7542292398@metrobus.nebular.co.za entering state [calling][0]
2024-03-22 07:54:24.764189 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7542292398@metrobus.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:24.824181 [NOTICE] sofia.c:1012 Hangup sofia/default/+27101360423@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:24.824181 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27101360423@41.160.32.115:5060]
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
2024-03-22 07:54:24.844161 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0124315000@sip.saqa.ocularcloud.com]
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]
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
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)
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
2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State HANGUP
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
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
2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0124315000@sip.saqa.ocularcloud.com
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
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
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
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)
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)
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)
2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State REPORTING
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)
2024-03-22 07:54:24.844161 [INFO] mod_json_cdr.c:271 Process [13283fdc-e820-11ee-aeef-d17fbcf33421.cdr.json]
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
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)
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
2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27101360423@41.160.32.115:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27101360423@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:24.844161 [INFO] mod_json_cdr.c:271 Process [131cfb5e-e820-11ee-aed2-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:24.844161 [NOTICE] switch_core_session.c:1683 Session 574604 (sofia/default/0124315000@sip.saqa.ocularcloud.com) Ended
2024-03-22 07:54:24.844161 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0124315000@sip.saqa.ocularcloud.com [CS_DESTROY]
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)
2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0124315000@sip.saqa.ocularcloud.com) State DESTROY
2024-03-22 07:54:24.844161 [DEBUG] mod_sofia.c:343 sofia/default/0124315000@sip.saqa.ocularcloud.com SOFIA DESTROY
2024-03-22 07:54:24.844161 [DEBUG] switch_core_state_machine.c:181 sofia/default/0124315000@sip.saqa.ocularcloud.com Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:24.864159 [NOTICE] switch_core_session.c:1683 Session 574603 (sofia/default/+27101360423@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27101360423@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:24.864159 [DEBUG] mod_sofia.c:343 sofia/default/+27101360423@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:24.864159 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27101360423@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:25.344188 [DEBUG] switch_scheduler.c:144 Deleting task 232681 switch_ivr_schedule_hangup (13283fdc-e820-11ee-aeef-d17fbcf33421)
2024-03-22 07:54:25.764173 [NOTICE] sofia.c:1012 Hangup sofia/default/0638698412@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:25.764173 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0638698412@41.160.32.115:5060]
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
2024-03-22 07:54:25.784171 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/4607597910@legalaidsa.nebular.co.za]
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]
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
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)
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
2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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)
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)
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
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)
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
2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0638698412@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/4607597910@legalaidsa.nebular.co.za
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
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
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
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)
2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING
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
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
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
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)
2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0638698412@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:25.784171 [INFO] mod_json_cdr.c:271 Process [28f32a42-e821-11ee-8b27-d17fbcf33421.cdr.json]
2024-03-22 07:54:25.784171 [INFO] mod_json_cdr.c:271 Process [2848ca48-e821-11ee-8ad8-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:25.784171 [NOTICE] switch_core_session.c:1683 Session 574935 (sofia/default/4607597910@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:25.784171 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/4607597910@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:25.784171 [DEBUG] mod_sofia.c:343 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:25.784171 [DEBUG] switch_core_state_machine.c:181 sofia/default/4607597910@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:25.804165 [NOTICE] switch_core_session.c:1683 Session 574932 (sofia/default/0638698412@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0638698412@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:25.804165 [DEBUG] mod_sofia.c:343 sofia/default/0638698412@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:25.804165 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda818e0e0 0x7feda818e0e0
2024-03-22 07:54:25.804165 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda818e0e0 0x7feda818e0e0
2024-03-22 07:54:25.804165 [DEBUG] switch_core_state_machine.c:181 sofia/default/0638698412@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:25.844177 [DEBUG] switch_scheduler.c:144 Deleting task 232815 switch_ivr_schedule_hangup (28f32a42-e821-11ee-8b27-d17fbcf33421)
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]
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)
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
2024-03-22 07:54:26.304190 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:26.304190 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:26.304190 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 75137436244130 75137436244130 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24820 RTP/AVP 18 8 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:26.304190 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0791373341@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0791373341@41.160.32.115:5060) State INIT
2024-03-22 07:54:26.304190 [DEBUG] mod_sofia.c:90 sofia/default/0791373341@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:40 sofia/default/0791373341@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:26.304190 [DEBUG] switch_channel.c:2249 (sofia/default/0791373341@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0791373341@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:26.304190 [DEBUG] mod_sofia.c:143 sofia/default/0791373341@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:26.304190 [DEBUG] switch_core_state_machine.c:236 sofia/default/0791373341@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:26.304190 [INFO] mod_dialplan_xml.c:637 Processing 0791373341 <0791373341>->D9570538322348 in context default
2024-03-22 07:54:26.304190 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:26.324165 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570538322348
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
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
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
2024-03-22 07:54:26.324165 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0791373341 / <null>
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
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
2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:26.324165 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:26.344336 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570538322348
2024-03-22 07:54:26.344336 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570538322348
2024-03-22 07:54:26.344336 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570538322348
2024-03-22 07:54:26.344336 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0538322348
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
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
2024-03-22 07:54:26.344336 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0538322348
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
2024-03-22 07:54:26.344336 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8483
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0538322348
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:26.364204 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:26.364204 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:26.364204 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0791373341
2024-03-22 07:54:26.364204 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0791373341
2024-03-22 07:54:26.364204 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27791373341
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:26.364204 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:26.364204 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:26.384159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:26.384159 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:26.384159 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0538322348">
<condition field="destination_number" expression="D9570538322348">
<action application="set" data="effective_destination_number=0538322348"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:26"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0791373341"/>
<action application="set" data="effective_caller_id_name=27791373341"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/6846529717/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/6846529717@legalaidsa.nebular.co.za^0538322348"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=6846529717"/>
<action application="set" data="destination_number=0538322348"/>
<action application="set" data="did_number=0538322348"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 6846529717@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0538322348"/>
<action application="voicemail" data="default $${domain_name} 6846529717"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:26.384159 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0791373341@41.160.32.115:5060 parsing [default->0538322348] continue=false
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Regex (PASS) [0538322348] destination_number(D9570538322348) =~ /D9570538322348/ break=on-false
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(effective_destination_number=0538322348)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:26)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(original_caller_id_name=0791373341)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(effective_caller_id_name=27791373341)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/6846529717/${uuid})
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(sip_destination_number=6846529717)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(destination_number=0538322348)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(did_number=0538322348)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0791373341@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0538322348_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0791373341@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0791373341@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:26.404159 [DEBUG] mod_sofia.c:198 sofia/default/0791373341@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:26.404159 [DEBUG] switch_core_state_machine.c:328 sofia/default/0791373341@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(effective_destination_number=0538322348)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(callstart=2024-03-22 07:54:26)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:26.404159 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(original_caller_id_name=0791373341)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(effective_caller_id_name=27791373341)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0538322348.* // 0538322348 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:26.425308 [DEBUG] mod_dptools.c:1548 SET sofia/default/0791373341@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 db(insert/pickup_any_group_/6846529717/6781adc4-e821-11ee-91b3-d17fbcf33421)
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:26.425308 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0791373341@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:26.425308 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0791373341@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:26.425308 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0791373341@41.160.32.115:5060 sleep(1000)
EXECUTE sofia/default/0791373341@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:27.424176 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0791373341@41.160.32.115:5060!
2024-03-22 07:54:27.424176 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:27.424176 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0791373341@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:27.424176 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:27.424176 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6846529717@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:27.424176 [DEBUG] mod_sofia.c:90 sofia/default/6846529717@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711068151 1711068152 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 25916 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:40 sofia/default/6846529717@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:27.424176 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6846529717@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:27.424176 [DEBUG] mod_sofia.c:143 sofia/default/6846529717@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:27.424176 [DEBUG] switch_core_state_machine.c:662 (sofia/default/6846529717@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:27.724180 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:27.724180 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/6846529717@legalaidsa.nebular.co.za!
2024-03-22 07:54:27.724180 [DEBUG] switch_channel.c:3346 (sofia/default/6846529717@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:27.744163 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0791373341@41.160.32.115:5060!
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]
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)
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
2024-03-22 07:54:28.444156 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:28.444156 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:28.444156 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 386681274368 330276274177 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 9000 RTP/AVP 8 0 9 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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]
2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:28.444156 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:28.444156 [DEBUG] mod_sofia.c:90 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:40 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:28.444156 [DEBUG] switch_channel.c:2249 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:28.444156 [DEBUG] mod_sofia.c:143 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:28.444156 [DEBUG] switch_core_state_machine.c:236 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:28.444156 [INFO] mod_dialplan_xml.c:637 Processing 0458073204 <0458073204>->0645582716 in context default
2024-03-22 07:54:28.444156 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:28.444156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0645582716
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
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
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
2024-03-22 07:54:28.444156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0458073204 / 0458073204
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
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
2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:28.444156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
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
2024-03-22 07:54:28.464215 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0645582716
2024-03-22 07:54:28.464215 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"27/0,00/99".....0645582716
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
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
2024-03-22 07:54:28.464215 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0645582716
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
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
2024-03-22 07:54:28.464215 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : outbound
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
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:28.484171 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Get Destination Number (0645582716)!!!!
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] Ported Number :27645582716
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
2024-03-22 07:54:28.484171 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [PORTED_NUMBER] After Append Ported Number : (0645582716)!!!!
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:28.484171 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"D871/,D874/,D912/".....0458073204
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
2024-03-22 07:54:28.484171 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2148337
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.44000
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : SOUTH AFRICA - CELL C - MOBILE
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:28.504157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2024-03-22 07:54:28.504157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
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
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
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
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
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : outbound
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1426255
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.29000
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : D084-CELLC
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
2024-03-22 07:54:28.504157 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
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
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [DIALPLAN] User Rate ID : 2148337
2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :0
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
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
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 183
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^0.*
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : SA
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^0.*
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 5
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : liquid_primary
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Liquid
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
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
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:28.504157 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : outbound
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
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
2024-03-22 07:54:28.504157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"+27/0".....0645582716
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
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
2024-03-22 07:54:28.524153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0645582716">
<condition field="destination_number" expression="0645582716">
<action application="set" data="effective_destination_number=0645582716"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:28"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="original_caller_id_name=0458073204"/>
<action application="set" data="original_caller_id_number=0458073204"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="limit" data="db 778509 user_778509 800 "/>
<action application="set" data="effective_caller_id_name=0458073204"/>
<action application="set" data="effective_caller_id_number=0458073204"/>
<action application="set" data="calltype=STANDARD"/>
<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"/>
<action application="set" data="trunk_id=5"/>
<action application="set" data="provider_id=3"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=2148337"/>
<action application="export" data="presence_data=trunk_id=5"/>
<action application="set" data="intcall=0"/>
<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"/>
<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"/>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:28.524153 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 parsing [default->0645582716] continue=false
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Regex (PASS) [0645582716] destination_number(0645582716) =~ /0645582716/ break=on-false
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0645582716)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:28)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(call_direction=outbound)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=0458073204)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=0458073204)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action limit(db 778509 user_778509 800 )
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=0458073204)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=0458073204)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(calltype=STANDARD)
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)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(trunk_id=5)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(provider_id=3)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(rate_flag=0)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(force_trunk_flag=2148337)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action export(presence_data=trunk_id=5)
Dialplan: sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Action set(intcall=0)
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)
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)
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
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
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)
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:198 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0458073204@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0645582716)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:28)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(call_direction=outbound)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [call_direction]=[outbound]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=0458073204)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=0458073204)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:28.524153 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:28.524153 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 limit(db 778509 user_778509 800 )
2024-03-22 07:54:28.524153 [DEBUG] switch_limit.c:126 incr called: 778509_user_778509 max:800, interval:0
2024-03-22 07:54:28.524153 [DEBUG] mod_db.c:194 Usage for 778509_user_778509 is now 14/800
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=0458073204)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=0458073204)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(calltype=STANDARD)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [calltype]=[STANDARD]
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)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(trunk_id=5)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [trunk_id]=[5]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(provider_id=3)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [provider_id]=[3]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(rate_flag=0)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [rate_flag]=[0]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(force_trunk_flag=2148337)
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]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 export(presence_data=trunk_id=5)
2024-03-22 07:54:28.524153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[trunk_id=5]
EXECUTE sofia/default/0458073204@legalaidsa.nebular.co.za:5060 set(intcall=0)
2024-03-22 07:54:28.524153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0458073204@legalaidsa.nebular.co.za:5060 [intcall]=[0]
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)
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]
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)
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
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
2024-03-22 07:54:28.524153 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:28.524153 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2024-03-22 07:54:28.524153 [NOTICE] switch_channel.c:1104 New Channel sofia/default/0645582716 [68d421fc-e821-11ee-9202-d17fbcf33421]
2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:4819 (sofia/default/0645582716) State Change CS_NEW -> CS_INIT
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)
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0645582716) State INIT
2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:90 sofia/default/0645582716 SOFIA INIT
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
2024-03-22 07:54:28.524153 [DEBUG] sofia_glue.c:1295 sofia/default/0645582716 sending invite version: 1.6.20 64bit
Local SDP:
v=0
o=FreeSWITCH 1711065764 1711065765 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28304 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:40 sofia/default/0645582716 Standard INIT
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:48 (sofia/default/0645582716) State Change CS_INIT -> CS_ROUTING
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0645582716) State INIT going to sleep
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)
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0645582716) State ROUTING
2024-03-22 07:54:28.524153 [DEBUG] mod_sofia.c:143 sofia/default/0645582716 SOFIA ROUTING
2024-03-22 07:54:28.524153 [DEBUG] switch_ivr_originate.c:67 (sofia/default/0645582716) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0645582716) State ROUTING going to sleep
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)
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0645582716) State CONSUME_MEDIA
2024-03-22 07:54:28.524153 [DEBUG] switch_core_state_machine.c:662 (sofia/default/0645582716) State CONSUME_MEDIA going to sleep
2024-03-22 07:54:28.524153 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [calling][0]
2024-03-22 07:54:28.964179 [NOTICE] sofia.c:1012 Hangup sofia/default/Anonymous@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2024-03-22 07:54:28.964179 [DEBUG] switch_ivr_play_say.c:1942 done playing file local_stream://moh
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)
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)
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)
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
2024-03-22 07:54:28.964179 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/Anonymous@41.160.32.115:5060]
2024-03-22 07:54:28.984156 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/4607597910@legalaidsa.nebular.co.za]
2024-03-22 07:54:28.984156 [DEBUG] switch_channel.c:2029 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change HELD -> UNHELD
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]
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)
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)
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
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)
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)
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
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)
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
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
2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/Anonymous@41.160.32.115:5060) State HANGUP
2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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
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
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)
2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/Anonymous@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:28.984156 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/4607597910@legalaidsa.nebular.co.za
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
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
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
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)
2024-03-22 07:54:28.984156 [INFO] mod_json_cdr.c:271 Process [3452f110-e821-11ee-8cb3-d17fbcf33421.cdr.json]
2024-03-22 07:54:28.984156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:28.984156 [INFO] mod_json_cdr.c:271 Process [34fd6da2-e821-11ee-8cdb-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1683 Session 574955 (sofia/default/4607597910@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/4607597910@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:29.004155 [DEBUG] mod_sofia.c:343 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:181 sofia/default/4607597910@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:29.004155 [NOTICE] switch_core_session.c:1683 Session 574954 (sofia/default/Anonymous@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/Anonymous@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:29.004155 [DEBUG] mod_sofia.c:343 sofia/default/Anonymous@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:29.004155 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda8489dc0 0x7feda8489dc0
2024-03-22 07:54:29.004155 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda8489dc0 0x7feda8489dc0
2024-03-22 07:54:29.004155 [DEBUG] switch_core_state_machine.c:181 sofia/default/Anonymous@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:29.344187 [DEBUG] switch_scheduler.c:144 Deleting task 232826 switch_ivr_schedule_hangup (34fd6da2-e821-11ee-8cdb-d17fbcf33421)
2024-03-22 07:54:31.444197 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [proceeding][183]
2024-03-22 07:54:31.444197 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 123232480029889 123232480029889 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24822 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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]
2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
2024-03-22 07:54:31.444197 [DEBUG] switch_core_codec.c:111 sofia/default/0645582716 Original read codec set to PCMA:8
2024-03-22 07:54:31.444197 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:31.464953 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7180 sofia/default/0645582716 Set 2833 dtmf send payload to 101
2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7187 sofia/default/0645582716 Set 2833 dtmf receive payload to 101
2024-03-22 07:54:31.464953 [DEBUG] switch_core_media.c:7210 sofia/default/0645582716 Set rtp dtmf delay to 40
2024-03-22 07:54:31.464953 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/0645582716!
2024-03-22 07:54:31.464953 [DEBUG] switch_channel.c:3474 (sofia/default/0645582716) Callstate Change DOWN -> EARLY
2024-03-22 07:54:31.464953 [INFO] switch_ivr_originate.c:3654 Sending early media
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
2024-03-22 07:54:31.464953 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:31.464953 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1711076967 1711076968 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 17104 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:31.464953 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/0458073204@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:31.464953 [DEBUG] switch_channel.c:3474 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Callstate Change RINGING -> EARLY
2024-03-22 07:54:31.464953 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/0645582716]
2024-03-22 07:54:31.464953 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [early][183]
2024-03-22 07:54:31.464953 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/0645582716) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
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)
2024-03-22 07:54:31.464953 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0645582716) State EXCHANGE_MEDIA
2024-03-22 07:54:31.464953 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:31.604172 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:31.604172 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 334739013632 238102249473 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 10498 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:31.604172 [DEBUG] sofia.c:7084 Channel sofia/default/6846529717@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:31.604172 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:31.604172 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:31.604172 [NOTICE] sofia.c:8218 Channel [sofia/default/6846529717@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:31.604172 [DEBUG] switch_channel.c:3773 (sofia/default/6846529717@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:31.624149 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:31.624149 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0791373341@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711066149 1711066150 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 27922 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:31.624149 [DEBUG] switch_channel.c:3773 (sofia/default/0791373341@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:31.624149 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:31.624149 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/6846529717@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:31.624149 [DEBUG] switch_core_state_machine.c:653 (sofia/default/6846529717@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:31.624149 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:31.665156 [DEBUG] switch_ivr_bridge.c:546 sofia/default/0645582716 Bridge execute app sched_hangup(+6000 normal_clearing)
2024-03-22 07:54:31.684160 [DEBUG] switch_ivr.c:623 sofia/default/0645582716 Command Execute sched_hangup(+6000 normal_clearing)
EXECUTE sofia/default/0645582716 sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:54:31.724167 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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
2024-03-22 07:54:31.784162 [DEBUG] sofia.c:7084 Channel sofia/default/0791373341@41.160.32.115:5060 entering state [ready][200]
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)
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)
EXECUTE sofia/default/6846529717@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:54:31.864174 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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]
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)
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
2024-03-22 07:54:31.884173 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:31.884173 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:31.884173 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 66371407998564 66371407998564 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24824 RTP/AVP 8 0 18 4 2 98 99 97
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:4 G723/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:98 G726-40/8000
a=rtpmap:99 G726-32/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-15
a=ptime:20
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 97@8000
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
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
2024-03-22 07:54:31.884173 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 97@8000
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
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
2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27310230365@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27310230365@41.160.32.115:5060) State INIT
2024-03-22 07:54:31.884173 [DEBUG] mod_sofia.c:90 sofia/default/+27310230365@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27310230365@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:31.884173 [DEBUG] switch_channel.c:2249 (sofia/default/+27310230365@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27310230365@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:31.884173 [DEBUG] mod_sofia.c:143 sofia/default/+27310230365@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:31.884173 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27310230365@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:31.884173 [INFO] mod_dialplan_xml.c:637 Processing +27310230365 <+27310230365>->D9570325332654 in context default
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
2024-03-22 07:54:31.884173 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:31.884173 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570325332654
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
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
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
2024-03-22 07:54:31.904158 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : +27310230365 / <null>
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
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
2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:31.904158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:31.904158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
2024-03-22 07:54:31.904158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
2024-03-22 07:54:31.904158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570325332654
2024-03-22 07:54:31.904158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0325332654
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
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
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
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
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:31.924156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:31.924156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:31.924156 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....+27310230365
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:31.924156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:31.924156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:31.945558 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:31.945558 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:31.945558 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0325332654">
<condition field="destination_number" expression="D9570325332654">
<action application="set" data="effective_destination_number=0325332654"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:31"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=+27310230365"/>
<action application="set" data="effective_caller_id_name=+27310230365"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=4607597910"/>
<action application="set" data="destination_number=0325332654"/>
<action application="set" data="did_number=0325332654"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0325332654"/>
<action application="voicemail" data="default $${domain_name} 4607597910"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:31.945558 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 parsing [default->0325332654] continue=false
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Regex (PASS) [0325332654] destination_number(D9570325332654) =~ /D9570325332654/ break=on-false
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(effective_destination_number=0325332654)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:31)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(original_caller_id_name=+27310230365)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(effective_caller_id_name=+27310230365)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(sip_destination_number=4607597910)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(destination_number=0325332654)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(did_number=0325332654)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/+27310230365@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27310230365@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:31.964155 [DEBUG] mod_sofia.c:198 sofia/default/+27310230365@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:31.964155 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27310230365@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(effective_destination_number=0325332654)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(callstart=2024-03-22 07:54:31)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(original_caller_id_name=+27310230365)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(effective_caller_id_name=+27310230365)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:31.964155 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:31.964155 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:31.964155 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:31.984150 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 db(insert/pickup_any_group_/4607597910/6ad391ea-e821-11ee-920a-d17fbcf33421)
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:31.984150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:31.984150 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:31.984150 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:32.644171 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [proceeding][180]
2024-03-22 07:54:32.644171 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/0645582716!
2024-03-22 07:54:32.644171 [DEBUG] switch_channel.c:3346 (sofia/default/0645582716) Callstate Change EARLY -> RINGING
2024-03-22 07:54:32.804167 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:648
2024-03-22 07:54:32.804167 [INFO] switch_channel.c:515 RECV DTMF 2:648
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
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
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
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
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
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
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
2024-03-22 07:54:32.884217 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
EXECUTE sofia/default/+27310230365@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:32.984182 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27310230365@41.160.32.115:5060!
2024-03-22 07:54:32.984182 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27310230365@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:32.984182 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:32.984182 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:32.984182 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711076026 1711076027 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 18046 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:32.984182 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
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
2024-03-22 07:54:32.984182 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [early][180]
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
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)
2024-03-22 07:54:32.984182 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:32.984182 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:33.084321 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:33.084321 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
2024-03-22 07:54:33.084321 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:33.084321 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27310230365@41.160.32.115:5060!
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]
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)
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
2024-03-22 07:54:33.184164 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:33.184164 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:33.184164 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 97542733824 507426897921 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 9004 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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
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]
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]
2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:33.184164 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:603 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:627 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:33.184164 [DEBUG] mod_sofia.c:90 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:40 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:33.184164 [DEBUG] switch_channel.c:2249 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:643 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:33.184164 [DEBUG] mod_sofia.c:143 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:33.184164 [DEBUG] switch_core_state_machine.c:236 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:33.184164 [INFO] mod_dialplan_xml.c:637 Processing +27310230365 <+27310230365>->0325332654 in context default
2024-03-22 07:54:33.184164 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:33.184164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0325332654
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
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
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
2024-03-22 07:54:33.204870 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : +27310230365 / +27310230365
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
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
2024-03-22 07:54:33.204870 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 109
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
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
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
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
2024-03-22 07:54:33.204870 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:33.204870 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19918.8835
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19918.8835 balance Accountid 109 !!!
2024-03-22 07:54:33.224161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:33.224161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.8383
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.8383 balance Accountid 13 !!!
2024-03-22 07:54:33.224161 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:109
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:109
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 109
2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:33.224161 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:33.224161 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:33.224161 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:33.224161 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:33.244197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:33.244197 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:33.244197 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0325332654">
<condition field="destination_number" expression="0325332654">
<action application="set" data="effective_destination_number=0325332654"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:33"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=+27310230365"/>
<action application="set" data="original_caller_id_number=+27310230365"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="set" data="effective_caller_id_name=+27310230365"/>
<action application="set" data="effective_caller_id_number=+27310230365"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=4607597910"/>
<action application="set" data="destination_number=0325332654"/>
<action application="set" data="did_number=0325332654"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0325332654"/>
<action application="voicemail" data="default $${domain_name} 4607597910"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:33.244197 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 parsing [default->0325332654] continue=false
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Regex (PASS) [0325332654] destination_number(0325332654) =~ /0325332654/ break=on-false
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0325332654)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:33)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(origination_rates=0)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=+27310230365)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=+27310230365)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=+27310230365)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=+27310230365)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(call_type=5)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action sleep(1000)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action ring_ready()
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)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(not_register_destination=)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(sip_destination_number=4607597910)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(destination_number=0325332654)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(did_number=0325332654)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:650 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:33.284170 [DEBUG] mod_sofia.c:198 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:33.284170 [DEBUG] switch_core_state_machine.c:328 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0325332654)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:33)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(call_direction=inbound)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [call_direction]=[inbound]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(origination_rates=0)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [origination_rates]=[0]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=+27310230365)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=+27310230365)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:33.284170 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:33.284170 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 14/200
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=+27310230365)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=+27310230365)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(receiver_accid=109)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [receiver_accid]=[109]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
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)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(call_type=5)
2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(calltype=SIP-DID)
2024-03-22 07:54:33.284170 [DEBUG] mod_dptools.c:1548 SET sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 db(insert/pickup_any_group_/4607597910/6b9af848-e821-11ee-9236-d17fbcf33421)
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:33.284170 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:33.284170 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:33.284170 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 sleep(1000)
2024-03-22 07:54:33.664159 [NOTICE] sofia.c:1012 Hangup sofia/default/0728938474 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:33.664159 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0728938474]
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0728938474) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0728938474) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728938474) State HANGUP
2024-03-22 07:54:33.664159 [DEBUG] mod_sofia.c:438 Channel sofia/default/0728938474 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:60 sofia/default/0728938474 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0728938474) State HANGUP going to sleep
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0728938474) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:54:33.664159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728938474) State REPORTING
2024-03-22 07:54:33.664159 [INFO] mod_json_cdr.c:271 Process [1e59a368-e821-11ee-8a7b-d17fbcf33421.cdr.json]
2024-03-22 07:54:33.684149 [DEBUG] switch_core_state_machine.c:174 sofia/default/0728938474 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:54:33.684149 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0728938474) State REPORTING going to sleep
2024-03-22 07:54:33.684149 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0728938474) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:54:33.684149 [DEBUG] switch_core_session.c:1665 Session 574927 (sofia/default/0728938474) Locked, Waiting on external entities
2024-03-22 07:54:33.724156 [DEBUG] switch_ivr_bridge.c:706 sofia/default/0728938474 ending bridge by request from write function
2024-03-22 07:54:33.724156 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0155331691@legalaidsa.nebular.co.za:5060]
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]
2024-03-22 07:54:33.724156 [NOTICE] switch_core_session.c:1683 Session 574927 (sofia/default/0728938474) Ended
2024-03-22 07:54:33.724156 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0728938474 [CS_DESTROY]
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)
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
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)
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)
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
2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728938474) State DESTROY
2024-03-22 07:54:33.724156 [DEBUG] mod_sofia.c:343 sofia/default/0728938474 SOFIA DESTROY
2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:181 sofia/default/0728938474 Standard DESTROY
2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0728938474) State DESTROY going to sleep
2024-03-22 07:54:33.724156 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0155331691@legalaidsa.nebular.co.za:5060
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
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
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
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)
2024-03-22 07:54:33.724156 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:54:33.724156 [INFO] mod_json_cdr.c:271 Process [1e4ceb0a-e821-11ee-8a58-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:33.744154 [NOTICE] switch_core_session.c:1683 Session 574926 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:54:33.744154 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0155331691@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:54:33.744154 [DEBUG] mod_sofia.c:343 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:54:33.744154 [INFO] mod_com_g729.c:109 DECODER DESTROYED----------->0x7feda897fa58 0x7feda897fa60
2024-03-22 07:54:33.764157 [INFO] mod_com_g729.c:112 DECODER LICENSE DEALLOCATED->0x7feda897fa58 0x7feda897fa60
2024-03-22 07:54:33.764157 [INFO] mod_com_g729.c:98 ENCODER DESTROYED----------->0x7feda897fad8 0x7feda897fad8
2024-03-22 07:54:33.764157 [INFO] mod_com_g729.c:101 ENCODER LICENSE DEALLOCATED->0x7feda897fad8 0x7feda897fad8
2024-03-22 07:54:33.764157 [DEBUG] switch_core_state_machine.c:181 sofia/default/0155331691@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:54:33.824172 [DEBUG] switch_scheduler.c:144 Deleting task 232812 switch_ivr_schedule_hangup (1e59a368-e821-11ee-8a7b-d17fbcf33421)
2024-03-22 07:54:34.224181 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [completing][200]
2024-03-22 07:54:34.224181 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 84994386184586 84994386184586 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24812 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:54:34.244158 [DEBUG] sofia.c:7084 Channel sofia/default/0780824496 entering state [ready][200]
2024-03-22 07:54:34.244158 [NOTICE] sofia.c:8159 Channel [sofia/default/0780824496] has been answered
2024-03-22 07:54:34.244158 [DEBUG] switch_channel.c:3773 (sofia/default/0780824496) Callstate Change RINGING -> ACTIVE
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.
2024-03-22 07:54:34.264162 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0514479915@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711065458 1711065460 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 28604 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:34.264162 [DEBUG] switch_channel.c:3773 (sofia/default/0514479915@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:54:34.264162 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [completed][200]
EXECUTE sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 ring_ready()
2024-03-22 07:54:34.304175 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/+27310230365@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:34.304175 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 entering state [early][180]
2024-03-22 07:54:34.304175 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/+27310230365@legalaidsa.nebular.co.za:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:34.304175 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:34.304175 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:34.304175 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711062844 1711062845 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 31230 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:34.304175 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:34.304175 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:34.304175 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:34.304175 [DEBUG] sofia.c:7084 Channel sofia/default/0514479915@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:54:34.304175 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:34.324158 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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]
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)
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
2024-03-22 07:54:34.384203 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:34.384203 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:34.384203 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 111588823693366 111588823693366 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24826 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:34.384203 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0786191654@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0786191654@41.160.32.115:5060) State INIT
2024-03-22 07:54:34.384203 [DEBUG] mod_sofia.c:90 sofia/default/0786191654@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:40 sofia/default/0786191654@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:34.384203 [DEBUG] switch_channel.c:2249 (sofia/default/0786191654@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0786191654@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:34.384203 [DEBUG] mod_sofia.c:143 sofia/default/0786191654@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:34.384203 [DEBUG] switch_core_state_machine.c:236 sofia/default/0786191654@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:34.384203 [INFO] mod_dialplan_xml.c:637 Processing 0786191654 <0786191654>->D9570392510098 in context default
2024-03-22 07:54:34.404195 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:34.404195 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570392510098
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
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
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
2024-03-22 07:54:34.404195 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0786191654 / <null>
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
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
2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:34.404195 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
2024-03-22 07:54:34.404195 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:34.404195 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
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
2024-03-22 07:54:34.404195 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
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
2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570392510098
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570392510098
2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570392510098
2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0392510098
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
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
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0392510098
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
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:34.424156 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/+27310230365@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 9059
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0392510098
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:34.424156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:34.424156 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0786191654
2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0786191654
2024-03-22 07:54:34.424156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27786191654
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:34.424156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:34.424156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:34.444147 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:34.444147 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:34.444147 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0392510098">
<condition field="destination_number" expression="D9570392510098">
<action application="set" data="effective_destination_number=0392510098"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:34"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0786191654"/>
<action application="set" data="effective_caller_id_name=27786191654"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/1025211323/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/1025211323@legalaidsa.nebular.co.za^0392510098"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=1025211323"/>
<action application="set" data="destination_number=0392510098"/>
<action application="set" data="did_number=0392510098"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 1025211323@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0392510098"/>
<action application="voicemail" data="default $${domain_name} 1025211323"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:34.444147 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0786191654@41.160.32.115:5060 parsing [default->0392510098] continue=false
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Regex (PASS) [0392510098] destination_number(D9570392510098) =~ /D9570392510098/ break=on-false
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(effective_destination_number=0392510098)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:34)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(original_caller_id_name=0786191654)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(effective_caller_id_name=27786191654)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/1025211323/${uuid})
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(sip_destination_number=1025211323)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(destination_number=0392510098)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(did_number=0392510098)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0786191654@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0392510098_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0786191654@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0786191654@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:34.464163 [DEBUG] mod_sofia.c:198 sofia/default/0786191654@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:34.464163 [DEBUG] switch_core_state_machine.c:328 sofia/default/0786191654@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(effective_destination_number=0392510098)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(callstart=2024-03-22 07:54:34)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(original_caller_id_name=0786191654)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(effective_caller_id_name=27786191654)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0392510098.* // 0392510098 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:34.484421 [DEBUG] mod_dptools.c:1548 SET sofia/default/0786191654@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 db(insert/pickup_any_group_/1025211323/6c52e354-e821-11ee-9265-d17fbcf33421)
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:34.484421 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0786191654@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:34.484421 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0786191654@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:34.484421 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:34.804168 [NOTICE] sofia.c:1012 Hangup sofia/default/+27119421172@41.160.32.115:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:34.804168 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/+27119421172@41.160.32.115:5060]
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
2024-03-22 07:54:34.824162 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7682330505@legalaidsa.nebular.co.za]
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]
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
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)
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
2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7682330505@legalaidsa.nebular.co.za) State HANGUP
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
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
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)
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)
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)
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
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)
2024-03-22 07:54:34.824162 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/7682330505@legalaidsa.nebular.co.za
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
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
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
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)
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
2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27119421172@41.160.32.115:5060) State HANGUP
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
2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7682330505@legalaidsa.nebular.co.za) State REPORTING
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
2024-03-22 07:54:34.824162 [INFO] mod_json_cdr.c:271 Process [63cb949c-e821-11ee-913e-d17fbcf33421.cdr.json]
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
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
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)
2024-03-22 07:54:34.824162 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27119421172@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:34.824162 [INFO] mod_json_cdr.c:271 Process [63230930-e821-11ee-90e7-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1683 Session 575006 (sofia/default/7682330505@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7682330505@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7682330505@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:343 sofia/default/7682330505@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:181 sofia/default/7682330505@legalaidsa.nebular.co.za Standard DESTROY
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
2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 90697629696 70783074305 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 9002 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:34.848505 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:34.848505 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
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
2024-03-22 07:54:34.848505 [NOTICE] switch_core_session.c:1683 Session 575003 (sofia/default/+27119421172@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27119421172@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:343 sofia/default/+27119421172@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27119421172@41.160.32.115:5060 Standard DESTROY
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
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
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
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
2024-03-22 07:54:34.848505 [NOTICE] sofia.c:8218 Channel [sofia/default/4607597910@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:34.848505 [DEBUG] switch_channel.c:3773 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:34.848505 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/+27310230365@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711071780 1711071781 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 22294 RTP/AVP 8 97
a=rtpmap:8 PCMA/8000
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:34.848505 [DEBUG] switch_channel.c:3773 (sofia/default/+27310230365@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:34.848505 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/4607597910@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:34.848505 [DEBUG] switch_core_state_machine.c:653 (sofia/default/4607597910@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:34.848505 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2024-03-22 07:54:34.848505 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 entering state [terminated][487]
2024-03-22 07:54:34.848505 [NOTICE] sofia.c:8273 Hangup sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [ORIGINATOR_CANCEL]
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]
2024-03-22 07:54:34.884159 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
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)
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
2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/4607597910@legalaidsa.nebular.co.za) State HANGUP
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
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
2024-03-22 07:54:34.884159 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ORIGINATOR_CANCEL
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)
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
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)
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
2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:852 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State HANGUP
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
2024-03-22 07:54:34.884159 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/4607597910@legalaidsa.nebular.co.za
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
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
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
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
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
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)
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
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)
2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:54:34.884159 [DEBUG] switch_core_state_machine.c:938 (sofia/default/4607597910@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:34.884159 [INFO] mod_json_cdr.c:271 Process [6c44a262-e821-11ee-9261-d17fbcf33421.cdr.json]
2024-03-22 07:54:34.884159 [INFO] mod_json_cdr.c:271 Process [6b9af848-e821-11ee-9236-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:34.904400 [NOTICE] switch_core_session.c:1683 Session 575019 (sofia/default/4607597910@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:34.904400 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/4607597910@legalaidsa.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:751 (sofia/default/4607597910@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:34.904400 [DEBUG] mod_sofia.c:343 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:34.904400 [DEBUG] switch_core_state_machine.c:181 sofia/default/4607597910@legalaidsa.nebular.co.za Standard DESTROY
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
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
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
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
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
2024-03-22 07:54:34.924161 [NOTICE] switch_core_session.c:1683 Session 575018 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:751 (sofia/default/+27310230365@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:54:34.924161 [DEBUG] mod_sofia.c:343 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:54:34.924161 [DEBUG] switch_core_state_machine.c:181 sofia/default/+27310230365@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
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)
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)
EXECUTE sofia/default/4607597910@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:54:35.064168 [DEBUG] switch_scheduler.c:144 Deleting task 232841 switch_ivr_schedule_hangup (63cb949c-e821-11ee-913e-d17fbcf33421)
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
2024-03-22 07:54:35.164303 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:35.224186 [DEBUG] sofia.c:7084 Channel sofia/default/+27310230365@41.160.32.115:5060 entering state [ready][200]
EXECUTE sofia/default/0786191654@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:35.484171 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0786191654@41.160.32.115:5060!
2024-03-22 07:54:35.484171 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:35.484171 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0786191654@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:35.504308 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:35.504308 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1025211323@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:35.504308 [DEBUG] mod_sofia.c:90 sofia/default/1025211323@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711070229 1711070230 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 23846 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:40 sofia/default/1025211323@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1025211323@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:35.504308 [DEBUG] mod_sofia.c:143 sofia/default/1025211323@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:35.504308 [DEBUG] switch_core_state_machine.c:662 (sofia/default/1025211323@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:35.504308 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:35.664169 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/1025211323@legalaidsa.nebular.co.za!
2024-03-22 07:54:35.664169 [DEBUG] switch_channel.c:3346 (sofia/default/1025211323@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 229428428800 282142441473 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 9008 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:35.664169 [DEBUG] sofia.c:7084 Channel sofia/default/1025211323@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:35.664169 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:35.664169 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:35.664169 [NOTICE] sofia.c:8218 Channel [sofia/default/1025211323@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:35.664169 [DEBUG] switch_channel.c:3773 (sofia/default/1025211323@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:35.684155 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0786191654@41.160.32.115:5060!
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
2024-03-22 07:54:35.684155 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:35.684155 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0786191654@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711076071 1711076072 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 18004 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:35.684155 [DEBUG] switch_channel.c:3773 (sofia/default/0786191654@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:35.684155 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/1025211323@legalaidsa.nebular.co.za]
2024-03-22 07:54:35.684155 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [completed][200]
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
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)
2024-03-22 07:54:35.684155 [DEBUG] switch_core_state_machine.c:653 (sofia/default/1025211323@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:35.684155 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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)
2024-03-22 07:54:35.884157 [DEBUG] sofia.c:7084 Channel sofia/default/0786191654@41.160.32.115:5060 entering state [ready][200]
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)
EXECUTE sofia/default/1025211323@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:54:35.924161 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
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
2024-03-22 07:54:35.964163 [NOTICE] sofia.c:1012 Hangup sofia/default/7930557423@legalaidsa.nebular.co.za [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:35.964163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/7930557423@legalaidsa.nebular.co.za]
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
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)
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
2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7930557423@legalaidsa.nebular.co.za) State HANGUP
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
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
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
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
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)
2024-03-22 07:54:35.964163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7930557423@legalaidsa.nebular.co.za) State REPORTING
2024-03-22 07:54:35.964163 [INFO] mod_json_cdr.c:271 Process [643c907a-e821-11ee-9149-d17fbcf33421.cdr.json]
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
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
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
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
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
2024-03-22 07:54:35.984384 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0664660716@41.160.32.115:5060]
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]
2024-03-22 07:54:35.984384 [NOTICE] switch_core_session.c:1683 Session 575007 (sofia/default/7930557423@legalaidsa.nebular.co.za) Ended
2024-03-22 07:54:35.984384 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7930557423@legalaidsa.nebular.co.za [CS_DESTROY]
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)
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
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)
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)
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
2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0664660716@41.160.32.115:5060) State HANGUP
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
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
2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7930557423@legalaidsa.nebular.co.za) State DESTROY
2024-03-22 07:54:35.984384 [DEBUG] mod_sofia.c:343 sofia/default/7930557423@legalaidsa.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:181 sofia/default/7930557423@legalaidsa.nebular.co.za Standard DESTROY
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
2024-03-22 07:54:35.984384 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0664660716@41.160.32.115:5060
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
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
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
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)
2024-03-22 07:54:35.984384 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0664660716@41.160.32.115:5060) State REPORTING
2024-03-22 07:54:35.984384 [INFO] mod_json_cdr.c:271 Process [6393e542-e821-11ee-9116-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:36.004155 [NOTICE] switch_core_session.c:1683 Session 575005 (sofia/default/0664660716@41.160.32.115:5060) Ended
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]
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)
2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0664660716@41.160.32.115:5060) State DESTROY
2024-03-22 07:54:36.004155 [DEBUG] mod_sofia.c:343 sofia/default/0664660716@41.160.32.115:5060 SOFIA DESTROY
2024-03-22 07:54:36.004155 [DEBUG] switch_core_state_machine.c:181 sofia/default/0664660716@41.160.32.115:5060 Standard DESTROY
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
2024-03-22 07:54:36.384174 [DEBUG] switch_scheduler.c:144 Deleting task 232843 switch_ivr_schedule_hangup (643c907a-e821-11ee-9149-d17fbcf33421)
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]
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)
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
2024-03-22 07:54:36.964164 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:36.964164 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:36.964164 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 117189461049912 117189461049912 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24828 RTP/AVP 18 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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
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]
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]
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]
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]
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]
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
2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:36.964164 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:603 (sofia/default/0738101266@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:627 (sofia/default/0738101266@41.160.32.115:5060) State INIT
2024-03-22 07:54:36.964164 [DEBUG] mod_sofia.c:90 sofia/default/0738101266@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:40 sofia/default/0738101266@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:36.964164 [DEBUG] switch_channel.c:2249 (sofia/default/0738101266@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:643 (sofia/default/0738101266@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:36.964164 [DEBUG] mod_sofia.c:143 sofia/default/0738101266@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:36.964164 [DEBUG] switch_core_state_machine.c:236 sofia/default/0738101266@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:36.964164 [INFO] mod_dialplan_xml.c:637 Processing 0738101266 <0738101266>->D9570119383547 in context default
2024-03-22 07:54:36.964164 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:36.964164 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570119383547
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
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
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
2024-03-22 07:54:36.984205 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 0738101266 / <null>
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
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
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:36.984205 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
2024-03-22 07:54:36.984205 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570119383547
2024-03-22 07:54:36.984205 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570119383547
2024-03-22 07:54:36.984205 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0119383547
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
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
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0119383547
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
2024-03-22 07:54:36.984205 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 7969
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0119383547
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:37.004156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:37.004156 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....0738101266
2024-03-22 07:54:37.004156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 0738101266
2024-03-22 07:54:37.004156 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 27738101266
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:37.004156 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:37.004156 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0119383547">
<condition field="destination_number" expression="D9570119383547">
<action application="set" data="effective_destination_number=0119383547"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:37"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=0738101266"/>
<action application="set" data="effective_caller_id_name=27738101266"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/7106027339/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=30]sofia/${sofia_profile_name}/7106027339@legalaidsa.nebular.co.za^0119383547"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=7106027339"/>
<action application="set" data="destination_number=0119383547"/>
<action application="set" data="did_number=0119383547"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 7106027339@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0119383547"/>
<action application="voicemail" data="default $${domain_name} 7106027339"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:37.024161 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/0738101266@41.160.32.115:5060 parsing [default->0119383547] continue=false
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Regex (PASS) [0119383547] destination_number(D9570119383547) =~ /D9570119383547/ break=on-false
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(effective_destination_number=0119383547)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:37)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(original_caller_id_name=0738101266)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(effective_caller_id_name=27738101266)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/7106027339/${uuid})
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(sip_destination_number=7106027339)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(destination_number=0119383547)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(did_number=0119383547)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/0738101266@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0119383547_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/0738101266@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:650 (sofia/default/0738101266@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:37.044153 [DEBUG] mod_sofia.c:198 sofia/default/0738101266@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:37.044153 [DEBUG] switch_core_state_machine.c:328 sofia/default/0738101266@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(effective_destination_number=0119383547)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(callstart=2024-03-22 07:54:37)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(original_caller_id_name=0738101266)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(effective_caller_id_name=27738101266)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0119383547.* // 0119383547 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:37.044153 [DEBUG] mod_dptools.c:1548 SET sofia/default/0738101266@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 db(insert/pickup_any_group_/7106027339/6dda285e-e821-11ee-9295-d17fbcf33421)
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:37.044153 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/0738101266@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:37.044153 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/0738101266@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:37.044153 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:37.744492 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [completing][200]
2024-03-22 07:54:37.744492 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 123232480029889 123232480029889 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24822 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:54:37.764178 [DEBUG] sofia.c:7084 Channel sofia/default/0645582716 entering state [ready][200]
2024-03-22 07:54:37.764178 [NOTICE] sofia.c:8159 Channel [sofia/default/0645582716] has been answered
2024-03-22 07:54:37.764178 [DEBUG] switch_channel.c:3773 (sofia/default/0645582716) Callstate Change RINGING -> ACTIVE
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.
2024-03-22 07:54:37.764178 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0458073204@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711076967 1711076969 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 17104 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:37.764178 [DEBUG] switch_channel.c:3773 (sofia/default/0458073204@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:54:37.764178 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:54:37.784201 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:37.824187 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:37.824187 [DEBUG] sofia.c:7084 Channel sofia/default/0458073204@legalaidsa.nebular.co.za:5060 entering state [ready][200]
EXECUTE sofia/default/0738101266@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:38.064186 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/0738101266@41.160.32.115:5060!
2024-03-22 07:54:38.064186 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:38.064186 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/0738101266@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:38.064186 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:38.064186 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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
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)
2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7106027339@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:38.064186 [DEBUG] mod_sofia.c:90 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711061330 1711061331 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 32748 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:40 sofia/default/7106027339@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7106027339@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:38.064186 [DEBUG] mod_sofia.c:143 sofia/default/7106027339@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:38.064186 [DEBUG] switch_core_state_machine.c:662 (sofia/default/7106027339@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:38.064186 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:38.304179 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:38.304179 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7106027339@legalaidsa.nebular.co.za!
2024-03-22 07:54:38.304179 [DEBUG] switch_channel.c:3346 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:38.304179 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/0738101266@41.160.32.115:5060!
2024-03-22 07:54:40.304170 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [completing][200]
2024-03-22 07:54:40.304170 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 370222825472 441542770689 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 9010 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
2024-03-22 07:54:40.304170 [DEBUG] sofia.c:7084 Channel sofia/default/7106027339@legalaidsa.nebular.co.za entering state [ready][200]
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]
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
2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:40.304170 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:40.304170 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:40.304170 [NOTICE] sofia.c:8218 Channel [sofia/default/7106027339@legalaidsa.nebular.co.za] has been answered
2024-03-22 07:54:40.304170 [DEBUG] switch_channel.c:3773 (sofia/default/7106027339@legalaidsa.nebular.co.za) Callstate Change RINGING -> ACTIVE
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
2024-03-22 07:54:40.324174 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:40.324174 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0738101266@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711077580 1711077581 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 16500 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:40.324174 [DEBUG] switch_channel.c:3773 (sofia/default/0738101266@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:40.324174 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:40.324174 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/7106027339@legalaidsa.nebular.co.za]
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
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)
2024-03-22 07:54:40.324174 [DEBUG] switch_core_state_machine.c:653 (sofia/default/7106027339@legalaidsa.nebular.co.za) State EXCHANGE_MEDIA
2024-03-22 07:54:40.324174 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
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)
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)
EXECUTE sofia/default/7106027339@legalaidsa.nebular.co.za sched_hangup(+6000 normal_clearing)
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
2024-03-22 07:54:40.524170 [DEBUG] sofia.c:7084 Channel sofia/default/0738101266@41.160.32.115:5060 entering state [ready][200]
2024-03-22 07:54:40.564175 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:40.584178 [DEBUG] sofia.c:7084 Channel sofia/default/7542292398@metrobus.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:40.584178 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/7542292398@metrobus.nebular.co.za!
2024-03-22 07:54:40.584178 [DEBUG] switch_channel.c:3346 (sofia/default/7542292398@metrobus.nebular.co.za) Callstate Change DOWN -> RINGING
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
2024-03-22 07:54:40.604186 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/027670264866@41.160.32.115:5060!
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]
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)
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
2024-03-22 07:54:41.884183 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:41.884183 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:41.884183 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 38436940715391 38436940715391 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24830 RTP/AVP 18 4 8 116
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:116 telephone-event/8000
a=fmtp:116 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 116@8000
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
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
2024-03-22 07:54:41.884183 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 116@8000
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
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
2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:603 (sofia/default/Anonymous@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:627 (sofia/default/Anonymous@41.160.32.115:5060) State INIT
2024-03-22 07:54:41.884183 [DEBUG] mod_sofia.c:90 sofia/default/Anonymous@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:40 sofia/default/Anonymous@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:41.884183 [DEBUG] switch_channel.c:2249 (sofia/default/Anonymous@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:643 (sofia/default/Anonymous@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:41.884183 [DEBUG] mod_sofia.c:143 sofia/default/Anonymous@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:41.884183 [DEBUG] switch_core_state_machine.c:236 sofia/default/Anonymous@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:41.884183 [INFO] mod_dialplan_xml.c:637 Processing Anonymous <Anonymous>->D9570325332654 in context default
2024-03-22 07:54:41.884183 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:41.904153 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570325332654
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
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
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
2024-03-22 07:54:41.904153 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : Anonymous / <null>
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
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
2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:41.904153 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570325332654
2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570325332654
2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0325332654
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
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
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
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
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 3
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 3673942894
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 15
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 3
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
2024-03-22 07:54:41.924152 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:3
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:3
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:41.924152 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:41.924152 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:41.924152 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:41.944183 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:41.944183 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....Anonymous
2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27".....<null>
2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:41.944183 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:41.944183 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:41.944183 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:41.944183 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0325332654">
<condition field="destination_number" expression="D9570325332654">
<action application="set" data="effective_destination_number=0325332654"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:41"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=3"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=Anonymous"/>
<action application="set" data="effective_caller_id_name=Anonymous"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=4607597910"/>
<action application="set" data="destination_number=0325332654"/>
<action application="set" data="did_number=0325332654"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0325332654"/>
<action application="voicemail" data="default $${domain_name} 4607597910"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:41.944183 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 parsing [default->0325332654] continue=false
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Regex (PASS) [0325332654] destination_number(D9570325332654) =~ /D9570325332654/ break=on-false
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(effective_destination_number=0325332654)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(callstart=2024-03-22 07:54:41)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(account_id=3)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(parent_id=0)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(entity_id=3)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(call_processed=internal)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(accountname=default)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(origination_rates=0)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(original_caller_id_name=Anonymous)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(effective_caller_id_name=Anonymous)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(call_type=5)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action sleep(1000)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action ring_ready()
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)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(not_register_destination=)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(sip_destination_number=4607597910)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(destination_number=0325332654)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(did_number=0325332654)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@41.160.32.115:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/Anonymous@41.160.32.115:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:650 (sofia/default/Anonymous@41.160.32.115:5060) State EXECUTE
2024-03-22 07:54:41.984316 [DEBUG] mod_sofia.c:198 sofia/default/Anonymous@41.160.32.115:5060 SOFIA EXECUTE
2024-03-22 07:54:41.984316 [DEBUG] switch_core_state_machine.c:328 sofia/default/Anonymous@41.160.32.115:5060 Standard EXECUTE
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(effective_destination_number=0325332654)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(callstart=2024-03-22 07:54:41)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(account_id=3)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [account_id]=[3]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(parent_id=0)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [parent_id]=[0]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(entity_id=3)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [entity_id]=[3]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(call_processed=internal)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [call_processed]=[internal]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(call_direction=inbound)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [call_direction]=[inbound]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(accountname=default)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [accountname]=[default]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(origination_rates=0)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [origination_rates]=[0]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(original_caller_id_name=Anonymous)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(effective_caller_id_name=Anonymous)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(receiver_accid=109)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [receiver_accid]=[109]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(presence_data=x|||default(3673942894)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||41.160.32.115)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(call_type=5)
2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(calltype=SIP-DID)
2024-03-22 07:54:41.984316 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@41.160.32.115:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 db(insert/pickup_any_group_/4607597910/70cb29a0-e821-11ee-92c3-d17fbcf33421)
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:41.984316 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:41.984316 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:41.984316 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:42.264203 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:808
2024-03-22 07:54:42.264203 [INFO] switch_channel.c:515 RECV DTMF 2:808
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
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
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
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
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
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
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
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
2024-03-22 07:54:42.364179 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
EXECUTE sofia/default/Anonymous@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:42.984174 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/Anonymous@41.160.32.115:5060!
2024-03-22 07:54:42.984174 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@41.160.32.115:5060 entering state [early][180]
2024-03-22 07:54:42.984174 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/Anonymous@41.160.32.115:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:42.984174 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:42.984174 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:42.984174 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711069690 1711069691 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 24392 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:42.984174 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:42.984174 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:42.984174 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:43.044163 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [completing][200]
2024-03-22 07:54:43.044163 [DEBUG] sofia.c:7091 Duplicate SDP
v=0
o=HuaweiSoftX3000 26587125923337 26587125923337 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24808 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2024-03-22 07:54:43.064183 [DEBUG] sofia.c:7084 Channel sofia/default/0787850991 entering state [ready][200]
2024-03-22 07:54:43.064183 [NOTICE] sofia.c:8159 Channel [sofia/default/0787850991] has been answered
2024-03-22 07:54:43.064183 [DEBUG] switch_channel.c:3773 (sofia/default/0787850991) Callstate Change RINGING -> ACTIVE
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.
2024-03-22 07:54:43.064183 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/0543379200@legalaidsa.nebular.co.za:5060:
v=0
o=FreeSWITCH 1711066625 1711066627 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 27434 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
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
2024-03-22 07:54:43.064183 [DEBUG] switch_channel.c:3773 (sofia/default/0543379200@legalaidsa.nebular.co.za:5060) Callstate Change EARLY -> ACTIVE
2024-03-22 07:54:43.064183 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [completed][200]
2024-03-22 07:54:43.084205 [DEBUG] sofia.c:7084 Channel sofia/default/0543379200@legalaidsa.nebular.co.za:5060 entering state [ready][200]
2024-03-22 07:54:43.124203 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:43.124203 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:43.124203 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
2024-03-22 07:54:43.124203 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:43.124203 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:43.124203 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/Anonymous@41.160.32.115:5060!
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]
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)
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
2024-03-22 07:54:43.224192 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:43.244170 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 entering state [received][100]
2024-03-22 07:54:43.244170 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=3cxPS 96603209728 520949334017 IN IP4 156.38.150.6
s=3cxPS Audio call
c=IN IP4 156.38.150.6
t=0 0
m=audio 9014 RTP/AVP 8 0 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
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]
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]
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]
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
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]
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]
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]
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]
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]
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
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]
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
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]
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
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]
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]
2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:43.244170 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
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
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
2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:603 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State NEW
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)
2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:627 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State INIT
2024-03-22 07:54:43.244170 [DEBUG] mod_sofia.c:90 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 SOFIA INIT
2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:40 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Standard INIT
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
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
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)
2024-03-22 07:54:43.244170 [DEBUG] switch_channel.c:2249 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:643 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State ROUTING
2024-03-22 07:54:43.244170 [DEBUG] mod_sofia.c:143 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 SOFIA ROUTING
2024-03-22 07:54:43.244170 [DEBUG] switch_core_state_machine.c:236 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Standard ROUTING
2024-03-22 07:54:43.244170 [INFO] mod_dialplan_xml.c:637 Processing Anonymous <Anonymous>->0325332654 in context default
2024-03-22 07:54:43.244170 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:43.244170 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:43.244170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:43.244170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0325332654
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
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
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
2024-03-22 07:54:43.244170 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:43.244170 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : Anonymous / Anonymous
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
2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 196083]
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
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
2024-03-22 07:54:43.264158 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 3
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
2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 109
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
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
2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 0325332654
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
2024-03-22 07:54:43.264158 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call Direction : inbound
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
2024-03-22 07:54:43.264158 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 109
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 196083
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 19917.9835
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 93
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
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
2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 109
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your19917.9835 balance Accountid 109 !!!
2024-03-22 07:54:43.284177 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2024-03-22 07:54:43.284177 [NOTICE] switch_cpp.cpp:1365 [ASTPP] FINDING LIMIT FOR RESELLER: 13
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Reseller Information ===================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 778509
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9949.2483
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 83
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
2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Direction : inbound
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 8427
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Comment : 0325332654
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 171
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9949.2483 balance Accountid 13 !!!
2024-03-22 07:54:43.284177 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Lossless Routing Status : 1
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max Length Duration : 100 minutes
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] sandip +++++109
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
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:109
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:109
2024-03-22 07:54:43.284177 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 109
2024-03-22 07:54:43.284177 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:43.304157 [INFO] switch_cpp.cpp:1365 [ASTPP] Maxlength : 100
2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:43.304157 [INFO] switch_cpp.cpp:1365 [ASTPP] [XML] Customer Recording Flag : 1
2024-03-22 07:54:43.304157 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_direction : inbound
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 109 limit 1
2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [XML] User Domain : legalaidsa.nebular.co.za
2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [XML] Custom Function Name :: custom_inbound_5
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
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
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
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
2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] user_domain beforelegalaidsa.nebular.co.za
2024-03-22 07:54:43.304157 [WARNING] switch_cpp.cpp:1365 [ASTPP] [user_domain] pickup_group_permission pickup_str
2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] START:
2024-03-22 07:54:43.304157 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [NOTIFY] API URL : https://voice.nebularcomms.co.za/api/
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
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
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
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
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"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="0325332654">
<condition field="destination_number" expression="0325332654">
<action application="set" data="effective_destination_number=0325332654"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
<action application="set" data="callstart=2024-03-22 07:54:43"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=109"/>
<action application="set" data="parent_id=13"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<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"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=Anonymous"/>
<action application="set" data="original_caller_id_number=Anonymous"/>
<action application="limit" data="db 196083 user_196083 200 "/>
<action application="set" data="effective_caller_id_name=Anonymous"/>
<action application="set" data="effective_caller_id_number=Anonymous"/>
<action application="set" data="receiver_accid=109"/>
<action application="export" data="domain_name=legalaidsa.nebular.co.za"/>
<action application="export" data="sip_to_host=legalaidsa.nebular.co.za"/>
<action application="export" data="presence_data=x//13|||Legal Aid South Africa(196083)|||^0325332654.* // 0325332654 // 0.00000||||||DID|||156.38.231.105"/>
<action application="export" data="call_type=5"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/4607597910/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="export" data="did_user_domain=legalaidsa.nebular.co.za"/>
<action application="sleep" data="1000"/>
<action application="ring_ready"/>
<action application="bridge" data="{sip_invite_params=user=LOCAL}[leg_timeout=0]sofia/${sofia_profile_name}/4607597910@legalaidsa.nebular.co.za^0325332654"/>
<action application="set" data="on_busy_flag=1"/>
<action application="set" data="on_busy_destination="/>
<action application="set" data="no_answer_flag=1"/>
<action application="set" data="no_answer_destination="/>
<action application="set" data="not_register_flag=1"/>
<action application="set" data="not_register_destination="/>
<action application="set" data="opensips_flag=0"/>
<action application="set" data="variable_sip_to_host=legalaidsa.nebular.co.za"/>
<action application="set" data="opensips_domain=156.38.231.106"/>
<action application="set" data="leg_timeout=20"/>
<action application="set" data="userinfo_id=109"/>
<action application="set" data="sip_destination_number=4607597910"/>
<action application="set" data="destination_number=0325332654"/>
<action application="set" data="did_number=0325332654"/>
<action application="set" data="user_domain=legalaidsa.nebular.co.za"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
<condition field="${cond(${user_data 4607597910@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=0325332654"/>
<action application="voicemail" data="default $${domain_name} 4607597910"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2024-03-22 07:54:43.324159 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fed8c03f390 released.
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 parsing [default->0325332654] continue=false
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Regex (PASS) [0325332654] destination_number(0325332654) =~ /0325332654/ break=on-false
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(effective_destination_number=0325332654)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(callstart=2024-03-22 07:54:43)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(account_id=109)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(parent_id=13)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(entity_id=0)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(call_processed=internal)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(call_direction=inbound)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(accountname=default)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(filename1=astpp.pbx.lua)
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)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(origination_rates=0)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_name=Anonymous)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(original_caller_id_number=Anonymous)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action limit(db 196083 user_196083 200 )
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_name=Anonymous)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(effective_caller_id_number=Anonymous)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(receiver_accid=109)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(domain_name=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(sip_to_host=legalaidsa.nebular.co.za)
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)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(call_type=5)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(calltype=SIP-DID)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action db(insert/pickup_any_group_${callgroup}/4607597910/${uuid})
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action export(did_user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action sleep(1000)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action ring_ready()
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)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(on_busy_flag=1)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(on_busy_destination=)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(no_answer_flag=1)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(no_answer_destination=)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(not_register_flag=1)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(not_register_destination=)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(opensips_flag=0)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(variable_sip_to_host=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(opensips_domain=156.38.231.106)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(leg_timeout=20)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(userinfo_id=109)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(sip_destination_number=4607597910)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(destination_number=0325332654)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(did_number=0325332654)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action set(user_domain=legalaidsa.nebular.co.za)
Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
|--- Dialplan: Processing recursive conditions level:1 [0325332654_recur_1] require-nested=TRUE
|--- 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
|--- Dialplan: sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 ANTI-Action hangup(${originate_disposition})
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
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
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)
2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:650 (sofia/default/Anonymous@legalaidsa.nebular.co.za:5060) State EXECUTE
2024-03-22 07:54:43.344161 [DEBUG] mod_sofia.c:198 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 SOFIA EXECUTE
2024-03-22 07:54:43.344161 [DEBUG] switch_core_state_machine.c:328 sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 Standard EXECUTE
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(effective_destination_number=0325332654)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_app=sched_hangup)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(callstart=2024-03-22 07:54:43)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(continue_on_fail=TRUE)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(account_id=109)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [account_id]=[109]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(parent_id=13)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [parent_id]=[13]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(entity_id=0)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [entity_id]=[0]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(call_processed=internal)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [call_processed]=[internal]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(call_direction=inbound)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [call_direction]=[inbound]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(accountname=default)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [accountname]=[default]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(filename1=astpp.pbx.lua)
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]
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)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(origination_rates=0)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [origination_rates]=[0]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(original_caller_id_name=Anonymous)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(original_caller_id_number=Anonymous)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 limit(db 196083 user_196083 200 )
2024-03-22 07:54:43.344161 [DEBUG] switch_limit.c:126 incr called: 196083_user_196083 max:200, interval:0
2024-03-22 07:54:43.344161 [DEBUG] mod_db.c:194 Usage for 196083_user_196083 is now 13/200
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(effective_caller_id_name=Anonymous)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(effective_caller_id_number=Anonymous)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(receiver_accid=109)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [receiver_accid]=[109]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(domain_name=legalaidsa.nebular.co.za)
2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [domain_name]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(sip_to_host=legalaidsa.nebular.co.za)
2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_to_host]=[legalaidsa.nebular.co.za]
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)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(call_type=5)
2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[5]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(calltype=SIP-DID)
2024-03-22 07:54:43.344161 [DEBUG] mod_dptools.c:1548 SET sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 [calltype]=[SIP-DID]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 db(insert/pickup_any_group_/4607597910/71983ac6-e821-11ee-92ef-d17fbcf33421)
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(dialed_extension=transfer_call)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(dialed_extension=transfer_call)
2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2024-03-22 07:54:43.344161 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2024-03-22 07:54:43.344161 [INFO] switch_ivr_async.c:4173 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 set(hangup_after_bridge=true)
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]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 export(did_user_domain=legalaidsa.nebular.co.za)
2024-03-22 07:54:43.344161 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [did_user_domain]=[legalaidsa.nebular.co.za]
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 sleep(1000)
EXECUTE sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 ring_ready()
2024-03-22 07:54:44.364239 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/Anonymous@legalaidsa.nebular.co.za:5060!
2024-03-22 07:54:44.364239 [DEBUG] sofia.c:7084 Channel sofia/default/Anonymous@legalaidsa.nebular.co.za:5060 entering state [early][180]
2024-03-22 07:54:44.364239 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/Anonymous@legalaidsa.nebular.co.za:5060!
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)
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
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
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
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
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
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
2024-03-22 07:54:44.364239 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2024-03-22 07:54:44.364239 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
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]
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
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)
2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:627 (sofia/default/4607597910@legalaidsa.nebular.co.za) State INIT
2024-03-22 07:54:44.364239 [DEBUG] mod_sofia.c:90 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA INIT
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
Local SDP:
v=0
o=FreeSWITCH 1711070598 1711070599 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 23486 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:40 sofia/default/4607597910@legalaidsa.nebular.co.za Standard INIT
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
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
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)
2024-03-22 07:54:44.364239 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [calling][0]
2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:643 (sofia/default/4607597910@legalaidsa.nebular.co.za) State ROUTING
2024-03-22 07:54:44.364239 [DEBUG] mod_sofia.c:143 sofia/default/4607597910@legalaidsa.nebular.co.za SOFIA ROUTING
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
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
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)
2024-03-22 07:54:44.364239 [DEBUG] switch_core_state_machine.c:662 (sofia/default/4607597910@legalaidsa.nebular.co.za) State CONSUME_MEDIA
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
2024-03-22 07:54:44.504164 [DEBUG] sofia.c:7084 Channel sofia/default/4607597910@legalaidsa.nebular.co.za entering state [proceeding][180]
2024-03-22 07:54:44.504164 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/4607597910@legalaidsa.nebular.co.za!
2024-03-22 07:54:44.504164 [DEBUG] switch_channel.c:3346 (sofia/default/4607597910@legalaidsa.nebular.co.za) Callstate Change DOWN -> RINGING
2024-03-22 07:54:44.504164 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/Anonymous@legalaidsa.nebular.co.za:5060!
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]
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)
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
2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7542292398@metrobus.nebular.co.za) State HANGUP
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
2024-03-22 07:54:45.004187 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/default/7542292398@metrobus.nebular.co.za
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
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
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
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)
2024-03-22 07:54:45.004187 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7542292398@metrobus.nebular.co.za) State REPORTING
2024-03-22 07:54:45.004187 [INFO] mod_json_cdr.c:271 Process [66966f30-e821-11ee-91af-d17fbcf33421.cdr.json]
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
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
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
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
2024-03-22 07:54:45.024213 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 602 [ALLOTTED_TIMEOUT]
2024-03-22 07:54:45.024213 [NOTICE] switch_core_session.c:1683 Session 575011 (sofia/default/7542292398@metrobus.nebular.co.za) Ended
2024-03-22 07:54:45.024213 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/7542292398@metrobus.nebular.co.za [CS_DESTROY]
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)
2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7542292398@metrobus.nebular.co.za) State DESTROY
2024-03-22 07:54:45.024213 [DEBUG] mod_sofia.c:343 sofia/default/7542292398@metrobus.nebular.co.za SOFIA DESTROY
2024-03-22 07:54:45.024213 [DEBUG] switch_core_state_machine.c:181 sofia/default/7542292398@metrobus.nebular.co.za Standard DESTROY
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
2024-03-22 07:54:45.024213 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ALLOTTED_TIMEOUT
EXECUTE sofia/default/027670264866@41.160.32.115:5060 sleep(1000)
2024-03-22 07:54:45.144170 [NOTICE] sofia.c:1012 Hangup sofia/default/27118772377@legalaidsa.nebular.co.za:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2024-03-22 07:54:45.144170 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/27118772377@legalaidsa.nebular.co.za:5060]
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
2024-03-22 07:54:45.164163 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/0721141624]
2024-03-22 07:54:45.164163 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/0721141624 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:653 (sofia/default/0721141624) State EXCHANGE_MEDIA going to sleep
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)
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:850 (sofia/default/0721141624) Callstate Change ACTIVE -> HANGUP
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721141624) State HANGUP
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
2024-03-22 07:54:45.164163 [DEBUG] mod_sofia.c:438 Channel sofia/default/0721141624 hanging up, cause: NORMAL_CLEARING
2024-03-22 07:54:45.164163 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/0721141624 skip receive message [UNBRIDGE] (channel is hungup already)
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)
2024-03-22 07:54:45.164163 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/0721141624
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:60 sofia/default/0721141624 Standard HANGUP, cause: NORMAL_CLEARING
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/0721141624) State HANGUP going to sleep
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:619 (sofia/default/0721141624) State Change CS_HANGUP -> CS_REPORTING
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)
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721141624) State REPORTING
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)
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
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)
2024-03-22 07:54:45.164163 [INFO] mod_json_cdr.c:271 Process [5cfb5d46-e821-11ee-9032-d17fbcf33421.cdr.json]
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
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:852 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State HANGUP
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
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
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
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
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)
2024-03-22 07:54:45.164163 [DEBUG] switch_core_state_machine.c:938 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State REPORTING
2024-03-22 07:54:45.164163 [INFO] mod_json_cdr.c:271 Process [5ceeff42-e821-11ee-900f-d17fbcf33421.cdr.json]
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:174 sofia/default/0721141624 Standard REPORTING, cause: NORMAL_CLEARING
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:938 (sofia/default/0721141624) State REPORTING going to sleep
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:610 (sofia/default/0721141624) State Change CS_REPORTING -> CS_DESTROY
2024-03-22 07:54:45.184312 [DEBUG] switch_core_session.c:1665 Session 574995 (sofia/default/0721141624) Locked, Waiting on external entities
2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1683 Session 574995 (sofia/default/0721141624) Ended
2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/0721141624 [CS_DESTROY]
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)
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721141624) State DESTROY
2024-03-22 07:54:45.184312 [DEBUG] mod_sofia.c:343 sofia/default/0721141624 SOFIA DESTROY
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:181 sofia/default/0721141624 Standard DESTROY
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/0721141624) State DESTROY going to sleep
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
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
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
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
2024-03-22 07:54:45.184312 [NOTICE] switch_core_session.c:1683 Session 574994 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) Ended
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]
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)
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:751 (sofia/default/27118772377@legalaidsa.nebular.co.za:5060) State DESTROY
2024-03-22 07:54:45.184312 [DEBUG] mod_sofia.c:343 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 SOFIA DESTROY
2024-03-22 07:54:45.184312 [DEBUG] switch_core_state_machine.c:181 sofia/default/27118772377@legalaidsa.nebular.co.za:5060 Standard DESTROY
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
2024-03-22 07:54:45.524169 [DEBUG] switch_scheduler.c:144 Deleting task 232837 switch_ivr_schedule_hangup (5cfb5d46-e821-11ee-9032-d17fbcf33421)
2024-03-22 07:54:45.704170 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:1928
2024-03-22 07:54:45.704170 [INFO] switch_channel.c:515 RECV DTMF 2:1928
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
2024-03-22 07:54:45.964176 [DEBUG] switch_rtp.c:5108 Queue digit delay of 40ms
EXECUTE sofia/default/027670264866@41.160.32.115:5060 ring_ready()
2024-03-22 07:54:46.024164 [NOTICE] mod_dptools.c:1028 Ring Ready sofia/default/027670264866@41.160.32.115:5060!
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(on_busy_flag=1)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(on_busy_destination=)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(no_answer_flag=1)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(no_answer_destination=)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(not_register_flag=1)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(not_register_destination=)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(opensips_flag=0)
2024-03-22 07:54:46.024164 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [opensips_flag]=[0]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(variable_sip_to_host=metrobus.nebular.co.za)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(opensips_domain=156.38.231.106)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(leg_timeout=20)
2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [leg_timeout]=[20]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(userinfo_id=89)
2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [userinfo_id]=[89]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(sip_destination_number=7542292398)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(did_number=7542292398)
2024-03-22 07:54:46.044319 [DEBUG] mod_dptools.c:1548 SET sofia/default/027670264866@41.160.32.115:5060 [did_number]=[7542292398]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 set(user_domain=metrobus.nebular.co.za)
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]
EXECUTE sofia/default/027670264866@41.160.32.115:5060 lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
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
EXECUTE sofia/default/027670264866@41.160.32.115:5060 answer()
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
2024-03-22 07:54:46.044319 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
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
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
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
2024-03-22 07:54:46.044319 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/027670264866@41.160.32.115:5060:
v=0
o=FreeSWITCH 1711072430 1711072431 IN IP4 156.38.231.107
s=FreeSWITCH
c=IN IP4 156.38.231.107
t=0 0
m=audio 21656 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2024-03-22 07:54:46.044319 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/027670264866@41.160.32.115:5060] has been answered
2024-03-22 07:54:46.044319 [DEBUG] switch_channel.c:3773 (sofia/default/027670264866@41.160.32.115:5060) Callstate Change RINGING -> ACTIVE
2024-03-22 07:54:46.044319 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [completed][200]
2024-03-22 07:54:46.044319 [NOTICE] switch_cpp.cpp:1365 [Astpp_SIP-Devices] Dialed User For Voicemail :7542292398
EXECUTE sofia/default/027670264866@41.160.32.115:5060 voicemail(default metrobus.nebular.co.za 7542292398)
2024-03-22 07:54:46.164192 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
2024-03-22 07:54:46.164192 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-person.wav] (en:en)
2024-03-22 07:54:46.164192 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
2024-03-22 07:54:46.184185 [INFO] mod_com_g729.c:140 ENCODER LICENSE ALLOCATED--->0x7feda86522c0 0x7feda86522c0
2024-03-22 07:54:46.184185 [INFO] mod_com_g729.c:147 ENCODER CREATED------------->0x7feda86522c0 0x7feda86522c0
2024-03-22 07:54:46.204178 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2024-03-22 07:54:46.504181 [DEBUG] sofia.c:7084 Channel sofia/default/027670264866@41.160.32.115:5060 entering state [ready][200]
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
2024-03-22 07:54:47.624185 [DEBUG] switch_ivr_play_say.c:250 Handle say:[7542292398] (en:en)
2024-03-22 07:54:47.624185 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
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]
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)
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
2024-03-22 07:54:48.624180 [DEBUG] sofia.c:9989 IP 156.38.231.106 Approved by acl "default[]". Access Granted.
2024-03-22 07:54:48.624180 [DEBUG] sofia.c:7084 Channel sofia/default/027812062126@41.160.32.115:5060 entering state [received][100]
2024-03-22 07:54:48.624180 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=HuaweiSoftX3000 40919431819209 40919431819209 IN IP4 41.160.32.115
s=-
c=IN IP4 41.160.32.115
t=0 0
m=audio 24832 RTP/AVP 18 4 8 110
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:110 telephone-event/8000
a=fmtp:110 0-15
a=ptime:20
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]
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
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]
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
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]
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]
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]
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]
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]
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]
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]
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]
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]
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
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]
2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 110@8000
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
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
2024-03-22 07:54:48.624180 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 110@8000
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
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
2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:603 (sofia/default/027812062126@41.160.32.115:5060) State NEW
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)
2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:627 (sofia/default/027812062126@41.160.32.115:5060) State INIT
2024-03-22 07:54:48.624180 [DEBUG] mod_sofia.c:90 sofia/default/027812062126@41.160.32.115:5060 SOFIA INIT
2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:40 sofia/default/027812062126@41.160.32.115:5060 Standard INIT
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
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
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)
2024-03-22 07:54:48.624180 [DEBUG] switch_channel.c:2249 (sofia/default/027812062126@41.160.32.115:5060) Callstate Change DOWN -> RINGING
2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:643 (sofia/default/027812062126@41.160.32.115:5060) State ROUTING
2024-03-22 07:54:48.624180 [DEBUG] mod_sofia.c:143 sofia/default/027812062126@41.160.32.115:5060 SOFIA ROUTING
2024-03-22 07:54:48.624180 [DEBUG] switch_core_state_machine.c:236 sofia/default/027812062126@41.160.32.115:5060 Standard ROUTING
2024-03-22 07:54:48.624180 [INFO] mod_dialplan_xml.c:637 Processing 027812062126 <0812062126>->D9570514479915 in context default
2024-03-22 07:54:48.624180 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fed8c03f390 Connected.
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')
2024-03-22 07:54:48.624180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] blind_flag: 0
2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : D9570514479915
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
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
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
2024-03-22 07:54:48.644434 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] Custom Caller ID
2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 027812062126 / <null>
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
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
2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2024-03-22 07:54:48.644434 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 3673942894]
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
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
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
2024-03-22 07:54:48.664180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] Localization Id: 5
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
2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
2024-03-22 07:54:48.664180 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :"0/27,D957/".....D9570514479915
2024-03-22 07:54:48.664180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : D9570514479915
2024-03-22 07:54:48.664180 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 0514479915