2018-02-12 00:24:45.145998 [NOTICE] switch_channel.c:1104 New Channel sofia/default/7028340000@66.241.99.36 [cac35508-a3c4-4156-a6a1-ddfa423bc5b1] 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_NEW (Cur 1 Tot 37071) 2018-02-12 00:24:45.145998 [DEBUG] sofia.c:9825 sofia/default/7028340000@66.241.99.36 receiving invite from 138.197.236.58:5060 version: 1.6.16 64bit 2018-02-12 00:24:45.145998 [DEBUG] sofia.c:9941 IP 138.197.236.58 Approved by acl "default[]". Access Granted. 2018-02-12 00:24:45.145998 [DEBUG] sofia.c:7048 Channel sofia/default/7028340000@66.241.99.36 entering state [received][100] 2018-02-12 00:24:45.145998 [DEBUG] sofia.c:7058 Remote SDP: v=0 o=root 14117 14117 IN IP4 66.241.99.36 s=session c=IN IP4 66.241.99.36 t=0 0 m=audio 14404 RTP/AVP 0 8 3 18 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 2018-02-12 00:24:45.145998 [DEBUG] sofia.c:7450 (sofia/default/7028340000@66.241.99.36) State Change CS_NEW -> CS_INIT 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:603 (sofia/default/7028340000@66.241.99.36) State NEW 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_INIT (Cur 1 Tot 37071) 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7028340000@66.241.99.36) State INIT 2018-02-12 00:24:45.145998 [DEBUG] mod_sofia.c:90 sofia/default/7028340000@66.241.99.36 SOFIA INIT 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:40 sofia/default/7028340000@66.241.99.36 Standard INIT 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:48 (sofia/default/7028340000@66.241.99.36) State Change CS_INIT -> CS_ROUTING 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:627 (sofia/default/7028340000@66.241.99.36) State INIT going to sleep 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_ROUTING (Cur 1 Tot 37071) 2018-02-12 00:24:45.145998 [DEBUG] switch_channel.c:2249 (sofia/default/7028340000@66.241.99.36) Callstate Change DOWN -> RINGING 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7028340000@66.241.99.36) State ROUTING 2018-02-12 00:24:45.145998 [DEBUG] mod_sofia.c:143 sofia/default/7028340000@66.241.99.36 SOFIA ROUTING 2018-02-12 00:24:45.145998 [DEBUG] switch_core_state_machine.c:236 sofia/default/7028340000@66.241.99.36 Standard ROUTING 2018-02-12 00:24:45.145998 [INFO] mod_dialplan_xml.c:637 Processing 7028340000 <7028340000>->6196961477 in context default 2018-02-12 00:24:45.145998 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f29183236e0 Connected. 2018-02-12 00:24:45.145998 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard') 2018-02-12 00:24:45.145998 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 6196961477 2018-02-12 00:24:45.145998 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 7028340000 / 7028340000 2018-02-12 00:24:45.145998 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="6196961477" LIMIT 1 2018-02-12 00:24:45.145998 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound 2018-02-12 00:24:45.145998 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 7403547829] 2018-02-12 00:24:45.145998 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "7403547829" OR id="7403547829") AND status=0 AND deleted=0 AND (expiry >= '2018-02-12 08:24:45' OR expiry = '0000-00-00 00:00:00') limit 1 2018-02-12 00:24:45.165995 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns ='^6196961477.*' OR patterns ='^619696147.*' OR patterns ='^61969614.*' OR patterns ='^6196961.*' OR patterns ='^619696.*' OR patterns ='^61969.*' OR patterns ='^6196.*' OR patterns ='^619.*' OR patterns ='^61.*' OR patterns ='^6.*' OR patterns ='--') AND status = 0 AND pricelist_id = 11 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information =================== 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 27 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 7403547829 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid] 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 11 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] ======================================================== 2018-02-12 00:24:45.165995 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 11 AND status = 0 2018-02-12 00:24:45.165995 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="6196961477" LIMIT 1 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 91 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00700 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 6196961477 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 27 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] LIMITING CALL TO CONFIG MAX LENGTH 120!!! 2018-02-12 00:24:45.165995 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 120 minutes 2018-02-12 00:24:45.165995 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "136" OR id="136") AND status=0 AND deleted=0 AND (expiry >= '2018-02-12 08:24:45' OR expiry = '0000-00-00 00:00:00') limit 1 2018-02-12 00:24:45.165995 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 11 AND status = 0 2018-02-12 00:24:45.185961 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern ='^6196961477.*' OR pattern ='^619696147.*' OR pattern ='^61969614.*' OR pattern ='^6196961.*' OR pattern ='^619696.*' OR pattern ='^61969.*' OR pattern ='^6196.*' OR pattern ='^619.*' OR pattern ='^61.*' OR pattern ='^6.*' OR pattern ='--') AND status = 0 AND pricelist_id = 11 ORDER BY LENGTH(pattern) DESC,cost DESC LIMIT 1 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 2233 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00390 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 27 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] LIMITING CALL TO CONFIG MAX LENGTH 120!!! 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:27 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:27 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 27 2018-02-12 00:24:45.185961 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Starts 2018-02-12 00:24:45.185961 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Ends 2018-02-12 00:24:45.185961 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
2018-02-12 00:24:45.185961 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f29183236e0 released. Dialplan: sofia/default/7028340000@66.241.99.36 parsing [default->6196961477] continue=false Dialplan: sofia/default/7028340000@66.241.99.36 Regex (PASS) [6196961477] destination_number(6196961477) =~ /6196961477/ break=on-false Dialplan: sofia/default/7028340000@66.241.99.36 Action set(effective_destination_number=6196961477) Dialplan: sofia/default/7028340000@66.241.99.36 Action sched_hangup(+7200 normal_clearing) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(callstart=2018-02-12 08:24:45) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(hangup_after_bridge=true) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(continue_on_fail=true) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(account_id=27) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(parent_id=0) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(entity_id=3) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(call_processed=internal) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(call_direction=inbound) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(accountname=default) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(origination_rates_did=ID:91|CODE:^.6196961477.*|DESTINATION:6196961477|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00700|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|ACCID:136) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(origination_rates=ID:2233|CODE:^6.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00390|INC:60|INITIALBLOCK:60|RATEGROUP:11|MARKUP:0|ACCID:27) Dialplan: sofia/default/7028340000@66.241.99.36 Action limit(db 7403547829 user_7403547829 50/0 !SWITCH_CONGESTION) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(original_caller_id_name=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(original_caller_id_number=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(effective_caller_id_name=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(effective_caller_id_number=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(receiver_accid=136) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(calltype=STANDARD) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(accountcode=8346105694) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(caller_did_account_id=27) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(origination_rates_did=ID:2233|CODE:^6.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00390|INC:60|INITIALBLOCK:60|RATEGROUP:11|MARKUP:0|ACCID:27) Dialplan: sofia/default/7028340000@66.241.99.36 Action transfer(17027777777 XML default) 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:286 (sofia/default/7028340000@66.241.99.36) State Change CS_ROUTING -> CS_EXECUTE 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7028340000@66.241.99.36) State ROUTING going to sleep 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_EXECUTE (Cur 1 Tot 37071) 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:650 (sofia/default/7028340000@66.241.99.36) State EXECUTE 2018-02-12 00:24:45.185961 [DEBUG] mod_sofia.c:198 sofia/default/7028340000@66.241.99.36 SOFIA EXECUTE 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:328 sofia/default/7028340000@66.241.99.36 Standard EXECUTE EXECUTE sofia/default/7028340000@66.241.99.36 set(effective_destination_number=6196961477) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [effective_destination_number]=[6196961477] EXECUTE sofia/default/7028340000@66.241.99.36 sched_hangup(+7200 normal_clearing) 2018-02-12 00:24:45.185961 [DEBUG] switch_scheduler.c:249 Added task 769 switch_ivr_schedule_hangup (cac35508-a3c4-4156-a6a1-ddfa423bc5b1) to run at 1518431085 EXECUTE sofia/default/7028340000@66.241.99.36 set(callstart=2018-02-12 08:24:45) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [callstart]=[2018-02-12 08:24:45] EXECUTE sofia/default/7028340000@66.241.99.36 set(hangup_after_bridge=true) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [hangup_after_bridge]=[true] EXECUTE sofia/default/7028340000@66.241.99.36 set(continue_on_fail=true) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [continue_on_fail]=[true] EXECUTE sofia/default/7028340000@66.241.99.36 set(account_id=27) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [account_id]=[27] EXECUTE sofia/default/7028340000@66.241.99.36 set(parent_id=0) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [parent_id]=[0] EXECUTE sofia/default/7028340000@66.241.99.36 set(entity_id=3) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [entity_id]=[3] EXECUTE sofia/default/7028340000@66.241.99.36 set(call_processed=internal) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [call_processed]=[internal] EXECUTE sofia/default/7028340000@66.241.99.36 set(call_direction=inbound) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [call_direction]=[inbound] EXECUTE sofia/default/7028340000@66.241.99.36 set(accountname=default) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [accountname]=[default] EXECUTE sofia/default/7028340000@66.241.99.36 set(origination_rates_did=ID:91|CODE:^.6196961477.*|DESTINATION:6196961477|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00700|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|ACCID:136) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [origination_rates_did]=[ID:91|CODE:^.6196961477.*|DESTINATION:6196961477|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00700|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|ACCID:136] EXECUTE sofia/default/7028340000@66.241.99.36 set(origination_rates=ID:2233|CODE:^6.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00390|INC:60|INITIALBLOCK:60|RATEGROUP:11|MARKUP:0|ACCID:27) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [origination_rates]=[ID:2233|CODE:^6.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00390|INC:60|INITIALBLOCK:60|RATEGROUP:11|MARKUP:0|ACCID:27] EXECUTE sofia/default/7028340000@66.241.99.36 limit(db 7403547829 user_7403547829 50/0 !SWITCH_CONGESTION) 2018-02-12 00:24:45.185961 [DEBUG] switch_limit.c:126 incr called: 7403547829_user_7403547829 max:50, interval:0 2018-02-12 00:24:45.185961 [DEBUG] mod_db.c:194 Usage for 7403547829_user_7403547829 is now 1/50 EXECUTE sofia/default/7028340000@66.241.99.36 set(original_caller_id_name=7028340000) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [original_caller_id_name]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(original_caller_id_number=7028340000) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [original_caller_id_number]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(effective_caller_id_name=7028340000) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [effective_caller_id_name]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(effective_caller_id_number=7028340000) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [effective_caller_id_number]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(receiver_accid=136) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [receiver_accid]=[136] EXECUTE sofia/default/7028340000@66.241.99.36 set(calltype=STANDARD) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [calltype]=[STANDARD] EXECUTE sofia/default/7028340000@66.241.99.36 set(accountcode=8346105694) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [accountcode]=[8346105694] EXECUTE sofia/default/7028340000@66.241.99.36 set(caller_did_account_id=27) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [caller_did_account_id]=[27] EXECUTE sofia/default/7028340000@66.241.99.36 set(origination_rates_did=ID:2233|CODE:^6.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00390|INC:60|INITIALBLOCK:60|RATEGROUP:11|MARKUP:0|ACCID:27) 2018-02-12 00:24:45.185961 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [origination_rates_did]=[ID:2233|CODE:^6.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00390|INC:60|INITIALBLOCK:60|RATEGROUP:11|MARKUP:0|ACCID:27] EXECUTE sofia/default/7028340000@66.241.99.36 transfer(17027777777 XML default) 2018-02-12 00:24:45.185961 [DEBUG] switch_ivr.c:2165 (sofia/default/7028340000@66.241.99.36) State Change CS_EXECUTE -> CS_ROUTING 2018-02-12 00:24:45.185961 [NOTICE] switch_ivr.c:2172 Transfer sofia/default/7028340000@66.241.99.36 to XML[17027777777@default] 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:650 (sofia/default/7028340000@66.241.99.36) State EXECUTE going to sleep 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_ROUTING (Cur 1 Tot 37071) 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7028340000@66.241.99.36) State ROUTING 2018-02-12 00:24:45.185961 [DEBUG] mod_sofia.c:143 sofia/default/7028340000@66.241.99.36 SOFIA ROUTING 2018-02-12 00:24:45.185961 [DEBUG] switch_core_state_machine.c:236 sofia/default/7028340000@66.241.99.36 Standard ROUTING 2018-02-12 00:24:45.185961 [INFO] mod_dialplan_xml.c:637 Processing 7028340000 <7028340000>->17027777777 in context default 2018-02-12 00:24:45.185961 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f29183236e0 Connected. 2018-02-12 00:24:45.185961 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard') 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 17027777777 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 7028340000 / 7028340000 2018-02-12 00:24:45.185961 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="17027777777" LIMIT 1 2018-02-12 00:24:45.185961 [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="17027777777" limit 1 2018-02-12 00:24:45.185961 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound 2018-02-12 00:24:45.185961 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 8346105694] 2018-02-12 00:24:45.185961 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "8346105694" OR id="8346105694") AND status=0 AND deleted=0 AND (expiry >= '2018-02-12 08:24:45' OR expiry = '0000-00-00 00:00:00') limit 1 2018-02-12 00:24:45.205991 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns ='^17027777777.*' OR blocked_patterns ='^1702777777.*' OR blocked_patterns ='^170277777.*' OR blocked_patterns ='^17027777.*' OR blocked_patterns ='^1702777.*' OR blocked_patterns ='^170277.*' OR blocked_patterns ='^17027.*' OR blocked_patterns ='^1702.*' OR blocked_patterns ='^170.*' OR blocked_patterns ='^17.*' OR blocked_patterns ='^1.*' OR blocked_patterns ='--') AND accountid = 136 limit 1 2018-02-12 00:24:45.205991 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns ='^17027777777.*' OR patterns ='^1702777777.*' OR patterns ='^170277777.*' OR patterns ='^17027777.*' OR patterns ='^1702777.*' OR patterns ='^170277.*' OR patterns ='^17027.*' OR patterns ='^1702.*' OR patterns ='^170.*' OR patterns ='^17.*' OR patterns ='^1.*' OR patterns ='--') AND status = 0 AND pricelist_id = 1 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information =================== 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 136 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 8346105694 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9966.9983 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 1 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] ======================================================== 2018-02-12 00:24:45.205991 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2018-02-12 00:24:45.205991 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern ='^17027777777.*' OR pattern ='^1702777777.*' OR pattern ='^170277777.*' OR pattern ='^17027777.*' OR pattern ='^1702777.*' OR pattern ='^170277.*' OR pattern ='^17027.*' OR pattern ='^1702.*' OR pattern ='^170.*' OR pattern ='^17.*' OR pattern ='^1.*' OR pattern ='--') AND status = 0 AND pricelist_id = 1 ORDER BY LENGTH(pattern) DESC,cost DESC LIMIT 1 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.02000 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 136 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] LIMITING CALL TO CONFIG MAX LENGTH 120!!! 2018-02-12 00:24:45.205991 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 120 minutes 2018-02-12 00:24:45.205991 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=1 2018-02-12 00:24:45.205991 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TK.cid_translation,TR.init_inc,TK.status,TK.dialed_modify,TK.maxchannels,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 ='^17027777777.*' OR pattern ='^1702777777.*' OR pattern ='^170277777.*' OR pattern ='^17027777.*' OR pattern ='^1702777.*' OR pattern ='^170277.*' OR pattern ='^17027.*' OR pattern ='^1702.*' OR pattern ='^170.*' OR pattern ='^17.*' OR pattern ='^1.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (1) ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information =================== 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^1.* 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^1.* 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip : 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Prepend : 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Carrier id : 1 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] carrier_name : OV_GW 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] dialplan_variable : 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway : 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 7 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Number Translation : 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0 2018-02-12 00:24:45.225982 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================END OF TERMINATION RATES======================= 2018-02-12 00:24:45.225982 [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 = 136 AND status=0 LIMIT 1 2018-02-12 00:24:45.225982 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLOUTBOUND] Caller ID Translation Starts 2018-02-12 00:24:45.225982 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLOUTBOUND] Caller ID Translation Ends 2018-02-12 00:24:45.225982 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:
2018-02-12 00:24:45.225982 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f29183236e0 released. Dialplan: sofia/default/7028340000@66.241.99.36 parsing [default->17027777777] continue=false Dialplan: sofia/default/7028340000@66.241.99.36 Regex (PASS) [17027777777] destination_number(17027777777) =~ /17027777777/ break=on-false Dialplan: sofia/default/7028340000@66.241.99.36 Action set(effective_destination_number=17027777777) Dialplan: sofia/default/7028340000@66.241.99.36 Action sched_hangup(+7200 normal_clearing) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(callstart=2018-02-12 08:24:45) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(hangup_after_bridge=true) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(continue_on_fail=true) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(account_id=136) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(parent_id=0) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(entity_id=0) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(call_processed=internal) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(call_direction=outbound) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(accountname=default) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(origination_rates=ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.02000|INC:0|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:136) Dialplan: sofia/default/7028340000@66.241.99.36 Action limit(db 8346105694 user_8346105694 2/0 !SWITCH_CONGESTION) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(original_caller_id_name=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(original_caller_id_number=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(effective_caller_id_name=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(effective_caller_id_number=7028340000) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(calltype=STANDARD) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(termination_rates=ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01900|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:7) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(trunk_id=1) Dialplan: sofia/default/7028340000@66.241.99.36 Action set(provider_id=7) Dialplan: sofia/default/7028340000@66.241.99.36 Action bridge([leg_timeout=30]sofia/gateway/OV_GW/17027777777) 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:286 (sofia/default/7028340000@66.241.99.36) State Change CS_ROUTING -> CS_EXECUTE 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:643 (sofia/default/7028340000@66.241.99.36) State ROUTING going to sleep 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_EXECUTE (Cur 1 Tot 37071) 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:650 (sofia/default/7028340000@66.241.99.36) State EXECUTE 2018-02-12 00:24:45.225982 [DEBUG] mod_sofia.c:198 sofia/default/7028340000@66.241.99.36 SOFIA EXECUTE 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:328 sofia/default/7028340000@66.241.99.36 Standard EXECUTE EXECUTE sofia/default/7028340000@66.241.99.36 set(effective_destination_number=17027777777) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [effective_destination_number]=[17027777777] EXECUTE sofia/default/7028340000@66.241.99.36 sched_hangup(+7200 normal_clearing) 2018-02-12 00:24:45.225982 [DEBUG] switch_scheduler.c:249 Added task 770 switch_ivr_schedule_hangup (cac35508-a3c4-4156-a6a1-ddfa423bc5b1) to run at 1518431085 EXECUTE sofia/default/7028340000@66.241.99.36 set(callstart=2018-02-12 08:24:45) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [callstart]=[2018-02-12 08:24:45] EXECUTE sofia/default/7028340000@66.241.99.36 set(hangup_after_bridge=true) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [hangup_after_bridge]=[true] EXECUTE sofia/default/7028340000@66.241.99.36 set(continue_on_fail=true) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [continue_on_fail]=[true] EXECUTE sofia/default/7028340000@66.241.99.36 set(account_id=136) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [account_id]=[136] EXECUTE sofia/default/7028340000@66.241.99.36 set(parent_id=0) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [parent_id]=[0] EXECUTE sofia/default/7028340000@66.241.99.36 set(entity_id=0) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [entity_id]=[0] EXECUTE sofia/default/7028340000@66.241.99.36 set(call_processed=internal) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [call_processed]=[internal] EXECUTE sofia/default/7028340000@66.241.99.36 set(call_direction=outbound) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [call_direction]=[outbound] EXECUTE sofia/default/7028340000@66.241.99.36 set(accountname=default) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [accountname]=[default] EXECUTE sofia/default/7028340000@66.241.99.36 set(origination_rates=ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.02000|INC:0|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:136) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [origination_rates]=[ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.02000|INC:0|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:136] EXECUTE sofia/default/7028340000@66.241.99.36 limit(db 8346105694 user_8346105694 2/0 !SWITCH_CONGESTION) 2018-02-12 00:24:45.225982 [DEBUG] switch_limit.c:126 incr called: 8346105694_user_8346105694 max:2, interval:0 2018-02-12 00:24:45.225982 [DEBUG] mod_db.c:194 Usage for 8346105694_user_8346105694 is now 1/2 EXECUTE sofia/default/7028340000@66.241.99.36 set(original_caller_id_name=7028340000) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [original_caller_id_name]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(original_caller_id_number=7028340000) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [original_caller_id_number]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(effective_caller_id_name=7028340000) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [effective_caller_id_name]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(effective_caller_id_number=7028340000) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [effective_caller_id_number]=[7028340000] EXECUTE sofia/default/7028340000@66.241.99.36 set(calltype=STANDARD) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [calltype]=[STANDARD] EXECUTE sofia/default/7028340000@66.241.99.36 set(termination_rates=ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01900|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:7) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01900|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:7] EXECUTE sofia/default/7028340000@66.241.99.36 set(trunk_id=1) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [trunk_id]=[1] EXECUTE sofia/default/7028340000@66.241.99.36 set(provider_id=7) 2018-02-12 00:24:45.225982 [DEBUG] mod_dptools.c:1530 SET sofia/default/7028340000@66.241.99.36 [provider_id]=[7] EXECUTE sofia/default/7028340000@66.241.99.36 bridge([leg_timeout=30]sofia/gateway/OV_GW/17027777777) 2018-02-12 00:24:45.225982 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables 2018-02-12 00:24:45.225982 [DEBUG] switch_ivr_originate.c:2663 Parsing session specific variables 2018-02-12 00:24:45.225982 [NOTICE] switch_channel.c:1104 New Channel sofia/default/17027777777 [d35df103-48dd-4f8e-8101-2519a835d9d7] 2018-02-12 00:24:45.225982 [DEBUG] mod_sofia.c:4818 (sofia/default/17027777777) State Change CS_NEW -> CS_INIT 2018-02-12 00:24:45.225982 [DEBUG] switch_ivr_originate.c:2957 sofia/default/17027777777 Setting leg timeout to 30 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:584 (sofia/default/17027777777) Running State Change CS_INIT (Cur 2 Tot 37072) 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:627 (sofia/default/17027777777) State INIT 2018-02-12 00:24:45.225982 [DEBUG] mod_sofia.c:90 sofia/default/17027777777 SOFIA INIT 2018-02-12 00:24:45.225982 [DEBUG] sofia_glue.c:1264 sip:138.197.236.58 Setting proxy route to sofia/default/17027777777 2018-02-12 00:24:45.225982 [DEBUG] sofia_glue.c:1295 sofia/default/17027777777 sending invite version: 1.6.16 64bit Local SDP: v=0 o=FreeSWITCH 1518404027 1518404028 IN IP4 138.68.245.133 s=FreeSWITCH c=IN IP4 138.68.245.133 t=0 0 m=audio 19858 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:40 sofia/default/17027777777 Standard INIT 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:48 (sofia/default/17027777777) State Change CS_INIT -> CS_ROUTING 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:627 (sofia/default/17027777777) State INIT going to sleep 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:584 (sofia/default/17027777777) Running State Change CS_ROUTING (Cur 2 Tot 37072) 2018-02-12 00:24:45.225982 [DEBUG] sofia.c:7048 Channel sofia/default/17027777777 entering state [calling][0] 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:643 (sofia/default/17027777777) State ROUTING 2018-02-12 00:24:45.225982 [DEBUG] mod_sofia.c:143 sofia/default/17027777777 SOFIA ROUTING 2018-02-12 00:24:45.225982 [DEBUG] switch_ivr_originate.c:67 (sofia/default/17027777777) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:643 (sofia/default/17027777777) State ROUTING going to sleep 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:584 (sofia/default/17027777777) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 37072) 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:662 (sofia/default/17027777777) State CONSUME_MEDIA 2018-02-12 00:24:45.225982 [DEBUG] switch_core_state_machine.c:662 (sofia/default/17027777777) State CONSUME_MEDIA going to sleep 2018-02-12 00:24:47.465978 [DEBUG] sofia.c:7048 Channel sofia/default/17027777777 entering state [proceeding][180] 2018-02-12 00:24:47.465978 [DEBUG] sofia.c:7058 Remote SDP: v=0 o=Sonus_UAC 4579 5705 IN IP4 66.62.60.234 s=SIP Media Capabilities c=IN IP4 66.62.60.236 t=0 0 m=audio 27232 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=maxptime:20 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:4484 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:4345 Set telephone-event payload to 101@8000 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:3049 Set Codec sofia/default/17027777777 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2018-02-12 00:24:47.465978 [DEBUG] switch_core_codec.c:111 sofia/default/17027777777 Original read codec set to PCMU:0 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:4688 Set telephone-event payload to 101@8000 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:4747 sofia/default/17027777777 Set 2833 dtmf send payload to 101 recv payload to 101 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:6803 AUDIO RTP [sofia/default/17027777777] 138.68.245.133 port 19858 -> 66.62.60.236 port 27232 codec: 0 ms: 20 2018-02-12 00:24:47.465978 [DEBUG] switch_rtp.c:4095 Starting timer [soft] 160 bytes per 20ms 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:7109 sofia/default/17027777777 Set 2833 dtmf send payload to 101 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:7116 sofia/default/17027777777 Set 2833 dtmf receive payload to 101 2018-02-12 00:24:47.465978 [DEBUG] switch_core_media.c:7139 sofia/default/17027777777 Set rtp dtmf delay to 40 2018-02-12 00:24:47.465978 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/17027777777! 2018-02-12 00:24:47.465978 [DEBUG] switch_channel.c:3473 (sofia/default/17027777777) Callstate Change DOWN -> EARLY 2018-02-12 00:24:47.465978 [DEBUG] sofia.c:7048 Channel sofia/default/17027777777 entering state [completing][200] 2018-02-12 00:24:47.465978 [DEBUG] sofia.c:7055 Duplicate SDP v=0 o=Sonus_UAC 4579 5705 IN IP4 66.62.60.234 s=SIP Media Capabilities c=IN IP4 66.62.60.236 t=0 0 m=audio 27232 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=maxptime:20 2018-02-12 00:24:47.465978 [DEBUG] sofia.c:7048 Channel sofia/default/17027777777 entering state [ready][200] 2018-02-12 00:24:47.465978 [NOTICE] sofia.c:8108 Channel [sofia/default/17027777777] has been answered 2018-02-12 00:24:47.465978 [DEBUG] switch_channel.c:3772 (sofia/default/17027777777) Callstate Change EARLY -> ACTIVE 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4484 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4484 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4429 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4345 Set telephone-event payload to 101@8000 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:3049 Set Codec sofia/default/7028340000@66.241.99.36 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2018-02-12 00:24:47.486007 [DEBUG] switch_core_codec.c:111 sofia/default/7028340000@66.241.99.36 Original read codec set to PCMU:0 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4688 Set telephone-event payload to 101@8000 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:4747 sofia/default/7028340000@66.241.99.36 Set 2833 dtmf send payload to 101 recv payload to 101 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:6803 AUDIO RTP [sofia/default/7028340000@66.241.99.36] 138.68.245.133 port 29600 -> 66.241.99.36 port 14404 codec: 0 ms: 20 2018-02-12 00:24:47.486007 [DEBUG] switch_rtp.c:4095 Starting timer [soft] 160 bytes per 20ms 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:7109 sofia/default/7028340000@66.241.99.36 Set 2833 dtmf send payload to 101 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:7116 sofia/default/7028340000@66.241.99.36 Set 2833 dtmf receive payload to 101 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:7139 sofia/default/7028340000@66.241.99.36 Set rtp dtmf delay to 40 2018-02-12 00:24:47.486007 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/7028340000@66.241.99.36! 2018-02-12 00:24:47.486007 [DEBUG] switch_channel.c:3473 (sofia/default/7028340000@66.241.99.36) Callstate Change RINGING -> EARLY 2018-02-12 00:24:47.486007 [DEBUG] switch_core_media.c:6786 Audio params are unchanged for sofia/default/7028340000@66.241.99.36. 2018-02-12 00:24:47.486007 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/7028340000@66.241.99.36: v=0 o=FreeSWITCH 1518394287 1518394288 IN IP4 138.68.245.133 s=FreeSWITCH c=IN IP4 138.68.245.133 t=0 0 m=audio 29600 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 2018-02-12 00:24:47.486007 [NOTICE] switch_ivr_originate.c:3632 Channel [sofia/default/7028340000@66.241.99.36] has been answered 2018-02-12 00:24:47.486007 [DEBUG] switch_channel.c:3772 (sofia/default/7028340000@66.241.99.36) Callstate Change EARLY -> ACTIVE 2018-02-12 00:24:47.486007 [DEBUG] sofia.c:7048 Channel sofia/default/7028340000@66.241.99.36 entering state [completed][200] 2018-02-12 00:24:47.486007 [DEBUG] switch_ivr_originate.c:3690 Originate Resulted in Success: [sofia/default/17027777777] 2018-02-12 00:24:47.486007 [DEBUG] switch_ivr_bridge.c:1574 (sofia/default/17027777777) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2018-02-12 00:24:47.486007 [DEBUG] switch_core_state_machine.c:584 (sofia/default/17027777777) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 37072) 2018-02-12 00:24:47.486007 [DEBUG] switch_core_state_machine.c:653 (sofia/default/17027777777) State EXCHANGE_MEDIA 2018-02-12 00:24:47.486007 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA 2018-02-12 00:24:47.525990 [DEBUG] switch_rtp.c:7228 Correct audio ip/port confirmed. 2018-02-12 00:24:47.525990 [DEBUG] sofia.c:7048 Channel sofia/default/7028340000@66.241.99.36 entering state [ready][200] 2018-02-12 00:24:47.585990 [DEBUG] switch_rtp.c:7228 Correct audio ip/port confirmed. freeswitch@FS02> freeswitch@FS02> 2018-02-12 00:25:09.126003 [NOTICE] sofia.c:1012 Hangup sofia/default/7028340000@66.241.99.36 [CS_EXECUTE] [NORMAL_CLEARING] 2018-02-12 00:25:09.126003 [DEBUG] switch_ivr_bridge.c:760 BRIDGE THREAD DONE [sofia/default/7028340000@66.241.99.36] 2018-02-12 00:25:09.145977 [DEBUG] switch_ivr_bridge.c:681 sofia/default/7028340000@66.241.99.36 ending bridge by request from write function 2018-02-12 00:25:09.145977 [DEBUG] switch_ivr_bridge.c:760 BRIDGE THREAD DONE [sofia/default/17027777777] 2018-02-12 00:25:09.145977 [NOTICE] switch_ivr_bridge.c:864 Hangup sofia/default/17027777777 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING] 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:653 (sofia/default/17027777777) State EXCHANGE_MEDIA going to sleep 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:584 (sofia/default/17027777777) Running State Change CS_HANGUP (Cur 2 Tot 37072) 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:850 (sofia/default/17027777777) Callstate Change ACTIVE -> HANGUP 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:852 (sofia/default/17027777777) State HANGUP 2018-02-12 00:25:09.145977 [DEBUG] mod_sofia.c:432 sofia/default/17027777777 Overriding SIP cause 480 with 200 from the other leg 2018-02-12 00:25:09.145977 [DEBUG] mod_sofia.c:438 Channel sofia/default/17027777777 hanging up, cause: NORMAL_CLEARING 2018-02-12 00:25:09.145977 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/17027777777 2018-02-12 00:25:09.145977 [DEBUG] switch_ivr_bridge.c:1672 sofia/default/17027777777 skip receive message [UNBRIDGE] (channel is hungup already) 2018-02-12 00:25:09.145977 [DEBUG] switch_ivr_bridge.c:1675 sofia/default/7028340000@66.241.99.36 skip receive message [UNBRIDGE] (channel is hungup already) 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:60 sofia/default/17027777777 Standard HANGUP, cause: NORMAL_CLEARING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:852 (sofia/default/17027777777) State HANGUP going to sleep 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:619 (sofia/default/17027777777) State Change CS_HANGUP -> CS_REPORTING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:584 (sofia/default/17027777777) Running State Change CS_REPORTING (Cur 2 Tot 37072) 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:938 (sofia/default/17027777777) State REPORTING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_session.c:2814 sofia/default/7028340000@66.241.99.36 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:650 (sofia/default/7028340000@66.241.99.36) State EXECUTE going to sleep 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_HANGUP (Cur 2 Tot 37072) 2018-02-12 00:25:09.145977 [INFO] mod_json_cdr.c:271 Process [d35df103-48dd-4f8e-8101-2519a835d9d7.cdr.json] 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:850 (sofia/default/7028340000@66.241.99.36) Callstate Change ACTIVE -> HANGUP 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7028340000@66.241.99.36) State HANGUP 2018-02-12 00:25:09.145977 [DEBUG] mod_sofia.c:438 Channel sofia/default/7028340000@66.241.99.36 hanging up, cause: NORMAL_CLEARING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:60 sofia/default/7028340000@66.241.99.36 Standard HANGUP, cause: NORMAL_CLEARING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:852 (sofia/default/7028340000@66.241.99.36) State HANGUP going to sleep 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:619 (sofia/default/7028340000@66.241.99.36) State Change CS_HANGUP -> CS_REPORTING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:584 (sofia/default/7028340000@66.241.99.36) Running State Change CS_REPORTING (Cur 2 Tot 37072) 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7028340000@66.241.99.36) State REPORTING 2018-02-12 00:25:09.145977 [INFO] mod_json_cdr.c:271 Process [cac35508-a3c4-4156-a6a1-ddfa423bc5b1.cdr.json] 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:174 sofia/default/17027777777 Standard REPORTING, cause: NORMAL_CLEARING 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:938 (sofia/default/17027777777) State REPORTING going to sleep 2018-02-12 00:25:09.145977 [DEBUG] switch_core_state_machine.c:610 (sofia/default/17027777777) State Change CS_REPORTING -> CS_DESTROY 2018-02-12 00:25:09.145977 [DEBUG] switch_core_session.c:1664 Session 37072 (sofia/default/17027777777) Locked, Waiting on external entities 2018-02-12 00:25:09.145977 [NOTICE] switch_core_session.c:1682 Session 37072 (sofia/default/17027777777) Ended 2018-02-12 00:25:09.145977 [NOTICE] switch_core_session.c:1686 Close Channel sofia/default/17027777777 [CS_DESTROY] 2018-02-12 00:25:09.165964 [DEBUG] switch_core_state_machine.c:741 (sofia/default/17027777777) Running State Change CS_DESTROY (Cur 1 Tot 37072) 2018-02-12 00:25:09.165964 [DEBUG] switch_core_state_machine.c:751 (sofia/default/17027777777) State DESTROY 2018-02-12 00:25:09.165964 [DEBUG] mod_sofia.c:343 sofia/default/17027777777 SOFIA DESTROY 2018-02-12 00:25:09.165964 [DEBUG] switch_core_state_machine.c:181 sofia/default/17027777777 Standard DESTROY 2018-02-12 00:25:09.165964 [DEBUG] switch_core_state_machine.c:751 (sofia/default/17027777777) State DESTROY going to sleep 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:174 sofia/default/7028340000@66.241.99.36 Standard REPORTING, cause: NORMAL_CLEARING 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:938 (sofia/default/7028340000@66.241.99.36) State REPORTING going to sleep 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:610 (sofia/default/7028340000@66.241.99.36) State Change CS_REPORTING -> CS_DESTROY 2018-02-12 00:25:09.186020 [DEBUG] switch_core_session.c:1664 Session 37071 (sofia/default/7028340000@66.241.99.36) Locked, Waiting on external entities 2018-02-12 00:25:09.186020 [NOTICE] switch_core_session.c:1682 Session 37071 (sofia/default/7028340000@66.241.99.36) Ended 2018-02-12 00:25:09.186020 [NOTICE] switch_core_session.c:1686 Close Channel sofia/default/7028340000@66.241.99.36 [CS_DESTROY] 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:741 (sofia/default/7028340000@66.241.99.36) Running State Change CS_DESTROY (Cur 0 Tot 37072) 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7028340000@66.241.99.36) State DESTROY 2018-02-12 00:25:09.186020 [DEBUG] mod_sofia.c:343 sofia/default/7028340000@66.241.99.36 SOFIA DESTROY 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:181 sofia/default/7028340000@66.241.99.36 Standard DESTROY 2018-02-12 00:25:09.186020 [DEBUG] switch_core_state_machine.c:751 (sofia/default/7028340000@66.241.99.36) State DESTROY going to sleep 2018-02-12 00:25:09.225994 [DEBUG] switch_scheduler.c:144 Deleting task 769 switch_ivr_schedule_hangup (cac35508-a3c4-4156-a6a1-ddfa423bc5b1) 2018-02-12 00:25:09.225994 [DEBUG] switch_scheduler.c:144 Deleting task 770 switch_ivr_schedule_hangup (cac35508-a3c4-4156-a6a1-ddfa423bc5b1)