sip.conf
root@aluno-VirtualBox:/home/aluno# cat /etc/asterisk/sip.conf
[alunos](!)
type=friend
host=dynamic
insecure=port,invite
disallow=all
allow=gsm
allow=alaw
allow=ulaw
qualify=yes
nat=yes
directmedia=no
[4000](alunos)
defaultuser=4000
secret=123456
[4001](alunos)
defaultuser=4001
secret=123456
[4002](alunos)
defaultuser=4002
secret=123
[anderson]
type=friend
username=felipe
host=192.168.1.212
secret=123
context=alunos
[andreza]
type=friend
username=felipe
host=192.168.1.240
secret=123
context=alunos
[christien]
type=friend
username=felipe
host=192.168.1.211
secret=123
context=alunos
[higino]
type=friend
username=felipe
host=192.168.1.208
secret=123
context=alunos
[kleiton]
type=friend
username=felipe
host=192.168.1.230
secret=123
context=alunos
[giordano]
type=friend
username=felipe
host=192.168.1.207
secret=123
context=alunos
[thiago]
type=friend
username=felipe
host=192.168.1.223
secret=123
context=alunos
[mike]
type=friend
defaultuser=felipe
username=felipe
host=192.168.1.204
secret=123
</syntaxhighlight>
extensions.conf
root@aluno-VirtualBox:/home/aluno# cat /etc/asterisk/sip.conf
[alunos](!)
type=friend
host=dynamic
insecure=port,invite
disallow=all
allow=gsm
allow=alaw
allow=ulaw
qualify=yes
nat=yes
directmedia=no
[4000](alunos)
defaultuser=4000
secret=123456
[4001](alunos)
defaultuser=4001
secret=123456
[4002](alunos)
defaultuser=4002
secret=123
[anderson]
type=friend
username=felipe
host=192.168.1.212
secret=123
context=alunos
[andreza]
type=friend
username=felipe
host=192.168.1.240
secret=123
context=alunos
[christien]
type=friend
username=felipe
host=192.168.1.211
secret=123
context=alunos
[higino]
type=friend
username=felipe
host=192.168.1.208
secret=123
context=alunos
[kleiton]
type=friend
username=felipe
host=192.168.1.230
secret=123
context=alunos
[giordano]
type=friend
username=felipe
host=192.168.1.207
secret=123
context=alunos
[thiago]
type=friend
username=felipe
host=192.168.1.223
secret=123
context=alunos
[mike]
type=friend
defaultuser=felipe
username=felipe
host=192.168.1.204
secret=123
</syntaxhighlight>
|