From Smelly Sheep, 3 Years ago, written in FreeSWITCH.
This paste is a reply to Untitled from Gentle Ostrich
- go back
Embed
Viewing differences between Untitled and Re: Untitled
2020-07-21 13:36:22.785951 [NOTICE] switch_channel.c:1104 New Channel sofia/default/2578561401@3.23.204.137 [2abdab26-cb57-11ea-87d7-db63502b927a]
2020-07-21 13:36:22.785951 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2578561401@3.23.204.137) Running State Change CS_NEW (Cur 1 Tot 126)
2020-07-21 13:36:22.785951 [DEBUG] sofia.c:9873 sofia/default/2578561401@3.23.204.137 receiving invite from 49.34.109.127:4585 version: 1.6.20  64bit
2020-07-21 13:36:22.785951 [DEBUG] sofia.c:10044 IP 49.34.109.127 Rejected by acl "default". Falling back to Digest auth.
2020-07-21 13:36:22.785951 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'default' for [91949499797@3.23.204.137] from ip 49.34.109.127
2020-07-21 13:36:22.785951 [DEBUG] switch_core_state_machine.c:603 (sofia/default/2578561401@3.23.204.137) State NEW
2020-07-21 13:36:22.785951 [DEBUG] sofia.c:2334 detaching session 2abdab26-cb57-11ea-87d7-db63502b927a
2020-07-21 13:36:23.505988 [DEBUG] sofia.c:2442 Re-attaching to session 2abdab26-cb57-11ea-87d7-db63502b927a
2020-07-21 13:36:23.525968 [DEBUG] sofia.c:9873 sofia/default/2578561401@3.23.204.137 receiving invite from 49.34.109.127:4585 version: 1.6.20  64bit
2020-07-21 13:36:23.525968 [DEBUG] sofia.c:10044 IP 49.34.109.127 Rejected by acl "default". Falling back to Digest auth.
2020-07-21 13:36:23.525968 [DEBUG] sofia.c:11168 Setting NAT mode based on via received
2020-07-21 13:36:23.525968 [DEBUG] sofia.c:7084 Channel sofia/default/2578561401@3.23.204.137 entering state [received][100]
2020-07-21 13:36:23.525968 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=2578561401 193 514 IN IP4 192.168.43.40
s=Talk
c=IN IP4 192.168.43.40
t=0 0
m=audio 7078 RTP/AVP 124 111 110 0 8 101
a=rtpmap:124 opus/48000
a=fmtp:124 useinbandfec=1; usedtx=1
a=rtpmap:111 speex/16000
a=fmtp:111 vbr=on
a=rtpmap:110 speex/8000
a=fmtp:110 vbr=on
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
m=video 9078 RTP/AVP 103 99
a=rtpmap:103 VP8/90000
a=rtpmap:99 MP4V-ES/90000
a=fmtp:99 profile-level-id=3

2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [opus:124:48000:20:0:1]/[PCMA:8:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [opus:124:48000:20:0:1]/[PCMU:0:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:111:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:111:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/2578561401@3.23.204.137 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2020-07-21 13:36:23.525968 [DEBUG] switch_core_codec.c:111 sofia/default/2578561401@3.23.204.137 Original read codec set to PCMU:0
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4767 sofia/default/2578561401@3.23.204.137 Set 2833 dtmf send payload to 101 recv payload to 101
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:4993 No matches with FTMP, fallback to ignoring FMTP
2020-07-21 13:36:23.525968 [DEBUG] switch_core_media.c:5001 No matches with inherit_codec, fallback to ignoring PT
2020-07-21 13:36:23.525968 [DEBUG] sofia.c:7507 (sofia/default/2578561401@3.23.204.137) State Change CS_NEW -> CS_INIT
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2578561401@3.23.204.137) Running State Change CS_INIT (Cur 1 Tot 126)
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2578561401@3.23.204.137) State INIT
2020-07-21 13:36:23.525968 [DEBUG] mod_sofia.c:90 sofia/default/2578561401@3.23.204.137 SOFIA INIT
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:40 sofia/default/2578561401@3.23.204.137 Standard INIT
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:48 (sofia/default/2578561401@3.23.204.137) State Change CS_INIT -> CS_ROUTING
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:627 (sofia/default/2578561401@3.23.204.137) State INIT going to sleep
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2578561401@3.23.204.137) Running State Change CS_ROUTING (Cur 1 Tot 126)
2020-07-21 13:36:23.525968 [DEBUG] switch_channel.c:2249 (sofia/default/2578561401@3.23.204.137) Callstate Change DOWN -> RINGING
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2578561401@3.23.204.137) State ROUTING
2020-07-21 13:36:23.525968 [DEBUG] mod_sofia.c:143 sofia/default/2578561401@3.23.204.137 SOFIA ROUTING
2020-07-21 13:36:23.525968 [DEBUG] switch_core_state_machine.c:236 sofia/default/2578561401@3.23.204.137 Standard ROUTING
2020-07-21 13:36:23.525968 [INFO] mod_dialplan_xml.c:637 Processing 2578561401 <2578561401>->91949499797 in context default
2020-07-21 13:36:23.545951 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fc29023c990 Connected.
2020-07-21 13:36:23.545951 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
2020-07-21 13:36:23.545951 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2020-07-21 13:36:23.545951 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 91949499797
2020-07-21 13:36:23.545951 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '91949499797' AND status=0 limit 1
2020-07-21 13:36:23.545951 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 2578561401 / 2578561401
2020-07-21 13:36:23.545951 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="91949499797" LIMIT 1
2020-07-21 13:36:23.545951 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91949499797" limit 1
2020-07-21 13:36:23.545951 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound
2020-07-21 13:36:23.545951 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 4104652310]
2020-07-21 13:36:23.545951 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4104652310" AND deleted = 0 limit 1
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^91949499797.*' OR blocked_patterns = '^9194949979.*' OR blocked_patterns = '^919494997.*' OR blocked_patterns = '^91949499.*' OR blocked_patterns = '^9194949.*' OR blocked_patterns = '^919494.*' OR blocked_patterns = '^91949.*' OR blocked_patterns = '^9194.*' OR blocked_patterns = '^919.*' OR blocked_patterns = '^91.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 8 limit 1
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="91949499797" AND A.accountid = '8' limit 1
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 91949499797
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="91949499797" LIMIT 1
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91949499797" limit 1
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call direction : outbound
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="91949499797" AND (accountid = 0 OR status = 1) LIMIT 1
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^91949499797.*' OR patterns = '^9194949979.*' OR patterns = '^919494997.*' OR patterns = '^91949499.*' OR patterns = '^9194949.*' OR patterns = '^919494.*' OR patterns = '^91949.*' OR patterns = '^9194.*' OR patterns = '^919.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 8 ORDER BY LENGTH(PKGPTR.patterns) DESC
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '91949499797' OR number = '9194949979' OR number = '919494997' OR number = '91949499' OR number = '9194949' OR number = '919494' OR number = '91949' OR number = '9194' OR number = '919' OR number = '91' OR number = '9' OR number ='--') OR (number = '91949499797*' OR number = '9194949979*' OR number = '919494997*' OR number = '91949499*' OR number = '9194949*' OR number = '919494*' OR number = '91949*' OR number = '9194*' OR number = '919*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '2578561401' OR number = '257856140' OR number = '25785614' OR number = '2578561' OR number = '257856' OR number = '25785' OR number = '2578' OR number = '257' OR number = '25' OR number = '2' OR number ='--') OR (number = '2578561401*' OR number = '257856140*' OR number = '25785614*' OR number = '2578561*' OR number = '257856*' OR number = '25785*' OR number = '2578*' OR number = '257*' OR number = '25*' OR number = '2*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '91949499797' OR routing_prefix = '9194949979' OR routing_prefix = '919494997' OR routing_prefix = '91949499' OR routing_prefix = '9194949' OR routing_prefix = '919494' OR routing_prefix = '91949' OR routing_prefix = '9194' OR routing_prefix = '919' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 8
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 4104652310
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 3
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :outbound
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^91949499797.*' OR pattern = '^9194949979.*' OR pattern = '^919494997.*' OR pattern = '^91949499.*' OR pattern = '^9194949.*' OR pattern = '^919494.*' OR pattern = '^91949.*' OR pattern = '^9194.*' OR pattern = '^919.*' OR pattern = '^91.*' OR pattern = '^9.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 3 OR accountid=8)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction:::::: outbound
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 4
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.20000
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] comment :
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 0
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 8
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID:
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10 balance Accountid 8 !!!
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 50 minutes
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id  :
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=3 ORDER by id asc
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^91949499797.*' OR pattern = '^9194949979.*' OR pattern = '^919494997.*' OR pattern = '^91949499.*' OR pattern = '^9194949.*' OR pattern = '^919494.*' OR pattern = '^91949.*' OR pattern = '^9194.*' OR pattern = '^919.*' OR pattern = '^91.*' OR pattern = '^9.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (4) ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 5
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^91.*
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination :
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^91.*
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend :
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 4
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : HemdipGW
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable :
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 9
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk Name : Hemdip Trunk
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES=======================
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 8 AND status=0 LIMIT 1
2020-07-21 13:36:23.565950 [INFO] switch_cpp.cpp:1365 [ASTPP] maxlength::::::::: 50
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 3 AND status = 0
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 9) AND status=0 limit 1
2020-07-21 13:36:23.565950 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="91949499797">
<condition field="destination_number" expression="91949499797">
<action application="set" data="effective_destination_number=91949499797"/>
<action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
<action application="set" data="bridge_pre_execute_bleg_data=+3000 normal_clearing"/>
<action application="set" data="callstart=2020-07-21 13:36:23"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=TRUE"/>
<action application="set" data="account_id=8"/>
<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="export" data="t38_passthru=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="set" data="fax_enable_t38_request=true"/>
<action application="sleep" data="1000"/>
<action application="playback" data="/usr/share/freeswitch/sounds/en/us/callie/astpp-this-card-has-a-balance-of.wav"/>
<action application="say" data="en CURRENCY PRONOUNCED 10"/>
<action application="set" data="origination_rates=ID:4|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:8"/>
<action application="set" data="original_caller_id_name=2578561401"/>
<action application="set" data="original_caller_id_number=2578561401"/>

<action application="set" data="effective_caller_id_name=2578561401"/>
<action application="set" data="effective_caller_id_number=2578561401"/>
<action application="set" data="calltype=STANDARD"/>
<action application="set" data="termination_rates=ID:5|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:0|INITIALBLOCK:0|TRUNK:4|PROVIDER:9"/>
<action application="set" data="trunk_id=4"/>
<action application="set" data="provider_id=9"/>
<action application="set" data="rate_flag=0"/>
<action application="set" data="force_trunk_flag=0"/>
<action application="export" data="presence_data=trunk_id=4"/>
<action application="set" data="intcall=0"/>
<action application="export" data="presence_data=x|||Hemdip(4104652310)|||^91.* //  // 0.20000 // trunk_id=|||Hemdip Trunk // ^91.* //  // 0.10000 // trunk_id=4|||STD|||49.34.109.127"/>
<action application="bridge" data="[leg_timeout=0]sofia/gateway/HemdipGW/91949499797"/>
</condition>
</extension>
</context>
</section>
</document>
2020-07-21 13:36:23.565950 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fc29023c990 released.
Dialplan: sofia/default/2578561401@3.23.204.137 parsing [default->91949499797] continue=false
Dialplan: sofia/default/2578561401@3.23.204.137 Regex (PASS) [91949499797] destination_number(91949499797) =~ /91949499797/ break=on-false
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(effective_destination_number=91949499797)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(bridge_pre_execute_bleg_app=sched_hangup)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(bridge_pre_execute_bleg_data=+3000 normal_clearing)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(callstart=2020-07-21 13:36:23)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(continue_on_fail=TRUE)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(account_id=8)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(parent_id=0)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(entity_id=0)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(call_processed=internal)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(call_direction=outbound)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(accountname=default)
Dialplan: sofia/default/2578561401@3.23.204.137 Action export(t38_passthru=true)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(fax_enable_t38=true)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(fax_enable_t38_request=true)
Dialplan: sofia/default/2578561401@3.23.204.137 Action sleep(1000)
Dialplan: sofia/default/2578561401@3.23.204.137 Action playback(/usr/share/freeswitch/sounds/en/us/callie/astpp-this-card-has-a-balance-of.wav)
Dialplan: sofia/default/2578561401@3.23.204.137 Action say(en CURRENCY PRONOUNCED 10)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(origination_rates=ID:4|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:1|RATEGROUP:3|MARKUP:0|CI:0|ACCID:8)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(original_caller_id_name=2578561401)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(original_caller_id_number=2578561401)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(effective_caller_id_name=2578561401)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(effective_caller_id_number=2578561401)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(calltype=STANDARD)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(termination_rates=ID:5|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:0|INITIALBLOCK:0|TRUNK:4|PROVIDER:9)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(trunk_id=4)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(provider_id=9)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(rate_flag=0)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(force_trunk_flag=0)
Dialplan: sofia/default/2578561401@3.23.204.137 Action export(presence_data=trunk_id=4)
Dialplan: sofia/default/2578561401@3.23.204.137 Action set(intcall=0)
Dialplan: sofia/default/2578561401@3.23.204.137 Action export(presence_data=x|||Hemdip(4104652310)|||^91.* //  // 0.20000 // trunk_id=|||Hemdip Trunk // ^91.* //  // 0.10000 // trunk_id=4|||STD|||49.34.109.127)
Dialplan: sofia/default/2578561401@3.23.204.137 Action bridge([leg_timeout=0]sofia/gateway/HemdipGW/91949499797)
2020-07-21 13:36:23.565950 [DEBUG] switch_core_state_machine.c:286 (sofia/default/2578561401@3.23.204.137) State Change CS_ROUTING -> CS_EXECUTE
2020-07-21 13:36:23.565950 [DEBUG] switch_core_state_machine.c:643 (sofia/default/2578561401@3.23.204.137) State ROUTING going to sleep
2020-07-21 13:36:23.565950 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2578561401@3.23.204.137) Running State Change CS_EXECUTE (Cur 1 Tot 126)
2020-07-21 13:36:23.565950 [DEBUG] switch_core_state_machine.c:650 (sofia/default/2578561401@3.23.204.137) State EXECUTE
2020-07-21 13:36:23.565950 [DEBUG] mod_sofia.c:198 sofia/default/2578561401@3.23.204.137 SOFIA EXECUTE
2020-07-21 13:36:23.565950 [DEBUG] switch_core_state_machine.c:328 sofia/default/2578561401@3.23.204.137 Standard EXECUTE
EXECUTE sofia/default/2578561401@3.23.204.137 set(effective_destination_number=91949499797)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [effective_destination_number]=[91949499797]
EXECUTE sofia/default/2578561401@3.23.204.137 set(bridge_pre_execute_bleg_app=sched_hangup)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [bridge_pre_execute_bleg_app]=[sched_hangup]
EXECUTE sofia/default/2578561401@3.23.204.137 set(bridge_pre_execute_bleg_data=+3000 normal_clearing)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [bridge_pre_execute_bleg_data]=[+3000 normal_clearing]
EXECUTE sofia/default/2578561401@3.23.204.137 set(callstart=2020-07-21 13:36:23)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [callstart]=[2020-07-21 13:36:23]
EXECUTE sofia/default/2578561401@3.23.204.137 set(hangup_after_bridge=true)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [hangup_after_bridge]=[true]
EXECUTE sofia/default/2578561401@3.23.204.137 set(continue_on_fail=TRUE)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [continue_on_fail]=[TRUE]
EXECUTE sofia/default/2578561401@3.23.204.137 set(account_id=8)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [account_id]=[8]
EXECUTE sofia/default/2578561401@3.23.204.137 set(parent_id=0)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [parent_id]=[0]
EXECUTE sofia/default/2578561401@3.23.204.137 set(entity_id=0)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [entity_id]=[0]
EXECUTE sofia/default/2578561401@3.23.204.137 set(call_processed=internal)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [call_processed]=[internal]
EXECUTE sofia/default/2578561401@3.23.204.137 set(call_direction=outbound)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [call_direction]=[outbound]
EXECUTE sofia/default/2578561401@3.23.204.137 set(accountname=default)
2020-07-21 13:36:23.565950 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [accountname]=[default]
EXECUTE sofia/default/2578561401@3.23.204.137 export(t38_passthru=true)
2020-07-21 13:36:23.585952 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [t38_passthru]=[true]
EXECUTE sofia/default/2578561401@3.23.204.137 set(fax_enable_t38=true)
2020-07-21 13:36:23.585952 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [fax_enable_t38]=[true]
EXECUTE sofia/default/2578561401@3.23.204.137 set(fax_enable_t38_request=true)
2020-07-21 13:36:23.585952 [DEBUG] mod_dptools.c:1548 SET sofia/default/2578561401@3.23.204.137 [fax_enable_t38_request]=[true]
EXECUTE sofia/default/2578561401@3.23.204.137 sleep(1000)
2020-07-21 13:36:24.585979 [DEBUG] switch_core_session.c:2647 Application playback Requires media! pre_answering channel sofia/default/2578561401@3.23.204.137
2020-07-21 13:36:24.585979 [INFO] switch_core_session.c:2649 Sending early media
2020-07-21 13:36:24.585979 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/2578561401@3.23.204.137] 3.23.204.137 port 23840 -> 192.168.43.40 port 7078 codec: 0 ms: 20
2020-07-21 13:36:24.585979 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
2020-07-21 13:36:24.585979 [ERR] switch_core_media.c:7567 AUDIO RTP REPORTS ERROR: [Bind Error! 3.23.204.137:23840]
2020-07-21 13:36:24.585979 [NOTICE] switch_core_media.c:7568 Hangup sofia/default/2578561401@3.23.204.137 [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2020-07-21 13:36:24.585979 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1595314744 1595314745 IN IP4 3.23.204.137
s=FreeSWITCH
c=IN IP4 3.23.204.137
t=0 0
m=audio 23840 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
m=video 0 RTP/AVP 19

2020-07-21 13:36:24.585979 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/2578561401@3.23.204.137!
2020-07-21 13:36:24.585979 [DEBUG] switch_channel.c:3474 (sofia/default/2578561401@3.23.204.137) Callstate Change RINGING -> EARLY
2020-07-21 13:36:24.585979 [DEBUG] mod_sofia.c:2367 sofia/default/2578561401@3.23.204.137 skip receive message [PROGRESS_EVENT] (channel is hungup already)
2020-07-21 13:36:24.585979 [DEBUG] switch_core_session.c:2650 Well, that didn't work very well did it? ...
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:650 (sofia/default/2578561401@3.23.204.137) State EXECUTE going to sleep
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2578561401@3.23.204.137) Running State Change CS_HANGUP (Cur 1 Tot 126)
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:850 (sofia/default/2578561401@3.23.204.137) Callstate Change EARLY -> HANGUP
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2578561401@3.23.204.137) State HANGUP
2020-07-21 13:36:24.585979 [DEBUG] mod_sofia.c:438 Channel sofia/default/2578561401@3.23.204.137 hanging up, cause: INCOMPATIBLE_DESTINATION
2020-07-21 13:36:24.585979 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 488
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:60 sofia/default/2578561401@3.23.204.137 Standard HANGUP, cause: INCOMPATIBLE_DESTINATION
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:852 (sofia/default/2578561401@3.23.204.137) State HANGUP going to sleep
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:619 (sofia/default/2578561401@3.23.204.137) State Change CS_HANGUP -> CS_REPORTING
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:584 (sofia/default/2578561401@3.23.204.137) Running State Change CS_REPORTING (Cur 1 Tot 126)
2020-07-21 13:36:24.585979 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2578561401@3.23.204.137) State REPORTING
2020-07-21 13:36:24.585979 [INFO] mod_json_cdr.c:271 Process [2abdab26-cb57-11ea-87d7-db63502b927a.cdr.json]
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:174 sofia/default/2578561401@3.23.204.137 Standard REPORTING, cause: INCOMPATIBLE_DESTINATION
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:938 (sofia/default/2578561401@3.23.204.137) State REPORTING going to sleep
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:610 (sofia/default/2578561401@3.23.204.137) State Change CS_REPORTING -> CS_DESTROY
2020-07-21 13:36:24.685982 [DEBUG] switch_core_session.c:1665 Session 126 (sofia/default/2578561401@3.23.204.137) Locked, Waiting on external entities
2020-07-21 13:36:24.685982 [NOTICE] switch_core_session.c:1683 Session 126 (sofia/default/2578561401@3.23.204.137) Ended
2020-07-21 13:36:24.685982 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/2578561401@3.23.204.137 [CS_DESTROY]
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:741 (sofia/default/2578561401@3.23.204.137) Running State Change CS_DESTROY (Cur 0 Tot 126)
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2578561401@3.23.204.137) State DESTROY
2020-07-21 13:36:24.685982 [DEBUG] mod_sofia.c:343 sofia/default/2578561401@3.23.204.137 SOFIA DESTROY
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:181 sofia/default/2578561401@3.23.204.137 Standard DESTROY
2020-07-21 13:36:24.685982 [DEBUG] switch_core_state_machine.c:751 (sofia/default/2578561401@3.23.204.137) State DESTROY going to sleep