[AsteriskBrasil] Autenticação de chamadas IAX2

Murilo Soares de Lima murilo.wlima em gmail.com
Terça Dezembro 13 12:32:04 BRST 2011


Olá,

Estou tentando autenticar/limitar as chamadas IAX2.

Tenho um servidor (A) com o asterisk 1.4.42 e freepbx 2.9.0.7.
Configurei um outro servidor (B) com as mesmas configurações e criei um
trunk IAX2 para o servidor A.

Tenho também um ramal no servidor B e uma rota de saída no servidor B que
direciona para o trunk.
Quando eu faço chamadas do ramal B saindo pelo trunk vejo a seguinte
mensagem no console do servidor A:

 Accepting UNAUTHENTICATED call from ip_servidor_B:
       > requested format = alaw,
       > requested prefs = (alaw|ulaw),
       > actual format = ulaw,
       > host prefs = (ulaw|alaw),
       > priority = mine


Gostaria que esta chamada fosse rejeitada. Como devo proceder?

A configuração do trunk IAX2 é a seguinte:
disallow=all
allow=ulaw&alaw
context=from-internal
deny=0.0.0.0
qualify=yes
type=friend
language=pt_BR
host=ip_servidor_A
port=4569

Arquivo: iax.conf do servidor A:
[general]

; These will all be included in the [general] context
#include iax_general_additional.conf
#include iax_general_custom.conf
#include iax_registrations_custom.conf
#include iax_registrations.conf

; These should all be expected to come after the [general] context
;
;iax_custom.conf is the proper place to start creating new contexts that you
;might have a need for.  Dundi IAX trunks is one example of when this file
is needed.
;
#include iax_custom.conf
#include iax_additional.conf
;
;iax_custom_post.conf will allow you to modify FreePBX generated IAX setups
so
;that you can add additional parameters to a auto-generated setup.
;if you have a auto-generated context of [foobar] and need to add a
parameter
;to it then create this line [foobar](+) and place your additions on the
next line
;
#include iax_custom_post.conf

Arquivo: iax_general_additional.conf do servidor A:
mailboxdetail=yes
tos=ef
disallow=all
allow=g729
allow=speex
allow=ulaw
allow=alaw
allow=gsm
allow=ilbc
codecpriority=host
delayreject=yes
language=pt_BR
jitterbuffer=no
minregexpire=60
maxregexpire=3600

Os outros arquivos incluídos no iax.conf estão vazios.

Murilo Lima
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20111213/244b66a8/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil