2016-08-08 05:53:52.669207 [NOTICE] switch_channel.c:1104 New Channel sofia/default/1001@192.168.100.75 [7687c0b0-825b-4e38-8533-f93860e50726] 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:543 (sofia/default/1001@192.168.100.75) Running State Change CS_NEW 2016-08-08 05:53:52.669207 [DEBUG] sofia.c:9456 sofia/default/1001@192.168.100.75 receiving invite from 192.168.100.75:5060 version: 1.6.9 git d574870 2016-06-13 18:10:44Z 64bit 2016-08-08 05:53:52.669207 [DEBUG] sofia.c:9568 IP 192.168.100.75 Approved by acl "default[]". Access Granted. 2016-08-08 05:53:52.669207 [DEBUG] sofia.c:6933 Channel sofia/default/1001@192.168.100.75 entering state [received][100] 2016-08-08 05:53:52.669207 [DEBUG] sofia.c:6943 Remote SDP: v=0 o=- 1470635632 1470635632 IN IP4 192.168.100.75 s=VOS2009 c=IN IP4 192.168.100.75 t=0 0 m=audio 19042 RTP/AVP 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2016-08-08 05:53:52.669207 [DEBUG] sofia.c:7305 (sofia/default/1001@192.168.100.75) State Change CS_NEW -> CS_INIT 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:562 (sofia/default/1001@192.168.100.75) State NEW 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:543 (sofia/default/1001@192.168.100.75) Running State Change CS_INIT 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:586 (sofia/default/1001@192.168.100.75) State INIT 2016-08-08 05:53:52.669207 [DEBUG] mod_sofia.c:89 sofia/default/1001@192.168.100.75 SOFIA INIT 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:40 sofia/default/1001@192.168.100.75 Standard INIT 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1001@192.168.100.75) State Change CS_INIT -> CS_ROUTING 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:586 (sofia/default/1001@192.168.100.75) State INIT going to sleep 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:543 (sofia/default/1001@192.168.100.75) Running State Change CS_ROUTING 2016-08-08 05:53:52.669207 [DEBUG] switch_channel.c:2249 (sofia/default/1001@192.168.100.75) Callstate Change DOWN -> RINGING 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:602 (sofia/default/1001@192.168.100.75) State ROUTING 2016-08-08 05:53:52.669207 [DEBUG] mod_sofia.c:142 sofia/default/1001@192.168.100.75 SOFIA ROUTING 2016-08-08 05:53:52.669207 [DEBUG] switch_core_state_machine.c:236 sofia/default/1001@192.168.100.75 Standard ROUTING 2016-08-08 05:53:52.669207 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->87654321 in context default 2016-08-08 05:53:52.669207 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f0168062460 Connected. 2016-08-08 05:53:52.669207 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard') 2016-08-08 05:53:52.669207 [NOTICE] switch_cpp.cpp:1360 [ASTPP] SECTION /usr/local/freeswitch/scripts/astpp/astpp.lua 2016-08-08 05:53:52.669207 [NOTICE] switch_cpp.cpp:1360 [ASTPP] SECTION dialplan 2016-08-08 05:53:52.669207 [INFO] switch_cpp.cpp:1360 [ASTPP] [Dialplan] Dialed number : 87654321 2016-08-08 05:53:52.669207 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [CHECK_DID] Query :SELECT A.id as id,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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="87654321" LIMIT 1 2016-08-08 05:53:52.669207 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [CHECK_sip2sipinfo] sip2sipinfo : 2016-08-08 05:53:52.669207 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,number as accountcode,sip_devices.accountid as accountid FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND username="87654321" limit 1 2016-08-08 05:53:52.669207 [INFO] switch_cpp.cpp:1360 [ASTPP] [Dialplan] Call Direction : outbound 2016-08-08 05:53:52.669207 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = "192.168.100.75" AND prefix IN (NULL,'') OR SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = "192.168.100.75" AND "87654321" RLIKE prefix ORDER BY LENGTH(prefix) DESC LIMIT 1 2016-08-08 05:53:52.669207 [NOTICE] switch_cpp.cpp:1360 [ASTPP] [Accountcode : 2457848300] 2016-08-08 05:53:52.669207 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "2457848300" OR id="2457848300") AND status=0 AND deleted=0 AND expiry >= '2016-08-08 05:53:52' limit 1 2016-08-08 05:53:52.708611 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns ='^87654321.*' OR blocked_patterns ='^8765432.*' OR blocked_patterns ='^876543.*' OR blocked_patterns ='^87654.*' OR blocked_patterns ='^8765.*' OR blocked_patterns ='^876.*' OR blocked_patterns ='^87.*' OR blocked_patterns ='^8.*' OR blocked_patterns ='--') AND accountid = 2 limit 1 2016-08-08 05:53:52.708611 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [GET_PACKAGE_INFO] Query :SELECT * FROM packages as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns ='^87654321.*' OR patterns ='^8765432.*' OR patterns ='^876543.*' OR patterns ='^87654.*' OR patterns ='^8765.*' OR patterns ='^876.*' OR patterns ='^87.*' OR patterns ='^8.*' OR patterns ='--') AND status = 0 AND pricelist_id = 1 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] =============== Account Information =================== 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] User id : 2 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Account code : 2457848300 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Balance : 0.9991 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Ratecard id : 1 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] ======================================================== 2016-08-08 05:53:52.708611 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2016-08-08 05:53:52.708611 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern ='^87654321.*' OR pattern ='^8765432.*' OR pattern ='^876543.*' OR pattern ='^87654.*' OR pattern ='^8765.*' OR pattern ='^876.*' OR pattern ='^87.*' OR pattern ='^8.*' OR pattern ='--') AND status = 0 AND pricelist_id = 1 ORDER BY LENGTH(pattern) DESC,cost DESC LIMIT 1 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] =============== Rates Information =================== 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] ID : 18 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Connectcost : 0.00000 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Includedseconds : 0 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Cost : 0.10000 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] comment : TEST 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Accid : 2 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] ================================================================ 2016-08-08 05:53:52.708611 [INFO] switch_cpp.cpp:1360 [ASTPP] Call Max length duration : 9.991 minutes 2016-08-08 05:53:52.708611 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=1 2016-08-08 05:53:52.708611 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.dialed_modify,TK.maxchannels,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 ='^87654321.*' OR pattern ='^8765432.*' OR pattern ='^876543.*' OR pattern ='^87654.*' OR pattern ='^8765.*' OR pattern ='^876.*' OR pattern ='^87.*' OR pattern ='^8.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (2) ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] =============== Termination Rates Information =================== 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] ID : 11 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Code : ^8.* 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Destination : TEST 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Connectcost : 0.00000 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Free Seconds : 0 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Prefix : ^8.* 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Strip : 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Prepend : 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Carrier id : 2 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] carrier_name : gw01 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] dialplan_variable : 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Failover gateway : 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Vendor id : 3 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Number Translation : "/1234" 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] Max channels : 100 2016-08-08 05:53:52.728624 [INFO] switch_cpp.cpp:1360 [ASTPP] ========================END OF TERMINATION RATES======================= 2016-08-08 05:53:52.728624 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Functions] [GET_OVERRIDE_CALLERID] Query :SELECT * FROM accounts_callerid WHERE accountid = 2 AND status=0 LIMIT 1 2016-08-08 05:53:52.728624 [DEBUG] switch_cpp.cpp:1360 [ASTPP] [Dialplan] Generated XML:
2016-08-08 05:53:52.728624 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f0168062460 released. Dialplan: sofia/default/1001@192.168.100.75 parsing [default->87654321] continue=false Dialplan: sofia/default/1001@192.168.100.75 Regex (PASS) [87654321] destination_number(87654321) =~ /87654321/ break=on-false Dialplan: sofia/default/1001@192.168.100.75 Action set(effective_destination_number=87654321) Dialplan: sofia/default/1001@192.168.100.75 Action sched_hangup(+599.46 allotted_timeout) Dialplan: sofia/default/1001@192.168.100.75 Action set(callstart=2016-08-08 05:53:52) Dialplan: sofia/default/1001@192.168.100.75 Action set(hangup_after_bridge=true) Dialplan: sofia/default/1001@192.168.100.75 Action set(continue_on_fail=true) Dialplan: sofia/default/1001@192.168.100.75 Action set(ignore_early_media=true) Dialplan: sofia/default/1001@192.168.100.75 Action set(account_id=2) Dialplan: sofia/default/1001@192.168.100.75 Action set(parent_id=0) Dialplan: sofia/default/1001@192.168.100.75 Action set(entity_id=0) Dialplan: sofia/default/1001@192.168.100.75 Action set(call_processed=internal) Dialplan: sofia/default/1001@192.168.100.75 Action set(call_direction=outbound) Dialplan: sofia/default/1001@192.168.100.75 Action set(accountname=test) Dialplan: sofia/default/1001@192.168.100.75 Action export(t38_passthru=true) Dialplan: sofia/default/1001@192.168.100.75 Action set(fax_enable_t38=true) Dialplan: sofia/default/1001@192.168.100.75 Action set(fax_enable_t38_request=true) Dialplan: sofia/default/1001@192.168.100.75 Action set(origination_rates=ID:18|CODE:^8.*|DESTINATION:TEST|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:1|INITIALBLOCK:1|RATEGROUP:1|MARKUP:0|ACCID:2) Dialplan: sofia/default/1001@192.168.100.75 Action limit(db 2457848300 user_2457848300 10/0 !SWITCH_CONGESTION) Dialplan: sofia/default/1001@192.168.100.75 Action export(is_recording=1) Dialplan: sofia/default/1001@192.168.100.75 Action export(media_bug_answer_req=true) Dialplan: sofia/default/1001@192.168.100.75 Action export(RECORD_STEREO=true) Dialplan: sofia/default/1001@192.168.100.75 Action export(record_sample_rate=8000) Dialplan: sofia/default/1001@192.168.100.75 Action export(execute_on_answer=record_session $${base_dir}/recordings/${strftime(%Y-%m-%d-%H:%M:%S)}_2457848300.wav) Dialplan: sofia/default/1001@192.168.100.75 Action set(calltype=STANDARD) Dialplan: sofia/default/1001@192.168.100.75 Action set(termination_rates=ID:11|CODE:^8.*|DESTINATION:TEST|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.05000|INC:1|INITIALBLOCK:1|TRUNK:2|PROVIDER:3) Dialplan: sofia/default/1001@192.168.100.75 Action set(trunk_id=2) Dialplan: sofia/default/1001@192.168.100.75 Action set(provider_id=3) Dialplan: sofia/default/1001@192.168.100.75 Action set(absolute_codec_string=PCMU,PCMA,G729) Dialplan: sofia/default/1001@192.168.100.75 Action limit_execute(db gw01 gw_gw01 100 bridge sofia/gateway/gw01/87654321) 2016-08-08 05:53:52.728624 [DEBUG] switch_core_state_machine.c:286 (sofia/default/1001@192.168.100.75) State Change CS_ROUTING -> CS_EXECUTE 2016-08-08 05:53:52.728624 [DEBUG] switch_core_state_machine.c:602 (sofia/default/1001@192.168.100.75) State ROUTING going to sleep 2016-08-08 05:53:52.728624 [DEBUG] switch_core_state_machine.c:543 (sofia/default/1001@192.168.100.75) Running State Change CS_EXECUTE 2016-08-08 05:53:52.728624 [DEBUG] switch_core_state_machine.c:609 (sofia/default/1001@192.168.100.75) State EXECUTE 2016-08-08 05:53:52.728624 [DEBUG] mod_sofia.c:197 sofia/default/1001@192.168.100.75 SOFIA EXECUTE 2016-08-08 05:53:52.728624 [DEBUG] switch_core_state_machine.c:328 sofia/default/1001@192.168.100.75 Standard EXECUTE EXECUTE sofia/default/1001@192.168.100.75 set(effective_destination_number=87654321) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [effective_destination_number]=[87654321] EXECUTE sofia/default/1001@192.168.100.75 sched_hangup(+599.46 allotted_timeout) 2016-08-08 05:53:52.728624 [DEBUG] switch_scheduler.c:249 Added task 14 switch_ivr_schedule_hangup (7687c0b0-825b-4e38-8533-f93860e50726) to run at 1470636231 EXECUTE sofia/default/1001@192.168.100.75 set(callstart=2016-08-08 05:53:52) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [callstart]=[2016-08-08 05:53:52] EXECUTE sofia/default/1001@192.168.100.75 set(hangup_after_bridge=true) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [hangup_after_bridge]=[true] EXECUTE sofia/default/1001@192.168.100.75 set(continue_on_fail=true) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [continue_on_fail]=[true] EXECUTE sofia/default/1001@192.168.100.75 set(ignore_early_media=true) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [ignore_early_media]=[true] EXECUTE sofia/default/1001@192.168.100.75 set(account_id=2) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [account_id]=[2] EXECUTE sofia/default/1001@192.168.100.75 set(parent_id=0) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [parent_id]=[0] EXECUTE sofia/default/1001@192.168.100.75 set(entity_id=0) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [entity_id]=[0] EXECUTE sofia/default/1001@192.168.100.75 set(call_processed=internal) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [call_processed]=[internal] EXECUTE sofia/default/1001@192.168.100.75 set(call_direction=outbound) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [call_direction]=[outbound] EXECUTE sofia/default/1001@192.168.100.75 set(accountname=test) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [accountname]=[test] EXECUTE sofia/default/1001@192.168.100.75 export(t38_passthru=true) 2016-08-08 05:53:52.728624 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [t38_passthru]=[true] EXECUTE sofia/default/1001@192.168.100.75 set(fax_enable_t38=true) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [fax_enable_t38]=[true] EXECUTE sofia/default/1001@192.168.100.75 set(fax_enable_t38_request=true) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [fax_enable_t38_request]=[true] EXECUTE sofia/default/1001@192.168.100.75 set(origination_rates=ID:18|CODE:^8.*|DESTINATION:TEST|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:1|INITIALBLOCK:1|RATEGROUP:1|MARKUP:0|ACCID:2) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [origination_rates]=[ID:18|CODE:^8.*|DESTINATION:TEST|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.10000|INC:1|INITIALBLOCK:1|RATEGROUP:1|MARKUP:0|ACCID:2] EXECUTE sofia/default/1001@192.168.100.75 limit(db 2457848300 user_2457848300 10/0 !SWITCH_CONGESTION) 2016-08-08 05:53:52.728624 [DEBUG] switch_limit.c:126 incr called: 2457848300_user_2457848300 max:10, interval:0 2016-08-08 05:53:52.728624 [DEBUG] mod_db.c:194 Usage for 2457848300_user_2457848300 is now 1/10 EXECUTE sofia/default/1001@192.168.100.75 export(is_recording=1) 2016-08-08 05:53:52.728624 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [is_recording]=[1] EXECUTE sofia/default/1001@192.168.100.75 export(media_bug_answer_req=true) 2016-08-08 05:53:52.728624 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [media_bug_answer_req]=[true] EXECUTE sofia/default/1001@192.168.100.75 export(RECORD_STEREO=true) 2016-08-08 05:53:52.728624 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [RECORD_STEREO]=[true] EXECUTE sofia/default/1001@192.168.100.75 export(record_sample_rate=8000) 2016-08-08 05:53:52.728624 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [record_sample_rate]=[8000] EXECUTE sofia/default/1001@192.168.100.75 export(execute_on_answer=record_session /usr/local/freeswitch/recordings/2016-08-08-05:53:52_2457848300.wav) 2016-08-08 05:53:52.728624 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [execute_on_answer]=[record_session /usr/local/freeswitch/recordings/2016-08-08-05:53:52_2457848300.wav] EXECUTE sofia/default/1001@192.168.100.75 set(calltype=STANDARD) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [calltype]=[STANDARD] EXECUTE sofia/default/1001@192.168.100.75 set(termination_rates=ID:11|CODE:^8.*|DESTINATION:TEST|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.05000|INC:1|INITIALBLOCK:1|TRUNK:2|PROVIDER:3) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [termination_rates]=[ID:11|CODE:^8.*|DESTINATION:TEST|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.05000|INC:1|INITIALBLOCK:1|TRUNK:2|PROVIDER:3] EXECUTE sofia/default/1001@192.168.100.75 set(trunk_id=2) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [trunk_id]=[2] EXECUTE sofia/default/1001@192.168.100.75 set(provider_id=3) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [provider_id]=[3] EXECUTE sofia/default/1001@192.168.100.75 set(absolute_codec_string=PCMU,PCMA,G729) 2016-08-08 05:53:52.728624 [DEBUG] mod_dptools.c:1519 SET sofia/default/1001@192.168.100.75 [absolute_codec_string]=[PCMU,PCMA,G729] EXECUTE sofia/default/1001@192.168.100.75 limit_execute(db gw01 gw_gw01 100 bridge sofia/gateway/gw01/87654321) 2016-08-08 05:53:52.728624 [DEBUG] switch_limit.c:126 incr called: gw01_gw_gw01 max:100, interval:0 2016-08-08 05:53:52.728624 [DEBUG] mod_db.c:194 Usage for gw01_gw_gw01 is now 1/100 EXECUTE sofia/default/1001@192.168.100.75 bridge(sofia/gateway/gw01/87654321) 2016-08-08 05:53:52.748617 [DEBUG] switch_channel.c:1250 sofia/default/1001@192.168.100.75 EXPORTING[export_vars] [t38_passthru]=[true] to event 2016-08-08 05:53:52.748617 [DEBUG] switch_channel.c:1250 sofia/default/1001@192.168.100.75 EXPORTING[export_vars] [is_recording]=[1] to event 2016-08-08 05:53:52.748617 [DEBUG] switch_channel.c:1250 sofia/default/1001@192.168.100.75 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event 2016-08-08 05:53:52.748617 [DEBUG] switch_channel.c:1250 sofia/default/1001@192.168.100.75 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event 2016-08-08 05:53:52.748617 [DEBUG] switch_channel.c:1250 sofia/default/1001@192.168.100.75 EXPORTING[export_vars] [record_sample_rate]=[8000] to event 2016-08-08 05:53:52.748617 [DEBUG] switch_channel.c:1250 sofia/default/1001@192.168.100.75 EXPORTING[export_vars] [execute_on_answer]=[record_session /usr/local/freeswitch/recordings/2016-08-08-05:53:52_2457848300.wav] to event 2016-08-08 05:53:52.748617 [DEBUG] switch_ivr_originate.c:2127 Parsing global variables 2016-08-08 05:53:52.748617 [NOTICE] switch_channel.c:1104 New Channel sofia/default/87654321 [5b084701-3b15-418e-a192-72856e64b611] 2016-08-08 05:53:52.748617 [DEBUG] mod_sofia.c:4757 (sofia/default/87654321) State Change CS_NEW -> CS_INIT 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:543 (sofia/default/87654321) Running State Change CS_INIT 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:586 (sofia/default/87654321) State INIT 2016-08-08 05:53:52.748617 [DEBUG] mod_sofia.c:89 sofia/default/87654321 SOFIA INIT 2016-08-08 05:53:52.748617 [DEBUG] switch_core_media.c:9260 sofia/default/87654321 Patched SDP --- v=0 o=- 1470635632 1470635632 IN IP4 192.168.100.75 s=VOS2009 c=IN IP4 192.168.100.75 t=0 0 m=audio 19042 RTP/AVP 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 +++ v=0 o=FreeSWITCH 3427769801 3427769802 IN IP4 192.168.100.77 s=FreeSWITCH c=IN IP4 192.168.100.77 t=0 0 m=audio 17446 RTP/AVP 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2016-08-08 05:53:52.748617 [DEBUG] sofia_glue.c:1257 sofia/default/87654321 sending invite version: 1.6.9 git d574870 2016-06-13 18:10:44Z 64bit Local SDP: v=0 o=FreeSWITCH 3427769801 3427769802 IN IP4 192.168.100.77 s=FreeSWITCH c=IN IP4 192.168.100.77 t=0 0 m=audio 17446 RTP/AVP 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:40 sofia/default/87654321 Standard INIT 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:48 (sofia/default/87654321) State Change CS_INIT -> CS_ROUTING 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:586 (sofia/default/87654321) State INIT going to sleep 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:543 (sofia/default/87654321) Running State Change CS_ROUTING 2016-08-08 05:53:52.748617 [DEBUG] sofia.c:6933 Channel sofia/default/87654321 entering state [calling][0] 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:602 (sofia/default/87654321) State ROUTING 2016-08-08 05:53:52.748617 [DEBUG] mod_sofia.c:142 sofia/default/87654321 SOFIA ROUTING 2016-08-08 05:53:52.748617 [DEBUG] switch_ivr_originate.c:67 (sofia/default/87654321) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:602 (sofia/default/87654321) State ROUTING going to sleep 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:543 (sofia/default/87654321) Running State Change CS_CONSUME_MEDIA 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:621 (sofia/default/87654321) State CONSUME_MEDIA 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:621 (sofia/default/87654321) State CONSUME_MEDIA going to sleep 2016-08-08 05:53:52.748617 [DEBUG] sofia.c:6933 Channel sofia/default/87654321 entering state [calling][0] 2016-08-08 05:53:52.748617 [DEBUG] sofia.c:6933 Channel sofia/default/87654321 entering state [terminated][403] 2016-08-08 05:53:52.748617 [NOTICE] sofia.c:7961 Hangup sofia/default/87654321 [CS_CONSUME_MEDIA] [CALL_REJECTED] 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:543 (sofia/default/87654321) Running State Change CS_HANGUP 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:809 (sofia/default/87654321) Callstate Change DOWN -> HANGUP 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:811 (sofia/default/87654321) State HANGUP 2016-08-08 05:53:52.748617 [DEBUG] mod_sofia.c:437 Channel sofia/default/87654321 hanging up, cause: CALL_REJECTED 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:60 sofia/default/87654321 Standard HANGUP, cause: CALL_REJECTED 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:811 (sofia/default/87654321) State HANGUP going to sleep 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:578 (sofia/default/87654321) State Change CS_HANGUP -> CS_REPORTING 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:543 (sofia/default/87654321) Running State Change CS_REPORTING 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:897 (sofia/default/87654321) State REPORTING 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:174 sofia/default/87654321 Standard REPORTING, cause: CALL_REJECTED 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:897 (sofia/default/87654321) State REPORTING going to sleep 2016-08-08 05:53:52.748617 [DEBUG] switch_core_state_machine.c:569 (sofia/default/87654321) State Change CS_REPORTING -> CS_DESTROY 2016-08-08 05:53:52.748617 [DEBUG] switch_core_session.c:1647 Session 163 (sofia/default/87654321) Locked, Waiting on external entities 2016-08-08 05:53:52.768622 [DEBUG] switch_ivr_originate.c:3750 Originate Resulted in Error Cause: 21 [CALL_REJECTED] 2016-08-08 05:53:52.768622 [NOTICE] switch_core_session.c:1665 Session 163 (sofia/default/87654321) Ended 2016-08-08 05:53:52.768622 [NOTICE] switch_core_session.c:1669 Close Channel sofia/default/87654321 [CS_DESTROY] 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:700 (sofia/default/87654321) Running State Change CS_DESTROY 2016-08-08 05:53:52.768622 [INFO] mod_dptools.c:3401 Originate Failed. Cause: CALL_REJECTED 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:710 (sofia/default/87654321) State DESTROY 2016-08-08 05:53:52.768622 [DEBUG] mod_sofia.c:342 sofia/default/87654321 SOFIA DESTROY 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:181 sofia/default/87654321 Standard DESTROY 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:710 (sofia/default/87654321) State DESTROY going to sleep 2016-08-08 05:53:52.768622 [INFO] mod_dptools.c:4624 immediately releasing 2016-08-08 05:53:52.768622 [NOTICE] switch_core_state_machine.c:385 sofia/default/1001@192.168.100.75 has executed the last dialplan instruction, hanging up. 2016-08-08 05:53:52.768622 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/default/1001@192.168.100.75 [CS_EXECUTE] [NORMAL_CLEARING] 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:609 (sofia/default/1001@192.168.100.75) State EXECUTE going to sleep 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:543 (sofia/default/1001@192.168.100.75) Running State Change CS_HANGUP 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:809 (sofia/default/1001@192.168.100.75) Callstate Change RINGING -> HANGUP 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:811 (sofia/default/1001@192.168.100.75) State HANGUP 2016-08-08 05:53:52.768622 [DEBUG] mod_sofia.c:431 sofia/default/1001@192.168.100.75 Overriding SIP cause 480 with 403 from the other leg 2016-08-08 05:53:52.768622 [DEBUG] mod_sofia.c:437 Channel sofia/default/1001@192.168.100.75 hanging up, cause: NORMAL_CLEARING 2016-08-08 05:53:52.768622 [DEBUG] mod_sofia.c:576 Responding to INVITE with: 403 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:60 sofia/default/1001@192.168.100.75 Standard HANGUP, cause: NORMAL_CLEARING 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:811 (sofia/default/1001@192.168.100.75) State HANGUP going to sleep 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:578 (sofia/default/1001@192.168.100.75) State Change CS_HANGUP -> CS_REPORTING 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:543 (sofia/default/1001@192.168.100.75) Running State Change CS_REPORTING 2016-08-08 05:53:52.768622 [DEBUG] switch_core_state_machine.c:897 (sofia/default/1001@192.168.100.75) State REPORTING 2016-08-08 05:53:52.768622 [INFO] mod_json_cdr.c:271 Process [7687c0b0-825b-4e38-8533-f93860e50726.cdr.json] 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:174 sofia/default/1001@192.168.100.75 Standard REPORTING, cause: NORMAL_CLEARING 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:897 (sofia/default/1001@192.168.100.75) State REPORTING going to sleep 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:569 (sofia/default/1001@192.168.100.75) State Change CS_REPORTING -> CS_DESTROY 2016-08-08 05:53:52.808618 [DEBUG] switch_core_session.c:1647 Session 162 (sofia/default/1001@192.168.100.75) Locked, Waiting on external entities 2016-08-08 05:53:52.808618 [NOTICE] switch_core_session.c:1665 Session 162 (sofia/default/1001@192.168.100.75) Ended 2016-08-08 05:53:52.808618 [NOTICE] switch_core_session.c:1669 Close Channel sofia/default/1001@192.168.100.75 [CS_DESTROY] 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:700 (sofia/default/1001@192.168.100.75) Running State Change CS_DESTROY 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:710 (sofia/default/1001@192.168.100.75) State DESTROY 2016-08-08 05:53:52.808618 [DEBUG] mod_sofia.c:342 sofia/default/1001@192.168.100.75 SOFIA DESTROY 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:181 sofia/default/1001@192.168.100.75 Standard DESTROY 2016-08-08 05:53:52.808618 [DEBUG] switch_core_state_machine.c:710 (sofia/default/1001@192.168.100.75) State DESTROY going to sleep 2016-08-08 05:53:53.228607 [DEBUG] switch_scheduler.c:144 Deleting task 14 switch_ivr_schedule_hangup (7687c0b0-825b-4e38-8533-f93860e50726)