Hola
He conectado mi asterisk con iaxmodem y hylafax a una central Siemens
3000, ya que asterisk no detecta el hangup en las líneas de Uruguay,
por si el problema se debía a que algo quedaba enganchado...
Utilizando busydetect logro la detección del colgado con la Siemens
3000.
Ahora funciona mas razonablemente.. casi siempre atiende el iaxmodem,
y las veces que no atiende veo lo siguiente en la línea de comando de
asterisk:
Primero realizo una llamada que obtiene correctamente el tono de fax.
Feb 6 10:36:31] DEBUG[30840]: dsp.c:1680 ast_dsp_set_busy_pattern:
dsp busy pattern set to 300,200
-- Starting simple switch on 'Zap/4-1'
-- Executing [s@llamadas-entrantes:1] Answer("Zap/4-1", "") in new
stack
[Feb 6 10:36:32] DEBUG[30926]: chan_zap.c:2773 zt_answer: Took Zap/
4-1 off hook
[Feb 6 10:36:32] DEBUG[30926]: chan_zap.c:1450 zt_train_ec: Engaged
echo training on channel 4
-- Executing [s@llamadas-entrantes:2] Dial("Zap/4-1", "IAX2/200")
in new stack
-- Called 200
-- Call accepted by 127.0.0.1 (format ulaw)
-- Format for call is ulaw
-- IAX2/200-2 is ringing
-- IAX2/200-2 answered Zap/4-1
[Feb 6 10:36:32] DEBUG[30845]: chan_iax2.c:7095 socket_process: Ooh,
voice format changed to 4
Cuelgo la llamada.
[Feb 6 10:37:15] DEBUG[30848]: chan_iax2.c:7435 socket_process:
Immediately destroying 2, having received hangup
[Feb 6 10:37:15] DEBUG[30926]: chan_iax2.c:3176 iax2_hangup: We're
hanging up IAX2/200-2 now...
[Feb 6 10:37:15] DEBUG[30926]: chan_iax2.c:3191 iax2_hangup: Really
destroying IAX2/200-2 now...
-- Hungup 'IAX2/200-2'
== Spawn extension (llamadas-entrantes, s, 2) exited non-zero on
'Zap/4-1'
-- Hungup 'Zap/4-1'
[Feb 6 10:37:16] NOTICE[30850]: chan_iax2.c:5933 update_registry:
Restricting registration for peer '200' to 60 seconds (requested 300)
Vuelvo a llamar. Pero esta vez llama al iaxmodem, como no contesta
cuelga la llamada.
[Feb 6 10:37:26] DEBUG[30840]: dsp.c:1680 ast_dsp_set_busy_pattern:
dsp busy pattern set to 300,200
-- Starting simple switch on 'Zap/4-1'
-- Executing [s@llamadas-entrantes:1] Answer("Zap/4-1", "") in new
stack
[Feb 6 10:37:26] DEBUG[30934]: chan_zap.c:2773 zt_answer: Took Zap/
4-1 off hook
[Feb 6 10:37:26] DEBUG[30934]: chan_zap.c:1450 zt_train_ec: Engaged
echo training on channel 4
-- Executing [s@llamadas-entrantes:2] Dial("Zap/4-1", "IAX2/200")
in new stack
-- Called 200
-- Call accepted by 127.0.0.1 (format ulaw)
-- Format for call is ulaw
[Feb 6 10:37:26] DEBUG[30844]: chan_iax2.c:7435 socket_process:
Immediately destroying 1, having received hangup
[Feb 6 10:37:26] DEBUG[30934]: chan_iax2.c:3176 iax2_hangup: We're
hanging up IAX2/200-1 now...
[Feb 6 10:37:26] DEBUG[30934]: chan_iax2.c:3191 iax2_hangup: Really
destroying IAX2/200-1 now...
-- Hungup 'IAX2/200-1'
si me fijo en /var/log/messages:
Feb 6 11:25:28 aster FaxGetty[4280]: ANSWER: Can not lock modem
device
Feb 6 11:25:31 aster FaxGetty[4296]: MODEM
WWW.SOFT-SWITCH.ORG
spandsp/
si ejecuto faxstat en los momentos en que no atiende:
HylaFAX scheduler on aster: Running
Modem ttyIAX0 (+598.2.9086462): Waiting for modem to come free
Muchas Gracias por todo!!
Tania