Dears,Kindly I noticed a very strange behaviour on Freeswitch that may allow non authorised users to make call through the system below is the log and my notice highlighted, you help will be appreciated.1-Below is a request coming from not authored IP.2-However the originating IP is “142.54.179.218” the from is as below as if it is from the same server:
freeswitch@internal> recv 770 bytes from udp/[142.54.179.218]:5070 at 16:41:34.211099:------------------------------------------------------------------------INVITE sip:9009972599796504@177.31.245.177:5080 SIP/2.0To: 9009972599796504<sip:9009972599796504@177.31.245.177>From: 1000<sip:1000@177.31.245.177>;tag=e8473b10Via: SIP/2.0/UDP 142.54.179.218:5070;branch=z9hG4bK-d6e1ddab827448435f49ecaf6e613e2e;rportCall-ID: d6e1ddab827448435f49ecaf6e613e2eCSeq: 1 INVITEContact: <sip:1000@142.54.179.218:5070>Max-Forwards: 70Allow: INVITE, ACK, CANCEL, BYEUser-Agent: sipcli/v1.8Content-Type: application/sdpContent-Length: 285
v=0o=sipcli-Session 1883669566 1798766211 IN IP4 142.54.179.218s=sipclic=IN IP4 142.54.179.218t=0 0m=audio 5072 RTP/AVP 18 0 8 101a=fmtp:101 0-15a=rtpmap:18 G729/8000a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=ptime:20a=sendrecv3-Accordingly Freeswitch start to deal with the call normally
------------------------------------------------------------------------send 333 bytes to udp/[142.54.179.218]:5070 at 16:41:34.211442:------------------------------------------------------------------------SIP/2.0 100 TryingVia: SIP/2.0/UDP 142.54.179.218:5070;branch=z9hG4bK-d6e1ddab827448435f49ecaf6e613e2e;rport=5070From: 1000<sip:1000@177.31.245.177>;tag=e8473b10To: 9009972599796504<sip:9009972599796504@177.31.245.177>Call-ID: d6e1ddab827448435f49ecaf6e613e2eCSeq: 1 INVITEContent-Length: 0
————————————————————————————————————4-as we can see below Freeswitch consider the call coming from my server IP not from the remote IP(My server IP = 177.31.245.177)
2015-01-14 16:41:34.203196 [NOTICE] switch_channel.c:1055 New Channel sofia/external/1000@177.31.245.177 [d1879400-9c03-11e4-8cd6-2f1eb174d7b4]2015-01-14 16:41:34.203196 [DEBUG] switch_core_session.c:1053 Send signal sofia/external/1000@177.31.245.177 [BREAK]2015-01-14 16:41:34.203196 [DEBUG] switch_core_session.c:1053 Send signal sofia/external/1000@177.31.245.177 [BREAK]2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:472 (sofia/external/1000@177.31.245.177) Running State Change CS_NEW2015-01-14 16:41:34.203196 [DEBUG] sofia.c:8812 sofia/external/1000@177.31.245.177 receiving invite from 142.54.179.218:5070 version: 1.4.13 git b942d0f 2014-11-03 19:53:00Z 64bit2015-01-14 16:41:34.203196 [DEBUG] sofia.c:6606 Channel sofia/external/1000@177.31.245.177 entering state [received][100]2015-01-14 16:41:34.203196 [DEBUG] sofia.c:6616 Remote SDP:v=0o=sipcli-Session 1883669566 1798766211 IN IP4 142.54.179.218s=sipclic=IN IP4 142.54.179.218t=0 0m=audio 5072 RTP/AVP 18 0 8 101a=rtpmap:18 G729/8000a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-15a=ptime:202015-01-14 16:41:34.203196 [DEBUG] sofia.c:6868 (sofia/external/1000@177.31.245.177) State Change CS_NEW -> CS_INIT2015-01-14 16:41:34.203196 [DEBUG] switch_core_session.c:1388 Send signal sofia/external/1000@177.31.245.177 [BREAK]2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:491 (sofia/external/1000@177.31.245.177) State NEW2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:472 (sofia/external/1000@177.31.245.177) Running State Change CS_INIT2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:512 (sofia/external/1000@177.31.245.177) State INIT2015-01-14 16:41:34.203196 [DEBUG] mod_sofia.c:87 sofia/external/1000@177.31.245.177 SOFIA INIT2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:40 sofia/external/1000@177.31.245.177 Standard INIT2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:48 (sofia/external/1000@177.31.245.177) State Change CS_INIT -> CS_ROUTING2015-01-14 16:41:34.203196 [DEBUG] switch_core_session.c:1388 Send signal sofia/external/1000@177.31.245.177 [BREAK]2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:512 (sofia/external/1000@177.31.245.177) State INIT going to sleep2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:472 (sofia/external/1000@177.31.245.177) Running State Change CS_ROUTING2015-01-14 16:41:34.203196 [DEBUG] switch_channel.c:2184 (sofia/external/1000@177.31.245.177) Callstate Change DOWN -> RINGING2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:528 (sofia/external/1000@177.31.245.177) State ROUTING2015-01-14 16:41:34.203196 [DEBUG] mod_sofia.c:123 sofia/external/1000@177.31.245.177 SOFIA ROUTING2015-01-14 16:41:34.203196 [DEBUG] switch_core_state_machine.c:166 sofia/external/1000@177.31.245.177 Standard ROUTING
2015-01-14 16:41:34.203196 [INFO] mod_dialplan_xml.c:558 Processing 1000 <1000>->9009972599796504 in context public
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest