Difference between revisions of "Manual Configuração AG1000"

From Aligera Docs
Jump to navigation Jump to search
Line 43: Line 43:
  
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
−
[general]<br>
+
[general]
−
allowguest=no<br>
+
allowguest=no
−
disallow=all<br>
+
disallow=all
−
allow=alaw<br>
+
allow=alaw
−
bindaddr=0.0.0.0:5060<br>
+
bindaddr=0.0.0.0:5060
−
dtmfmode=rfc2833<br>
+
dtmfmode=rfc2833
  
−
[SoftSwitch]<br>
+
[SoftSwitch]
−
host=xxx.xxx.xxx.xxx<br>
+
host=xxx.xxx.xxx.xxx
−
insecure=port,invite<br>
+
insecure=port,invite
−
type=peer<br>
+
type=peer
−
qualify=no<br>
+
qualify=no
−
nat=no<br>
+
nat=no
−
port=5060<br>
+
port=5060
−
dtmfmode=rfc2833<br>
+
dtmfmode=rfc2833
−
context=from-sip<br>
+
context=from-sip
−
disallow=all<br>
+
disallow=all
−
allow=alaw<br>
+
allow=alaw
 
</syntaxhighlight>
 
</syntaxhighlight>
 
<br>
 
<br>
Line 80: Line 80:
  
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
−
[linkset-lk1]<br>
+
[linkset-lk1]
−
enabled => yes<br>
+
enabled => yes
−
enable_st => no<br>
+
enable_st => no
−
use_connect => no<br>
+
use_connect => no
−
hunting_policy => seq_htl<br>
+
hunting_policy => seq_htl
−
subservice => auto<br>
+
subservice => auto
−
context => from-ss7<br>
+
context => from-ss7
−
language => br<br>
+
language => br
−
t35=>1000,st<br>
+
t35=>1000,st
−
opc => 200<br>
+
opc => 200
−
dpc => 100<br>
+
dpc => 100
−
loadshare => combined<br>
+
loadshare => combined
−
combined => aligera<br>
+
combined => aligera
  
−
[link-l1-1]<br>
+
[link-l1-1]
−
linkset => lk1<br>
+
linkset => lk1
−
channels => 1-15,17-31<br>
+
channels => 1-15,17-31
−
schannel => 16@gw01:12000<br>
+
schannel => 16@gw01:12000
−
firstcic => 1<br>
+
firstcic => 1
−
enabled => yes<br>
+
enabled => yes
  
−
[host-gw01]<br>
+
[host-gw01]
−
enabled => yes<br>
+
enabled => yes
−
default_linkset => lk1<br>
+
default_linkset => lk1
−
links => l1-1:1<br>
+
links => l1-1:1
−
if-0 => 192.168.1.1<br>
+
if-0 => 192.168.1.1
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 114: Line 114:
  
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
−
NETWORKING=yes<br>
+
NETWORKING=yes
−
HOSTNAME=gw01<br>
+
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]<br>
+
[from-sip]
−
exten => _X.,1,Dial(SS7/lk1/${EXTEN})<br>
+
exten => _X.,1,Dial(SS7/lk1/${EXTEN})
−
same  => n,Hangup()<br>
+
same  => n,Hangup()
  
−
[from-ss7]<br>
+
[from-ss7]
−
exten => _X.,1,Dial(SIP/${EXTEN}@SoftSwitch)<br>
+
exten => _X.,1,Dial(SIP/${EXTEN}@SoftSwitch)
−
same  => n,Hangup()<br>
+
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=gw01

Arquivo /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()