[Asterisk-Users] Fax detection

Walker Haddock whaddock at datacrest.com
Wed Dec 17 06:28:31 MST 2003

On Wed, Dec 17, 2003 at 05:34:43PM +1100, Alexander Romanov wrote:
> Is there any way to turn off fax detection?

You can modify the chan_zap.c code to disable it.  Martin patched my source and it solved the problem for me.  Credit to the great Digium support team!

in the CVS-09/24/03-20:51:12 built by root at asterisk on a i686 running Linux that I have the patch on, here's the change:

3453                    /* Fax tone -- Handle and return NULL */
3454                    if (!p->faxhandled) {
3455                            p->faxhandled++;
3456                            if (strcmp(ast->exten, "fax")) {
3457                                    if (ast_exists_extension(ast, ast->context, "fax", 1, ast->callerid)) {

Change to this:
3457                                    if (0 && ast_exists_extension(ast, ast->context, "fax", 1, ast->callerid)) {

Note, I added the line numbers, they aren't in the source.

After you do this, cd /usr/src/asterisk
make clean ; make install

You will have to stop asterisk and reload your zap drivers, restart * and you will no longer have fax detection.  Actually, you will still see the fax signals in the logs, but * will not try to change to the fax extension.

********   DataCrest, Inc. -- Technically Superior   ******************
Walker Haddock                       http://www.datacrest.com
DataCrest, Inc.                    e-mail:  wh at datacrest.com
1634A Montgomery Hwy.    phone:  1-888-941-3282, 1-205-335-8589
Birmingham, AL 35216                  fax:  1-205-823-7838

More information about the asterisk-users mailing list