span style="color: cornflowerblue; font-weight: bold;"> 2023-04-26 12:18:32.513345 86.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/4810338297@65.109.231.66 [997a1c3e-5a62-4f26-94bc-fcc9027f2673]
2023-04-26 12:18:32.513345 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_NEW (Cur 1 Tot 154)
2023-04-26 12:18:32.513345 86.77% [INFO] sofia.c:10462 sofia/default/4810338297@65.109.231.66 receiving invite from 65.109.231.66:5071 version: 1.10.7 -release 64bit call-id: 4d38a114-5ecf-123c-9988-960002079de3
2023-04-26 12:18:32.513345 86.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 65.109.231.66:0.
2023-04-26 12:18:32.513345 86.77% [DEBUG] sofia.c:10585 IP 65.109.231.66 Approved by acl "default[]". Access Granted.
2023-04-26 12:18:32.533326 86.77% [DEBUG] sofia.c:7499 Channel sofia/default/4810338297@65.109.231.66 entering state [received][100]
2023-04-26 12:18:32.533326 86.77% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=FreeSWITCH 1682493092 1682493093 IN IP4 65.109.231.66
s=FreeSWITCH
c=IN IP4 65.109.231.66
t=0 0
m=audio 18420 RTP/AVP 8 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/4810338297@65.109.231.66 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_codec.c:111 sofia/default/4810338297@65.109.231.66 Original read codec set to PCMA:8
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_media.c:5973 sofia/default/4810338297@65.109.231.66 Set 2833 dtmf send payload to 101 recv payload to 101
2023-04-26 12:18:32.533326 86.77% [DEBUG] sofia.c:7933 (sofia/default/4810338297@65.109.231.66) State Change CS_NEW -> CS_INIT
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:600 (sofia/default/4810338297@65.109.231.66) State NEW
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_INIT (Cur 1 Tot 154)
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/4810338297@65.109.231.66) State INIT
2023-04-26 12:18:32.533326 86.77% [DEBUG] mod_sofia.c:97 sofia/default/4810338297@65.109.231.66 SOFIA INIT
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:40 sofia/default/4810338297@65.109.231.66 Standard INIT
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:48 (sofia/default/4810338297@65.109.231.66) State Change CS_INIT -> CS_ROUTING
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/4810338297@65.109.231.66) State INIT going to sleep
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_ROUTING (Cur 1 Tot 154)
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_channel.c:2380 (sofia/default/4810338297@65.109.231.66) Callstate Change DOWN -> RINGING
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING
2023-04-26 12:18:32.533326 86.77% [DEBUG] mod_sofia.c:158 sofia/default/4810338297@65.109.231.66 SOFIA ROUTING
2023-04-26 12:18:32.533326 86.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/4810338297@65.109.231.66 Standard ROUTING
2023-04-26 12:18:32.533326 86.77% [INFO] mod_dialplan_xml.c:639 Processing ASTPP <4810338297>->1070099 in context default
2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1070099
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1070099' limit 1
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1070099' and status=0 LIMIT 1
2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '1070099' limit 1
2023-04-26 12:18:32.553317 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : ASTPP / 4810338297
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 9
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 107009 AND status=0 limit 1
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.553317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
2023-04-26 12:18:32.553317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("65.109.231.66") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1)) AND "1070099" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
2023-04-26 12:18:32.573343 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 900200]
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "900200" AND deleted = 0 limit 1
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 90
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^1070099.*' OR patterns = '^107009.*' OR patterns = '^10700.*' OR patterns = '^1070.*' OR patterns = '^107.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 90 ORDER BY LENGTH(PKGPTR.patterns) DESC
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="1070099" AND A.accountid = '91' limit 1
2023-04-26 12:18:32.573343 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1070099
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.573343 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '1070099' OR number = '107009' OR number = '10700' OR number = '1070' OR number = '107' OR number = '10' OR number = '1' OR number ='--') OR (number = '1070099*' OR number = '107009*' OR number = '10700*' OR number = '1070*' OR number = '107*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '4810338297' OR number = '481033829' OR number = '48103382' OR number = '4810338' OR number = '481033' OR number = '48103' OR number = '4810' OR number = '481' OR number = '48' OR number = '4' OR number ='--') OR (number = '4810338297*' OR number = '481033829*' OR number = '48103382*' OR number = '4810338*' OR number = '481033*' OR number = '48103*' OR number = '4810*' OR number = '481*' OR number = '48*' OR number = '4*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
2023-04-26 12:18:32.573343 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1070099' OR routing_prefix = '107009' OR routing_prefix = '10700' OR routing_prefix = '1070' OR routing_prefix = '107' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 91
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 900200
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 36832.5646
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 170
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::170
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:170
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '170' and status=0
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 198
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 1070099
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 91
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your36832.5646 balance Accountid 91 !!!
2023-04-26 12:18:32.593335 86.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 91 AND status=0 LIMIT 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "90" AND deleted = 0 limit 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:91
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:91
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 91
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
2023-04-26 12:18:32.593335 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : alpha3.astppbilling.org
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 3
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"1020202000#","no_answer_call_type":"12"}]
span style="color: green; font-weight: bold;"> 2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"17-17","minute":"44-50","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"86","no_answer_call_type":"11","priority":"2"},{"hour":"17-17","minute":"30-45","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"83","no_answer_call_type":"11","priority":"1"}]
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 2
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "86" limit 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str : time-of-day= "17:44-17:50" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023"
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "83" limit 1
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str : time-of-day= "17:30-17:45" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023"
2023-04-26 12:18:32.593335 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100
2023-04-26 12:18:32.593335 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.613366 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
2023-04-26 12:18:32.613366 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "3" AND accounts.status = 0
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
2023-04-26 12:18:32.613366 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : alpha3.astppbilling.org
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11
2023-04-26 12:18:32.613366 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 3
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_cpp.cpp:1465 [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="PKKKTime" continue="true">
<condition time-of-day= "00:01-23:59" break="never">
<action application="set" data="office_status=open" inline="true"/>
<action application="set" data="extensions=1020202000#" inline="true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=12" inline="true"/>
</condition>
</extension>
<extension name="PKKKTime" continue="true">
<condition break="never">
<action application="set" data="timezone=Asia/Kolkata" inline="true"/>
</condition>
<condition time-of-day= "17:44-17:50" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023" break="never">
<action application="set" data="office_status=open" inline="true"/>
<action application="set" data="extensions=453578" inline="true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=11" inline="true"/>
</condition>
</extension>
<extension name="PKKKTime" continue="true">
<condition break="never">
<action application="set" data="timezone=Asia/Kolkata" inline="true"/>
</condition>
<condition time-of-day= "17:30-17:45" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023" break="never">
<action application="set" data="office_status=open" inline="true"/>
<action application="set" data="extensions=900100" inline="true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=11" inline="true"/>
</condition>
</extension>
<extension name="tod route, x1070099">
<condition field="destination_number" expression="^(\+?)?(1070099)$">
<action application="execute_extension" data="1070099_${office_status}"/>
</condition>
</extension>
<extension name="office is open">
<condition field="destination_number" expression="^(\+?)?(1070099_open)$">
<action application="set" data="domain_name=alpha3.astppbilling.org"/>
<action application="set" data="set_extensions=${extensions}"/>
<action application="set" data="no_answer_flag=true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=${no_answer_call_type}"/>
<action application="set" data="no_answer_number=${extensions}" />
<action application="transfer" data="90 XML default"/>
</condition>
</extension>
<extension name="1070099">
<condition field="destination_number" expression="1070099">
<action application="set" data="effective_destination_number=1070099"/>
<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="type=3"/>
<action application="set" data="callstart=2023-04-26 12:18:32"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=91"/>
<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=BETA"/>
<action application="export" data="t38_passthru=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<action application="set" data="origination_rates_did=ID:198|CODE:^1070099.*|DESTINATION:1070099|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:11|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:90"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=ASTPP"/>
<action application="set" data="original_caller_id_number=4810338297"/>
<action application="set" data="effective_caller_id_name=ASTPP"/>
<action application="set" data="effective_caller_id_number=4810338297"/>
<action application="set" data="receiver_accid=90"/>
<action application="set" data="did_id=198"/>
<action application="set" data="transfer_call_type=4"/>
<action application="set" data="transfer_extensions="/>
<action application="set" data="busy_status=1"/>
<action application="set" data="no_answer_status=1"/>
<action application="set" data="always_status=1"/>
<action application="set" data="transfer_status=1"/>
<action application="set" data="variable_sip_to_host=${domain_name}"/>
<action application="set" data="variable_sip_network_ip=65.109.231.66"/>
<action application="set" data="variable_sip_network_port=5071"/>
<action application="export" data="domain_name=alpha3.astppbilling.org"/>
<action application="export" data="sip_to_host=alpha3.astppbilling.org"/>
<action application="export" data="presence_data=x|||QA PK Provider(900200)|||^1070099.* // 1070099 // 0.00000|||||||||DID|||65.109.231.66"/>
<action application="export" data="call_type=11"/>
</condition>
</extension>
</context>
</section>
</document>
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(office_status=open)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=1020202000#) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(extensions=1020202000#)
span style="color: goldenrod; font-weight: bold;"> 2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[1020202000#]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=12) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=12)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[12]
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(office_status=open)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=453578) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(extensions=453578)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[453578]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=11) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=11)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[11]
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
Dialplan: sofia/default/4810338297@65.109.231.66 Date/TimeMatch (FAIL) [PKKKTime] break=never
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->tod route, x1070099] continue=false
Dialplan: sofia/default/4810338297@65.109.231.66 Regex (PASS) [tod route, x1070099] destination_number(1070099) =~ /^(\+?)?(1070099)$/ break=on-false
Dialplan: sofia/default/4810338297@65.109.231.66 Action execute_extension(1070099_${office_status})
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:281 (sofia/default/4810338297@65.109.231.66) State Change CS_ROUTING -> CS_EXECUTE
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING going to sleep
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_EXECUTE (Cur 1 Tot 154)
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE
2023-04-26 12:18:32.613366 86.77% [DEBUG] mod_sofia.c:213 sofia/default/4810338297@65.109.231.66 SOFIA EXECUTE
2023-04-26 12:18:32.613366 86.77% [DEBUG] switch_core_state_machine.c:323 sofia/default/4810338297@65.109.231.66 Standard EXECUTE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 execute_extension(1070099_open)
2023-04-26 12:18:32.613366 86.77% [INFO] mod_dialplan_xml.c:639 Processing ASTPP <4810338297>->1070099_open in context default
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1070099
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1070099' limit 1
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1070099' and status=0 LIMIT 1
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '1070099' limit 1
2023-04-26 12:18:32.633339 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : ASTPP / 4810338297
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 9
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 107009 AND status=0 limit 1
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("65.109.231.66") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1)) AND "1070099" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
2023-04-26 12:18:32.633339 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 900200]
2023-04-26 12:18:32.633339 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "900200" AND deleted = 0 limit 1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 90
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^1070099.*' OR patterns = '^107009.*' OR patterns = '^10700.*' OR patterns = '^1070.*' OR patterns = '^107.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 90 ORDER BY LENGTH(PKGPTR.patterns) DESC
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="1070099" AND A.accountid = '91' limit 1
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1070099
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '1070099' OR number = '107009' OR number = '10700' OR number = '1070' OR number = '107' OR number = '10' OR number = '1' OR number ='--') OR (number = '1070099*' OR number = '107009*' OR number = '10700*' OR number = '1070*' OR number = '107*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '4810338297' OR number = '481033829' OR number = '48103382' OR number = '4810338' OR number = '481033' OR number = '48103' OR number = '4810' OR number = '481' OR number = '48' OR number = '4' OR number ='--') OR (number = '4810338297*' OR number = '481033829*' OR number = '48103382*' OR number = '4810338*' OR number = '481033*' OR number = '48103*' OR number = '4810*' OR number = '481*' OR number = '48*' OR number = '4*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1070099' OR routing_prefix = '107009' OR routing_prefix = '10700' OR routing_prefix = '1070' OR routing_prefix = '107' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 91
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 900200
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 36832.5646
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 170
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
2023-04-26 12:18:32.653330 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::170
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.653330 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.00000
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:170
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '170' and status=0
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.00000
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 198
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 1070099
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 91
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your36832.5646 balance Accountid 91 !!!
2023-04-26 12:18:32.673321 86.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 91 AND status=0 LIMIT 1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "90" AND deleted = 0 limit 1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] account call balance :SELECT * FROM accounts WHERE id =90
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:91
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:91
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 91
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
2023-04-26 12:18:32.673321 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : alpha3.astppbilling.org
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition Id : 3
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Failover Timecondition : [{"extensions":"1020202000#","no_answer_call_type":"12"}]
span style="color: green; font-weight: bold;"> 2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Timecondition : [{"hour":"17-17","minute":"44-50","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"86","no_answer_call_type":"11","priority":"2"},{"hour":"17-17","minute":"30-45","wday":"4-4","mday":"26-26","mon":"4-4","year":"2023-2023","extensions":"83","no_answer_call_type":"11","priority":"1"}]
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 2
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "86" limit 1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str : time-of-day= "17:44-17:50" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023"
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Priority : 1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Sipdevice Form Id] Query :SELECT username from sip_devices where id = "83" limit 1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from timezone WHERE id = '194' LIMIT 1
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] Condition Str : time-of-day= "17:30-17:45" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023"
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "3" AND accounts.status = 0
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
2023-04-26 12:18:32.673321 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : alpha3.astppbilling.org
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_11
2023-04-26 12:18:32.673321 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [TIME_COND] TimeCondition Id : 3
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '3' and status =0 LIMIT 1
2023-04-26 12:18:32.673321 86.77% [DEBUG] switch_cpp.cpp:1465 [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="PKKKTime" continue="true">
<condition time-of-day= "00:01-23:59" break="never">
<action application="set" data="office_status=open" inline="true"/>
<action application="set" data="extensions=1020202000#" inline="true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=12" inline="true"/>
</condition>
</extension>
<extension name="PKKKTime" continue="true">
<condition break="never">
<action application="set" data="timezone=Asia/Kolkata" inline="true"/>
</condition>
<condition time-of-day= "17:44-17:50" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023" break="never">
<action application="set" data="office_status=open" inline="true"/>
<action application="set" data="extensions=453578" inline="true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=11" inline="true"/>
</condition>
</extension>
<extension name="PKKKTime" continue="true">
<condition break="never">
<action application="set" data="timezone=Asia/Kolkata" inline="true"/>
</condition>
<condition time-of-day= "17:30-17:45" wday= "4-4" mday= "26-26" mon= "4-4" year= "2023-2023" break="never">
<action application="set" data="office_status=open" inline="true"/>
<action application="set" data="extensions=900100" inline="true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=11" inline="true"/>
</condition>
</extension>
<extension name="tod route, x1070099">
<condition field="destination_number" expression="^(\+?)?(1070099)$">
<action application="execute_extension" data="1070099_${office_status}"/>
</condition>
</extension>
<extension name="office is open">
<condition field="destination_number" expression="^(\+?)?(1070099_open)$">
<action application="set" data="domain_name=alpha3.astppbilling.org"/>
<action application="set" data="set_extensions=${extensions}"/>
<action application="set" data="no_answer_flag=true"/>
<action application="set" data="no_answer_did_number=1070099" inline="true"/>
<action application="set" data="no_answer_call_type=${no_answer_call_type}"/>
<action application="set" data="no_answer_number=${extensions}" />
<action application="transfer" data="90 XML default"/>
</condition>
</extension>
<extension name="1070099">
<condition field="destination_number" expression="1070099">
<action application="set" data="effective_destination_number=1070099"/>
<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="type=3"/>
<action application="set" data="callstart=2023-04-26 12:18:32"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=91"/>
<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=BETA"/>
<action application="export" data="t38_passthru=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<action application="set" data="origination_rates_did=ID:198|CODE:^1070099.*|DESTINATION:1070099|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:11|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:90"/>
<action application="set" data="origination_rates=0"/>
<action application="set" data="original_caller_id_name=ASTPP"/>
<action application="set" data="original_caller_id_number=4810338297"/>
<action application="set" data="effective_caller_id_name=ASTPP"/>
<action application="set" data="effective_caller_id_number=4810338297"/>
<action application="set" data="receiver_accid=90"/>
<action application="set" data="did_id=198"/>
<action application="set" data="transfer_call_type=4"/>
<action application="set" data="transfer_extensions="/>
<action application="set" data="busy_status=1"/>
<action application="set" data="no_answer_status=1"/>
<action application="set" data="always_status=1"/>
<action application="set" data="transfer_status=1"/>
<action application="set" data="variable_sip_to_host=${domain_name}"/>
<action application="set" data="variable_sip_network_ip=65.109.231.66"/>
<action application="set" data="variable_sip_network_port=5071"/>
<action application="export" data="domain_name=alpha3.astppbilling.org"/>
<action application="export" data="sip_to_host=alpha3.astppbilling.org"/>
<action application="export" data="presence_data=x|||QA PK Provider(900200)|||^1070099.* // 1070099 // 0.00000|||||||||DID|||65.109.231.66"/>
<action application="export" data="call_type=11"/>
</condition>
</extension>
</context>
</section>
</document>
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(office_status=open)
2023-04-26 12:18:32.673321 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=1020202000#) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(extensions=1020202000#)
span style="color: goldenrod; font-weight: bold;"> 2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[1020202000#]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=12) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=12)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[12]
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
Dialplan: sofia/default/4810338297@65.109.231.66 Date/Time Match (PASS) [PKKKTime] break=never
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(office_status=open) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(office_status=open)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [office_status]=[open]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(extensions=453578) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(extensions=453578)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [extensions]=[453578]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=11) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=11)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[11]
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->PKKKTime] continue=true
Dialplan: sofia/default/4810338297@65.109.231.66 Absolute Condition [PKKKTime]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(timezone=Asia/Kolkata) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(timezone=Asia/Kolkata)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [timezone]=[Asia/Kolkata]
Dialplan: sofia/default/4810338297@65.109.231.66 Date/TimeMatch (FAIL) [PKKKTime] break=never
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->tod route, x1070099] continue=false
Dialplan: sofia/default/4810338297@65.109.231.66 Regex (FAIL) [tod route, x1070099] destination_number(1070099_open) =~ /^(\+?)?(1070099)$/ break=on-false
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->office is open] continue=false
Dialplan: sofia/default/4810338297@65.109.231.66 Regex (PASS) [office is open] destination_number(1070099_open) =~ /^(\+?)?(1070099_open)$/ break=on-false
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(domain_name=alpha3.astppbilling.org)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(set_extensions=${extensions})
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_flag=true)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_did_number=1070099) INLINE
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_did_number=1070099)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_did_number]=[1070099]
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_call_type=${no_answer_call_type})
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_number=${extensions})
Dialplan: sofia/default/4810338297@65.109.231.66 Action transfer(90 XML default)
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(domain_name=alpha3.astppbilling.org)
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(domain_name=alpha3.astppbilling.org)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [domain_name]=[alpha3.astppbilling.org]
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(set_extensions=${extensions})
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(set_extensions=453578)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [set_extensions]=[453578]
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_flag=true)
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_flag=true)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_flag]=[true]
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_call_type=${no_answer_call_type})
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_call_type=11)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_call_type]=[11]
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] set(no_answer_number=${extensions})
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 set(no_answer_number=453578)
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_number]=[453578]
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_core_session.c:3095 Execute [depth=1] transfer(90 XML default)
EXECUTE [depth=1] sofia/default/4810338297@65.109.231.66 transfer(90 XML default)
2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_ivr.c:2289 (sofia/default/4810338297@65.109.231.66) State Change CS_EXECUTE -> CS_ROUTING
2023-04-26 12:18:32.693314 86.77% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/4810338297@65.109.231.66 to XML[90@default]
2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE going to sleep
2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_ROUTING (Cur 1 Tot 154)
2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
2023-04-26 12:18:32.693314 86.77% [DEBUG] mod_sofia.c:158 sofia/default/4810338297@65.109.231.66 SOFIA ROUTING
2023-04-26 12:18:32.693314 86.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/4810338297@65.109.231.66 Standard ROUTING
2023-04-26 12:18:32.693314 86.77% [INFO] mod_dialplan_xml.c:639 Processing ASTPP <4810338297>->90 in context default
2023-04-26 12:18:32.713327 86.77% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 90
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '90' limit 1
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '90' and status=0 LIMIT 1
2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERFreeSWITCH
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '90' limit 1
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '106' and username = '90' limit 1
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL] Query :SELECT local_effective_caller_id_name,local_effective_caller_id_number FROM sip_devices WHERE username = 'FreeSWITCH' limit 1
2023-04-26 12:18:32.713327 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : ASTPP / 4810338297
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 90 AND status=0 limit 1
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec 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="90" AND domains.domain="95.217.238.195" limit 1
2023-04-26 12:18:32.713327 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
2023-04-26 12:18:32.713327 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("65.109.231.66") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1)) AND "90" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 900200]
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "900200" AND deleted = 0 limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^90.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 91 limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] ringgroup_no_answer_forward _ no_answer_did_number :1070099
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="1070099" LIMIT 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="90" and did_id ="198" and number ="4810338297" and status = '0' LIMIT 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] ringgroup_no_answer_forward _ accountid :90
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "90" AND deleted = 0 limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^90.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 90 limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated RingGroup No Answer Forward :90
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 90 limit 1
2023-04-26 12:18:32.733317 86.77% [WARNING] switch_cpp.cpp:1465 [ASTPP] [ringgroup_no_answer_forward] User Domainalpha3.astppbilling.org
2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : 11
2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : Time Conditions
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_extensions_forwarding] Query :select sip_devices.id,sip_device_routing.call_forwarding_flag,sip_device_routing.call_forwarding_destination from sip_devices JOIN sip_device_routing ON sip_devices.id = sip_device_routing.sip_device_id where sip_devices.username = "453578"
2023-04-26 12:18:32.733317 86.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC5]
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="453578" AND domains.domain="alpha3.astppbilling.org" limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
2023-04-26 12:18:32.733317 86.77% [DEBUG] switch_cpp.cpp:1465 [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="90">
<condition field="destination_number" expression="90">
<action application="export" data="did_user_domain=95.217.238.195"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="ignore_early_media=true"/>
<action application="set" data="no_answer_flag=false"/>
<action application="set" data="did_calltype=11"/>
<action application="set" data="did_extensions=453578"/>
<action application="set" data="daily_call_credit_limit=3385.32920"/>
<action application="set" data="monthly_call_credit_limit=5077.99370"/>
<action application="set" data="daily_call_used_limit=0.00000"/>
<action application="set" data="monthly_call_used_limit=140.70400"/>
<action application="set" data="sip_destination_number=453578"/>
<action application="set" data="sip_to_host=alpha3.astppbilling.org"/>
<action application="set" data="user_domain=alpha3.astppbilling.org"/>
<action application="db" data="insert/pickup_any_group_${callgroup}/453578/${uuid}"/>
<action application="set" data="dialed_extension=transfer_call"/>
<action application="export" data="dialed_extension=transfer_call"/>
<action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
<action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
<action application="export" data="ring_group_transfer=true"/>
<action application="bridge" data="user/453578@alpha3.astppbilling.org"/>
<action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
</condition>
</extension>
</context>
</section>
</document>
Dialplan: sofia/default/4810338297@65.109.231.66 parsing [default->90] continue=false
Dialplan: sofia/default/4810338297@65.109.231.66 Regex (PASS) [90] destination_number(90) =~ /90/ break=on-false
Dialplan: sofia/default/4810338297@65.109.231.66 Action export(did_user_domain=95.217.238.195)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(ignore_early_media=true)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(no_answer_flag=false)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(did_calltype=11)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(did_extensions=453578)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(daily_call_credit_limit=3385.32920)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(monthly_call_credit_limit=5077.99370)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(daily_call_used_limit=0.00000)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(monthly_call_used_limit=140.70400)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(sip_destination_number=453578)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(sip_to_host=alpha3.astppbilling.org)
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(user_domain=alpha3.astppbilling.org)
Dialplan: sofia/default/4810338297@65.109.231.66 Action db(insert/pickup_any_group_${callgroup}/453578/${uuid})
Dialplan: sofia/default/4810338297@65.109.231.66 Action set(dialed_extension=transfer_call)
Dialplan: sofia/default/4810338297@65.109.231.66 Action export(dialed_extension=transfer_call)
Dialplan: sofia/default/4810338297@65.109.231.66 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
Dialplan: sofia/default/4810338297@65.109.231.66 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
Dialplan: sofia/default/4810338297@65.109.231.66 Action export(ring_group_transfer=true)
Dialplan: sofia/default/4810338297@65.109.231.66 Action bridge(user/453578@alpha3.astppbilling.org)
Dialplan: sofia/default/4810338297@65.109.231.66 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:281 (sofia/default/4810338297@65.109.231.66) State Change CS_ROUTING -> CS_EXECUTE
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4810338297@65.109.231.66) State ROUTING going to sleep
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_EXECUTE (Cur 1 Tot 154)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:213 sofia/default/4810338297@65.109.231.66 SOFIA EXECUTE
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:323 sofia/default/4810338297@65.109.231.66 Standard EXECUTE
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 export(did_user_domain=95.217.238.195)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [did_user_domain]=[95.217.238.195]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(continue_on_fail=TRUE)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [continue_on_fail]=[TRUE]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(ignore_early_media=true)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [ignore_early_media]=[true]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(no_answer_flag=false)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [no_answer_flag]=[false]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(did_calltype=11)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [did_calltype]=[11]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(did_extensions=453578)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [did_extensions]=[453578]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(daily_call_credit_limit=3385.32920)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [daily_call_credit_limit]=[3385.32920]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(monthly_call_credit_limit=5077.99370)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [monthly_call_credit_limit]=[5077.99370]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(daily_call_used_limit=0.00000)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [daily_call_used_limit]=[0.00000]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(monthly_call_used_limit=140.70400)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [monthly_call_used_limit]=[140.70400]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(sip_destination_number=453578)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [sip_destination_number]=[453578]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(sip_to_host=alpha3.astppbilling.org)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [sip_to_host]=[alpha3.astppbilling.org]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(user_domain=alpha3.astppbilling.org)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [user_domain]=[alpha3.astppbilling.org]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 db(insert/pickup_any_group_/453578/997a1c3e-5a62-4f26-94bc-fcc9027f2673)
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 set(dialed_extension=transfer_call)
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_dptools.c:1685 SET sofia/default/4810338297@65.109.231.66 [dialed_extension]=[transfer_call]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 export(dialed_extension=transfer_call)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [dialed_extension]=[transfer_call]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
2023-04-26 12:18:32.753338 86.77% [INFO] switch_ivr_async.c:4774 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
2023-04-26 12:18:32.753338 86.77% [INFO] switch_ivr_async.c:4774 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 export(ring_group_transfer=true)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [ring_group_transfer]=[true]
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 bridge(user/453578@alpha3.astppbilling.org)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [did_user_domain]=[95.217.238.195] to event
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [ring_group_transfer]=[true] to event
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [did_user_domain]=[95.217.238.195] to event
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_channel.c:1269 sofia/default/4810338297@65.109.231.66 EXPORTING[export_vars] [ring_group_transfer]=[true] to event
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
2023-04-26 12:18:32.753338 86.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/453578@103.240.35.46:45685 [63ed2f2f-ca3f-40dd-ae2d-05e57660f8e8]
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:5121 (sofia/default/453578@103.240.35.46:45685) State Change CS_NEW -> CS_INIT
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_INIT (Cur 2 Tot 155)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/453578@103.240.35.46:45685) State INIT
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:97 sofia/default/453578@103.240.35.46:45685 SOFIA INIT
2023-04-26 12:18:32.753338 86.77% [DEBUG] sofia_glue.c:1620 sip:453578@103.240.35.46:60412;rinstance=ab52ddfda677f2fb;transport=TCP Setting proxy route to sofia/default/453578@103.240.35.46:45685
2023-04-26 12:18:32.753338 86.77% [INFO] sofia_glue.c:1651 sofia/default/453578@103.240.35.46:45685 sending invite call-id: (null)
2023-04-26 12:18:32.753338 86.77% [DEBUG] sofia_glue.c:1654 sofia/default/453578@103.240.35.46:45685 sending invite version: 1.10.7 -release 64bit
Local SDP:
v=0
o=FreeSWITCH 1682486352 1682486353 IN IP4 95.217.238.195
s=FreeSWITCH
c=IN IP4 95.217.238.195
t=0 0
m=audio 25160 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:40 sofia/default/453578@103.240.35.46:45685 Standard INIT
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:48 (sofia/default/453578@103.240.35.46:45685) State Change CS_INIT -> CS_ROUTING
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/453578@103.240.35.46:45685) State INIT going to sleep
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_ROUTING (Cur 2 Tot 155)
2023-04-26 12:18:32.753338 86.77% [DEBUG] sofia.c:7499 Channel sofia/default/453578@103.240.35.46:45685 entering state [calling][0]
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/453578@103.240.35.46:45685) State ROUTING
2023-04-26 12:18:32.753338 86.77% [DEBUG] mod_sofia.c:158 sofia/default/453578@103.240.35.46:45685 SOFIA ROUTING
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_ivr_originate.c:67 (sofia/default/453578@103.240.35.46:45685) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/453578@103.240.35.46:45685) State ROUTING going to sleep
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 155)
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:659 (sofia/default/453578@103.240.35.46:45685) State CONSUME_MEDIA
2023-04-26 12:18:32.753338 86.77% [DEBUG] switch_core_state_machine.c:659 (sofia/default/453578@103.240.35.46:45685) State CONSUME_MEDIA going to sleep
2023-04-26 12:18:33.373357 86.70% [WARNING] sofia_reg.c:3223 Can't find user [4763591959@alpha5.astppbilling.org] from 103.240.35.46
You must define a domain called 'alpha5.astppbilling.org' in your directory and add a user with the id="4763591959" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2023-04-26 12:18:33.613351 86.70% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:34.013364 86.70% [DEBUG] sofia.c:7499 Channel sofia/default/453578@103.240.35.46:45685 entering state [proceeding][180]
2023-04-26 12:18:34.013364 86.70% [NOTICE] sofia.c:7610 Ring-Ready sofia/default/453578@103.240.35.46:45685!
2023-04-26 12:18:34.013364 86.70% [NOTICE] mod_sofia.c:2515 Ring-Ready sofia/default/4810338297@65.109.231.66!
2023-04-26 12:18:34.013364 86.70% [DEBUG] switch_channel.c:3494 (sofia/default/453578@103.240.35.46:45685) Callstate Change DOWN -> RINGING
2023-04-26 12:18:34.013364 86.70% [DEBUG] sofia.c:7499 Channel sofia/default/4810338297@65.109.231.66 entering state [early][180]
2023-04-26 12:18:34.013364 86.70% [NOTICE] switch_ivr_originate.c:565 Ring Ready sofia/default/4810338297@65.109.231.66!
2023-04-26 12:18:34.253367 86.63% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:35.293342 86.97% [WARNING] sofia_reg.c:3223 Can't find user [4763591959@alpha5.astppbilling.org] from 103.240.35.46
You must define a domain called 'alpha5.astppbilling.org' in your directory and add a user with the id="4763591959" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2023-04-26 12:18:35.593384 86.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4763591959@alpha5.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:36.513387 86.73% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4727985745@alpha.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:36.853326 86.73% [WARNING] sofia_reg.c:3223 Can't find user [4727985745@alpha.astppbilling.org] from 103.240.35.46
You must define a domain called 'alpha.astppbilling.org' in your directory and add a user with the id="4727985745" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2023-04-26 12:18:37.433337 86.57% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [192038@alpha.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:38.133374 86.57% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [900100@alpha3.astppbilling.org] from ip 103.240.35.46
2023-04-26 12:18:38.475005 86.43% [WARNING] sofia_reg.c:3223 Can't find user [192038@alpha.astppbilling.org] from 103.240.35.46
You must define a domain called 'alpha.astppbilling.org' in your directory and add a user with the id="192038" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2023-04-26 12:18:41.573426 87.17% [DEBUG] sofia.c:7499 Channel sofia/default/453578@103.240.35.46:45685 entering state [terminated][486]
2023-04-26 12:18:41.573426 87.17% [NOTICE] sofia.c:8738 Hangup sofia/default/453578@103.240.35.46:45685 [CS_CONSUME_MEDIA] [USER_BUSY]
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_HANGUP (Cur 2 Tot 155)
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/453578@103.240.35.46:45685) Callstate Change RINGING -> HANGUP
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/453578@103.240.35.46:45685) State HANGUP
2023-04-26 12:18:41.573426 87.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/453578@103.240.35.46:45685 hanging up, cause: USER_BUSY
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/453578@103.240.35.46:45685 Standard HANGUP, cause: USER_BUSY
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/453578@103.240.35.46:45685) State HANGUP going to sleep
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/453578@103.240.35.46:45685) State Change CS_HANGUP -> CS_REPORTING
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_REPORTING (Cur 2 Tot 155)
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/453578@103.240.35.46:45685) State REPORTING
2023-04-26 12:18:41.573426 87.17% [INFO] mod_json_cdr.c:271 Process [63ed2f2f-ca3f-40dd-ae2d-05e57660f8e8.cdr.json]
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 17 [USER_BUSY]
2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_ivr_originate.c:3039 Cannot create outgoing channel of type [user] cause: [USER_BUSY]
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 17 [USER_BUSY]
2023-04-26 12:18:41.573426 87.17% [INFO] mod_dptools.c:3653 Originate Failed. Cause: USER_BUSY
EXECUTE [depth=0] sofia/default/4810338297@65.109.231.66 lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes','interconnect_code')
2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_cpp.cpp:1465 [Astpp_SIP-Devices] This Is Last Dispositions USER_BUSY This Is SIP Number : 453578
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes','interconnect_code')
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/453578@103.240.35.46:45685 Standard REPORTING, cause: USER_BUSY
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/453578@103.240.35.46:45685) State REPORTING going to sleep
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/453578@103.240.35.46:45685) State Change CS_REPORTING -> CS_DESTROY
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_session.c:1753 Session 155 (sofia/default/453578@103.240.35.46:45685) Locked, Waiting on external entities
2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_core_session.c:1771 Session 155 (sofia/default/453578@103.240.35.46:45685) Ended
2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/453578@103.240.35.46:45685 [CS_DESTROY]
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/453578@103.240.35.46:45685) Running State Change CS_DESTROY (Cur 1 Tot 155)
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/453578@103.240.35.46:45685) State DESTROY
2023-04-26 12:18:41.573426 87.17% [DEBUG] mod_sofia.c:379 sofia/default/453578@103.240.35.46:45685 SOFIA DESTROY
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/453578@103.240.35.46:45685 Standard DESTROY
2023-04-26 12:18:41.573426 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/453578@103.240.35.46:45685) State DESTROY going to sleep
2023-04-26 12:18:41.573426 87.17% [NOTICE] switch_cpp.cpp:1465 [Astpp_SIP-Devices] dialed_user for voicemail::: 453578
2023-04-26 12:18:41.613319 87.17% [ERR] mod_lua.cpp:202 ...switch/scripts/astpp/lib/pbx/astpp-custom-voice-mail.lua:57: attempt to concatenate local 'userinfo_id' (a nil value)
stack traceback:
...switch/scripts/astpp/lib/pbx/astpp-custom-voice-mail.lua:57: in function 'custom_voicemail'
...switch/scripts/astpp/lib/pbx/astpp-sipdevice-routing.lua:174: in main chunk
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_cpp.cpp:1209 sofia/default/4810338297@65.109.231.66 destroy/unlink session from object
2023-04-26 12:18:41.613319 87.17% [NOTICE] switch_core_state_machine.c:382 sofia/default/4810338297@65.109.231.66 has executed the last dialplan instruction, hanging up.
2023-04-26 12:18:41.613319 87.17% [NOTICE] switch_core_state_machine.c:384 Hangup sofia/default/4810338297@65.109.231.66 [CS_EXECUTE] [NORMAL_CLEARING]
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:647 (sofia/default/4810338297@65.109.231.66) State EXECUTE going to sleep
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_HANGUP (Cur 1 Tot 155)
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:844 (sofia/default/4810338297@65.109.231.66) Callstate Change RINGING -> HANGUP
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/4810338297@65.109.231.66) State HANGUP
2023-04-26 12:18:41.613319 87.17% [DEBUG] mod_sofia.c:462 sofia/default/4810338297@65.109.231.66 Overriding SIP cause 480 with 486 from the other leg
2023-04-26 12:18:41.613319 87.17% [DEBUG] mod_sofia.c:468 Channel sofia/default/4810338297@65.109.231.66 hanging up, cause: NORMAL_CLEARING
2023-04-26 12:18:41.613319 87.17% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 486
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:59 sofia/default/4810338297@65.109.231.66 Standard HANGUP, cause: NORMAL_CLEARING
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:846 (sofia/default/4810338297@65.109.231.66) State HANGUP going to sleep
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:616 (sofia/default/4810338297@65.109.231.66) State Change CS_HANGUP -> CS_REPORTING
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4810338297@65.109.231.66) Running State Change CS_REPORTING (Cur 1 Tot 155)
2023-04-26 12:18:41.613319 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/4810338297@65.109.231.66) State REPORTING
2023-04-26 12:18:41.613319 87.17% [INFO] mod_json_cdr.c:271 Process [997a1c3e-5a62-4f26-94bc-fcc9027f2673.cdr.json]
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:168 sofia/default/4810338297@65.109.231.66 Standard REPORTING, cause: NORMAL_CLEARING
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:932 (sofia/default/4810338297@65.109.231.66) State REPORTING going to sleep
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:607 (sofia/default/4810338297@65.109.231.66) State Change CS_REPORTING -> CS_DESTROY
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_session.c:1753 Session 154 (sofia/default/4810338297@65.109.231.66) Locked, Waiting on external entities
2023-04-26 12:18:41.633336 87.17% [NOTICE] switch_core_session.c:1771 Session 154 (sofia/default/4810338297@65.109.231.66) Ended
2023-04-26 12:18:41.633336 87.17% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/4810338297@65.109.231.66 [CS_DESTROY]
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:735 (sofia/default/4810338297@65.109.231.66) Running State Change CS_DESTROY (Cur 0 Tot 155)
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/4810338297@65.109.231.66) State DESTROY
2023-04-26 12:18:41.633336 87.17% [DEBUG] mod_sofia.c:379 sofia/default/4810338297@65.109.231.66 SOFIA DESTROY
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:175 sofia/default/4810338297@65.109.231.66 Standard DESTROY
2023-04-26 12:18:41.633336 87.17% [DEBUG] switch_core_state_machine.c:745 (sofia/default/4810338297@65.109.231.66) State DESTROY going to sleep
2023-04-26 12:18:59.413340 86.70% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [21@alpha.astppbilling.org] from ip 103.240.35.46