HI, can somebody tell me how and where must I put the SIP register line? I think is in [general] section of the sip.conf and that I have to put: register => user:password@host:port/localextension but, user and password of the SIP gateway? Because I'm trying this and doesn't work... thanks a lot in advanced michelle ----- Tu cuenta de correo gratuita Mixmail con Antivirus y Antispam http://mixmail.ya.com Ya.com ADSL Home 24h, Módem + Alta + 1 mes Gratis http://acceso.ya.com/adslhome24h/
In sip.conf, how can I define that only IP phones from 192.168.0.0/24 network can register with specific user? The thing is that I can't use password and I can't use host=ip.of.my.phone. And I have to be sure that no one, from Internet will register on my * like that user. So, please tell me how to do this? -- Tomislav Parcina tparcina#lama.hr
Hi Ivan! Thank you. I have already find it on http://www.voip-info.org/wiki/index.php?page=Asterisk+sip+permit-deny-mask Problem is that they didn't define this in sip.conf.saple where I first have take a look. This should be fixed. -- Tomislav Parcina tparcina#lama.hr In article <014701c662cb$5e6c3230$6864a8c0@voljahr.local>, asterisk@voljatel.hr says...> > > In sip.conf, how can I define that only IP phones from 192.168.0.0/24 > network can register with specific user? > > > > The thing is that I can't use password and I can't use > host=ip.of.my.phone. And I have to be sure that no one, > > from Internet > will register on my * like that user. > > > > So, please tell me how to do this? > > Try this in sip.conf under a phone definition: > > deny=0.0.0.0/0.0.0.0 > permit=some_ip_address/some_mask > > Ivan
Hi Alejandro! I have solved my problem. Look at mail above. One more thing, what you have suggested it's not an option. I have allowed that people from Internet can call me. So, I can't define any rule that will protect me the way you have mention. Thank you for trying. -- Tomislav Parcina tparcina#lama.hr **** Asterisk can bind only ips from internal but I think the best way is to configure some firewall rules in your linux box. It is convenient to drop or reject all communications except that you want to accept (http, smtp, etc.). -- Alejandro Vargas