Non Authedicated Calls?

Status
Not open for further replies.

Stelios

New Member
Sep 24, 2017
28
1
3
46
Hi,

At the past I was using freeswitch for test reasons.

After some testing I realized that some one who knows an extension/SipDevice was able to make outbound calls without this extension/Sipdevice to be registered.

This was taking place using the re-invite method by toutching the SIP Protocol Header using some technique.

Is FusionPBX protected about this issue?

There any protection is case someone try to make a call without to be registered ?
and this action to be stored in log files?

ps: Of course using fail2ban to check the log files we can ban the ips

Thanks
 

EasyBB

Active Member
Oct 23, 2016
240
33
28
Australia
I don't understand what you are asking; if someone knows the extension number and its password, what difference does it make whether the extension is registered or not? Fusion does allow calls to be made without registering but you'll still need to provide authentication details when challenged.

This was taking place using the re-invite method by toutching the SIP Protocol Header using some technique.
Could you explain this technique? ;)
 

Stelios

New Member
Sep 24, 2017
28
1
3
46
Take a look here
Some one from IP 69.30.212.11 send invite

If I had and outbound rule for the destination 000442080892571 This person would be possible to make a call for free via pbx

In case I make mistake forgive me please.....

2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:584 (sofia/external/4@173.214.194.57) Running State Change CS_NEW (Cur 1 Tot 7)
2017-12-17 22:03:19.789711 [DEBUG] sofia.c:9873 sofia/external/4@173.214.194.57 receiving invite from 69.30.212.11:5070 version: 1.6.19 -36-7a77e0b 64bit
2017-12-17 22:03:19.789711 [DEBUG] sofia.c:7084 Channel sofia/external/4@173.214.194.57 entering state [received][100]
2017-12-17 22:03:19.789711 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=sipcli-Session 32176566 583975158 IN IP4 69.30.212.11
s=sipcli
c=IN IP4 69.30.212.11
t=0 0
m=audio 5072 RTP/AVP 18 0 8 101
a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1]
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:3061 Set Codec sofia/external/4@173.214.194.57 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2017-12-17 22:03:19.789711 [DEBUG] switch_core_codec.c:111 sofia/external/4@173.214.194.57 Original read codec set to PCMU:0
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2017-12-17 22:03:19.789711 [DEBUG] switch_core_media.c:4767 sofia/external/4@173.214.194.57 Set 2833 dtmf send payload to 101 recv payload to 101
2017-12-17 22:03:19.789711 [DEBUG] sofia.c:7507 (sofia/external/4@173.214.194.57) State Change CS_NEW -> CS_INIT
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:603 (sofia/external/4@173.214.194.57) State NEW
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:584 (sofia/external/4@173.214.194.57) Running State Change CS_INIT (Cur 1 Tot 7)
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:627 (sofia/external/4@173.214.194.57) State INIT
2017-12-17 22:03:19.789711 [DEBUG] mod_sofia.c:90 sofia/external/4@173.214.194.57 SOFIA INIT
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:40 sofia/external/4@173.214.194.57 Standard INIT
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:48 (sofia/external/4@173.214.194.57) State Change CS_INIT -> CS_ROUTING
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:627 (sofia/external/4@173.214.194.57) State INIT going to sleep
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:584 (sofia/external/4@173.214.194.57) Running State Change CS_ROUTING (Cur 1 Tot 7)
2017-12-17 22:03:19.789711 [DEBUG] switch_channel.c:2249 (sofia/external/4@173.214.194.57) Callstate Change DOWN -> RINGING
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:643 (sofia/external/4@173.214.194.57) State ROUTING
2017-12-17 22:03:19.789711 [DEBUG] mod_sofia.c:143 sofia/external/4@173.214.194.57 SOFIA ROUTING
2017-12-17 22:03:19.789711 [DEBUG] switch_core_state_machine.c:236 sofia/external/4@173.214.194.57 Standard ROUTING
2017-12-17 22:03:19.789711 [INFO] mod_dialplan_xml.c:637 Processing 4 <4>->000442080892571 in context public
2017-12-17 22:03:19.829718 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f8d2805c600 Connected.
2017-12-17 22:03:19.890205 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f8d2805c600 released.
Dialplan: sofia/external/4@173.214.194.57 parsing [public->2102241002] continue=false
Dialplan: sofia/external/4@173.214.194.57 Regex (FAIL) [2102241002] ${sip_to_user}(000442080892571) =~ /^(2102241002)$/ break=on-false
2017-12-17 22:03:19.890205 [INFO] switch_core_state_machine.c:311 No Route, Aborting
2017-12-17 22:03:19.890205 [NOTICE] switch_core_state_machine.c:312 Hangup sofia/external/4@173.214.194.57 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2017-12-17 22:03:19.890205 [DEBUG] switch_core_state_machine.c:643 (sofia/external/4@173.214.194.57) State ROUTING going to sleep
2017-12-17 22:03:19.890205 [DEBUG] switch_core_state_machine.c:584 (sofia/external/4@173.214.194.57) Running State Change CS_HANGUP (Cur 1 Tot 7)
2017-12-17 22:03:19.890205 [DEBUG] switch_core_state_machine.c:850 (sofia/external/4@173.214.194.57) Callstate Change RINGING -> HANGUP
2017-12-17 22:03:19.890205 [DEBUG] switch_core_state_machine.c:852 (sofia/external/4@173.214.194.57) State HANGUP
2017-12-17 22:03:19.890205 [DEBUG] mod_sofia.c:438 Channel sofia/external/4@173.214.194.57 hanging up, cause: NO_ROUTE_DESTINATION
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
No, not at all:

Processing 4 <4>->000442080892571 in context public

The context is public, this will be for routing in DIDs.
 
Status
Not open for further replies.