De antemano doy gracias a dios porque exista este for, a ver les cuento
mi chicharron:
Red Hat 9
Asterisk 1.2.2
Compre en tiendalinux una x100p fxo la cual le realice la prueba y si,
me contesta asterisk diciendome que felicitaciones y que.........
Tengo dos equipos Gateways de voip marca pollito pero tienen soporte
sip, los pongo de modo proxy y le pongo las extensiones
correspondientes.
solo tengo ip de red local osea que NAT no
En el asterisk conecto una linea telefonica a la tarjeta, y los
gateways por medio de ethernet, son unos fxs de 4 puertos, el problema
es que me sale este error en la consola
Jan 30 20:37:15 NOTICE[4276]: chan_sip.c:10845 handle_request_register:
Registration from '<sip:10...@192.168.10.240:5060>' failed for
'192.168.10.2' - Username/auth name mismatch
Jan 30 20:37:25 NOTICE[4276]: chan_sip.c:5262 sip_reg_timeout: --
Registration for 'tron...@192.168.10.3' timed out, trying again
(Attempt #90)
Jan 30 20:37:25 NOTICE[4276]: chan_sip.c:5262 sip_reg_timeout: --
Registration for 'tron...@192.168.10.3' timed out, trying again
(Attempt #90)
Jan 30 20:37:25 NOTICE[4276]: chan_sip.c:5262 sip_reg_timeout: --
Registration for 'tron...@192.168.10.3' timed out, trying again
(Attempt #90)
Jan 30 20:37:25 NOTICE[4276]: chan_sip.c:5262 sip_reg_timeout: --
Registration for 'tron...@192.168.10.3' timed out, trying again
(Attempt #90)
La ip de la tarjeta x100p es 192.168.10.240 y la ip del gateway es
192.168.10.3
Por favor quien pueda o se interese por fsavor ayudeme que estoy
decesperado, si quieren mi correo es wilson.s...@merca.net.co
El contexto de extensions.conf que tiene las extensiones se llama
gateway
[general]
port=5060
binaddr=0.0.0.0
context=default
tos=lowdelay
dtmfmode=inband
disalow=all
register=>primero:12...@192.168.10.2/1001
register=>segundo:23...@192.168.10.2/1002
register=>tercero:34...@192.168.10.2/1003
register=>cuarto:45...@192.168.10.2/1004
[1001]
type=friend
secret=12345
username=primero
context=gateway
host=static
defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
[1002]
type=friend
secret=23456
username=segundo
context=gateway
host=static
defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
[1003]
type=friend
secret=34567
username=tercero
context=gateway
host=static
defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
[1004]
type=friend
secret=34567
username=cuarto
context=gateway
host=static
defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
Creo que deberías hacer las siguientes modificaciones:
[general]
port=5060
binaddr=0.0.0.0
context=default
tos=lowdelay
dtmfmode=inband
disalow=all
; Para lo que vas a hacer no te hacen falta los registros:
; register=>primero:12...@192.168.10.2/1001
; register=>segundo:23...@192.168.10.2/1002
; register=>tercero:34...@192.168.10.2/1003
; register=>cuarto:45...@192.168.10.2/1004
[1001]
type=friend
secret=12345
username=primero
context=gateway
;Con host dinamico debe funcionarte
host=dynamic
;host=static
;defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
[1002]
type=friend
secret=23456
username=segundo
context=gateway
;Con host dinamico debe funcionarte
host=dynamic
;host=static
;defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
[1003]
type=friend
secret=34567
username=tercero
context=gateway
;Con host dinamico debe funcionarte
host=dynamic
;host=static
;defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
[1004]
type=friend
secret=34567
username=cuarto
context=gateway
;Con host dinamico debe funcionarte
host=dynamic
;host=static
;defaultip=192.168.10.2
dtmfmode=inband
reinvite=no
canreinvite=yes
nat=no
disallow=all
allow=g723.1
allow=g729a
allow=g729b
Fijate que tengas definido el context en extensions.conf y que los
usuarios y contraseñas estén bien puesto en el gateway.
Espero haberte ayudado.
Elvex
tengo tres equipos de voip, a uno le cambie de ip a la 208.192.30.4 que
realmente es con el primero que quiero intentar, este tiene dos puertos
fxs y solo tengo uno conectado a un telefono normal, lo que quiero es
que este equipo se registre y con el contexto de extensions.conf pueda
sacar llamadas por la tarjeta fxo x100p.
las exrensiones que le tengo configuradas al gateway son la 20 y la 21,
y el equipo lo unico que hace es ir a buscar con el gt 208.192.30.240
(que es la ip que le tengo al pc) para registrarse con asterisk.
Asi que les mando todos los archivos qe he configurado
sip.conf
[general]
port=5060
binaddr=0.0.0.0
context=default
tos=lowdelay
dtmfmode=inband
disalow=all
register=>abc:12...@208.192.30.4;esta se supone que es el registro del
equipo gateway o que es?
[20]
type=friend
secret=1234
username=abc
context=chinos
host=static
defaultip=208.192.30.4
dtmfmode=inband
reinvite=no
canreinivte=yes
nat=no
disallow=all ;como ago para activar todos los codecs? ahy que ponerlos
en orden?
allow=g723.1
allow=ulaw
allow=g729b
[21]
type=friend
secret=1234
username=abc
context=chinos
host=static
defaultip=208.192.30.4
dtmfmode=inband
reinvite=no
canreinivte=yes
nat=no
disallow=all
allow=g723.1
allow=ulaw
extencions.conf
[general]
static=yes
writeproyect=yes
autofallthrough=yes
[locales] ;esto se supone que es para sacar llamadas por la tarjeta
x100p fxo sierto?
ignorepat=>9
exten=>_9XXXXXXX,1,Dial(Zap/1,90)
exten=>_9XXXXXXX,2,Congestion
[chinos] ;esta bien?????
exten=>20,1,Dial(sip/20)
exten=>21,1,Dial(sip/21)
zapata.conf
[channels]
context=default
switchtype=national
signalling=fxs_ks
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=3.0
txgain=8.0
group=1
callgroup=1
pickupgroup=1
immediate=no
busydetect=yes
busycount=6
pulsedial=yes
musiconhold=default
channel => 1
zaptel.conf
fxsks=1
loadzone = us
defaultzone=us
Por favor cualquier alme que me pueda ayudar se lo agradecere por
siempre, de antemano gracias a todos