[AsteriskBrasil] Configuração Dundi
sauloquinteiro em gmail.com
sauloquinteiro em gmail.com
Quarta Junho 3 08:43:32 BRT 2009
Luiz Segue as configurações das duas maquinas.
dundi.conf Server A:
[general]
department=GTI
organization= MPS
locality=Curitiba
stateprov=PR
country=BR
email=
phone=+554121419567
;Specify bind addr and port number default id 4520
;bindaddr = 0.0.0.0
port=4520
entityid=00:0c:29:9e:6c:f3
;cachetime=5
ttl=32
autokill=yes
;secretpath=dundi
[mappings]
priv =>
dundi-priv-canonical,0,IAX2,priv:${SECRET}@172.30.80.80/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv =>
dundi-priv-customers,100,IAX2,priv:${SECRET}@172.30.80.80/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv =>
dundi-priv-via-pstn,400,IAX2,priv:${SECRET}@172.30.80.80/${NUMBER},nounsolicited,nocomunsolicit,nopartial
[00:0c:29:34:24:f6] ; MAC address of TrixBox2 eth0
model = symmetric
host = 172.30.80.81
;auth = rsa
inkey = voip2
outkey = voip1
include = priv
permit = priv
qualify = yes
;order = primary
dynamic = yes
dundi.conf Server B:
[general]
department=GTI2
organization= MPS
locality=Curitiba
stateprov=PR
country=BR
email=
phone=+554121419567
;Specify bind addr and port number default id 4520
;bindaddr = 0.0.0.0
port=4520
entityid=00:0c:29:34:24:f6
;cachetime=5
ttl=32
autokill=yes
;secretpath=dundi
[mappings]
priv =>
dundi-priv-canonical,0,IAX2,priv:${SECRET}@172.30.80.81/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv =>
dundi-priv-customers,100,IAX2,priv:${SECRET}@172.30.80.81/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv =>
dundi-priv-via-pstn,400,IAX2,priv:${SECRET}@172.30.80.81/${NUMBER},nounsolicited,nocomunsolicit,nopartial
[00:0c:29:9e:6c:f3] ; MAC address of TrixBox1 eth0
model = symmetric
host = 172.30.80.80
;auth = rsa
inkey = voip1
outkey = voip2
include = priv
permit = priv
qualify = yes
;order = primary
dynamic = yes
Extensions.conf Server A:
; the first three contexts are separated in order to group them by the
appropriate dundi priority
; Private DUNDi network
[dundi-priv-canonical]
exten => _100X,1,noop()
include => from-internal
; Direct numbers (dundi priority 0)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here. (dundi
priority 100)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here (dundi
priority 400)
; this context is used to group the 3 above and reference in iax.conf
for the incoming calls referred by dundi
[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
; the rest of the contexts are used for calls placed locally to go out
to our dundi peers
; entry point is macro-dundi-priv
[dundi-priv-switch]
; Just a wrapper for the switch
switch => DUNDi/priv
[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch
[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-lookup
[local-custom]
; For extensions starting with 2000 -> 2999
exten => _2XXX,1,Macro(dundi-priv,${EXTEN})
Extensions.conf Server B:
; the first three contexts are separated in order to group them by the
appropriate dundi priority
; Private DUNDi network
[dundi-priv-canonical]
exten => _200X,1,noop()
include => from-internal
; Direct numbers (dundi priority 0)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here. (dundi
priority 100)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here (dundi
priority 400)
; this context is used to group the 3 above and reference in iax.conf
for the incoming calls referred by dundi
[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
; the rest of the contexts are used for calls placed locally to go out
to our dundi peers
; entry point is macro-dundi-priv
[dundi-priv-switch]
; Just a wrapper for the switch
switch => DUNDi/priv
[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch
[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-lookup
Saulo Quinteiro dos Santos
Bacharel em Ciências da Computação UFPR
Cel: (041) 9927-5236
Com: (041) 2141-9567
Mais detalhes sobre a lista de discussão AsteriskBrasil