[Asterisk-Users] RxFax : Change FAX Resolution

Dushyanth Harinath dushyanth.h at directi.com
Wed Jan 4 06:08:12 MST 2006


Hello all,

Can this be done ?

Would setting the variable FAXRESOLUTION to a appropriate value affect
this change ?

> http://www.asteriskguru.com/tutorials/rxfax.html

Variables connected with the application

LOCALSTATIONID - used by to application to identify itself to the remote end
LOCALHEADERINFO - used to generate a header line on each page
REMOTESTATIONID - set by the application, the sender CSID
FAXPAGES - set the number of pages received
FAXBITRATE - set the transmission rate
FAXRESOLUTION - set the resolution

What is the format of setting FAX resolutions ? Currently when i receive
fax's i get the below in the logs.

[Jan  4 18:28:20] DEBUG[8206]:
==============================================================================
[Jan  4 18:28:20] DEBUG[8206]: Fax successfully received.
[Jan  4 18:28:20] DEBUG[8206]: Remote station id:
[Jan  4 18:28:20] DEBUG[8206]: Local station id:
[Jan  4 18:28:20] DEBUG[8206]: Pages transferred: 1
[Jan  4 18:28:20] DEBUG[8206]: Image resolution:  7700 x 3850
[Jan  4 18:28:20] DEBUG[8206]: Transfer Rate:     9600
[Jan  4 18:28:20] DEBUG[8206]:
==============================================================================

I tried changing the image resolution by doing below in my dial plan but
 still i get the same resolution as above.

[macro-faxreceive]
exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID})
exten => s,2,DBGet(EXTEMAIL=${MACRO_EXTEN}/Email)
exten => s,3,NoOP()
exten => s,4,DBGet(EXTNAME=${MACRO_EXTEN}/Name)
exten => s,5,NoOP()
exten => s,6,DBGet(EXTCOMPANY=${MACRO_EXTEN}/Company)
exten => s,7,SetVar(FAXRESOLUTION=6000 x 3000)
exten => s,8,rxfax(${FAXFILE}.tif|debug)
exten => s,103,SetVar(EXTEMAIL=faxbox at directi.com)
exten => s,104,Goto(7)
exten => s,105,SetVar(EXTNAME=Unknown)
exten => s,106,Goto(7)
exten => s,107,SetVar(EXTCOMPANY=Unknown)
exten => s,108,Goto(7)

Any ideas ?

TIA
dushyanth




More information about the asterisk-users mailing list