FÓRUM DigiVoice

Fórum de Suporte Digivoice

Você não está logado.

#1 13/01/2011 20:48:15

souzalinux
Membro

SIP_NAT.CONF

Boa noite estou enfrentando um problema com ramal quando loga fora da rede.


simplesmente ele toca eu atendo mas não sai som de ambas as parte fica mudo


ja configurei o sip_nat.conf

nat=yes
externhost=seuvoip.dyndns.org
externrefresh=60
localnet=192.168.1.0/255.255.255.0

mas nada estou migrando de elastix para meucci no elastix isso funcionava legal.


alguem pode me ajudar ?

Offline

 

#2 14/01/2011 02:07:30

scraipt
Membro

Re: SIP_NAT.CONF

acho que ta errado isso ai, tinha um cliente meu que estava assim ó e funcionava:

nat=yes
> externip=meudinamico.dyndns.org
> localnet=192.168.254.254/255.255.255.0
> bindport=5060

no localnet= é o endereço ip do SERVIDOR. tenta ai e por a porta tbm "pq ai tudo que for 5060 vindo de fora .. será direcionado ao servidor" :)

lá no sip.con  "no ramal" vc está colocando  a regra  nat=yes ?
obs: no seu router está tudo certinho ?!



tenta um de cada vez.. e posta aqui pra gente.

Offline

 

#3 14/01/2011 09:31:29

souzalinux
Membro

Re: SIP_NAT.CONF

bom ainda continua mudo quando ligo agora de dentro da rede para telefone de fora e de fora para telefones tb segue meu sip.conf


; Note: If your SIP devices are behind a NAT and your Asterisk
;  server isn't, try adding "nat=1" to each peer definition to
;  solve translation problems.

[general]
#include sip_general_additional.conf

nat=yes
externhost=consec.no-ip.info
externrefresh=60
localnet=192.168.1.240/255.255.255.0




bindport = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
; If you need to answer unauthenticated calls, you should change this
; next line to 'from-trunk', rather than 'from-sip-external'.
; You'll know this is happening if when you call in you get a message
; saying "The number you have dialed is not in service. Please check the
; number and try again."
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
tos=0x68
language=pt_BR

; Reported as required for Asterisk 1.4
;notifyringing=yes
;notifyhold=yes
;limitonpeers=yes
;jbenable = yes
;jbforce=yes

; #, in this configuration file, is NOT A COMMENT. This is exactly
; how it should be.
#include sip_general_custom.conf
#include sip_nat.conf
#include sip_registrations_custom.conf
#include sip_registrations.conf
#include sip_custom.conf
#include sip_additional.conf

Offline

 

#4 14/01/2011 09:51:04

souzalinux
Membro

Re: SIP_NAT.CONF

Agora quando ligo para telefones e celular tb toca quando atendo fica mudo de ambas as partes

Offline

 

#5 14/01/2011 11:09:32

souzalinux
Membro

Re: SIP_NAT.CONF

Alguem sabe como coloca no DETALHE PEER e no DETALHE DO USER para configurar tronco FXO ??

pois fiz essa configuração abaixo ela ate mostra no meu cell que saiu pelo tronco mas fica mudo, ja na linha da tmas funcionou blz

essa é a configuração que fiz para conectar no ATA FXO ele mostra os tronco online mas porem não registrado

DETALHE PEER

allow=gsm&ulaw&alaw
context=from-pstn
disallow=all
dtfmode=rfc2833
dynamic=yes
fromdamoin=192.168.0.252 -- ip ata
fromuser=9010
host=192.168.0.252
insecure=very
qualify=no
reinvite=no
secret=*****
type=peer
username=9010

DETALHE DO USER

canreinvite=no
context=from-internal
dynamic=yes
fromuser=9010
host=192.168.0.252
insecure=very
nat=yes
secret=*****
type=user
username=9010

Offline

 

#6 16/01/2011 19:00:24

scraipt
Membro

Re: SIP_NAT.CONF

souzalinux escreveu:

bom ainda continua mudo quando ligo agora de dentro da rede para telefone de fora e de fora para telefones tb segue meu sip.conf


; Note: If your SIP devices are behind a NAT and your Asterisk
;  server isn't, try adding "nat=1" to each peer definition to
;  solve translation problems.

[general]
#include sip_general_additional.conf

nat=yes
externhost=consec.no-ip.info
externrefresh=60
localnet=192.168.1.240/255.255.255.0




bindport = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
; If you need to answer unauthenticated calls, you should change this
; next line to 'from-trunk', rather than 'from-sip-external'.
; You'll know this is happening if when you call in you get a message
; saying "The number you have dialed is not in service. Please check the
; number and try again."
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
tos=0x68
language=pt_BR

; Reported as required for Asterisk 1.4
;notifyringing=yes
;notifyhold=yes
;limitonpeers=yes
;jbenable = yes
;jbforce=yes

; #, in this configuration file, is NOT A COMMENT. This is exactly
; how it should be.
#include sip_general_custom.conf
#include sip_nat.conf
#include sip_registrations_custom.conf
#include sip_registrations.conf
#include sip_custom.conf
#include sip_additional.conf

por uma questão de teste aqui ó:

bindport = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0



ao invez de deixar o numero em 0.0.0.0 especifique o numero ip do servidor.

dê reload e logo em seguida teste.

obs: aparentemente "o servidor está correto"..
substitua o roteador e reveja a configuração.


só lembrando as portas para se abrirem no roteador é

5060UDP
range de 10.000 a 20.000 RTP.


abraço.

Offline

 

#7 16/01/2011 19:18:26

scraipt
Membro

Re: SIP_NAT.CONF

souzalinux escreveu:

Boa noite estou enfrentando um problema com ramal quando loga fora da rede.


simplesmente ele toca eu atendo mas não sai som de ambas as parte fica mudo


ja configurei o sip_nat.conf

nat=yes
externhost=seuvoip.dyndns.org
externrefresh=60
localnet=192.168.1.0/255.255.255.0

mas nada estou migrando de elastix para meucci no elastix isso funcionava legal.


alguem pode me ajudar ?

um outro detalhe tbm verifique se o iptables nao esteja ativo, se estiver siga:


#Redirecionando tudo que chegar no ip publico para a maquina local

-A PREROUTING -d XXXXXXXXX -p tcp -m tcp --dport 5060:5082 -j
DNAT --to-destination 192.168.1.37
-A PREROUTING -d XXXXXXXXX  -p udp -m udp --dport 5060:5082 -j
DNAT --to-destination 192.168.1.37
-A PREROUTING -d XXXXXXXXX  -p tcp -m tcp --dport 8000:20000 -j
DNAT --to-destination 192.168.1.37
-A PREROUTING -d XXXXXXXXX  -p udp -m udp --dport 8000:20000 -j
DNAT --to-destination 192.168.1.37



-A FORWARD -p tcp --dport 5060:5082 -j ACCEPT
-A FORWARD -p udp --dport 5060:5082 -j ACCEPT
-A FORWARD -p tcp --dport 10000:20000 -j ACCEPT
-A FORWARD -p udp --dport 10000:20000 -j ACCEPT


#LIBERANDO NAT destas portas para todos

-t nat -A POSTROUTING -p tcp -o $ext_if -s $lan --dport 4569:4570 -j
MASQUERADE
-t nat -A POSTROUTING -p udp -o $ext_if -s $lan --dport 4569:4570 -j
MASQUERADE

Offline

 

#8 17/02/2011 12:57:37

asampaio61
Membro

Re: SIP_NAT.CONF

Verifrique também os codecs de audio.

Offline

 

#9 15/01/2013 14:51:05

didu01
Membro

Re: SIP_NAT.CONF

Boa tarde,

Estou com muita dificuldade na programação do meucci,
sou iniciante, gostaria de uma ajuda na criação de um tronco,
para poder receber ligações externas.

detalhes do equipamento:

2 Ata's
PC  -( 80Gb HD, 3G Ram, processador pentium 4, 1 placa Placa Digium Tdm400 2fxo/1fxs)
Switch Linksys Cisco Ef4116 - 16 Portas 10/100

Abrações,
Rodrigo.

Offline

 

Rodapé do fórum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson