[Asterisk-Users] TNT and SIP problem

Rich Adamson radamson at routers.com
Tue Jul 26 05:40:27 MST 2005


> >> Try to use like following
> >> [tnt]
> >> type=friend
> >> context=fromtotnt
> >> dtmfmode=rfc2833 host=XXX.xxx.xxx.xxx
> >> 
> >> I am using this way.
> >
> > You do realize that host= only applies for calls from Asterisk to the TNT, 
> > right?  You need permit/deny to match for inbound connections. Your Asterisk 
> > server is open to anyone that claims to be the user "tnt".
> 
> Thanks for the pointer. There is no sample in the sip.conf file that 
> mentions permit and deny.

Here's an example that was in use with Broadvoice sip some months ago.

deny=0.0.0.0/0.0.0.0
permit=147.135.8.129/255.255.255.0
permit=147.135.0.129/255.255.255.0
permit=147.135.4.128/255.255.255.0

Important points:
 - deny everything first,
 - then allow those IP's (or networks) that you want to give access.
 - avoid adding spaces in the statements






More information about the asterisk-users mailing list