[Asterisk-Users] Receiving faxes with spandsp - strange problem

Bartosz Jozwiak bartek at cq-link.sr
Wed Feb 1 12:28:38 MST 2006


> I'm trying to receive faxes with asterisk. My configuration is like this:
>
> PSTN fax -> ISDN -> Cisco router with VoIP module -> Asterisk
>
> When I try to send a fax from PSTN fax I got the standard fax signal, 
> Asterisk starts rxfax application and then call ends and there is no tif 
> anywhere. On the fax display there is still one message: Calling...
>
> Part of my extensions.conf:
>
> [incoming]
>   exten => 2933975,1,Goto(fax,2201,1)
>
> [fax]
>   exten => 2201,1,Macro(faxreceive)
>
> [macro-faxreceive]
>   exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
>   exten => s,2,DBGet(EMAILADDR=extensionemail/${MACRO_EXTEN})
>   exten => s,3,rxfax(${FAXFILE})
>   exten => s,4,Congestion
>   exten => s,103,SetVar(EMAILADDR=defaultuser at example.com)
>   exten => s,104,Goto(3)
>
> 2933975 is the number on which asterisk should listen for new faxes and it 
> works (in a way that rxfax is being run).
>
> Info from asterisk console:
>
>     -- Executing Goto("SIP/62.111.174.65-f67004d0", "fax|2201|1") in new 
> stack
>     -- Goto (fax,2201,1)
>     -- Executing Macro("SIP/62.111.174.65-f67004d0", "faxreceive") in new 
> stack
>     -- Executing SetVar("SIP/62.111.174.65-f67004d0", 
> "FAXFILE=/var/spool/asterisk/fax/1138819786.1.tif") in new stack
>     -- Executing DBget("SIP/62.111.174.65-f67004d0", 
> "EMAILADDR=extensionemail/2201") in new stack
>     -- DBget: varname=EMAILADDR, family=extensionemail, key=2201
>     -- DBget: set variable EMAILADDR to bpiec at softhis.com
>     -- Executing RxFAX("SIP/62.111.174.65-f67004d0", 
> "/var/spool/asterisk/fax/1138819786.1.tif") in new stack
>
> And that's all. Fax disconnects and there is no 
> /var/spool/asterisk/fax/1138819786.1.tif file. What can be wrong?
>
> I saw that people are using 'fax' in extensions.conf (exten => 
> fax,1,rxfax(${FAXFILE})). When this can be used? It isn't working for 
> me...
>
> Maybe it is an issue with Cisco router configuration? Normal calls (not 
> faxes) from PSTN lines work great...
>
> I have installed asterisk 1.2.4 and spandsp 0.0.2pre23.
>

I have almost the same configuration like you.
Everything works 100% except I do not have Cisco in between.
I use TDM400 FXO card.
Check if rxfax actually receives anything...

Bartosz 




More information about the asterisk-users mailing list