Fax sobre asterisk y codec t38

494 views
Skip to first unread message

Luis Zuluaga

unread,
Oct 4, 2010, 9:53:57 AM10/4/10
to asterisk-es
Buenos días,
De antemano muchas gracias por su ayuda,necesito poder recibir fax en
mi central asterisk. Actualmente la tengo instalada bajo un elastix,
sin embargo no consigo ayuda en sus foros de soporte.
Las especificaciones técnicas son:
Asterisk 1.6.2.10
Linux CENTOS 5.5
Hylafax 4.3.9
Troncal SIP con soporte para códec T38

He realizado varias pruebas:
1. Conecto una línea análoga a mi central: Y recibo el fax sin ningún
problema
2. Conecto un grandstream HT 503 a la troncal SIP y lo configuro y
funciona sin ningun problema
3. PERO conecto la troncal SIP a mi central y no me llega el fax.
El problema:
Cuando al central está conectada directamente a la troncal SIP y envio
un fax a la central desde una mauqina de fax, el fax se conecta y hala
la hoja solo un poco, luego dice erro en comunicación.
Mis análisis:
- Supongo que si el HT recibe el fax bajo T38 es porque efectivamente
mi proveedor SIP tiene soporte para CODEC t38 y recepción de fax.

Mis preguntas.
1. ¿Por dónde comienzo a buscar mi problema?
2. ¿Cómo hago para saber si mi central efectivamente tiene activo el
soporte para T38?}

Pego un resgistro de asterisk en verbosidad:
Connected to Asterisk 1.6.2.10 currently running on localhost (pid =
14336)
Verbosity is at least 3
-- Remote UNIX connection
-- Remote UNIX connection disconnected
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [4031892@from-trunk-sip-une2:1] Set("SIP/
une2-00000000", "GROUP()=OUT_2") in new stack
-- Executing [4031892@from-trunk-sip-une2:2] Goto("SIP/
une2-00000000", "from-trunk,4031892,1") in new stack
-- Goto (from-trunk,4031892,1)
-- Executing [4031892@from-trunk:1] Set("SIP/une2-00000000",
"__FROM_DID=4031892") in new stack
-- Executing [4031892@from-trunk:2] Gosub("SIP/une2-00000000",
"app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/une2-00000000",
"0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/une2-00000000",
"CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/une2-00000000",
"") in new stack
-- Executing [4031892@from-trunk:3] ExecIf("SIP/une2-00000000",
"0 ?Set(CALLERID(name)=2562977)") in new stack
-- Executing [4031892@from-trunk:4] Set("SIP/une2-00000000",
"__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [4031892@from-trunk:5] Set("SIP/une2-00000000",
"CALLERPRES()=allowed_not_screened") in new stack
-- Executing [4031892@from-trunk:6] Goto("SIP/une2-00000000",
"from-did-direct,1900,1") in new stack
-- Goto (from-did-direct,1900,1)
-- Executing [1900@from-did-direct:1] Macro("SIP/une2-00000000",
"exten-vm,novm,1900") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/une2-00000000", "user-
callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/une2-00000000",
"AMPUSER=2562977") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/une2-00000000",
"0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/une2-00000000",
"1?Set(REALCALLERIDNUM=2562977)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/une2-00000000",
"AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/une2-00000000",
"AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/une2-00000000",
"1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/
une2-00000000", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/une2-00000000",
"__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/
une2-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/une2-00000000",
"Using CallerID "2562977" <2562977>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/une2-00000000",
"RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/une2-00000000",
"VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/une2-00000000",
"EXTTOCALL=1900") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/une2-00000000",
"CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/une2-00000000",
"CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/une2-00000000",
"RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/une2-00000000",
"record-enable,1900,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/une2-00000000",
"1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/une2-00000000",
"0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/une2-00000000",
"0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/
une2-00000000", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/
une2-00000000", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/une2-00000000",
"dial,,tr,1900") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/une2-00000000", "1?
dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/une2-00000000",
"dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '2562977' number is '2562977'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 1900 to extension map
-- dialparties.agi: Extension 1900 cf is disabled
-- dialparties.agi: Extension 1900 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)
dialparties.agi: Extension 1900 has ExtensionState: 4
-- dialparties.agi: Checking CW and CFB status for extension 1900
-- dialparties.agi: dbset CALLTRACE/1900 to 2562977
-- dialparties.agi: Filtered ARG3: 1900
-- <SIP/une2-00000000>AGI Script dialparties.agi completed,
returning 0
-- Executing [s@macro-dial:7] Dial("SIP/une2-00000000",
"IAX2/1900,,tr") in new stack
-- Called 1900
-- Call accepted by 127.0.0.1 (format ulaw)
-- Format for call is ulaw
-- IAX2/1900-1728 is ringing
-- IAX2/1900-1728 answered SIP/une2-00000000
-- Executing [h@macro-dial:1] Macro("SIP/une2-00000000",
"hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/une2-00000000", "1?
noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/une2-00000000",
"TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/une2-00000000", "1?
skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/une2-00000000", "1?
skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/une2-00000000",
"1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/une2-00000000",
"") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/
une2-00000000' in macro 'hangupcall'
== Spawn extension (macro-dial, h, 1) exited non-zero on 'SIP/
une2-00000000'
-- Hungup 'IAX2/1900-1728'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/
une2-00000000' in macro 'dial'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/
une2-00000000' in macro 'exten-vm'
== Spawn extension (from-did-direct, 1900, 1) exited non-zero on
'SIP/une2-00000000'

Raúl Alexis Betancor Santana

unread,
Oct 4, 2010, 12:02:52 PM10/4/10
to aster...@googlegroups.com
On Lunes 04 Octubre 2010 14:53:57 Luis Zuluaga escribió:
> Buenos días,
> De antemano muchas gracias por su ayuda,necesito poder recibir fax en
> mi central asterisk. Actualmente la tengo instalada bajo un elastix,
> sin embargo no consigo ayuda en sus foros de soporte.
> Las especificaciones técnicas son:
> Asterisk 1.6.2.10
> Linux CENTOS 5.5
> Hylafax 4.3.9
> Troncal SIP con soporte para códec T38

Antes de seguir:

- T.38 NO ES UN CODEC.
- Asterisk NO SOPORTA T.38 en modo end-point, ni en modo gateway. No si
aplicar parches.
- Hylafax no pinta nada en esta película.

> He realizado varias pruebas:
> 1. Conecto una línea análoga a mi central: Y recibo el fax sin ningún
> problema

Hasta aquí normal.

> 2. Conecto un grandstream HT 503 a la troncal SIP y lo configuro y
> funciona sin ningun problema

Normal, el HT tiene soporte de T.38

> 3. PERO conecto la troncal SIP a mi central y no me llega el fax.

Más que normal, ya te lo he comentado más arriba el porqué.

> El problema:
> Cuando al central está conectada directamente a la troncal SIP y envio
> un fax a la central desde una mauqina de fax, el fax se conecta y hala
> la hoja solo un poco, luego dice erro en comunicación.
> Mis análisis:
> - Supongo que si el HT recibe el fax bajo T38 es porque efectivamente
> mi proveedor SIP tiene soporte para CODEC t38 y recepción de fax.

Repito, T.38 no es un CODEC.



> Mis preguntas.
> 1. ¿Por dónde comienzo a buscar mi problema?

¿Rezandole a santa tecla, para que la próxima versión de Aterisk tenga soporte
de T.38 de forma "decente?

> 2. ¿Cómo hago para saber si mi central efectivamente tiene activo el
> soporte para T38?}

Con trazas con ngrep, pero lo más que vas a averiguar, es que Asterisk rechaza
la llamada, ya que no tiene soporte de T.38 para modo end-point, ni modo
gateway.



> Pego un resgistro de asterisk en verbosidad:

Muy bonito, pero de nada sirve el log de el dialplan de elastix.

Saludos
--
Raúl Alexis Betancor Santana
Dimensión Virtual

Luis Adrian Zuluaga, Developer and web designer

unread,
Oct 4, 2010, 1:54:31 PM10/4/10
to aster...@googlegroups.com
Hola raul,

Muchas gracias por Responder. Creía que la version de asterisk 1.6.2 ya si soportaba t38. Creen que podría funcionar asi:

Conecto mi HT a la troncal SIP con el cable UTP
Luego saco un cable telefonico del HT a mi central y lo conecto con una tarjeta sangoma FXO?

creen que podría funcionar?

chao y muchas gracias!



--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)

Entra ahora en el canal de irc de Asterisk-ES para charlar en directo sobre VoIP y
Asterisk: http://www.asterisk-es.org/

~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com



--
            Luis Adrian Zuluaga Giraldo
             Desde medellin - Colombia.
             http://www.uniderecho.com
                  Un cordial saludo

Raúl Alexis Betancor Santana

unread,
Oct 4, 2010, 3:59:16 PM10/4/10
to aster...@googlegroups.com
On Lunes 04 Octubre 2010 18:54:31 Luis Adrian Zuluaga, Developer and web
designer escribió:

> Hola raul,
>
> Muchas gracias por Responder. Creía que la version de asterisk 1.6.2 ya si
> soportaba t38.

Que yo recuerde el soporte de la serie 1.6.X de T.38 se limita, al igual que
en la 1.4.X a modo passthrought.

> Creen que podría funcionar asi:
>
> Conecto mi HT a la troncal SIP con el cable UTP
> Luego saco un cable telefonico del HT a mi central y lo conecto con una
> tarjeta sangoma FXO?
>
> creen que podría funcionar?

Es una opción, pruébala, pero la tasa de fallos tenderá a ser bastante alta.

Reply all
Reply to author
Forward
0 new messages