Totalmente de acuerdo,
Generalidades:
Servidor A: 192.168.145.5 (Call Center), Ext: 5XXX
Servidro B: 192.168.145.8 (Asterisk Remoto), Ext, 2XXX
Servidor A (Primario con tarjeta Sangoma A104d QUAD T1/E1)
Trunk Name: Santaelena
Peer Details:
allow=g711
auth=md5
context=from-pstn
host=192.168.145.8
insecure=port,invite
nat=no
qualify=yes
secret=1501234
type=peer
username=150
User Context: 150
User Details
context=from-trunk
secret=1501234
type=user
Register
150:150...@192.168.145.8Servidor B (Conectado via MPLS con servidor A sin problema de firewall)
Trunk Name: Soyapango
Peer Details:
allow=g711
auth=md5
context=from-pstn
host=192.168.145.5
insecure=port,invite
nat=no
qualify=yes
secret=1511234
type=peer
username=151
User Context: 151
User Details
context=from-trunk
secret=1511234
type=user
Register
151:151...@192.168.145.5En ambos casos al ejecutar asterisk -rx 'sip show registry' obtengo esto:
[root@localhost ~]# asterisk -rx 'sip show registry'
Host dnsmgr Username Refresh State Reg.Time
192.168.145.5:5060 N 151 105 Registered Mon, 22 Nov 2010 07:32:25
1 SIP registrations.
El objetivo es que se puedan hacer llamadas internas y que desde el servidor B se puedan sacar llamadas por el E1 del servidor A, para eso en el Dial Patterns del server B he puesto esto:
0|2xxxxxxx (numeros nacionales)
5xxx
Trunk Sequence
SIP/Soyapango
Cuando marco la extension 5050 la llamada se enlaza sin problemas pero no hay audio en ningua via, y al poner 022112433 marca dos veces al numero y al final sale un mensaje de el servicio no esta disponible.
Te envio la data que sale cuando hago la llamada desde una ext 2051 hacia una 5050-- Called Soyapango/5050
-- SIP/Soyapango-0000004c is ringing
-- SIP/Soyapango-0000004c is ringing
-- SIP/Soyapango-0000004c answered SIP/2051-0000004b
-- Packet2Packet bridging SIP/2051-0000004b and SIP/Soyapango-0000004c
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/2051-0000004b", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2051-0000004b", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/2051-0000004b", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/2051-0000004b", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/2051-0000004b", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/2051-0000004b", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/2051-0000004b", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/2051-0000004b' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/2051-0000004b' in macro 'dialout-trunk'
== Spawn extension (from-internal, 5050, 4) exited non-zero on 'SIP/2051-0000004b'
Como te comentaba la llamada se establece no hay audio y luego de 15seg se termina la llamada.
Este es el log cuando marco un numero de la pstn Using SIP RTP CoS mark 5
-- Called Soyapango/22114121
-- SIP/Soyapango-0000004e is making progress passing it to SIP/2051-0000004d
-- Got SIP response 503 "Service Unavailable" back from 192.168.145.5
-- SIP/Soyapango-0000004e is circuit-busy
Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] NoOp("SIP/2051-0000004d", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/2051-0000004d", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
He investigado y he leido en varios foros pero no logro encontral una solucion, se que cuando no se escucha una llamada puede ser por codec o por el nateo interno pero en este caso ambos funcionan aisladamente.
Les agradeceria me indicaran que estoy haciendo mal.
Saludos Cordiales.--
Amilcar Molina