hola buen día para todos,
quiero enlazar dos asterisk con iax2 y este es mi escenario:
SERVIDOR 1 IP 192.168.1.120
sip_additional.conf
[usuario1]
type=friend
context=micontexto
host=dynamic
secret=prueba1
mailbox=100@default
[usuario2]
type=friend
context=micontexto
host=dynamic
secret=prueba2
mailbox=200@default
[usuario3]
type=friend
context=micontexto
host=dynamic
secret=prueba3
mailbox=300@default
Iax.conf
[general]
autokill=yes
register => lufisa1:12345@192.168.34.166
iax_additional.conf
[supermex2]
type=friend
username=lufisa1
context=sucursal
secret=12345
host=dynamic
disallow=all
allow=g729
allow=alaw
allow=ulaw
trunk=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.34.166/255.255.255.0
qualify=yes
extensions_additional.conf
[sucursal]
include => internas
[salida]
exten => _6.,1,Dial(IAX2/supermex2/${EXTEN:1})
[micontexto]
include => salida
include => servicios
include => internas
SERVIDOR 2 IP 192.168.34.166
sip_additional.conf
[usuario1]
type=friend
context=micontexto
host=dynamic
secret=prueba1
mailbox=100@default
[usuario2]
type=friend
context=micontexto
host=dynamic
secret=prueba2
mailbox=200@default
[usuario3]
type=friend
context=micontexto
host=dynamic
secret=prueba3
mailbox=300@default
Iax.conf
[general]
autokill=yes
register => supermex2:12345@192.168.1.190
iax_additional.conf
[lufisa1]
type=friend
username=supermex2
context=sucursal
secret=12345
host=dynamic
disallow=all
allow=g729
allow=alaw
allow=ulaw
trunk=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.1.190/255.255.255.0
qualify=yes
extensions_additional.conf
[sucursal]
include => internas
[salida]
exten => _7.,1,Dial(IAX2/lufisa1/${EXTEN:1})
[micontexto]
include => salida
include => servicios
include => internas
cuando cargo iax aparece:
*CLI> iax2 reload
== Parsing '/etc/asterisk/iax.conf': == Found
== Parsing '/etc/asterisk/iax_additional.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
Cuando quiero mostrar el registro aparece:
*CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh State
192.168.34.166:4569 N lufisa1 <Unregistered> 60 Timeout
1 IAX2 registrations.
Y cuando marco ya sea de uno u otro pbx aparce el mismo mensaje:
== Using SIP RTP CoS mark 5
-- Executing [6100@micontexto:1] Dial("SIP/usuario3-00000006", "IAX2/superme
x2/100") in new stack
[May 21 08:33:40] WARNING[3265]: app_dial.c:2345 dial_exec_full: Unable to creat
e channel of type 'IAX2' (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/usuario3-00000006' status is 'CHANUNAVAIL'
alguien en el foro que pueda ayudarme a resolver este detalle de antemano lo agradezco..
quiero enlazar dos asterisk con iax2 y este es mi escenario:
SERVIDOR 1 IP 192.168.1.120
sip_additional.conf
[usuario1]
type=friend
context=micontexto
host=dynamic
secret=prueba1
mailbox=100@default
[usuario2]
type=friend
context=micontexto
host=dynamic
secret=prueba2
mailbox=200@default
[usuario3]
type=friend
context=micontexto
host=dynamic
secret=prueba3
mailbox=300@default
Iax.conf
[general]
autokill=yes
register => lufisa1:12345@192.168.34.166
iax_additional.conf
[supermex2]
type=friend
username=lufisa1
context=sucursal
secret=12345
host=dynamic
disallow=all
allow=g729
allow=alaw
allow=ulaw
trunk=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.34.166/255.255.255.0
qualify=yes
extensions_additional.conf
[sucursal]
include => internas
[salida]
exten => _6.,1,Dial(IAX2/supermex2/${EXTEN:1})
[micontexto]
include => salida
include => servicios
include => internas
SERVIDOR 2 IP 192.168.34.166
sip_additional.conf
[usuario1]
type=friend
context=micontexto
host=dynamic
secret=prueba1
mailbox=100@default
[usuario2]
type=friend
context=micontexto
host=dynamic
secret=prueba2
mailbox=200@default
[usuario3]
type=friend
context=micontexto
host=dynamic
secret=prueba3
mailbox=300@default
Iax.conf
[general]
autokill=yes
register => supermex2:12345@192.168.1.190
iax_additional.conf
[lufisa1]
type=friend
username=supermex2
context=sucursal
secret=12345
host=dynamic
disallow=all
allow=g729
allow=alaw
allow=ulaw
trunk=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.1.190/255.255.255.0
qualify=yes
extensions_additional.conf
[sucursal]
include => internas
[salida]
exten => _7.,1,Dial(IAX2/lufisa1/${EXTEN:1})
[micontexto]
include => salida
include => servicios
include => internas
cuando cargo iax aparece:
*CLI> iax2 reload
== Parsing '/etc/asterisk/iax.conf': == Found
== Parsing '/etc/asterisk/iax_additional.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
Cuando quiero mostrar el registro aparece:
*CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh State
192.168.34.166:4569 N lufisa1 <Unregistered> 60 Timeout
1 IAX2 registrations.
Y cuando marco ya sea de uno u otro pbx aparce el mismo mensaje:
== Using SIP RTP CoS mark 5
-- Executing [6100@micontexto:1] Dial("SIP/usuario3-00000006", "IAX2/superme
x2/100") in new stack
[May 21 08:33:40] WARNING[3265]: app_dial.c:2345 dial_exec_full: Unable to creat
e channel of type 'IAX2' (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/usuario3-00000006' status is 'CHANUNAVAIL'
alguien en el foro que pueda ayudarme a resolver este detalle de antemano lo agradezco..
Comentario