Souzafms

De MediaWiki do Campus São José
Ir para navegação Ir para pesquisar

Felipe Souza - souzafms@gmail.com

  • Técnico em Telecomunicações
  • Tecnólogo em Redes de Computadores

Técnico

Fase 4

Fundamentos do Trabalho

Projeto Integrador IV

LINK
Professor Sobral e professora Simara

asterisk

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>

sip.conf asterisk atrás de nat

[general] externip=192.168.1.221 localnet=192.168.40.0/255.255.255.0 nat=yes directmedia=no

[alunos](!) type=friend host=dynamic insecure=port,invite disallow=all allow=gsm allow=alaw allow=ulaw qualify=yes

[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 21-03-17

root@aluno-VirtualBox:/etc/asterisk# cat extensions.conf [alunos] exten=>4000,1,Dial(SIP/4000) same=>n,Hangup

exten=>4001,1,Dial(SIP/4001,15)
exten=>4001,n,Playback(tt-allbusy)
same=>n,Hangup
exten=>4001,1,Dial(SIP/4001,15)
exten=>4001,n,Dial(SIP/vivo/991872440)
same=>n,Hangup

exten=>4001,1,Set(LIMIT_TIMEOUT_FILE=beep) exten=>4001,n,Dial(SIP/4001,15,L(10000)) same=>n,Hangup


exten=>4002,1,Dial(SIP/4002) same=>n,Hangup

[default] include=>alunos

exten => _1xxx,1,Dial(SIP/anderson/${EXTEN}) same=>n,Hangup

exten => _2xxx,1,Dial(SIP/andreza/${EXTEN}) same=>n,Hangup

exten => _3xxx,1,Dial(SIP/cristian/${EXTEN}) same=>n,Hangup

exten => _5xxx,1,Dial(SIP/giordano/${EXTEN}) same=>n,Hangup

exten => _6xxx,1,Dial(SIP/higino/${EXTEN}) same=>n,Hangup

exten => _7xxx,1,Dial(SIP/kleiton/${EXTEN}) same=>n,Hangup

exten => _8xxx,1,Dial(SIP/mike/${EXTEN},15) exten => n,Playback(tt-allbusy.gsm) same=>n,Hangup

exten => _9xxx,1,Dial(SIP/thiago/${EXTEN}) same=>n,Hangup

Adiciona 048 na frente do número discado

exten => _[2-6]xxxxxxx,1,Dial(SIP/mike/048${EXTEN}) same=>n,Hangup

Troca a operadora para 66

exten => _0xxxxxxxxxxxx,1,Dial(SIP/mike/066${EXTEN:3}) same=>n,Hangup

Direciona chamada celulares para um tronco

exten => _9[7-9]xxxxxxx,1,Set(CALLERID(all)=name <44444000>) exten => _9[7-9]xxxxxxx,n,Dial(SIP/vivo/${EXTEN}) same=>n,Hangup </syntaxhighlight>

Projeto de Infra

LINK
Professor Saul

Telefonia 2

LINK
Professor Fabio

Projeto PJI 3 2016-2

LINK