Saludos amigos listeros tengo un problema medio raro con una central asterisk paso a escribir mi problema, Off topic
Mi celular esta configurado como una extension de mi central uso zoiper, puedo recibir llamadas externas sin problemas escucho y me escuchan bien, esto desde la red lan o fuera de ella.
Ahora cuando trato de hacer una llamada desde mi extensión estando fuera de mi oficina a un número local, marca veo en el log que hace la llamada pero al número que llamo ni si quiera timbra y se queda muerto y después se cierra, pero si me funciona al hacer llamadas a una extensión.
En mi firewall tengo nateado el puerto 5060 tcp udp y del puerto 10000 al 20000 esto es lo que muestra el log del asterisk
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [31XXXXX@from-internal:1] Macro("SIP/4504-00000046", "user-callerid,LIMIT,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/4504-00000046", "AMPUSER=4504") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/4504-00000046", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/4504-00000046", "1?Set(REALCALLERIDNUM=4504)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/4504-00000046", "AMPUSER=4504") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/4504-00000046", "AMPUSERCIDNAME=Cesar Mobil") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/4504-00000046", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/4504-00000046", "AMPUSERCID=4504") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/4504-00000046", "CALLERID(all)="Cesar Mobil" <4504>") in new stack -- Executing [s@macro-user-callerid:9] GotoIf("SIP/4504-00000046", "0?limit") in new stack -- Executing [s@macro-user-callerid:10] ExecIf("SIP/4504-00000046", "1?Set(GROUP(concurrency_limit)=4504)") in new stack -- Executing [s@macro-user-callerid:11] ExecIf("SIP/4504-00000046", "1?Set(CHANNEL(language)=es)") in new stack -- Executing [s@macro-user-callerid:12] GotoIf("SIP/4504-00000046", "1?continue") in new stack -- Goto (macro-user-callerid,s,25) -- Executing [s@macro-user-callerid:25] Set("SIP/4504-00000046", "CALLERID(number)=4504") in new stack -- Executing [s@macro-user-callerid:26] Set("SIP/4504-00000046", "CALLERID(name)=Cesar Mobil") in new stack -- Executing [s@macro-user-callerid:27] Set("SIP/4504-00000046", "CHANNEL(language)=es") in new stack -- Executing [31XXXXX@from-internal:2] Set("SIP/4504-00000046", "MOHCLASS=default") in new stack -- Executing [31XXXXX@from-internal:3] Set("SIP/4504-00000046", "_NODEST=") in new stack -- Executing [31XXXXX@from-internal:4] Gosub("SIP/4504-00000046", "sub-record-check,s,1(out,31XXXXX,)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/4504-00000046", "1?check") in new stack -- Goto (sub-record-check,s,6) -- Executing [s@sub-record-check:6] Set("SIP/4504-00000046", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:7] GotoIf("SIP/4504-00000046", "1?next") in new stack -- Goto (sub-record-check,s,10) -- Executing [s@sub-record-check:10] ExecIf("SIP/4504-00000046", "0?Return()") in new stack -- Executing [s@sub-record-check:11] GotoIf("SIP/4504-00000046", "0?out,1") in new stack -- Executing [s@sub-record-check:12] Set("SIP/4504-00000046", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/4504-00000046", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:14] Set("SIP/4504-00000046", "NOW=1428289751") in new stack -- Executing [s@sub-record-check:15] Set("SIP/4504-00000046", "__DAY=05") in new stack -- Executing [s@sub-record-check:16] Set("SIP/4504-00000046", "__MONTH=04") in new stack -- Executing [s@sub-record-check:17] Set("SIP/4504-00000046", "__YEAR=2015") in new stack -- Executing [s@sub-record-check:18] Set("SIP/4504-00000046", "__TIMESTR=20150405-220911") in new stack -- Executing [s@sub-record-check:19] Set("SIP/4504-00000046", "__FROMEXTEN=4504") in new stack -- Executing [s@sub-record-check:20] Set("SIP/4504-00000046", "__CALLFILENAME=out-31XXXXX-4504-20150405-220911-1428289751.158") in new stack -- Executing [s@sub-record-check:21] Goto("SIP/4504-00000046", "out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] ExecIf("SIP/4504-00000046", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack -- Executing [out@sub-record-check:2] GosubIf("SIP/4504-00000046", "0?record,1(exten,31XXXXX,4504)") in new stack -- Executing [out@sub-record-check:3] Return("SIP/4504-00000046", "") in new stack -- Executing [31XXXXX@from-internal:5] Macro("SIP/4504-00000046", "dialout-trunk,2,31XXXXX,") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/4504-00000046", "DIAL_TRUNK=2") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/4504-00000046", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/4504-00000046", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/4504-00000046", "DIAL_NUMBER=31XXXXX") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/4504-00000046", "DIAL_TRUNK_OPTIONS=tr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/4504-00000046", "OUTBOUND_GROUP=OUT_2") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/4504-00000046", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/4504-00000046", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/4504-00000046", "DIAL_TRUNK_OPTIONS=") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/4504-00000046", "outbound-callerid,2") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/4504-00000046", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/4504-00000046", "0?Set(REALCALLERIDNUM=4504)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/4504-00000046", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/4504-00000046", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/4504-00000046", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/4504-00000046", "TRUNKOUTCID=<222XXXX>") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/4504-00000046", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,12) -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/4504-00000046", "1?Set(CALLERID(all)=<222XXXX>)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/4504-00000046", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/4504-00000046", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/4504-00000046", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/4504-00000046", "0?sub-flp-2,s,1()") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/4504-00000046", "OUTNUM=31XXXXX") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/4504-00000046", "custom=DAHDI/2") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/4504-00000046", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/4504-00000046", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack -- Executing [s@macro-dialout-trunk:17] Macro("SIP/4504-00000046", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/4504-00000046", "") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/4504-00000046", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/4504-00000046", "1?Set(CONNECTEDLINE(num,i)=31XXXXX)") in new stack -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/4504-00000046", "1?Set(CONNECTEDLINE(name,i)=CID:222XXXX)") in new stack -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/4504-00000046", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:22] Dial("SIP/4504-00000046", "DAHDI/2/31XXXXX,300,") in new stack -- Called DAHDI/2/31XXXXX -- DAHDI/2-1 answered SIP/4504-00000046 -- Executing [h@macro-dialout-trunk:1] Macro("SIP/4504-00000046", "hangupcall,") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/4504-00000046", "1?endmixmoncheck") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] NoOp("SIP/4504-00000046", "End of MIXMON check") in new stack -- Executing [s@macro-hangupcall:10] GotoIf("SIP/4504-00000046", "1?nomeetmemon") in new stack -- Goto (macro-hangupcall,s,28) -- Executing [s@macro-hangupcall:28] NoOp("SIP/4504-00000046", "End of MEETME check") in new stack -- Executing [s@macro-hangupcall:29] GotoIf("SIP/4504-00000046", "1?noautomon") in new stack -- Goto (macro-hangupcall,s,34) -- Executing [s@macro-hangupcall:34] NoOp("SIP/4504-00000046", "TOUCH_MONITOR_OUTPUT=") in new stack -- Executing [s@macro-hangupcall:35] GotoIf("SIP/4504-00000046", "1?noautomon2") in new stack -- Goto (macro-hangupcall,s,41) -- Executing [s@macro-hangupcall:41] NoOp("SIP/4504-00000046", "MONITOR_FILENAME=") in new stack -- Executing [s@macro-hangupcall:42] GotoIf("SIP/4504-00000046", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,45) -- Executing [s@macro-hangupcall:45] GotoIf("SIP/4504-00000046", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,48) -- Executing [s@macro-hangupcall:48] GotoIf("SIP/4504-00000046", "1?theend") in new stack -- Goto (macro-hangupcall,s,50) -- Executing [s@macro-hangupcall:50] AGI("SIP/4504-00000046", "hangup.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi -- <SIP/4504-00000046>AGI Script hangup.agi completed, returning 0 -- Executing [s@macro-hangupcall:51] Hangup("SIP/4504-00000046", "") in new stack == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/4504-00000046' in macro 'hangupcall' == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/4504-00000046' -- Hanging up on 'DAHDI/2-1' -- Hungup 'DAHDI/2-1' == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/4504-00000046' in macro 'dialout-trunk' == Spawn extension (from-internal, 31XXXXX, 5) exited non-zero on 'SIP/4504-00000046' central*CLI>
El 6/4/15 a las 5:14, César Martinez escribió:
Saludos amigos listeros tengo un problema medio raro con una central asterisk paso a escribir mi problema, Off topic
Mi celular esta configurado como una extension de mi central uso zoiper, puedo recibir llamadas externas sin problemas escucho y me escuchan bien, esto desde la red lan o fuera de ella.
Ahora cuando trato de hacer una llamada desde mi extensión estando fuera de mi oficina a un número local, marca veo en el log que hace la llamada pero al número que llamo ni si quiera timbra y se queda muerto y después se cierra, pero si me funciona al hacer llamadas a una extensión.
En mi firewall tengo nateado el puerto 5060 tcp udp y del puerto 10000 al 20000 esto es lo que muestra el log del asterisk
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 ....... TRIMMED ...... -- Hanging up on 'DAHDI/2-1' -- Hungup 'DAHDI/2-1' == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/4504-00000046' in macro 'dialout-trunk' == Spawn extension (from-internal, 31XXXXX, 5) exited non-zero on 'SIP/4504-00000046' central*CLI>
Hola
Estás seguro de que DAHDI/2 está funcionando correctamente?
Gracias amigo no me había percatado de eso el puerto fxo estaba quemado, gracias nuevamente