Lots of connections to Freepbx Server, CDR report attached

Hello all,

I have registered one sip trunk and incoming and outgoing works well, but when i check the call logs, i do see there are incoming calls every minute connected to the server, i guess these are not legitimate calls. I have got anonymous / guest sip enabled as if i disable that the calls doesn’t route.
Please do help me to secure the server.

2014-03-22 18:45:49 1395474349.13 100 Hangup s [from-trunk] ANSWERED 00:21
2014-03-22 18:43:56 1395474236.12 200 Answer s [from-trunk] ANSWERED 00:00
2014-03-22 18:43:55 1395474235.11 200 Answer s [from-trunk] ANSWERED 00:00
2014-03-22 18:22:46 1395472966.10 300 Answer s [from-trunk] ANSWERED 00:00
2014-03-22 18:22:45 1395472965.9 300 Answer s [from-trunk] ANSWERED 00:00
2014-03-22 18:12:13 1395472333.8 100 Hangup s [from-trunk] ANSWERED 00:20
2014-03-22 18:06:30 1395471990.7 "Ftel0433443323 "<0434278859> <031234565> 0386377196 Read 0386377196 ANSWERED 00:22
2014-03-22 18:03:54 1395471834.6 1000 Hangup s [from-trunk] ANSWERED 00:18
2014-03-22 18:02:28 1395471748.5 101 Answer s [from-trunk] ANSWERED 00:00
2014-03-22 18:02:27 1395471747.4 101 Answer s [from-trunk] ANSWERED 00:00
2014-03-22 17:37:59 1395470279.3 100 Hangup s [from-trunk] ANSWERED 00:20
2014-03-22 17:04:15 1395468255.2 100 Hangup s [from-trunk] ANSWERED 00:20
2014-03-22 16:30:15 1395466215.88503 100 Hangup s [from-trunk] ANSWERED 00:18

The reason your calls don’t route when anonymous is disabled is because your trunk is not setup properly. If the inbound calls were matching your trunk then you would not need the anonymous on and see these nuisance calls hitting your from-trunk dial plan.

host=sip.faktortel.com.au
context=from-trunk
directmedia=no
canreinvite=no
type=peer
username=YOUR USERNAME ( E.g. username=09123456 )
fromuser=YOUR USERNAME ( E.g. username=09123456 )
secret=YOUR PASSWORD
qualify=yes
nat=yes
disallow=all
allow=gsm
allow=alaw
allow=ulaw
dtmfmode=rfc2833
sendrpid=pai

USER Context: YOUR USERNAME ( E.g. username=09123456 )

User Details

type=user
host=dynamic
secret=YOUR PASSWORD
disallow=all
allow=gsm
allow=alaw
allow=ulaw
context=from-trunk
dtmfmode=rfc2833
insecure=port,invite
directmedia=no
canreinvite=no
nat=yes
qualify=yes
directmedia=no
canreinvite=no
trustrpid=yes
deny=0.0.0.0/0.0.0.0
permit=202.43.66.0/24

Well that is useless. Do you actually have the word “your password” in the trunk and “your username” just like you posted?

Oh sorry… no the username and password is replaced with the correct info. As mentioned i am able to make and receive calls using the trunk, its just i am unable to receive calls when i say no to anonymous and guest.

It was a problem at sip trunk providers end. They have rectified it and i am able to use it with anonymous disabled

Glad you got it working