2022-02-14 09:33:19.302539 [INFO] mod_dialplan_xml.c:637 Processing 380993289429 <380993289429>->78125093695 in context default 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-14 09:33:19.302539 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 78125093695 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '78125093695' AND status=0 limit 1 2022-02-14 09:33:19.302539 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : 380993289429 / 380993289429 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [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 ="78125093695" LIMIT 1 2022-02-14 09:33:19.302539 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound 2022-02-14 09:33:19.302539 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 6021411776] 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "6021411776" AND deleted = 0 limit 1 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [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 ="78125093695" AND A.accountid = '77' limit 1 2022-02-14 09:33:19.302539 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 78125093695 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [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 ="78125093695" LIMIT 1 2022-02-14 09:33:19.302539 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : inbound 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="78125093695" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :134 2022-02-14 09:33:19.302539 [DEBUG] switch_cpp.cpp:1447 [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 = '^78125093695.*' OR patterns = '^7812509369.*' OR patterns = '^781250936.*' OR patterns = '^78125093.*' OR patterns = '^7812509.*' OR patterns = '^781250.*' OR patterns = '^78125.*' OR patterns = '^7812.*' OR patterns = '^781.*' OR patterns = '^78.*' OR patterns = '^7.*' OR patterns ='--') AND accountid = 134 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '78125093695' OR number = '7812509369' OR number = '781250936' OR number = '78125093' OR number = '7812509' OR number = '781250' OR number = '78125' OR number = '7812' OR number = '781' OR number = '78' OR number = '7' OR number ='--') OR (number = '78125093695*' OR number = '7812509369*' OR number = '781250936*' OR number = '78125093*' OR number = '7812509*' OR number = '781250*' OR number = '78125*' OR number = '7812*' OR number = '781*' OR number = '78*' OR number = '7*' OR number ='--') OR (number = '380993289429' OR number = '38099328942' OR number = '3809932894' OR number = '380993289' OR number = '38099328' OR number = '3809932' OR number = '380993' OR number = '38099' OR number = '3809' OR number = '380' OR number = '38' OR number = '3' OR number ='--') OR (number = '380993289429*' OR number = '38099328942*' OR number = '3809932894*' OR number = '380993289*' OR number = '38099328*' OR number = '3809932*' OR number = '380993*' OR number = '38099*' OR number = '3809*' OR number = '380*' OR number = '38*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '78125093695' OR routing_prefix = '7812509369' OR routing_prefix = '781250936' OR routing_prefix = '78125093' OR routing_prefix = '7812509' OR routing_prefix = '781250' OR routing_prefix = '78125' OR routing_prefix = '7812' OR routing_prefix = '781' OR routing_prefix = '78' OR routing_prefix = '7' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 77 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 6021411776 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 10000 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 1 [0:prepaid,1:postpaid] 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [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 ="78125093695" LIMIT 1 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: inbound 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 18766 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.00000 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : 78125093695 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 158 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 77 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 77 !!! 2022-02-14 09:33:19.322540 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:1 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_SIP_DEVICE_ID] Query :select id from sip_devices where username = '380993289429' and status =0 2022-02-14 09:33:19.322540 [INFO] switch_cpp.cpp:1447 [ASTPP] SIP Device id : -1 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 77 AND status=0 LIMIT 1 2022-02-14 09:33:19.322540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :select am.id,am.number from ani_map as a,ani_map_numbers as am where a.id = am.ani_map_id and a.status ='0' and a.accountid = 77 and (pattern = '^78125093695.*' OR pattern = '^7812509369.*' OR pattern = '^781250936.*' OR pattern = '^78125093.*' OR pattern = '^7812509.*' OR pattern = '^781250.*' OR pattern = '^78125.*' OR pattern = '^7812.*' OR pattern = '^781.*' OR pattern = '^78.*' OR pattern = '^7.*' OR pattern ='--') and (((am.in_use=1 and a.sip_device_id=-1) or (am.in_use=0 and a.sip_device_id =-1)) or ((a.sip_device_id =-1 and am.in_use=1) or (a.sip_device_id = -1 and am.in_use =0))) order by a.prefix desc,a.sip_device_id desc,am.in_use desc limit 1 2022-02-14 09:33:19.322540 [ERR] switch_core_sqldb.c:1355 ERR: [select am.id,am.number from ani_map as a,ani_map_numbers as am where a.id = am.ani_map_id and a.status ='0' and a.accountid = 77 and (pattern = '^78125093695.*' OR pattern = '^7812509369.*' OR pattern = '^781250936.*' OR pattern = '^78125093.*' OR pattern = '^7812509.*' OR pattern = '^781250.*' OR pattern = '^78125.*' OR pattern = '^7812.*' OR pattern = '^781.*' OR pattern = '^78.*' OR pattern = '^7.*' OR pattern ='--') and (((am.in_use=1 and a.sip_device_id=-1) or (am.in_use=0 and a.sip_device_id =-1)) or ((a.sip_device_id =-1 and am.in_use=1) or (a.sip_device_id = -1 and am.in_use =0))) order by a.prefix desc,a.sip_device_id desc,am.in_use desc limit 1] [STATE: 42S22 CODE 1054 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.22]Unknown column 'pattern' in 'where clause' ] 2022-02-14 09:33:19.322540 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:1128: assertion failed! stack traceback: [C]: in function 'assert' /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:1128: in function 'get_override_callerid' ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:608: in main chunk [C]: in function 'dofile' ./astpp/astpp.lua:86: in main chunk 2022-02-14 09:33:19.322540 [ERR] mod_lua.cpp:270 LUA script parse/execute error! 2022-02-14 09:33:19.322540 [WARNING] mod_dialplan_xml.c:667 Context default not found 2022-02-14 09:33:19.322540 [INFO] switch_core_state_machine.c:312 No Route, Aborting 2022-02-14 09:33:19.322540 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/380993289429@185.17.3.201:5160 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:644 (sofia/default/380993289429@185.17.3.201:5160) State ROUTING going to sleep 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:585 (sofia/default/380993289429@185.17.3.201:5160) Running State Change CS_HANGUP (Cur 263 Tot 21788082) 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:848 (sofia/default/380993289429@185.17.3.201:5160) Callstate Change RINGING -> HANGUP 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:850 (sofia/default/380993289429@185.17.3.201:5160) State HANGUP 2022-02-14 09:33:19.322540 [DEBUG] mod_sofia.c:453 Channel sofia/default/380993289429@185.17.3.201:5160 hanging up, cause: NO_ROUTE_DESTINATION 2022-02-14 09:33:19.322540 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:60 sofia/default/380993289429@185.17.3.201:5160 Standard HANGUP, cause: NO_ROUTE_DESTINATION 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:850 (sofia/default/380993289429@185.17.3.201:5160) State HANGUP going to sleep 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:620 (sofia/default/380993289429@185.17.3.201:5160) State Change CS_HANGUP -> CS_REPORTING 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:585 (sofia/default/380993289429@185.17.3.201:5160) Running State Change CS_REPORTING (Cur 263 Tot 21788082) 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:936 (sofia/default/380993289429@185.17.3.201:5160) State REPORTING 2022-02-14 09:33:19.322540 [INFO] mod_json_cdr.c:271 Process [1e001c66-58f2-4ad9-a49c-eb4c61d9113e.cdr.json] 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:174 sofia/default/380993289429@185.17.3.201:5160 Standard REPORTING, cause: NO_ROUTE_DESTINATION 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:936 (sofia/default/380993289429@185.17.3.201:5160) State REPORTING going to sleep 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:611 (sofia/default/380993289429@185.17.3.201:5160) State Change CS_REPORTING -> CS_DESTROY 2022-02-14 09:33:19.322540 [DEBUG] switch_core_session.c:1726 Session 21788082 (sofia/default/380993289429@185.17.3.201:5160) Locked, Waiting on external entities 2022-02-14 09:33:19.322540 [NOTICE] switch_core_session.c:1744 Session 21788082 (sofia/default/380993289429@185.17.3.201:5160) Ended 2022-02-14 09:33:19.322540 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/380993289429@185.17.3.201:5160 [CS_DESTROY] 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:739 (sofia/default/380993289429@185.17.3.201:5160) Running State Change CS_DESTROY (Cur 262 Tot 21788082) 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:749 (sofia/default/380993289429@185.17.3.201:5160) State DESTROY 2022-02-14 09:33:19.322540 [DEBUG] mod_sofia.c:364 sofia/default/380993289429@185.17.3.201:5160 SOFIA DESTROY 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:181 sofia/default/380993289429@185.17.3.201:5160 Standard DESTROY 2022-02-14 09:33:19.322540 [DEBUG] switch_core_state_machine.c:749 (sofia/default/380993289429@185.17.3.201:5160) State DESTROY going to sleep 2022-02-14 09:33:19.462539 [DEBUG] sofia.c:7326 Channel sofia/default/253710#79091517527 entering state [proceeding][183] 2022-02-14 09:33:19.462539 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=mc 1644823999 1644823999 IN IP4 194.28.167.139 s=SIP Call c=IN IP4 194.28.167.139 t=0 0 m=audio 30860 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 2022-02-14 09:33:19.462539 [NOTICE] sofia.c:7339 Pre-Answer sofia/default/253710#79091517527! 2022-02-14 09:33:19.462539 [DEBUG] switch_channel.c:3565 (sofia/default/253710#79091517527) Callstate Change DOWN -> EARLY 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/253710#79091517527 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2022-02-14 09:33:19.462539 [DEBUG] switch_core_codec.c:111 sofia/default/253710#79091517527 Original read codec set to PCMA:8 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:5911 sofia/default/253710#79091517527 Set 2833 dtmf send payload to 101 recv payload to 101 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/253710#79091517527] 51.91.38.123 port 22892 -> 194.28.167.139 port 30860 codec: 8 ms: 20 2022-02-14 09:33:19.462539 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:8977 sofia/default/253710#79091517527 Set 2833 dtmf send payload to 101 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:8984 sofia/default/253710#79091517527 Set 2833 dtmf receive payload to 101 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:9007 sofia/default/253710#79091517527 Set rtp dtmf delay to 40 2022-02-14 09:33:19.462539 [INFO] switch_ivr_originate.c:3801 Sending early media 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/59305939@193.111.83.49] 51.91.38.123 port 29868 -> 193.111.83.49 port 18632 codec: 8 ms: 20 2022-02-14 09:33:19.462539 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:8977 sofia/default/59305939@193.111.83.49 Set 2833 dtmf send payload to 101 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:8984 sofia/default/59305939@193.111.83.49 Set 2833 dtmf receive payload to 101 2022-02-14 09:33:19.462539 [DEBUG] switch_core_media.c:9007 sofia/default/59305939@193.111.83.49 Set rtp dtmf delay to 40 2022-02-14 09:33:19.462539 [DEBUG] mod_sofia.c:2593 Ring SDP: v=0 o=FreeSWITCH 1644794131 1644794132 IN IP4 51.91.38.123 s=FreeSWITCH c=IN IP4 51.91.38.123 t=0 0 m=audio 29868 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2022-02-14 09:33:19.462539 [NOTICE] mod_sofia.c:2596 Pre-Answer sofia/default/59305939@193.111.83.49! 2022-02-14 09:33:19.462539 [DEBUG] switch_channel.c:3565 (sofia/default/59305939@193.111.83.49) Callstate Change RINGING -> EARLY 2022-02-14 09:33:19.482539 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/253710#79091517527] 2022-02-14 09:33:19.482539 [DEBUG] sofia.c:7326 Channel sofia/default/59305939@193.111.83.49 entering state [early][183] 2022-02-14 09:33:19.482539 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/253710#79091517527) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2022-02-14 09:33:19.482539 [DEBUG] switch_core_state_machine.c:585 (sofia/default/253710#79091517527) Running State Change CS_EXCHANGE_MEDIA (Cur 262 Tot 21788082) 2022-02-14 09:33:19.482539 [DEBUG] switch_core_state_machine.c:654 (sofia/default/253710#79091517527) State EXCHANGE_MEDIA 2022-02-14 09:33:19.482539 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA 2022-02-14 09:33:19.542540 [NOTICE] switch_channel.c:1118 New Channel sofia/default/002807@193.111.83.49 [8a03fbad-1dc5-48b8-9ec5-b23534021e46] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:585 (sofia/default/002807@193.111.83.49) Running State Change CS_NEW (Cur 263 Tot 21788083) 2022-02-14 09:33:19.542540 [DEBUG] sofia.c:10280 sofia/default/002807@193.111.83.49 receiving invite from 51.91.38.125:5060 version: 1.10.5 -release-17-25569c1631 64bit 2022-02-14 09:33:19.542540 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 51.91.38.125:0. 2022-02-14 09:33:19.542540 [DEBUG] sofia.c:10403 IP 51.91.38.125 Approved by acl "default[]". Access Granted. 2022-02-14 09:33:19.542540 [DEBUG] sofia.c:7326 Channel sofia/default/002807@193.111.83.49 entering state [received][100] 2022-02-14 09:33:19.542540 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=root 1520408072 1520408072 IN IP4 193.111.83.49 s=Asterisk PBX 16.8.0 c=IN IP4 193.111.83.49 t=0 0 m=audio 5094 RTP/AVP 8 0 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=maxptime:150 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1] 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/002807@193.111.83.49 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2022-02-14 09:33:19.542540 [DEBUG] switch_core_codec.c:111 sofia/default/002807@193.111.83.49 Original read codec set to PCMA:8 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2022-02-14 09:33:19.542540 [DEBUG] switch_core_media.c:5911 sofia/default/002807@193.111.83.49 Set 2833 dtmf send payload to 101 recv payload to 101 2022-02-14 09:33:19.542540 [DEBUG] sofia.c:7760 (sofia/default/002807@193.111.83.49) State Change CS_NEW -> CS_INIT 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:604 (sofia/default/002807@193.111.83.49) State NEW 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:585 (sofia/default/002807@193.111.83.49) Running State Change CS_INIT (Cur 263 Tot 21788083) 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:628 (sofia/default/002807@193.111.83.49) State INIT 2022-02-14 09:33:19.542540 [DEBUG] mod_sofia.c:93 sofia/default/002807@193.111.83.49 SOFIA INIT 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:40 sofia/default/002807@193.111.83.49 Standard INIT 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:48 (sofia/default/002807@193.111.83.49) State Change CS_INIT -> CS_ROUTING 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:628 (sofia/default/002807@193.111.83.49) State INIT going to sleep 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:585 (sofia/default/002807@193.111.83.49) Running State Change CS_ROUTING (Cur 263 Tot 21788083) 2022-02-14 09:33:19.542540 [DEBUG] switch_channel.c:2332 (sofia/default/002807@193.111.83.49) Callstate Change DOWN -> RINGING 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:644 (sofia/default/002807@193.111.83.49) State ROUTING 2022-02-14 09:33:19.542540 [DEBUG] mod_sofia.c:154 sofia/default/002807@193.111.83.49 SOFIA ROUTING 2022-02-14 09:33:19.542540 [DEBUG] switch_core_state_machine.c:236 sofia/default/002807@193.111.83.49 Standard ROUTING 2022-02-14 09:33:19.542540 [INFO] mod_dialplan_xml.c:637 Processing 002807 <002807>->3379199101877 in context default 2022-02-14 09:33:19.542540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2022-02-14 09:33:19.542540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 3379199101877 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '3379199101877' AND status=0 limit 1 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : 002807 / 002807 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [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 ="3379199101877" LIMIT 1 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT accounts.is_recording,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="3379199101877" limit 1 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 6913881027] 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "6913881027" AND deleted = 0 limit 1 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^3379199101877.*' OR blocked_patterns = '^337919910187.*' OR blocked_patterns = '^33791991018.*' OR blocked_patterns = '^3379199101.*' OR blocked_patterns = '^337919910.*' OR blocked_patterns = '^33791991.*' OR blocked_patterns = '^3379199.*' OR blocked_patterns = '^337919.*' OR blocked_patterns = '^33791.*' OR blocked_patterns = '^3379.*' OR blocked_patterns = '^337.*' OR blocked_patterns = '^33.*' OR blocked_patterns = '^3.*' OR blocked_patterns ='--') AND accountid = 41 limit 1 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [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 ="3379199101877" AND A.accountid = '41' limit 1 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 3379199101877 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [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 ="3379199101877" LIMIT 1 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT accounts.is_recording,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="3379199101877" limit 1 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : outbound 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="3379199101877" AND (accountid = 0 OR status = 1) LIMIT 1 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [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 = '^3379199101877.*' OR patterns = '^337919910187.*' OR patterns = '^33791991018.*' OR patterns = '^3379199101.*' OR patterns = '^337919910.*' OR patterns = '^33791991.*' OR patterns = '^3379199.*' OR patterns = '^337919.*' OR patterns = '^33791.*' OR patterns = '^3379.*' OR patterns = '^337.*' OR patterns = '^33.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 41 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '3379199101877' OR number = '337919910187' OR number = '33791991018' OR number = '3379199101' OR number = '337919910' OR number = '33791991' OR number = '3379199' OR number = '337919' OR number = '33791' OR number = '3379' OR number = '337' OR number = '33' OR number = '3' OR number ='--') OR (number = '3379199101877*' OR number = '337919910187*' OR number = '33791991018*' OR number = '3379199101*' OR number = '337919910*' OR number = '33791991*' OR number = '3379199*' OR number = '337919*' OR number = '33791*' OR number = '3379*' OR number = '337*' OR number = '33*' OR number = '3*' OR number ='--') OR (number = '002807' OR number = '00280' OR number = '0028' OR number = '002' OR number = '00' OR number = '0' OR number ='--') OR (number = '002807*' OR number = '00280*' OR number = '0028*' OR number = '002*' OR number = '00*' OR number = '0*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '3379199101877' OR routing_prefix = '337919910187' OR routing_prefix = '33791991018' OR routing_prefix = '3379199101' OR routing_prefix = '337919910' OR routing_prefix = '33791991' OR routing_prefix = '3379199' OR routing_prefix = '337919' OR routing_prefix = '33791' OR routing_prefix = '3379' OR routing_prefix = '337' OR routing_prefix = '33' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 41 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 6913881027 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 10910.0201 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 1 [0:prepaid,1:postpaid] 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 17 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2022-02-14 09:33:19.562540 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 17 AND status = 0 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 17 AND status = 0 2022-02-14 09:33:19.562540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3379199101877.*' OR pattern = '^337919910187.*' OR pattern = '^33791991018.*' OR pattern = '^3379199101.*' OR pattern = '^337919910.*' OR pattern = '^33791991.*' OR pattern = '^3379199.*' OR pattern = '^337919.*' OR pattern = '^33791.*' OR pattern = '^3379.*' OR pattern = '^337.*' OR pattern = '^33.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 17 OR accountid=41) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: outbound 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 32954 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.03500 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : T33RF 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 158 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 41 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 150 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type: 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your10910.0201 balance Accountid 41 !!! 2022-02-14 09:33:19.582540 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 180 mins! 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 180 minutes 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] [DIALPLAN] User Rate ID : 32954 2022-02-14 09:33:19.582540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id :150 2022-02-14 09:33:19.582540 [DEBUG] switch_cpp.cpp:1447 [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 = '^3379199101877.*' OR pattern = '^337919910187.*' OR pattern = '^33791991018.*' OR pattern = '^3379199101.*' OR pattern = '^337919910.*' OR pattern = '^33791991.*' OR pattern = '^3379199.*' OR pattern = '^337919.*' OR pattern = '^33791.*' OR pattern = '^3379.*' OR pattern = '^337.*' OR pattern = '^33.*' OR pattern = '^3.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (150) ORDER by FIELD(TR.trunk_id,150),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information =================== 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 5066 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^3379.* 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination : TRF033 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^3379.* 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip : 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend : 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 150 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : TSL2 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable : 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway : 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 80 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : TSL033_forRandom 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-02-14 09:33:19.582540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_SIP_DEVICE_ID] Query :select id from sip_devices where username = '002807' and status =0 2022-02-14 09:33:19.582540 [INFO] switch_cpp.cpp:1447 [ASTPP] SIP Device id : 171 2022-02-14 09:33:19.582540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 41 AND status=0 LIMIT 1 2022-02-14 09:33:19.582540 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :select am.id,am.number from ani_map as a,ani_map_numbers as am where a.id = am.ani_map_id and a.status ='0' and a.accountid = 41 and (prefix = '^3379199101877.*' OR prefix = '^337919910187.*' OR prefix = '^33791991018.*' OR prefix = '^3379199101.*' OR prefix = '^337919910.*' OR prefix = '^33791991.*' OR prefix = '^3379199.*' OR prefix = '^337919.*' OR prefix = '^33791.*' OR prefix = '^3379.*' OR prefix = '^337.*' OR prefix = '^33.*' OR prefix = '^3.*' OR prefix ='--') and (((am.in_use=1 and a.sip_device_id=171) or (am.in_use=0 and a.sip_device_id =171)) or ((a.sip_device_id =-1 and am.in_use=1) or (a.sip_device_id = -1 and am.in_use =0))) order by a.prefix desc,a.sip_device_id desc,am.in_use desc limit 1 2022-02-14 09:33:19.602539 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 180 2022-02-14 09:33:19.602539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 17 AND status = 0 2022-02-14 09:33:19.602539 [DEBUG] switch_cpp.cpp:1447 [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 = 150) AND status=0 limit 1 2022-02-14 09:33:19.602539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"33/*,*/033".....3379199101877 2022-02-14 09:33:19.602539 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 3379199101877 2022-02-14 09:33:19.602539 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 79199101877 2022-02-14 09:33:19.602539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :"33/*,*/033".....79199101877 2022-02-14 09:33:19.602539 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 79199101877 2022-02-14 09:33:19.602539 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 03379199101877 2022-02-14 09:33:19.602539 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/002807@193.111.83.49 parsing [default->3379199101877] continue=false Dialplan: sofia/default/002807@193.111.83.49 Regex (PASS) [3379199101877] destination_number(3379199101877) =~ /3379199101877/ break=on-false Dialplan: sofia/default/002807@193.111.83.49 Action set(effective_destination_number=3379199101877) Dialplan: sofia/default/002807@193.111.83.49 Action set(bridge_pre_execute_bleg_app=sched_hangup) Dialplan: sofia/default/002807@193.111.83.49 Action set(bridge_pre_execute_bleg_data=+10800 normal_clearing) Dialplan: sofia/default/002807@193.111.83.49 Action export(ani_map_id=216363) Dialplan: sofia/default/002807@193.111.83.49 Action set(callstart=2022-02-14 07:33:19) Dialplan: sofia/default/002807@193.111.83.49 Action set(hangup_after_bridge=true) Dialplan: sofia/default/002807@193.111.83.49 Action set(continue_on_fail=TRUE) Dialplan: sofia/default/002807@193.111.83.49 Action set(account_id=41) Dialplan: sofia/default/002807@193.111.83.49 Action set(parent_id=0) Dialplan: sofia/default/002807@193.111.83.49 Action set(entity_id=0) Dialplan: sofia/default/002807@193.111.83.49 Action set(call_processed=internal) Dialplan: sofia/default/002807@193.111.83.49 Action set(call_direction=outbound) Dialplan: sofia/default/002807@193.111.83.49 Action set(accountname=default) Dialplan: sofia/default/002807@193.111.83.49 Action export(t38_passthru=true) Dialplan: sofia/default/002807@193.111.83.49 Action set(fax_enable_t38=true) Dialplan: sofia/default/002807@193.111.83.49 Action set(fax_enable_t38_request=true) Dialplan: sofia/default/002807@193.111.83.49 Action set(origination_rates=ID:32954|CODE:^3379.*|DESTINATION:T33RF|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.03500|INC:1|INITIALBLOCK:1|RATEGROUP:17|MARKUP:0|CI:158|ACCID:41) Dialplan: sofia/default/002807@193.111.83.49 Action set(original_caller_id_name=79623015687) Dialplan: sofia/default/002807@193.111.83.49 Action set(original_caller_id_number=79623015687) Dialplan: sofia/default/002807@193.111.83.49 Action export(is_recording=1) Dialplan: sofia/default/002807@193.111.83.49 Action export(media_bug_answer_req=true) Dialplan: sofia/default/002807@193.111.83.49 Action export(record_sample_rate=8000) Dialplan: sofia/default/002807@193.111.83.49 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.mp3) Dialplan: sofia/default/002807@193.111.83.49 Action set(effective_caller_id_name=79623015687) Dialplan: sofia/default/002807@193.111.83.49 Action set(effective_caller_id_number=79623015687) Dialplan: sofia/default/002807@193.111.83.49 Action set(calltype=STANDARD) Dialplan: sofia/default/002807@193.111.83.49 Action set(termination_rates=ID:5066|CODE:^3379.*|DESTINATION:TRF033|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.03250|INC:1|INITIALBLOCK:1|TRUNK:150|PROVIDER:80) Dialplan: sofia/default/002807@193.111.83.49 Action set(trunk_id=150) Dialplan: sofia/default/002807@193.111.83.49 Action set(provider_id=80) Dialplan: sofia/default/002807@193.111.83.49 Action set(rate_flag=0) Dialplan: sofia/default/002807@193.111.83.49 Action set(force_trunk_flag=32954) Dialplan: sofia/default/002807@193.111.83.49 Action export(presence_data=trunk_id=150) Dialplan: sofia/default/002807@193.111.83.49 Action set(intcall=0) Dialplan: sofia/default/002807@193.111.83.49 Action export(presence_data=x|||Kharkov GT2(6913881027)|||^3379.* // T33RF // 0.03500 // trunk_id=150|||TSL033_forRandom // ^3379.* // TRF033 // 0.03250 // trunk_id=150|||STD|||51.91.38.125) Dialplan: sofia/default/002807@193.111.83.49 Action bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU]sofia/gateway/TSL2/03379199101877;fs_path=sip:51.91.38.125:5060) 2022-02-14 09:33:19.602539 [DEBUG] switch_core_state_machine.c:287 (sofia/default/002807@193.111.83.49) State Change CS_ROUTING -> CS_EXECUTE 2022-02-14 09:33:19.602539 [DEBUG] switch_core_state_machine.c:644 (sofia/default/002807@193.111.83.49) State ROUTING going to sleep 2022-02-14 09:33:19.602539 [DEBUG] switch_core_state_machine.c:585 (sofia/default/002807@193.111.83.49) Running State Change CS_EXECUTE (Cur 263 Tot 21788083) 2022-02-14 09:33:19.602539 [DEBUG] switch_core_state_machine.c:651 (sofia/default/002807@193.111.83.49) State EXECUTE 2022-02-14 09:33:19.602539 [DEBUG] mod_sofia.c:209 sofia/default/002807@193.111.83.49 SOFIA EXECUTE 2022-02-14 09:33:19.602539 [DEBUG] switch_core_state_machine.c:329 sofia/default/002807@193.111.83.49 Standard EXECUTE EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(effective_destination_number=3379199101877) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [effective_destination_number]=[3379199101877] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(bridge_pre_execute_bleg_app=sched_hangup) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [bridge_pre_execute_bleg_app]=[sched_hangup] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(bridge_pre_execute_bleg_data=+10800 normal_clearing) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [bridge_pre_execute_bleg_data]=[+10800 normal_clearing] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(ani_map_id=216363) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [ani_map_id]=[216363] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(callstart=2022-02-14 07:33:19) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [callstart]=[2022-02-14 07:33:19] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(hangup_after_bridge=true) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [hangup_after_bridge]=[true] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(continue_on_fail=TRUE) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [continue_on_fail]=[TRUE] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(account_id=41) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [account_id]=[41] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(parent_id=0) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [parent_id]=[0] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(entity_id=0) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [entity_id]=[0] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(call_processed=internal) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [call_processed]=[internal] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(call_direction=outbound) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [call_direction]=[outbound] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(accountname=default) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [accountname]=[default] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(t38_passthru=true) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [t38_passthru]=[true] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(fax_enable_t38=true) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [fax_enable_t38]=[true] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(fax_enable_t38_request=true) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [fax_enable_t38_request]=[true] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(origination_rates=ID:32954|CODE:^3379.*|DESTINATION:T33RF|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.03500|INC:1|INITIALBLOCK:1|RATEGROUP:17|MARKUP:0|CI:158|ACCID:41) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [origination_rates]=[ID:32954|CODE:^3379.*|DESTINATION:T33RF|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.03500|INC:1|INITIALBLOCK:1|RATEGROUP:17|MARKUP:0|CI:158|ACCID:41] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(original_caller_id_name=79623015687) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [original_caller_id_name]=[79623015687] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(original_caller_id_number=79623015687) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [original_caller_id_number]=[79623015687] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(is_recording=1) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [is_recording]=[1] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(media_bug_answer_req=true) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [media_bug_answer_req]=[true] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(record_sample_rate=8000) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [record_sample_rate]=[8000] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/8a03fbad-1dc5-48b8-9ec5-b23534021e46.mp3) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/8a03fbad-1dc5-48b8-9ec5-b23534021e46.mp3] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(effective_caller_id_name=79623015687) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [effective_caller_id_name]=[79623015687] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(effective_caller_id_number=79623015687) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [effective_caller_id_number]=[79623015687] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(calltype=STANDARD) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [calltype]=[STANDARD] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(termination_rates=ID:5066|CODE:^3379.*|DESTINATION:TRF033|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.03250|INC:1|INITIALBLOCK:1|TRUNK:150|PROVIDER:80) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [termination_rates]=[ID:5066|CODE:^3379.*|DESTINATION:TRF033|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.03250|INC:1|INITIALBLOCK:1|TRUNK:150|PROVIDER:80] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(trunk_id=150) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [trunk_id]=[150] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(provider_id=80) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [provider_id]=[80] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(rate_flag=0) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [rate_flag]=[0] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(force_trunk_flag=32954) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [force_trunk_flag]=[32954] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(presence_data=trunk_id=150) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[trunk_id=150] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 set(intcall=0) 2022-02-14 09:33:19.602539 [DEBUG] mod_dptools.c:1672 SET sofia/default/002807@193.111.83.49 [intcall]=[0] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 export(presence_data=x|||Kharkov GT2(6913881027)|||^3379.* // T33RF // 0.03500 // trunk_id=150|||TSL033_forRandom // ^3379.* // TRF033 // 0.03250 // trunk_id=150|||STD|||51.91.38.125) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||Kharkov GT2(6913881027)|||^3379.* // T33RF // 0.03500 // trunk_id=150|||TSL033_forRandom // ^3379.* // TRF033 // 0.03250 // trunk_id=150|||STD|||51.91.38.125] EXECUTE [depth=0] sofia/default/002807@193.111.83.49 bridge([leg_timeout=0,absolute_codec_string=^^:PCMA:PCMU]sofia/gateway/TSL2/03379199101877;fs_path=sip:51.91.38.125:5060) 2022-02-14 09:33:19.602539 [DEBUG] switch_channel.c:1264 sofia/default/002807@193.111.83.49 E