Hi list, i noticed from the cli my asterisk box is accepting unauthenticated calls how can i prevent this? CLI: -- Accepting UNAUTHENTICATED call from 192.168.0.2: > requested format = gsm, > requested prefs = (), > actual format = ulaw, > host prefs = (g729|ulaw|alaw), > priority = mine -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061012/18800fad/attachment.htm
Isn't that an internal ip address? Cheers, Dean ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Mark Quitoriano Sent: Thursday, 12 October 2006 4:04 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] unauthenticated calls Hi list, i noticed from the cli my asterisk box is accepting unauthenticated calls how can i prevent this? CLI: -- Accepting UNAUTHENTICATED call from 192.168.0.2: > requested format = gsm, > requested prefs = (), > actual format = ulaw, > host prefs = (g729|ulaw|alaw), > priority = mine -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061012/a41e4456/attachment.htm
The way that I've done it is to set the context= line under [general] in sip.conf to a context that just gives the congestion command and hangs up the call, something like this: exten => s,1,Answer exten => s,n,Wait(2) exten => s,n,Congestion exten => s,n,Hangup I suppose you could really just use Hangup instead, but this seems to work for me. Alex On 10/12/06, Mark Quitoriano <markquitoriano@gmail.com> wrote:> > Hi list, > > i noticed from the cli my asterisk box is accepting unauthenticated calls > how can i prevent this? > > > CLI: > > -- Accepting UNAUTHENTICATED call from 192.168.0.2: > > requested format = gsm, > > requested prefs = (), > > actual format = ulaw, > > host prefs = (g729|ulaw|alaw), > > priority = mine > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-- Alex Robar alex.robar@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061012/f447d2b9/attachment.htm
Mark Quitoriano wrote:> Hi list, > > i noticed from the cli my asterisk box is accepting unauthenticated calls > how can i prevent this? > > > CLI: > > -- Accepting UNAUTHENTICATED call from 192.168.0.2: > > requested format = gsm, > > requested prefs = (), > > actual format = ulaw, > > host prefs = (g729|ulaw|alaw), > > priority = mine >If a call is not authenticated then it SHOULD fall into the extensions.conf [whatever] context that is specified in sip.conf [general] context=whatever.
Actualy to have fun.. make it a playback(dialtone),300 ;) that will make your little hacker think they have a dialtone then Record the number dialed and put that in a db for further investigation.. Actualy could also be a user that has no clue on how to configure the system. On 10/12/06, Eric ManxPower Wieling <eric@fnords.org> wrote:> > Mark Quitoriano wrote: > > Hi list, > > > > i noticed from the cli my asterisk box is accepting unauthenticated > calls > > how can i prevent this? > > > > > > CLI: > > > > -- Accepting UNAUTHENTICATED call from 192.168.0.2: > > > requested format = gsm, > > > requested prefs = (), > > > actual format = ulaw, > > > host prefs = (g729|ulaw|alaw), > > > priority = mine > > > > If a call is not authenticated then it SHOULD fall into the > extensions.conf [whatever] context that is specified in sip.conf > [general] context=whatever. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Mike Sales Manager http://www.theclubvoip.com Making it happen 1.877.807.VOIP (8647) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061012/1b08f661/attachment.htm
In article <6b542ec90610130142t6c614afs88ef9f1db1597877@mail.gmail.com>, markquitoriano@gmail.com says...> is it possible on asterisk to reject unauthenticated calls or not registered > phones to call?You can send them to [default] context that has only extensions like this: exten => i,1,Hangup exten => s,1,Hangup -- Tomislav Par?ina Lama Computers Split Stinice 12, 21000 Split Tel.: +385(21)270248 Mob.: +385(91)1212148 SIP: tomo@sip.lama.hr e-mail: tparcina#lama.hr http://www.lama.hr