[Freeswitch-users] Faxing Advice

Peter J. Zandvoort peter at cindyandpeter.com
Tue Dec 1 14:41:38 PST 2009

Just remove the terminating '/' at the end of the second condition tag....


<condition field="destination_number" expression="^(\d+)$">



From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Sent: Tuesday, December 01, 2009 5:23 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Faxing Advice



On Tue, Dec 1, 2009 at 2:09 PM, Joseph L. Casale <JCasale at activenetwerx.com>

>In this case, the $1 will only contain whatever is in the parens in your
expression, i.e.
><condition field="destination_number" expression="^(\d+)$">
>What do you have for your expression?

Well, untested of course as I am busy with school:) But what I wrote up to
try at
Christmas (with your addition) was:

<extension name="OutboundFax">
 <condition field="caller_id_number" expression="^204$"/>
 <condition field="destination_number" expression="^(\d+)$"/>
     <action application="answer"/>
     <action application="playback" data="silence_stream://2000"/>
     <action application="rxfax" data="/tmp/${uuid}.rxfax.tiff"/>

     <action application="system" data="/opt/freeswitch/scripts/emailfax.sh
$1 at fax.com /tmp/${uuid}.rxfax.tiff"/>

     <action application="hangup"/>

Am I correct in presuming that Freeswitch will answer a fax from a local zap
based user
just like it does from an FXO port connected to a POTS line? What I hope to
do here is
catch any call made from that extension (the zap based fax machine/user) and
push its
call into the fax module.

Yes, when a device (phone/fax/modem/whatever) is plugged into the FXS it
gets dialtone and dials. Whatever it dials is put into ${destination_number}
just like any SIP phone that dials. This extension looks ok. Try it out and
let us know how it goes.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091201/1131e3e6/attachment-0002.html 

More information about the FreeSWITCH-users mailing list