[AsteriskBrasil] Asterisk + Dundi

Emerson Reis eluizbr em gmail.com
Sexta Março 30 12:11:34 BRT 2007


para que serve o DUNDI?

2007/3/30, Matheus Cucoloto <matheuscucoloto em gmail.com>:
>
> 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.
> ----------------------------------------
> Estação VoIP 2006
> 5 e 6 Dezembro
> Curitiba PR
> http://www.estacaovoip.com.br
>
> _______________________________________________
> LIsta de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
> _______________________________________________
> Acesse o  wiki AsteriskBrasil.org:
> http://www.asteriskbrasil.org
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20070330/eee3a687/attachment.html


Mais detalhes sobre a lista de discussão AsteriskBrasil