On 4/13/2012 8:40 PM, Joegen Baclor wrote:
It should be easy enough to enable this feature in FS by enabling a custom dialplan to route back to the proxy for faxses. In the web interface, In the web interface, one can introduce a page that would do the following.

1.  Browse for a file (PDF)
2. Convert PDF to tiff using ImageMagic [ convert -density 204x98 -units PixelsPerInch -resize 1728x1186\! -monochrome -compress Fax txfax.pdf txfax.tiff] 3. Send an ESL command to FS to transmit the file [originate sofia/gateway/<gateway name>/<phone number> &txfax(/path_to_fax_file)]
I did a little experimenting and have been able to get trxfax working from a bash shell on the phone server:

File: fs_cli_txfax.sh

CLI=/opt/freeswitch/bin/fs_cli

TIF=/install/fax/txfax-sample.tiff

DEST=15555551212

DOMAIN=example.com

HEADER=Your Company Name

IDENT=Your Name

IM='convert -density 204x98 -units PixesPerInch -resize 1728x1186\! -monochrome -compress Fax 
"%1" "%2"'

#$CLI -x "sofia status"

#$CLI -x "sofia status profile $DOMAIN"

$CLI -x "originate 
{ignore_early_media=true,fax_header='$HEADER',fax_ident='$IDENT',absolute_codec_string='PCMU,PCMA',fax_enable_t38=true,fax_use_ecm=false,fax_enable_t38_request=true,proxy_media=false,bypass_media=false,fax_disable-v17=true}sofia/gateway/$DOMAIN/$DEST&txfax($TIF)"
 $DOMAIN

Now I just have to figure out if I want to do all the work to migrate the 
t38modem/hylafax server.


--
Regards
--------------------------------------
Gerald Drouillard
Technology Architect
Drouillard&  Associates, Inc.
http://www.Drouillard.biz

_______________________________________________
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to