Question about sip.cof

Hi

Advance thanks to every one .

can i confogure my extension like below .particularly i need to allow the extension only particular subnet .

is this my configuration is right ?

[220752]
type=friend
username=220752
secret=**********************************
host=dynamic
context=intern
canreinvite=yes
nat=1
[color=#FF0040]localnet=192.168.100.1/255.255.255.192[/color]

Thanks
Kartook

hi,

use permit= to limit traffic to and fro this sip peer to a certain network/ip.

regards,
derek

Is this is good ?

[220752]
type=friend
username=220752
secret=**********************************
host=dynamic
context=intern
canreinvite=yes
nat=1
[color=#BF0000]deny=0.0.0.0/0.0.0.0
permit=192.168.100.1/255.255.255.192[/color]

Deny from any
permit from only assigned segment

one more questions about configuring sip.conf

My extension and Md5 value

My Extension = 220752
MD5 of extension = [color=#4000FF]3e3c78561f7fc0bca13e30305cd948f5[/color]
Hardware MACddress= 02-00-4C-4F-4F-50

  1. Here i need to use my user name extension MD5Value
  2. How to bind the hardware MAC address for this extension

Have look in below config and let me know what i need to change .

[220752]
type=friend
username=[color=#4000FF]3e3c78561f7fc0bca13e30305cd948f5[/color]
secret=**********************************
host=dynamic
context=intern
canreinvite=yes
nat=1
deny=0.0.0.0/0.0.0.0
permit=192.168.100.1/255.255.255.192


will not allow anything.

you need a mask of 255.255.255.255

will not allow anything.

you need a mask of 255.255.255.255