2018-07-30 12:04:14.884394 [NOTICE] switch_channel.c:1104 New Channel sofia/default/657809087@5.23.x.x:5060 [c5c32dc0-3967-4773-8eb8-8a3ee42400d9] 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:584 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_NEW (Cur 1 Tot 3726) 2018-07-30 12:04:14.884394 [DEBUG] sofia.c:9873 sofia/default/657809087@5.23.x.x:5060 receiving invite from 192.168.1.100:5721 version: 1.6.20 git 43a9feb 2018-05-07 18:56:11Z 64bit 2018-07-30 12:04:14.884394 [DEBUG] sofia.c:7084 Channel sofia/default/657809087@5.23.x.x:5060 entering state [received][100] 2018-07-30 12:04:14.884394 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=sdp_admin 1818625363 2137214901 IN IP4 192.168.1.100 s=A conversation c=IN IP4 192.168.1.100 t=0 0 m=audio 10006 RTP/AVP 18 0 8 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 2018-07-30 12:04:14.884394 [DEBUG] sofia.c:7486 (sofia/default/657809087@5.23.x.x:5060) State Change CS_NEW -> CS_INIT 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:603 (sofia/default/657809087@5.23.x.x:5060) State NEW 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:584 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_INIT (Cur 1 Tot 3726) 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:627 (sofia/default/657809087@5.23.x.x:5060) State INIT 2018-07-30 12:04:14.884394 [DEBUG] mod_sofia.c:90 sofia/default/657809087@5.23.x.x:5060 SOFIA INIT 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:40 sofia/default/657809087@5.23.x.x:5060 Standard INIT 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:48 (sofia/default/657809087@5.23.x.x:5060) State Change CS_INIT -> CS_ROUTING 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:627 (sofia/default/657809087@5.23.x.x:5060) State INIT going to sleep 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:584 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_ROUTING (Cur 1 Tot 3726) 2018-07-30 12:04:14.884394 [DEBUG] switch_channel.c:2249 (sofia/default/657809087@5.23.x.x:5060) Callstate Change DOWN -> RINGING 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:643 (sofia/default/657809087@5.23.x.x:5060) State ROUTING 2018-07-30 12:04:14.884394 [DEBUG] mod_sofia.c:143 sofia/default/657809087@5.23.x.x:5060 SOFIA ROUTING 2018-07-30 12:04:14.884394 [DEBUG] switch_core_state_machine.c:236 sofia/default/657809087@5.23.x.x:5060 Standard ROUTING 2018-07-30 12:04:14.884394 [INFO] mod_dialplan_xml.c:637 Processing Johnstone <657809087>->0638978763 in context default 2018-07-30 12:04:14.884394 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f917c244c60 Connected. 2018-07-30 12:04:14.884394 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard') 2018-07-30 12:04:14.904374 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0638978763 2018-07-30 12:04:14.904374 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : Johnstone / 657809087 2018-07-30 12:04:14.904374 [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 ="0638978763" LIMIT 1 2018-07-30 12:04:14.904620 [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="0638978763" limit 1 2018-07-30 12:04:14.904620 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound 2018-07-30 12:04:14.904620 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [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 ((INET_ATON("192.168.1.100") & (0xFFFFFFFF & (-1 << 32 - SUBSTRING_INDEX(ip, '/',-1)))) = ((0xFFFFFFFF & (-1 << 32 - SUBSTRING_INDEX(ip, '/',-1))) & INET_ATON(SUBSTRING_INDEX(ip,'/',1)))) AND (status =0) AND ((SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = "192.168.1.100" AND prefix IN (NULL,'')) OR (SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = "192.168.1.100" AND "0638978763" RLIKE prefix)) ORDER BY LENGTH(prefix) DESC LIMIT 1 2018-07-30 12:04:14.904620 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call authentication fail..!!1 2018-07-30 12:04:14.904620 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
2018-07-30 12:04:14.904620 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f917c244c60 released. Dialplan: sofia/default/657809087@5.23.x.x:5060 parsing [default->0638978763] continue=false Dialplan: sofia/default/657809087@5.23.x.x:5060 Regex (PASS) [0638978763] destination_number(0638978763) =~ /0638978763/ break=on-false Dialplan: sofia/default/657809087@5.23.x.x:5060 Action log(WARNING Accountcode is not authenticated!!) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action playback(/usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(original_caller_id_name=Johnstone) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(original_caller_id_number=Johnstone) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(error_cdr=1) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(callstart=2018-07-30 10:04:14) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(account_id=0) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(call_direction=outbound) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(sip_ignore_remote_cause=true) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(call_processed=internal) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(effective_destination_number=0638978763) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action set(last_bridge_hangup_cause=AUTHENTICATION_FAIL) Dialplan: sofia/default/657809087@5.23.x.x:5060 Action hangup(AUTHENTICATION_FAIL) 2018-07-30 12:04:14.904620 [DEBUG] switch_core_state_machine.c:286 (sofia/default/657809087@5.23.x.x:5060) State Change CS_ROUTING -> CS_EXECUTE 2018-07-30 12:04:14.904620 [DEBUG] switch_core_state_machine.c:643 (sofia/default/657809087@5.23.x.x:5060) State ROUTING going to sleep 2018-07-30 12:04:14.904620 [DEBUG] switch_core_state_machine.c:584 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_EXECUTE (Cur 1 Tot 3726) 2018-07-30 12:04:14.904620 [DEBUG] switch_core_state_machine.c:650 (sofia/default/657809087@5.23.x.x:5060) State EXECUTE 2018-07-30 12:04:14.904620 [DEBUG] mod_sofia.c:198 sofia/default/657809087@5.23.x.x:5060 SOFIA EXECUTE 2018-07-30 12:04:14.904620 [DEBUG] switch_core_state_machine.c:328 sofia/default/657809087@5.23.x.x:5060 Standard EXECUTE EXECUTE sofia/default/657809087@5.23.x.x:5060 log(WARNING Accountcode is not authenticated!!) 2018-07-30 12:04:14.904620 [WARNING] mod_dptools.c:1742 Accountcode is not authenticated!! 2018-07-30 12:04:14.904620 [DEBUG] switch_core_session.c:2647 Application playback Requires media! pre_answering channel sofia/default/657809087@5.23.x.x:5060 2018-07-30 12:04:14.904620 [INFO] switch_core_session.c:2649 Sending early media 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[iLBC:97:8000:30:13330:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[iLBC:97:8000:30:13330:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[iLBC:97:8000:30:13330:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/657809087@5.23.x.x:5060 G729/8000 20 ms 160 samples 8000 bits 1 channels 2018-07-30 12:04:14.904620 [DEBUG] switch_core_codec.c:111 sofia/default/657809087@5.23.x.x:5060 Original read codec set to G729:18 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:4767 sofia/default/657809087@5.23.x.x:5060 Set 2833 dtmf send payload to 101 recv payload to 101 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/657809087@5.23.x.x:5060] 5.23.x.x port 31666 -> 192.168.1.100 port 10006 codec: 18 ms: 20 2018-07-30 12:04:14.904620 [DEBUG] switch_rtp.c:4159 Not using a timer 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:7180 sofia/default/657809087@5.23.x.x:5060 Set 2833 dtmf send payload to 101 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:7187 sofia/default/657809087@5.23.x.x:5060 Set 2833 dtmf receive payload to 101 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:7210 sofia/default/657809087@5.23.x.x:5060 Set rtp dtmf delay to 40 2018-07-30 12:04:14.904620 [NOTICE] sofia_media.c:92 Pre-Answer sofia/default/657809087@5.23.x.x:5060! 2018-07-30 12:04:14.904620 [DEBUG] switch_channel.c:3474 (sofia/default/657809087@5.23.x.x:5060) Callstate Change RINGING -> EARLY 2018-07-30 12:04:14.904620 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/657809087@5.23.x.x:5060. 2018-07-30 12:04:14.904620 [DEBUG] mod_sofia.c:2364 Ring SDP: v=0 o=FreeSWITCH 1532913388 1532913389 IN IP4 5.23.x.x s=FreeSWITCH c=IN IP4 5.23.x.x t=0 0 m=audio 31666 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 a=ptime:20 a=sendrecv EXECUTE sofia/default/657809087@5.23.x.x:5060 playback(/usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav) 2018-07-30 12:04:14.904620 [DEBUG] sofia.c:7084 Channel sofia/default/657809087@5.23.x.x:5060 entering state [early][183] 2018-07-30 12:04:14.904620 [DEBUG] switch_core_file.c:342 File /usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav sample rate 16000 doesn't match requested rate 8000 2018-07-30 12:04:14.904620 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms 2018-07-30 12:04:17.544379 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav EXECUTE sofia/default/657809087@5.23.x.x:5060 set(original_caller_id_name=Johnstone) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [original_caller_id_name]=[Johnstone] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(original_caller_id_number=Johnstone) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [original_caller_id_number]=[Johnstone] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(error_cdr=1) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [error_cdr]=[1] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(callstart=2018-07-30 10:04:14) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [callstart]=[2018-07-30 10:04:14] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(account_id=0) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [account_id]=[0] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(call_direction=outbound) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [call_direction]=[outbound] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(sip_ignore_remote_cause=true) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [sip_ignore_remote_cause]=[true] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(call_processed=internal) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [call_processed]=[internal] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(effective_destination_number=0638978763) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [effective_destination_number]=[0638978763] EXECUTE sofia/default/657809087@5.23.x.x:5060 set(last_bridge_hangup_cause=AUTHENTICATION_FAIL) 2018-07-30 12:04:17.544379 [DEBUG] mod_dptools.c:1548 SET sofia/default/657809087@5.23.x.x:5060 [last_bridge_hangup_cause]=[AUTHENTICATION_FAIL] EXECUTE sofia/default/657809087@5.23.x.x:5060 hangup(AUTHENTICATION_FAIL) 2018-07-30 12:04:17.544379 [NOTICE] mod_dptools.c:1286 Hangup sofia/default/657809087@5.23.x.x:5060 [CS_EXECUTE] [NORMAL_CLEARING] 2018-07-30 12:04:17.544379 [DEBUG] switch_core_session.c:2815 sofia/default/657809087@5.23.x.x:5060 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:650 (sofia/default/657809087@5.23.x.x:5060) State EXECUTE going to sleep 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:584 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_HANGUP (Cur 1 Tot 3726) 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:850 (sofia/default/657809087@5.23.x.x:5060) Callstate Change EARLY -> HANGUP 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:852 (sofia/default/657809087@5.23.x.x:5060) State HANGUP 2018-07-30 12:04:17.544379 [DEBUG] mod_sofia.c:438 Channel sofia/default/657809087@5.23.x.x:5060 hanging up, cause: NORMAL_CLEARING 2018-07-30 12:04:17.544379 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:60 sofia/default/657809087@5.23.x.x:5060 Standard HANGUP, cause: NORMAL_CLEARING 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:852 (sofia/default/657809087@5.23.x.x:5060) State HANGUP going to sleep 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:619 (sofia/default/657809087@5.23.x.x:5060) State Change CS_HANGUP -> CS_REPORTING 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:584 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_REPORTING (Cur 1 Tot 3726) 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:938 (sofia/default/657809087@5.23.x.x:5060) State REPORTING 2018-07-30 12:04:17.544379 [INFO] mod_json_cdr.c:271 Process [c5c32dc0-3967-4773-8eb8-8a3ee42400d9.cdr.json] 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:174 sofia/default/657809087@5.23.x.x:5060 Standard REPORTING, cause: NORMAL_CLEARING 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:938 (sofia/default/657809087@5.23.x.x:5060) State REPORTING going to sleep 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:610 (sofia/default/657809087@5.23.x.x:5060) State Change CS_REPORTING -> CS_DESTROY 2018-07-30 12:04:17.544379 [DEBUG] switch_core_session.c:1665 Session 3726 (sofia/default/657809087@5.23.x.x:5060) Locked, Waiting on external entities 2018-07-30 12:04:17.544379 [NOTICE] switch_core_session.c:1683 Session 3726 (sofia/default/657809087@5.23.x.x:5060) Ended 2018-07-30 12:04:17.544379 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/657809087@5.23.x.x:5060 [CS_DESTROY] 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:741 (sofia/default/657809087@5.23.x.x:5060) Running State Change CS_DESTROY (Cur 0 Tot 3726) 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:751 (sofia/default/657809087@5.23.x.x:5060) State DESTROY 2018-07-30 12:04:17.544379 [DEBUG] mod_sofia.c:343 sofia/default/657809087@5.23.x.x:5060 SOFIA DESTROY 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:181 sofia/default/657809087@5.23.x.x:5060 Standard DESTROY 2018-07-30 12:04:17.544379 [DEBUG] switch_core_state_machine.c:751 (sofia/default/657809087@5.23.x.x:5060) State DESTROY going to sleep