[asterisk-users] Transfer to fax

Kevin P. Fleming kpfleming at digium.com
Tue Mar 13 16:45:18 CDT 2012

On 03/13/2012 04:18 PM, Mike Diehl wrote:
> So I'm still trying to get this to work... (I'm top posting, but the details
> are below, if you want/need background info)
> I'd like Asterisk to detect incoming faxes and redirect them elsewhere.  The
> details aren't important, as long as I get the detection working.
> I've added this to my sip.conf file.  Probably overkill, but I'll tune it once
> it works:
> [general]
> faxdetect=both

This will have no effect; see below.

> My sip registrations are all in a Mysql RT database, so I added this column to
> my table:
> faxdetect char(3) default 'no'
> I've set faxdetect to 'yes' for the devices that I expect to be receiving fax
> calls.

'faxdetect' is not a chan_sip configuration option (unlike chan_dahdi). 
It's a feature that can be enabled on a channel via the CHANNEL() 
dialplan function. In the dialplan itself, you'd use something like this:

exten => 1234,5,Set(CHANNEL(faxdetect)=yes)

To do this in a configuration file, so that it will be applied to 
channels as soon as they are created, use 'setvar':


I'm not sure how this would be done using Realtime configuration, but it 
should be possible. I'd encourage you to test it out using a 
non-Realtime peer first, just to make sure that it works the way you expect.

Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org

More information about the asterisk-users mailing list