- 2017-07-10 11:51:51.850669 [NOTICE] switch_channel.c:1104 New Channel sofia/default/XXXX@XXXX61.251.70 [fc1854f9-7875-48af-a443-55e417dcfb5f]
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:584 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_NEW (Cur 1 Tot 130)
- 2017-07-10 11:51:51.850669 [DEBUG] sofia.c:9837 sofia/default/XXXX@XXXX61.251.70 receiving invite from XXXX.42:5060 version: 1.6.18 git 812e3da 2017-07-07 16:35:56Z 64bit
- 2017-07-10 11:51:51.850669 [DEBUG] sofia.c:9953 IP XXXX.42 Approved by acl "default[]". Access Granted.
- 2017-07-10 11:51:51.850669 [DEBUG] sofia.c:7048 Channel sofia/default/XXXX@XXXX61.251.70 entering state [received][100]
- 2017-07-10 11:51:51.850669 [DEBUG] sofia.c:7058 Remote SDP:
- v=0
- o=CvtVPBX 290166945 290166945 IN IP4 XXXX.42
- s=CvtVPBX
- c=IN IP4 XXXX.42
- t=0 0
- m=audio 16746 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
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4445 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4445 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4445 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4500 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4361 Set telephone-event payload to 101@8000
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:3057 Set Codec sofia/default/XXXX@XXXX61.251.70 G729/8000 20 ms 160 samples 8000 bits 1 channels
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_codec.c:111 sofia/default/XXXX@XXXX61.251.70 Original read codec set to G729:18
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4704 Set telephone-event payload to 101@8000
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_media.c:4763 sofia/default/XXXX@XXXX61.251.70 Set 2833 dtmf send payload to 101 recv payload to 101
- 2017-07-10 11:51:51.850669 [DEBUG] sofia.c:7471 (sofia/default/XXXX@XXXX61.251.70) State Change CS_NEW -> CS_INIT
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:603 (sofia/default/XXXX@XXXX61.251.70) State NEW
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:584 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_INIT (Cur 1 Tot 130)
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:627 (sofia/default/XXXX@XXXX61.251.70) State INIT
- 2017-07-10 11:51:51.850669 [DEBUG] mod_sofia.c:90 sofia/default/XXXX@XXXX61.251.70 SOFIA INIT
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:40 sofia/default/XXXX@XXXX61.251.70 Standard INIT
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:48 (sofia/default/XXXX@XXXX61.251.70) State Change CS_INIT -> CS_ROUTING
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:627 (sofia/default/XXXX@XXXX61.251.70) State INIT going to sleep
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:584 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_ROUTING (Cur 1 Tot 130)
- 2017-07-10 11:51:51.850669 [DEBUG] switch_channel.c:2249 (sofia/default/XXXX@XXXX61.251.70) Callstate Change DOWN -> RINGING
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:643 (sofia/default/XXXX@XXXX61.251.70) State ROUTING
- 2017-07-10 11:51:51.850669 [DEBUG] mod_sofia.c:143 sofia/default/XXXX@XXXX61.251.70 SOFIA ROUTING
- 2017-07-10 11:51:51.850669 [DEBUG] switch_core_state_machine.c:236 sofia/default/XXXX@XXXX61.251.70 Standard ROUTING
- 2017-07-10 11:51:51.850669 [INFO] mod_dialplan_xml.c:637 Processing XXXX <XXXX>->0872100001 in context default
- 2017-07-10 11:51:51.870657 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fe6dc094310 Connected.
- 2017-07-10 11:51:51.870657 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard')
- 2017-07-10 11:51:51.870657 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 0872100001
- 2017-07-10 11:51:51.870657 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [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 A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="0872100001" LIMIT 1
- 2017-07-10 11:51:51.870657 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
- 2017-07-10 11:51:51.870657 [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("XXXX.42") & (0xFFFFFFFF & (-1 << 32 - SUBSTRING_INDEX(ip, '/',-1)))) = ((0xFFFFFFFF & (-1 << 32 - SUBSTRING_INDEX(ip, '/',-1))) & INET_ATON(SUBSTRING_INDEX(ip,'/',1)))) AND ((SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = "XXXX.42" AND prefix IN (NULL,'')) OR (SUBSTRING( ip, 1, CHAR_LENGTH( ip ) -3 ) = "XXXX.42" AND "0872100001" RLIKE prefix)) ORDER BY LENGTH(prefix) DESC LIMIT 1
- 2017-07-10 11:51:51.870657 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call authentication fail..!!1
- 2017-07-10 11:51:51.870657 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <document type="freeswitch/xml">
- <section name="dialplan" description="ASTPP Dialplan">
- <context name="default">
- <extension name="0872100001">
- <condition field="destination_number" expression="0872100001">
- <action application="log" data="WARNING Accountcode is not authenticated!!"/>
- <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav"/>
- <action application="set" data="error_cdr=1"/>
- <action application="set" data="callstart=2017-07-10 11:51:51"/>
- <action application="set" data="account_id=0"/>
- <action application="set" data="call_direction=outbound"/>
- <action application="set" data="sip_ignore_remote_cause=true"/>
- <action application="set" data="call_processed=internal"/>
- <action application="set" data="effective_destination_number=0872100001"/>
- <action application="set" data="last_bridge_hangup_cause=AUTHENTICATION_FAIL"/>
- <action application="hangup" data="AUTHENTICATION_FAIL"/>
- </condition>
- </extension>
- </context>
- </section>
- </document>
- 2017-07-10 11:51:51.870657 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fe6dc094310 released.
- Dialplan: sofia/default/XXXX@XXXX61.251.70 parsing [default->0872100001] continue=false
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Regex (PASS) [0872100001] destination_number(0872100001) =~ /0872100001/ break=on-false
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action log(WARNING Accountcode is not authenticated!!)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action playback(/usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(error_cdr=1)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(callstart=2017-07-10 11:51:51)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(account_id=0)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(call_direction=outbound)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(sip_ignore_remote_cause=true)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(call_processed=internal)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(effective_destination_number=0872100001)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action set(last_bridge_hangup_cause=AUTHENTICATION_FAIL)
- Dialplan: sofia/default/XXXX@XXXX61.251.70 Action hangup(AUTHENTICATION_FAIL)
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_state_machine.c:286 (sofia/default/XXXX@XXXX61.251.70) State Change CS_ROUTING -> CS_EXECUTE
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_state_machine.c:643 (sofia/default/XXXX@XXXX61.251.70) State ROUTING going to sleep
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_state_machine.c:584 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_EXECUTE (Cur 1 Tot 130)
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_state_machine.c:650 (sofia/default/XXXX@XXXX61.251.70) State EXECUTE
- 2017-07-10 11:51:51.870657 [DEBUG] mod_sofia.c:198 sofia/default/XXXX@XXXX61.251.70 SOFIA EXECUTE
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_state_machine.c:328 sofia/default/XXXX@XXXX61.251.70 Standard EXECUTE
- EXECUTE sofia/default/XXXX@XXXX61.251.70 log(WARNING Accountcode is not authenticated!!)
- 2017-07-10 11:51:51.870657 [WARNING] mod_dptools.c:1742 Accountcode is not authenticated!!
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_session.c:2647 Application playback Requires media! pre_answering channel sofia/default/XXXX@XXXX61.251.70
- 2017-07-10 11:51:51.870657 [INFO] switch_core_session.c:2649 Sending early media
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_media.c:6874 AUDIO RTP [sofia/default/XXXX@XXXX61.251.70] XXXX61.251.70 port 30956 -> XXXX.42 port 16746 codec: 18 ms: 20
- 2017-07-10 11:51:51.870657 [DEBUG] switch_rtp.c:4112 Starting timer [soft] 160 bytes per 20ms
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_media.c:7175 sofia/default/XXXX@XXXX61.251.70 Set 2833 dtmf send payload to 101
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_media.c:7182 sofia/default/XXXX@XXXX61.251.70 Set 2833 dtmf receive payload to 101
- 2017-07-10 11:51:51.870657 [DEBUG] switch_core_media.c:7205 sofia/default/XXXX@XXXX61.251.70 Set rtp dtmf delay to 40
- 2017-07-10 11:51:51.870657 [DEBUG] mod_sofia.c:2364 Ring SDP:
- v=0
- o=FreeSWITCH 1499656555 1499656556 IN IP4 XXXX61.251.70
- s=FreeSWITCH
- c=IN IP4 XXXX61.251.70
- t=0 0
- m=audio 30956 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
- 2017-07-10 11:51:51.870657 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/XXXX@XXXX61.251.70!
- 2017-07-10 11:51:51.870657 [DEBUG] switch_channel.c:3474 (sofia/default/XXXX@XXXX61.251.70) Callstate Change RINGING -> EARLY
- EXECUTE sofia/default/XXXX@XXXX61.251.70 playback(/usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav)
- 2017-07-10 11:51:51.870657 [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
- 2017-07-10 11:51:51.870657 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
- 2017-07-10 11:51:51.870657 [DEBUG] sofia.c:7048 Channel sofia/default/XXXX@XXXX61.251.70 entering state [early][183]
- 2017-07-10 11:51:53.390687 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/local/freeswitch/sounds/en/us/callie/astpp_expired.wav
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(error_cdr=1)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [error_cdr]=[1]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(callstart=2017-07-10 11:51:51)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [callstart]=[2017-07-10 11:51:51]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(account_id=0)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [account_id]=[0]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(call_direction=outbound)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [call_direction]=[outbound]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(sip_ignore_remote_cause=true)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [sip_ignore_remote_cause]=[true]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(call_processed=internal)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [call_processed]=[internal]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(effective_destination_number=0872100001)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [effective_destination_number]=[0872100001]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 set(last_bridge_hangup_cause=AUTHENTICATION_FAIL)
- 2017-07-10 11:51:53.390687 [DEBUG] mod_dptools.c:1548 SET sofia/default/XXXX@XXXX61.251.70 [last_bridge_hangup_cause]=[AUTHENTICATION_FAIL]
- EXECUTE sofia/default/XXXX@XXXX61.251.70 hangup(AUTHENTICATION_FAIL)
- 2017-07-10 11:51:53.390687 [NOTICE] mod_dptools.c:1286 Hangup sofia/default/XXXX@XXXX61.251.70 [CS_EXECUTE] [NORMAL_CLEARING]
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_session.c:2815 sofia/default/XXXX@XXXX61.251.70 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:650 (sofia/default/XXXX@XXXX61.251.70) State EXECUTE going to sleep
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:584 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_HANGUP (Cur 1 Tot 130)
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:850 (sofia/default/XXXX@XXXX61.251.70) Callstate Change EARLY -> HANGUP
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:852 (sofia/default/XXXX@XXXX61.251.70) State HANGUP
- 2017-07-10 11:51:53.390687 [DEBUG] mod_sofia.c:438 Channel sofia/default/XXXX@XXXX61.251.70 hanging up, cause: NORMAL_CLEARING
- 2017-07-10 11:51:53.390687 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:60 sofia/default/XXXX@XXXX61.251.70 Standard HANGUP, cause: NORMAL_CLEARING
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:852 (sofia/default/XXXX@XXXX61.251.70) State HANGUP going to sleep
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:619 (sofia/default/XXXX@XXXX61.251.70) State Change CS_HANGUP -> CS_REPORTING
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:584 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_REPORTING (Cur 1 Tot 130)
- 2017-07-10 11:51:53.390687 [DEBUG] switch_core_state_machine.c:938 (sofia/default/XXXX@XXXX61.251.70) State REPORTING
- 2017-07-10 11:51:53.390687 [INFO] mod_json_cdr.c:271 Process [fc1854f9-7875-48af-a443-55e417dcfb5f.cdr.json]
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:174 sofia/default/XXXX@XXXX61.251.70 Standard REPORTING, cause: NORMAL_CLEARING
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:938 (sofia/default/XXXX@XXXX61.251.70) State REPORTING going to sleep
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:610 (sofia/default/XXXX@XXXX61.251.70) State Change CS_REPORTING -> CS_DESTROY
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_session.c:1665 Session 130 (sofia/default/XXXX@XXXX61.251.70) Locked, Waiting on external entities
- 2017-07-10 11:51:53.410665 [NOTICE] switch_core_session.c:1683 Session 130 (sofia/default/XXXX@XXXX61.251.70) Ended
- 2017-07-10 11:51:53.410665 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/XXXX@XXXX61.251.70 [CS_DESTROY]
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:741 (sofia/default/XXXX@XXXX61.251.70) Running State Change CS_DESTROY (Cur 0 Tot 130)
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:751 (sofia/default/XXXX@XXXX61.251.70) State DESTROY
- 2017-07-10 11:51:53.410665 [DEBUG] mod_sofia.c:343 sofia/default/XXXX@XXXX61.251.70 SOFIA DESTROY
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:181 sofia/default/XXXX@XXXX61.251.70 Standard DESTROY
- 2017-07-10 11:51:53.410665 [DEBUG] switch_core_state_machine.c:751 (sofia/default/XXXX@XXXX61.251.70) State DESTROY going to sleep