Fax extension not getting executed

I am trying to make asterisk (version 1.2.9) receive a fax but having problems. All configuration file snippets are appended.

Our asterisk fax number, 42692000 is being called from a fax machine. The moment we hear the voice prompt, we press the start button to send a fax. Asterisk log says “redirecting to fax extension” but the fax extension applications in the dialplan are not being executed.

thanx,
Sumit

zapata.conf

faxdetect=both

extensions.conf

exten => 42692000,1,Background(vm-enter-num-to-call)
exten => 42692000,n,ResponseTimeout(25)
exten => t,1,Dial(SIP/ciscoata2)
exten => t,2,Hangup()

exten => fax,1,Set(FAXFILE=/var/spool/asterisk/faxes/${CALLERIDNUM}.tif)
exten => fax,n,Set(FAXFILENOEXT=/var/spool/asterisk/faxes/${CALLERIDNUM})
exten => fax,n,rxfax(${FAXFILE})
exten => fax,n,System(’/usr/local/bin/fax2mail ${CALLERIDNUM} “${CALLERIDNAME}” FaxNum RecipName sumit@conferindia.com ${FAXFILENOEXT} p’)

Nobody has ever faced this problem before??

I have exactly the same problem. I am using asterisk 1.2.9.1 with spandsp 0.0.2

Any hint?

Thanks

you’re sure they aren’t being executed? did you put a NoOp in the fax extension to be sure? what context is the fax extension in?

Thanks dswartz.

I am pretty sure the fax extension is not executed. Please see my zapata.conf and extensions.conf for 2 tests. I am using asterisk 1.2.9.1 + spandsp 0.0.2 + TDM400p. Fax in via a FXO port on the TDM400p card.

zapata.conf for both tests

faxdetect=incoming
context=default

Test1 - Use answer() and redirect to fax extension. Fax extension does not work.
extensions.conf

[default]
exten => s,1,Answer()
exten => s,2,Set(TIMEOUT(absolute)=300)
exten => fax,1,rxfax(/tmp/test.tif)

Asterisk output

-- Executing Answer("Zap/4-1", "") in new stack
-- Executing Set("Zap/4-1", "TIMEOUT(absolute)=300") in new stack
-- Channel will hangup at 2006-06-26 15:58:34 UTC.
-- Redirecting Zap/4-1 to fax extension

Jun 26 23:53:47 WARNING[1705]: pbx.c:2405 __ast_pbx_run: Timeout, but no rule ‘t’ in context ‘incoming’
– Hungup ‘Zap/4-1’

Test2 - Use rxfax directly without using fax extension. Fax received perfectly.
extensions.conf

[default]
exten => s,1,rxfax(/tmp/test.tif)

I’ve also tried asterisk 1.2.2 + spandsp 0.0.2 but with no luck. Any idea?

thanks in advance.
Barry

weird. works for me. i’ll look at my setup when i get home…

I’ve tested the incoming fax to email funciton in A@H 2.8. It works.

Thanks, but I am not using A@H. I am using debian 3.1 (2.4.27) + asterisk 1.2.9.1 + spandsp 0.0.2.

can’t help then. i use AAH and it works out of the box sorry :frowning:

No problem.

I will give A@H a try, but I heard A@H is now changed to trixbox.org

Thanks anyway.

I happen to fix it by trial and error. All I need to do is to change the timeout setting and add a wait application.

[default]
exten => s,1,Answer()
exten => s,2,Set(TIMEOUT(absolute)=300)
exten => fax,1,rxfax(/tmp/test.tif)

Change to

[default]
exten => s,1,Answer()
exten => s,2,Set(TIMEOUT(response)=10)
exten => s,3,Wait(5)
exten => fax,1,rxfax(/tmp/test.tif)

Hope this helps.

N.B. I cannot install A@H or Trixbox. I don’t know why… may due to fact that I am using a VIA C3 processor instead of an Intel…

Cheers,

oh, fooey. yeah, that’s right. you need like a 3-second wait to give rxfax a chance to detect the tones.