Difference between revisions of "Manual Configuração AG1000"
| Line 43: | Line 43: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
| − | [general] | + | [general] |
| − | allowguest=no | + | allowguest=no |
| − | disallow=all | + | disallow=all |
| − | allow=alaw | + | allow=alaw |
| − | bindaddr=0.0.0.0:5060 | + | bindaddr=0.0.0.0:5060 |
| − | dtmfmode=rfc2833 | + | dtmfmode=rfc2833 |
| − | [SoftSwitch] | + | [SoftSwitch] |
| − | host=xxx.xxx.xxx.xxx | + | host=xxx.xxx.xxx.xxx |
| − | insecure=port,invite | + | insecure=port,invite |
| − | type=peer | + | type=peer |
| − | qualify=no | + | qualify=no |
| − | nat=no | + | nat=no |
| − | port=5060 | + | port=5060 |
| − | dtmfmode=rfc2833 | + | dtmfmode=rfc2833 |
| − | context=from-sip | + | context=from-sip |
| − | disallow=all | + | disallow=all |
| − | allow=alaw | + | allow=alaw |
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <br> | ||
| Line 80: | Line 80: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
| − | [linkset-lk1] | + | [linkset-lk1] |
| − | enabled => yes | + | enabled => yes |
| − | enable_st => no | + | enable_st => no |
| − | use_connect => no | + | use_connect => no |
| − | hunting_policy => seq_htl | + | hunting_policy => seq_htl |
| − | subservice => auto | + | subservice => auto |
| − | context => from-ss7 | + | context => from-ss7 |
| − | language => br | + | language => br |
| − | t35=>1000,st | + | t35=>1000,st |
| − | opc => 200 | + | opc => 200 |
| − | dpc => 100 | + | dpc => 100 |
| − | loadshare => combined | + | loadshare => combined |
| − | combined => aligera | + | combined => aligera |
| − | [link-l1-1] | + | [link-l1-1] |
| − | linkset => lk1 | + | linkset => lk1 |
| − | channels => 1-15,17-31 | + | channels => 1-15,17-31 |
| − | schannel => 16@gw01:12000 | + | schannel => 16@gw01:12000 |
| − | firstcic => 1 | + | firstcic => 1 |
| − | enabled => yes | + | enabled => yes |
| − | [host-gw01] | + | [host-gw01] |
| − | enabled => yes | + | enabled => yes |
| − | default_linkset => lk1 | + | default_linkset => lk1 |
| − | links => l1-1:1 | + | links => l1-1:1 |
| − | if-0 => 192.168.1.1 | + | if-0 => 192.168.1.1 |
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 114: | Line 114: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
| − | NETWORKING=yes | + | NETWORKING=yes |
| − | HOSTNAME=gw01 | + | HOSTNAME=gw01 |
</syntaxhighlight> | </syntaxhighlight> | ||
'''Arquivo /etc/hosts'''<br> | '''Arquivo /etc/hosts'''<br> | ||
| Line 132: | Line 132: | ||
'''Arquivo de configuração responsável pelo dialplan (plano de discagem):'''<br> | '''Arquivo de configuração responsável pelo dialplan (plano de discagem):'''<br> | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
| − | [from-sip] | + | [from-sip] |
| − | exten => _X.,1,Dial(SS7/lk1/${EXTEN}) | + | exten => _X.,1,Dial(SS7/lk1/${EXTEN}) |
| − | same => n,Hangup() | + | same => n,Hangup() |
| − | [from-ss7] | + | [from-ss7] |
| − | exten => _X.,1,Dial(SIP/${EXTEN}@SoftSwitch) | + | exten => _X.,1,Dial(SIP/${EXTEN}@SoftSwitch) |
| − | same => n,Hangup() | + | same => n,Hangup() |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 14:28, 9 July 2021
[AG1000] Configuração
ATENÇÃO: É necessário que o técnico que for efetuar as configurações tenha conhecimentos básicos de operação de sistemas Linux, mais especificamente, na manipulação de arquivos de texto.
Arquivos de configuração que serão manipulados:
/etc/sysconfig/network
/etc/hosts
/etc/dahdi/system.conf
/etc/asterisk/sip.conf
/etc/asterisk/ss7.conf
/etc/asterisk/extensions.conf
Interfaces E1: /etc/dahdi/system.conf
Arquivo de configuração das interfaces E1:
span=,<timing>,<LBO>,<framing>,<coding>,<crc4>
span: Número da interface E1
timing: referência de clock.
0 para a interface local como referência de clock
1 para a interface remota como referência de clock. Existindo mais de uma interface remota de referência, utilizar sequencialmente (1 para a primeira, 2 para a segunda, etc...)
LBO: line build-out. Valor inteiro de 0 a 7, sendo 0 default
framing: 'd4' ou 'esf' para T1. 'cas' ou 'ccs' E1 e BRI. Em SS7/ISUP utilizar sempre 'ccs'
coding: 'ami' ou 'b8zs' para T1. 'ami' or 'hdb3' E1 e BRI. Em SS7/ISUP utilizar sempre 'hdb3'
crc4: a keyword 'crc4' no final da linha serve para habilitar a checagem CRC quando necessário. Para desabilitar o crc4 deve-se omitir esse parâmetro e a vírgula anterior a ele.
Exemplo:
span=1,0,0,ccs,hdb3
bchan=1-15,17-31
mtp2=16
span=2,0,0,ccs,hdb3
bchan=32-46,48-62
mtp2=47
Configurações SIP: /etc/asterisk/sip.conf
Arquivo de configuração dos parâmetros do protocolo SIP e contas SIP:
[general]
allowguest=no
disallow=all
allow=alaw
bindaddr=0.0.0.0:5060
dtmfmode=rfc2833
[SoftSwitch]
host=xxx.xxx.xxx.xxx
insecure=port,invite
type=peer
qualify=no
nat=no
port=5060
dtmfmode=rfc2833
context=from-sip
disallow=all
allow=alaw
Configurações SS7/ISUP: /etc/asterisk/ss7.conf
Tomada de juntores:
Parâmetro hunting_policy do linkset:
even_mru: pares, mais recentemente utilizado
odd_lru: ímpares, menos recentemente utilizado
seq_lth: Sequencial a partir do CIC mais baixo
seq_htl: Sequencial a partir do CIC mais alto
Arquivo ss7.conf:
Arquivo de configuração dos parâmetros da sinalização SS7/ISUP:
[linkset-lk1]
enabled => yes
enable_st => no
use_connect => no
hunting_policy => seq_htl
subservice => auto
context => from-ss7
language => br
t35=>1000,st
opc => 200
dpc => 100
loadshare => combined
combined => aligera
[link-l1-1]
linkset => lk1
channels => 1-15,17-31
schannel => 16@gw01:12000
firstcic => 1
enabled => yes
[host-gw01]
enabled => yes
default_linkset => lk1
links => l1-1:1
if-0 => 192.168.1.1
Arquivo /etc/sysconfig/network
O nome do host deve ser o mesmo hostname do sistema, para alterá-lo, edite o arquivo /etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=gw01Arquivo /etc/hosts
Configuração a resolução de nome a partir do nome de host configurado anteriormente:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ag1000
- 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Configuração de dialplan: /etc/asterisk/extensions.conf:
Arquivo de configuração responsável pelo dialplan (plano de discagem):
[from-sip]
exten => _X.,1,Dial(SS7/lk1/${EXTEN})
same => n,Hangup()
[from-ss7]
exten => _X.,1,Dial(SIP/${EXTEN}@SoftSwitch)
same => n,Hangup()