2023-06-19 09:58:36.135241 95.80% [CONSOLE] sofia_presence.c:1620 Event Thread Started
2023-06-19 09:58:42.555289 95.97% [NOTICE] switch_channel.c:1123 New Channel sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [8aab21a1-8bc0-494d-84b1-652be881bfad]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) Running State Change CS_NEW (Cur 1 Tot 34)
2023-06-19 09:58:42.555289 95.97% [INFO] sofia.c:10462 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 receiving invite from 78.47.101.152:5075 version: 1.10.7 -release 64bit call-id: NjU2NzdjOTQ5MjVlM2NkM2YwZDYyOGFkZmU3MWYyYWQ.
2023-06-19 09:58:42.555289 95.97% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 78.47.101.152:0.
2023-06-19 09:58:42.555289 95.97% [DEBUG] sofia.c:10585 IP 78.47.101.152 Approved by acl "default[]". Access Granted.
2023-06-19 09:58:42.555289 95.97% [DEBUG] sofia.c:7499 Channel sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 entering state [received][100]
2023-06-19 09:58:42.555289 95.97% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=Z 0 0 IN IP4 103.240.35.46
s=Z
c=IN IP4 103.240.35.46
t=0 0
m=audio 8000 RTP/AVP 3 110 8 0 98 101
a=rtpmap:110 speex/8000
a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_codec.c:111 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Original read codec set to PCMA:8
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_media.c:5973 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Set 2833 dtmf send payload to 101 recv payload to 101
2023-06-19 09:58:42.555289 95.97% [DEBUG] sofia.c:7933 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State Change CS_NEW -> CS_INIT
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:600 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State NEW
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) Running State Change CS_INIT (Cur 1 Tot 34)
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State INIT
2023-06-19 09:58:42.555289 95.97% [DEBUG] mod_sofia.c:97 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 SOFIA INIT
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:40 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Standard INIT
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:48 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State Change CS_INIT -> CS_ROUTING
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State INIT going to sleep
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) Running State Change CS_ROUTING (Cur 1 Tot 34)
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_channel.c:2380 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) Callstate Change DOWN -> RINGING
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State ROUTING
2023-06-19 09:58:42.555289 95.97% [DEBUG] mod_sofia.c:158 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 SOFIA ROUTING
2023-06-19 09:58:42.555289 95.97% [DEBUG] switch_core_state_machine.c:230 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Standard ROUTING
2023-06-19 09:58:42.555289 95.97% [INFO] mod_dialplan_xml.c:639 Processing 8871003676 <8871003676>->1040404040404 in context default
2023-06-19 09:58:42.575237 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] CACHE FAIL
2023-06-19 09:58:42.575237 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2023-06-19 09:58:42.575237 95.97% [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-06-19 09:58:42.595235 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-06-19 09:58:42.595235 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
2023-06-19 09:58:42.595235 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1040404040404
2023-06-19 09:58:42.595235 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1040404040404' limit 1
2023-06-19 09:58:42.595235 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '1040404040404' AND status=0 limit 1
2023-06-19 09:58:42.595235 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1040404040404' and status=0 LIMIT 1
2023-06-19 09:58:42.595235 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER8871003676
2023-06-19 09:58:42.595235 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'clusterguibeta1.astppbilling.org' limit 1
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '19' and username = '1040404040404' limit 1
2023-06-19 09:58:42.615225 95.97% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
2023-06-19 09:58:42.615225 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 8871003676 / 8871003676
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 4040404
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 104040 AND status=0 limit 1
2023-06-19 09:58:42.615225 95.97% [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 ="1040404040404" LIMIT 1
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-06-19 09:58:42.615225 95.97% [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="1040404040404" AND domains.domain="clusterguibeta1.astppbilling.org" limit 1
2023-06-19 09:58:42.615225 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
2023-06-19 09:58:42.615225 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 103.240.35.46
2023-06-19 09:58:42.615225 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 8871003676]
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =1040404040404
2023-06-19 09:58:42.615225 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "8871003676" AND deleted = 0 limit 1
2023-06-19 09:58:42.635288 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^1040404040404.*' OR blocked_patterns = '^104040404040.*' OR blocked_patterns = '^10404040404.*' OR blocked_patterns = '^1040404040.*' OR blocked_patterns = '^104040404.*' OR blocked_patterns = '^10404040.*' OR blocked_patterns = '^1040404.*' OR blocked_patterns = '^104040.*' OR blocked_patterns = '^10404.*' OR blocked_patterns = '^1040.*' OR blocked_patterns = '^104.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 19 limit 1
2023-06-19 09:58:42.635288 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="1040404040404" AND (accountid = 0 OR status = 1) LIMIT 1
2023-06-19 09:58:42.635288 95.97% [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 = '^1040404040404.*' OR patterns = '^104040404040.*' OR patterns = '^10404040404.*' OR patterns = '^1040404040.*' OR patterns = '^104040404.*' OR patterns = '^10404040.*' OR patterns = '^1040404.*' OR patterns = '^104040.*' OR patterns = '^10404.*' OR patterns = '^1040.*' OR patterns = '^104.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 19 ORDER BY LENGTH(PKGPTR.patterns) DESC
2023-06-19 09:58:42.635288 95.97% [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 ="1040404040404" AND A.accountid = '19' limit 1
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1040404040404
2023-06-19 09:58:42.635288 95.97% [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 ="1040404040404" LIMIT 1
2023-06-19 09:58:42.635288 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-06-19 09:58:42.635288 95.97% [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="1040404040404" AND domains.domain="clusterguibeta1.astppbilling.org" limit 1
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
2023-06-19 09:58:42.635288 95.97% [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 = '1040404040404' OR number = '104040404040' OR number = '10404040404' OR number = '1040404040' OR number = '104040404' OR number = '10404040' OR number = '1040404' OR number = '104040' OR number = '10404' OR number = '1040' OR number = '104' OR number = '10' OR number = '1' OR number ='--') OR (number = '1040404040404*' OR number = '104040404040*' OR number = '10404040404*' OR number = '1040404040*' OR number = '104040404*' OR number = '10404040*' OR number = '1040404*' OR number = '104040*' OR number = '10404*' OR number = '1040*' OR number = '104*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '8871003676' OR number = '887100367' OR number = '88710036' OR number = '8871003' OR number = '887100' OR number = '88710' OR number = '8871' OR number = '887' OR number = '88' OR number = '8' OR number ='--') OR (number = '8871003676*' OR number = '887100367*' OR number = '88710036*' OR number = '8871003*' OR number = '887100*' OR number = '88710*' OR number = '8871*' OR number = '887*' OR number = '88*' OR number = '8*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2023-06-19 09:58:42.635288 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
2023-06-19 09:58:42.635288 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1040404040404' OR routing_prefix = '104040404040' OR routing_prefix = '10404040404' OR routing_prefix = '1040404040' OR routing_prefix = '104040404' OR routing_prefix = '10404040' OR routing_prefix = '1040404' OR routing_prefix = '104040' OR routing_prefix = '10404' OR routing_prefix = '1040' OR routing_prefix = '104' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 19
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 8871003676
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 49924.83
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
2023-06-19 09:58:42.635288 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2023-06-19 09:58:42.635288 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^1040404040404.*' OR pattern = '^104040404040.*' OR pattern = '^10404040404.*' OR pattern = '^1040404040.*' OR pattern = '^104040404.*' OR pattern = '^10404040.*' OR pattern = '^1040404.*' OR pattern = '^104040.*' OR pattern = '^10404.*' OR pattern = '^1040.*' OR pattern = '^104.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^8871003676.*' OR caller_id_pattern = '^887100367.*' OR caller_id_pattern = '^88710036.*' OR caller_id_pattern = '^8871003.*' OR caller_id_pattern = '^887100.*' OR caller_id_pattern = '^88710.*' OR caller_id_pattern = '^8871.*' OR caller_id_pattern = '^887.*' OR caller_id_pattern = '^88.*' OR caller_id_pattern = '^8.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 4 OR accountid=19) ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : outbound
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.64000
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:4
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '4' and status=0
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.64000
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 6
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.64000
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : PK-QA-Destination
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 149
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 19
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [Shadow_billing_rates]SHADOWBILLING:|ID:6|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.64000|INC:60|INITIALBLOCK:60|RATEGROUP:4|MARKUP:0|CI:149|ACCID:19!!!
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your49924.83 balance Accountid 19 !!!
2023-06-19 09:58:42.655227 95.97% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id :
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=4 ORDER by id asc
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.sip_cid_type,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^1040404040404.*' OR pattern = '^104040404040.*' OR pattern = '^10404040404.*' OR pattern = '^1040404040.*' OR pattern = '^104040404.*' OR pattern = '^10404040.*' OR pattern = '^1040404.*' OR pattern = '^104040.*' OR pattern = '^10404.*' OR pattern = '^1040.*' OR pattern = '^104.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (3) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Termination Rates Information ===================
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 3
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Code : ^1.*
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Destination : PK-QA-Destination
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Free Seconds : 0
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Prefix : ^1.*
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Strip :
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Prepend :
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Carrier id : 3
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] carrier_name : PKCallServices
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] dialplan_variable :
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Failover gateway :
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Vendor id : 20
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Max channels : 0
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================END OF TERMINATION RATES=======================
2023-06-19 09:58:42.655227 95.97% [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 = 19 AND status=0 LIMIT 1
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
2023-06-19 09:58:42.655227 95.97% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : outbound
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Set number as redial] destination_number :1040404040404
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Set number as return] destination_number :1040404040404
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 20) AND status=0 limit 1
2023-06-19 09:58:42.655227 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from trunks where id = 3) AND status=0 limit 1
2023-06-19 09:58:42.655227 95.97% [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="8871003676" AND domains.domain="clusterguibeta1.astppbilling.org" limit 1
2023-06-19 09:58:42.655227 95.97% [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 ="1040404040404" LIMIT 1
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2023-06-19 09:58:42.675229 95.97% [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="1040404040404">
<condition field="destination_number" expression="1040404040404">
<action application="set" data="effective_destination_number=1040404040404"/>
<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="notify_flag=0"/>
<action application="set" data="notify_credit_limit=5.00000"/>
<action application="set" data="type=0"/>
<action application="set" data="callstart=2023-06-19 09:58:42"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=19"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=0"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=outbound"/>
<action application="set" data="accountname=default"/>
<action application="set" data="filename1=astpp.pbx.lua"/>
<action application="set" data="origination_rates=SHADOWBILLING:|ID:6|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.64000|INC:60|INITIALBLOCK:60|RATEGROUP:4|MARKUP:0|CI:149|ACCID:19"/>
<action application="set" data="original_caller_id_name=8871003676"/>
<action application="set" data="original_caller_id_number=8871003676"/>
<action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/>
<action application="hash" data="insert/${domain_name}-call_return/${destination_number}/${caller_id_number}"/>
<action application="set" data="effective_caller_id_name=8871003676"/>
<action application="set" data="effective_caller_id_number=8871003676"/>
<action application="set" data="calltype=STANDARD"/>
<action application="set" data="termination_rates=ID:3|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.30000|INC:60|INITIALBLOCK:60|TRUNK:3|PROVIDER:20"/>
<action application="set" data="trunk_id=3"/>
<action application="set" data="provider_id=20"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="daily_call_credit_limit=0.00000"/>
<action application="set" data="monthly_call_credit_limit=0.00000"/>
<action application="set" data="daily_call_used_limit=0.00000"/>
<action application="set" data="monthly_call_used_limit=0.00000"/>
<action application="set" data="quality_trunk_seq=3"/>
<action application="set" data="force_trunk_flag=0"/>
<action application="export" data="presence_data=trunk_id=3"/>
<action application="set" data="intcall=0"/>
<action application="export" data="presence_id=1040404040404"/>
<action application="export" data="presence_data=x|||PK Call Service(8871003676)|||^1.* // PK-QA-Destination // 0.64000 |||PK-Trunk-OutBoundCall-Services // ^1.* // PK-QA-Destination // 0.30000 // trunk_id=3|||STD|||103.240.35.46"/>
<action application="bridge" data="{sip_cid_type=none}[leg_timeout=0]sofia/gateway/PKCallServices/1040404040404;fs_path=sip:78.47.101.152:5075"/>
</condition>
</extension>
</context>
</section>
</document>
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 parsing [default->1040404040404] continue=false
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Regex (PASS) [1040404040404] destination_number(1040404040404) =~ /1040404040404/ break=on-false
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(effective_destination_number=1040404040404)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(notify_flag=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(notify_credit_limit=5.00000)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(type=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(callstart=2023-06-19 09:58:42)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(account_id=19)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(parent_id=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(entity_id=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(call_processed=internal)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(call_direction=outbound)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(accountname=default)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(filename1=astpp.pbx.lua)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(origination_rates=SHADOWBILLING:|ID:6|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.64000|INC:60|INITIALBLOCK:60|RATEGROUP:4|MARKUP:0|CI:149|ACCID:19)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(original_caller_id_name=8871003676)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(original_caller_id_number=8871003676)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action hash(insert/${domain_name}-call_return/${destination_number}/${caller_id_number})
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(effective_caller_id_name=8871003676)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(effective_caller_id_number=8871003676)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(calltype=STANDARD)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(termination_rates=ID:3|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.30000|INC:60|INITIALBLOCK:60|TRUNK:3|PROVIDER:20)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(trunk_id=3)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(provider_id=20)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(rate_flag=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(daily_call_credit_limit=0.00000)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(monthly_call_credit_limit=0.00000)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(daily_call_used_limit=0.00000)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(monthly_call_used_limit=0.00000)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(quality_trunk_seq=3)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(force_trunk_flag=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action export(presence_data=trunk_id=3)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action set(intcall=0)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action export(presence_id=1040404040404)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action export(presence_data=x|||PK Call Service(8871003676)|||^1.* // PK-QA-Destination // 0.64000 |||PK-Trunk-OutBoundCall-Services // ^1.* // PK-QA-Destination // 0.30000 // trunk_id=3|||STD|||103.240.35.46)
Dialplan: sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Action bridge({sip_cid_type=none}[leg_timeout=0]sofia/gateway/PKCallServices/1040404040404;fs_path=sip:78.47.101.152:5075)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:281 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State Change CS_ROUTING -> CS_EXECUTE
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State ROUTING going to sleep
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) Running State Change CS_EXECUTE (Cur 1 Tot 34)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:647 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) State EXECUTE
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_sofia.c:213 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 SOFIA EXECUTE
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:323 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Standard EXECUTE
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(effective_destination_number=1040404040404)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [effective_destination_number]=[1040404040404]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(bridge_pre_execute_bleg_app=sched_hangup)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [bridge_pre_execute_bleg_app]=[sched_hangup]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(notify_flag=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [notify_flag]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(notify_credit_limit=5.00000)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [notify_credit_limit]=[5.00000]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(type=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [type]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(callstart=2023-06-19 09:58:42)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [callstart]=[2023-06-19 09:58:42]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(hangup_after_bridge=true)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [hangup_after_bridge]=[true]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(continue_on_fail=TRUE)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [continue_on_fail]=[TRUE]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(account_id=19)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [account_id]=[19]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(parent_id=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [parent_id]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(entity_id=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [entity_id]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(call_processed=internal)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [call_processed]=[internal]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(call_direction=outbound)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [call_direction]=[outbound]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(accountname=default)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [accountname]=[default]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(filename1=astpp.pbx.lua)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [filename1]=[astpp.pbx.lua]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(origination_rates=SHADOWBILLING:|ID:6|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.64000|INC:60|INITIALBLOCK:60|RATEGROUP:4|MARKUP:0|CI:149|ACCID:19)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [origination_rates]=[SHADOWBILLING:|ID:6|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.64000|INC:60|INITIALBLOCK:60|RATEGROUP:4|MARKUP:0|CI:149|ACCID:19]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(original_caller_id_name=8871003676)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [original_caller_id_name]=[8871003676]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(original_caller_id_number=8871003676)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [original_caller_id_number]=[8871003676]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 hash(insert/167.235.194.5-last_dial/8871003676/1040404040404)
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 hash(insert/167.235.194.5-call_return/1040404040404/8871003676)
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(effective_caller_id_name=8871003676)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [effective_caller_id_name]=[8871003676]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(effective_caller_id_number=8871003676)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [effective_caller_id_number]=[8871003676]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(calltype=STANDARD)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [calltype]=[STANDARD]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(termination_rates=ID:3|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.30000|INC:60|INITIALBLOCK:60|TRUNK:3|PROVIDER:20)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [termination_rates]=[ID:3|CODE:^1.*|DESTINATION:PK-QA-Destination|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.30000|INC:60|INITIALBLOCK:60|TRUNK:3|PROVIDER:20]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(trunk_id=3)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [trunk_id]=[3]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(provider_id=20)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [provider_id]=[20]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(rate_flag=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [rate_flag]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(daily_call_credit_limit=0.00000)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [daily_call_credit_limit]=[0.00000]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(monthly_call_credit_limit=0.00000)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [monthly_call_credit_limit]=[0.00000]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(daily_call_used_limit=0.00000)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [daily_call_used_limit]=[0.00000]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(monthly_call_used_limit=0.00000)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [monthly_call_used_limit]=[0.00000]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(quality_trunk_seq=3)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [quality_trunk_seq]=[3]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(force_trunk_flag=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [force_trunk_flag]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 export(presence_data=trunk_id=3)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[trunk_id=3]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 set(intcall=0)
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_dptools.c:1685 SET sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 [intcall]=[0]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 export(presence_id=1040404040404)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_id]=[1040404040404]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 export(presence_data=x|||PK Call Service(8871003676)|||^1.* // PK-QA-Destination // 0.64000 |||PK-Trunk-OutBoundCall-Services // ^1.* // PK-QA-Destination // 0.30000 // trunk_id=3|||STD|||103.240.35.46)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||PK Call Service(8871003676)|||^1.* // PK-QA-Destination // 0.64000 |||PK-Trunk-OutBoundCall-Services // ^1.* // PK-QA-Destination // 0.30000 // trunk_id=3|||STD|||103.240.35.46]
EXECUTE [depth=0] sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 bridge({sip_cid_type=none}[leg_timeout=0]sofia/gateway/PKCallServices/1040404040404;fs_path=sip:78.47.101.152:5075)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_channel.c:1269 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 EXPORTING[export_vars] [presence_data]=[x|||PK Call Service(8871003676)|||^1.* // PK-QA-Destination // 0.64000 |||PK-Trunk-OutBoundCall-Services // ^1.* // PK-QA-Destination // 0.30000 // trunk_id=3|||STD|||103.240.35.46] to event
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_channel.c:1269 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 EXPORTING[export_vars] [presence_id]=[1040404040404] to event
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_channel.c:1269 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 EXPORTING[export_vars] [presence_data]=[x|||PK Call Service(8871003676)|||^1.* // PK-QA-Destination // 0.64000 |||PK-Trunk-OutBoundCall-Services // ^1.* // PK-QA-Destination // 0.30000 // trunk_id=3|||STD|||103.240.35.46] to event
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
2023-06-19 09:58:42.675229 95.97% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1040404040404 [7494a9fa-ac34-4ea7-9b1f-e20951abe224]
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_sofia.c:5121 (sofia/default/1040404040404) State Change CS_NEW -> CS_INIT
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1040404040404) Running State Change CS_INIT (Cur 2 Tot 35)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1040404040404) State INIT
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_sofia.c:97 sofia/default/1040404040404 SOFIA INIT
2023-06-19 09:58:42.675229 95.97% [DEBUG] sofia_glue.c:1620 sip:78.47.101.152:5075 Setting proxy route to sofia/default/1040404040404
2023-06-19 09:58:42.675229 95.97% [INFO] sofia_glue.c:1651 sofia/default/1040404040404 sending invite call-id: (null)
2023-06-19 09:58:42.675229 95.97% [DEBUG] sofia_glue.c:1654 sofia/default/1040404040404 sending invite version: 1.10.7 -release 64bit
Local SDP:
v=0
o=FreeSWITCH 1687149420 1687149421 IN IP4 167.235.194.5
s=FreeSWITCH
c=IN IP4 167.235.194.5
t=0 0
m=audio 19302 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-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:40 sofia/default/1040404040404 Standard INIT
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:48 (sofia/default/1040404040404) State Change CS_INIT -> CS_ROUTING
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:624 (sofia/default/1040404040404) State INIT going to sleep
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1040404040404) Running State Change CS_ROUTING (Cur 2 Tot 35)
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1040404040404) State ROUTING
2023-06-19 09:58:42.675229 95.97% [DEBUG] mod_sofia.c:158 sofia/default/1040404040404 SOFIA ROUTING
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_ivr_originate.c:67 (sofia/default/1040404040404) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1040404040404) State ROUTING going to sleep
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1040404040404) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 35)
2023-06-19 09:58:42.675229 95.97% [DEBUG] sofia.c:7499 Channel sofia/default/1040404040404 entering state [calling][0]
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:659 (sofia/default/1040404040404) State CONSUME_MEDIA
2023-06-19 09:58:42.675229 95.97% [DEBUG] switch_core_state_machine.c:659 (sofia/default/1040404040404) State CONSUME_MEDIA going to sleep
2023-06-19 09:58:42.775252 95.97% [DEBUG] sofia.c:7499 Channel sofia/default/1040404040404 entering state [completing][200]
2023-06-19 09:58:42.775252 95.97% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=root 1104855054 1104855054 IN IP4 159.203.131.36
s=Asterisk PBX 16.4.0
c=IN IP4 159.203.131.36
t=0 0
m=audio 14078 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
2023-06-19 09:58:42.775252 95.97% [DEBUG] sofia.c:7499 Channel sofia/default/1040404040404 entering state [ready][200]
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/1040404040404 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_codec.c:111 sofia/default/1040404040404 Original read codec set to PCMA:8
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:5973 sofia/default/1040404040404 Set 2833 dtmf send payload to 101 recv payload to 101
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/1040404040404] 167.235.194.5 port 19302 -> 159.203.131.36 port 14078 codec: 8 ms: 20
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:9089 sofia/default/1040404040404 Set 2833 dtmf send payload to 101
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:9096 sofia/default/1040404040404 Set 2833 dtmf receive payload to 101
2023-06-19 09:58:42.775252 95.97% [DEBUG] switch_core_media.c:9119 sofia/default/1040404040404 Set rtp dtmf delay to 40
2023-06-19 09:58:42.775252 95.97% [NOTICE] sofia.c:8683 Channel [sofia/default/1040404040404] has been answered
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_channel.c:3950 (sofia/default/1040404040404) Callstate Change DOWN -> ACTIVE
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075] 167.235.194.5 port 28612 -> 103.240.35.46 port 8000 codec: 8 ms: 20
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_core_media.c:9089 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Set 2833 dtmf send payload to 101
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_core_media.c:9096 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Set 2833 dtmf receive payload to 101
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_core_media.c:9119 sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 Set rtp dtmf delay to 40
2023-06-19 09:58:42.795285 95.53% [DEBUG] mod_sofia.c:913 Local SDP sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075:
v=0
o=FreeSWITCH 1687140110 1687140111 IN IP4 167.235.194.5
s=FreeSWITCH
c=IN IP4 167.235.194.5
t=0 0
m=audio 28612 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-06-19 09:58:42.795285 95.53% [NOTICE] switch_ivr_originate.c:3834 Channel [sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075] has been answered
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_channel.c:3950 (sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075) Callstate Change RINGING -> ACTIVE
2023-06-19 09:58:42.795285 95.53% [DEBUG] sofia.c:7499 Channel sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 entering state [completed][200]
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_ivr_originate.c:3892 Originate Resulted in Success: [sofia/default/1040404040404] Peer UUID: 7494a9fa-ac34-4ea7-9b1f-e20951abe224
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/1040404040404) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1040404040404) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 35)
2023-06-19 09:58:42.795285 95.53% [DEBUG] switch_core_state_machine.c:650 (sofia/default/1040404040404) State EXCHANGE_MEDIA
2023-06-19 09:58:42.795285 95.53% [DEBUG] mod_sofia.c:671 SOFIA EXCHANGE_MEDIA
2023-06-19 09:58:42.975260 95.53% [DEBUG] switch_ivr_bridge.c:655 sofia/default/1040404040404 Bridge execute app sched_hangup(+6000 normal_clearing)
2023-06-19 09:58:42.995241 95.53% [DEBUG] switch_ivr.c:632 sofia/default/1040404040404 Command Execute [depth=0] sched_hangup(+6000 normal_clearing)
EXECUTE [depth=0] sofia/default/1040404040404 sched_hangup(+6000 normal_clearing)
2023-06-19 09:58:42.995241 95.53% [DEBUG] switch_scheduler.c:263 Added task 10 switch_ivr_schedule_hangup (7494a9fa-ac34-4ea7-9b1f-e20951abe224) to run at 1687174722
2023-06-19 09:58:43.115287 95.53% [DEBUG] sofia.c:7499 Channel sofia/default/8871003676@clusterguibeta1.astppbilling.org:5075 entering state [ready][200]
2023-06-19 09:58:43.135239 95.53% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
2023-06-19 09:58:43.235264 95.53% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.