[AsteriskBrasil] Asterisk + Dundi
Matheus Cucoloto
matheuscucoloto em gmail.com
Sexta Março 30 10:05:48 BRT 2007
E ae galéra, quero utilizar o dundi para unir meus asterisk, mas o
negocio ta complicado, vejam só.
Já criei as chaves, ja configurei o dundi.conf, coloquei no extensions
o dundi e mesmo asim não tive sucesso. vejam as minhas confs e me
digam o que eu posso fazer...
Abraços
ASTERISK 1
matheusteste*CLI> dundi show peers
EID Host Model AvgTime
Status
00:08:54:17:45:9f 192.168.188.232 (S) Symmetric Unavail OK (1 ms)
1 dundi peers [1 online, 0 offline, 0 unmonitored]
matheusteste*CLI> dundi show mappings
DUNDi Cntxt Weight Local Cntxt Options Tech Destination
dundi 0 dominio.com. NOUNSLCTD| IAX2 dundi:${SECRET}@matrizvoi
matheusteste# cat dundi.conf
[general]
department=matrizvoip
organization=matrizvoip.dominio.com.br
locality=Cianorte
stateprov=PR
country=BR
email=matheuscucoloto em gmail.coim
phone=+554436194450
;bindaddr=0.0.0.0
port=4520
entityid=00:30:84:29:f5:86
;cachetime=3600
ttl=32
autokill=yes
;secretpath=dundi
;storehistory=yes
[mappings]
dundi => dominio.com.br,0,IAX2,dundi:${SECRET}@matrizvoip.dominio.com.br/${NUMBER},nounsolicited,nocomunsolicit,nopartial
[00:08:54:17:45:9f]
model = symmetric
host = filialvoip.dominio.com.br
inkey = filialvoip
outkey = matrizvoip
include = dundi
permit = dundi
qualify = yes
dynamic = yes
db_asterisk=> select name,type,dbsecret,context,disallow,allow from
iax where name = 'dundi';
name | type | dbsecret | context | disallow | allow
-------+------+--------------+---------+----------+-------
dundi | user | dundi/secret | dundi | | all
(1 row)
db_asterisk=> select * from extensions where context = 'dundi';
id | context | exten | priority | app |
appdata
----+---------+--------+----------+-----------+-----------------------------------------
18 | dundi | 554433 | 1 | NoOP | dundi:Number
advertisement and incoming
19 | dundi | 554433 | 2 | Answer |
20 | dundi | 554433 | 3 | Dial | SIP/1000
21 | dundi | 554433 | 4 | VoiceMail | u1000 em irapida.com.br
22 | dundi | 554433 | 5 | Hangup |
(5 rows)
matheusteste# cat extensions.conf
[general]
;static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[default]
include => dundi
include => dominio.com.br
[dominio.com.br]
switch => Realtime/@
include => dundi
[dundi]
switch => Realtime/@
AGORA NO ASTERISK 2
asteriskteste*CLI> dundi show peers
EID Host Model
AvgTime Status
00:30:84:29:f5:86 192.168.188.238 (S) Symmetric Unavail OK (1 ms)
1 dundi peers [1 online, 0 offline, 0 unmonitored]
asteriskteste*CLI> dundi show mappings
DUNDi Cntxt Weight Local Cntxt Options Tech Destination
dundi 0 dominio.com. NOUNSLCTD| IAX2 dundi:${SECRET}@matrizvoi
asteriskteste# cat dundi.conf
[general]
department=filialvoip
organization=filialvoip.dominio.com.br
locality=Cianorte
stateprov=PR
country=BR
email=cucoloto em dominio.com.br
phone=+554436194450
;bindaddr=0.0.0.0
port=4520
entityid=00:08:54:17:45:9f
;cachetime=3600
ttl=32
autokill=yes
;secretpath=dundi
;storehistory=yes
[mappings]
dundi => dominio.com.br,0,IAX2,dundi:${SECRET}@matrizvoip.dominio.com.br/${NUMBER},nounsolicited,nocomunsolicit,nopartial
[00:30:84:29:f5:86]
model = symmetric
host = matrizvoip.dominio.com.br
inkey = matrizvoip
outkey = filialvoip
include = dundi
permit = dundi
qualify = yes
dynamic = yes
asterisk=> select name,type,dbsecret,context,disallow,allow from iax
where name = 'dundi';
name | type | dbsecret | context | disallow | allow
-------+------+--------------+---------+----------+-------
dundi | user | dundi/secret | dundi | | all
(1 row)
--
Matheus Cucoloto
System Admin.
Net Admin.
Mais detalhes sobre a lista de discussão AsteriskBrasil