Re: [AsteriskBrasil] Problemas nas ligações PSTN e via Provedor

Fabricio Louback fabricio.vix em gmail.com
Terça Dezembro 27 22:13:22 BRT 2005


Allan,

Então quer dizer que não preciso especificar o contexto abaixo que esta no
meu SIP.CONF para as chamadas entrantes da VOICECONNECT já que você disse
que devo apaga-lo no EXTENSIONS.CONF, é isso mesmo?

Neste caso qual o contexto que devo colocar então no lugar?

[voiceconnect]
type=peer
username=29930xx
fromuser=29930xx
secret=xxxxxxxxxx ; password used to login their website
host=sip.voiceconnect.com.br
nat=yes ; my asterisk is behind nat
canreinvite=yes
qualify=yes
context=*inbound-voiceconnec*t ; context to be used in extensions.conf
for inbound calls from voiceconnect


Agradeço a ajuda.
Fabricio



2005/12/27, Allan <zyryz em terra.com.br>:
> verifique as alteraçoes
>
> o que estiver com ; na frente é comentario ou linhas que podem ser
apagadas
>
>
> ----- Original Message -----
> From: "Fabricio Louback" <fabricio.vix em gmail.com>
> To: <asteriskbrasil em listas.asteriskbrasil.org>
> Sent: Tuesday, December 27, 2005 6:25 PM
> Subject: [AsteriskBrasil] Problemas nas ligações PSTN e via Provedor
>
>
> Prezada lista,
>
> Estou fazendo um laboratório básico e estou com o seguinte cenário:
>
> - Um servidor com SUSE10, Asterisk 1.2.1, MD3200 e um X-Lite
> - Um PC rodando X-Lite
>
> O asterisk já esta rodando e os X-lites se falam internamente.
>
> Problema 01: Tenho uma conta na voiceconnect, sendo que quando digite
> "sip show peers" mostra a conta na VC autenticada perfeitamente, mas
> não estou conseguindo fazer ligações   apartir do X-lIte utilizando a
> VOICE CONNECT.
>
> Problema 02: Configurei o MD3200 e também esta ok, só que não consegui
> efetuar ligaões atraves dos X-Lites para a PSTN utilizando a MD3200.
> Estou usando a MD3200 conectada direto em um linha PSTN.
>
> Segue abaixo meu EXTENSIONS.CONF e SIP.CONF, se alguém puder me ajudar.
>
> ##################SIP.CONF#######################
>
> [default]
> context=chamadaentrante
> disallow=all
> allow=gsm
> allow=ulaw
> allow-alaw
> allow=ilbc
> insecure=very
> ;adiciona o ramal do contexto ramais para chamar
> ;register => 29930xx:xxxxxx em sip.voiceconnect.com.br:5060
> register => 29930xx:xxxxxx em sip.voiceconnect.com.br:5060/201
>
>
> [200]
> username=200
> type=friend
> secret=200
> qualify=yes
> port=5060
> nat=never
> host=dynamic
> dtmfmode=rfc2833
> context=ramais
> canreinvite=no
> callerid="200"
> disallow=all
> allow=gsm
> allow=ulaw
> allow-alaw
> allow=ilbc
>
> [201]
> username=201
> type=friend
> secret=201
> qualify=yes
> port=5060
> nat=never
> host=dynamic
> dtmfmode=rfc2833
> context=ramais
> canreinvite=no
> callerid="201"
> disallow=all
> allow=gsm
> allow=ulaw
> allow-alaw
> allow=ilbc
>
>
> [voiceconnect]
> type=peer
> username=29930xx
> fromuser=29930xx
> secret=xxxxxxxxxx ; password used to login their website
> host=sip.voiceconnect.com.br
> nat=yes ; my asterisk is behind nat
> canreinvite=yes
> qualify=yes
> ;context=inbound-voiceconnect ; context to be used in extensions.conf
> ;for inbound calls from voiceconnect
> ;mude o contexto
> context=ramais
>
> ##############EXTENSIONS.CONF############################
>
> [chamadaentrante]
> exten=>s,1,Dial(SIP/201)
> exten=>s,2,Congestion
> exten=>s,3,Hangup
> exten=>s,102,Congestion
> exten=>s,103,Hangup
>
> h,1,hangup
>
> [ramais]
>
> exten=>200,1,dial(SIP/200)
> exten=>200,2,Congestion
> exten=>200,3,Hangup
> exten=>200,102,Congestion
> exten=>200,103,Hangup
>
> exten=>201,1,dial(SIP/201)
> exten=>201,2,Congestion
> exten=>201,3,Hangup
> exten=>201,102,Congestion
> exten=>201,103,Hangup
>
> ;adicione abaixo - vc precisa incluir os contextos nos quais suas chamadas
> serao "roteadas"
>
> include saida-pstn
> include voiceconnect
>
> ;apaga isso ai tudo
> ;[inbound-voiceconnect]
> ; exten=>201,1,Wait(1) ;Wait a second, and to get the CallerID
information.
> ; exten=>201,2,Playback(support) ; play initial greeting/recording
> ; exten=>201,3,Dial(${OFFICE},20,tr) ; dial my sip phone for 20 sec
> ; exten=>201,4,SetCallerID(${IDCALLER}) ; im not there? set call id to
> ;pass to my cell phone
> ; exten=>201,5,Dial(IAX2/login em voipjet/cellphone#,10,tr) ; dial my cell
> ;phone , and seamlessly fw call to it. I use voipjet Smile
> ; exten=>201,6,Playback(busy-on-call) ; switch to a on-call message if
> ;i didnt pick up both cell and sip phone
> ; exten=>201,7,Voicemail(1) ;leave voice mail
> ; exten=>201,8,Hangup() ; hangup the call
>
> [saida-pstn]
> ;exten=>_.,1,Dial(Zap/g1/${EXTEN:1},45,Tt)
> ;exten=>_.,2,Hangup
> ;apague acima e substitua
>
> ;disque 9+numero ( nao usei 0 porque vai "conflitar"  com o 010 que vc
esta
> usando no voiceconnect
> exten => _9.,1,Dial(zap/g0/${exten:1},45,Tt)
> ; o "g0 ou g1 depende qual o grupo em que o canal zap esta configurado no
> seu zapata.conf
> exten => _9.,2,hangup()
>
> exten => h,1,hangup
>
> [voiceconnect]
> ;adicione um "."(ponto) depois do "_010"
> exten=>_010.,1,SetCIDNNum(29930xx)
> exten=>_010.,2,SetCIDNName(29930xx)
> exten=>_010.,3,Dial(SIP/${EXTEN:3}@voiceconnect)
> exten=>_010.,4,Playback(invalid)
> exten=>_010.,5,Hangup
>
>
> ------------
> me corrijam se eu estiver errado :)
> _______________________________________________
> 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
>
> E-mail classificado pelo Identificador de Spam Inteligente Terra.
> Para alterar a categoria classificada, visite
>
http://mail.terra.com.br/protected_email/imail/imail.cgi?+_u=zyryz&_l=1,1135715203.713910.17564.baladonia.terra.com.br,6537,Des15,Des15
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.7/214 - Release Date: 23/12/2005
>
>
> _______________________________________________
> 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/20051227/420a5579/attachment.html


Mais detalhes sobre a lista de discussão AsteriskBrasil