Huge thanks to Joshua Colp for mirroring services

Asterisk-Users: chan_capi patch : fax support

Share on Twitter Digg this story Click to view a printable version Thu, 4 Nov 2004 16:49:46 -0500

Carl has posted a patch to get fax working over chan_capi:

Hello,

For those of you who have a CAPI card with an on-board DSP (like some Eicon Diva Server), this patch allows you to receive faxes. If you want to answer a channel in fax mode, use capiAnswerFax() instead of Answer()
If you use Answer(), you will be in voice mode. If the hardware DSP detects a fax tone, you can switch from voice to fax mode by calling capiAnswerFax().

Example of use :
line number 123, play something, if a fax tone is detected, handle it
line number 124, answer directly in fax mode

[incoming]
exten => 123,1,Answer()
exten => 123,2,BackGround(jpop)
exten => 124,1,Goto(handle_fax,s,1)
exten => fax,1,Goto(handle_fax,s,1)

[handle_fax]
exten => s,1,capiAnswerFax(/tmp/${UNIQUEID})
exten => s,2,Hangup()
exten => h,1,deadagi,fax.php // Run sfftobmp and mail it.

The output of capiAnswerFax is a SFF file. Use sfftobmp to convert it. With a Diva Server, theses features are allowed : fax up to 33600, high resolution. Color Fax /JPEG Compression is disabled (I can't test it).

You can download the patch at :
chan_capi-0.3.5-patch.tar.bz2

A fix for a dead lock issue is also included (Oct 22 18:06:00 WARNING[11275]: channel.c:472 ast_channel_walk_locked: Avoided initial deadlock for 'CAPI[contr1/173720007]/7', 10 retries!)

--

Carl


You haven't voted yet! Vote:
Current Rating: 0/10 (0 votes)

Comments (Click to post)

Comments
Name:
Subject:
Website:
Message: 

Similar Articles (Based on Title)

Asterisk-Users Post: [bkw] - September 19, 2004
This is the full news entry: bkw posted to the asterisk-users mailing list: Just an FYI localmask is deprecated... As of latest CVS: localnet=ip/mask bkw

RSS feed Asterisk-Users - April 29, 2005
Sjaak has posted details of an RSS feed he has created for the Asterisk-Users and Biz lists.

Asterisk-Dev: patch for chan_capi to compile with latest CVS - November 18, 2004
Frank Sautter has created a patch to allow chan_capi-0.3.5 to compile against CVS-HEAD and adds capiAnswerFax patch

chan_capi patch for the new cvs HEAD - March 12, 2005
Sergio has posted details of a new patched version of chan_capi for CVS HEAD.

*-Dev: Asterisk 1.0.4 and more ... - January 20, 2005
drumkilla has posted details of the release of version 1.0.4 of Asterisk!

New Asterisk WEB Interface ( astwebmgr ) - November 12, 2005
Earl Terwilliger has posted details of a new web gui for Asterisk.

Nerd Vittles: Introducing the Cisco 7970 WonderPhone ... Or Is It - October 19, 2006
Nerd Vittles today provides a soup-to-nuts review and guide to installing and using and Ciscos new color IP telephone with Asterisk.

Nerd Vittles: No Asterisk on Cruise Ships ... Yet - April 11, 2007
Ward Mundy has posted a writeup on Asterisk on Cruise Ships.

Slashdot: FBI Vaguely Warns of Asterisk Vishing Vulnerability - December 7, 2008
There is a somewhat strange post on Slashdot about FBI warning people about Asterisk.

RazorQuotePBP Asterisk Payment Module - August 31, 2010
RazorQuote has sent us a press release about the launch of RazorQuotePBP, a native Asterisk module that allows any Asterisk connected device to accept credit card payments.

*-Dev: Bounty IAX Fax Tone Detection - March 14, 2005
Justin has posted details of two apps from Newman Telecom. NVFaxDetect and NVBackgroundDetect.

GLSA 200610-05: CAPI4Hylafax fax receiver: Execution of arbitrary code - October 20, 2006
There was a release on the bugtraq mailing list about a security vulnerability in CAPI4Hylafax. While not directly Asterisk related, it is used on quite a few systems that use Asterisk.

Xorcom: Finally a real fax and modem solution for Asterisk - August 1, 2007
Xorcom has posted details of their new PLL based telephony which enables fax and modem traffic to pass through Asterisk.

State of FAX (primarily T.38) in Asterisk trunk (planning for 1.8 release) - December 4, 2009
Kevin Fleming has written up a description of where fax is at in Asterisk.


Original Content (C) 2004-2010 Matt Riddell
Back 5  Feed Add
to
Google Subscribe with Bloglines
Go to today

Icons by: FastIcon.com


AstriDevCon: October 29th, Washington DC
August 23, 2010 Average Vote: 10
John Todd has posted a note about the AstriDevCon conference which occurs within the Astricon conference.

Code Review: SRTP support for Asterisk
March 12, 2009 Average Vote: 10
Terry Wilson has moved his SRTP branch onto the Digium review board.

The Everything Asterisk Video Collection
August 5, 2010 Average Vote: 10
Steven Sokol has posted a blog entry on Asterisk Video Resources.

Voip-Forum: Lots of new articles
March 12, 2005 Average Vote: 10
Oej's Voip-Forum.com site has posted lots of new news articles while I've been away. Hopefully you found them via the asterisk-docs site. If not I've bookmarked them for you.

Interview with Mark Spencer
November 26, 2004 Average Vote: 9.9
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.

Asterisk and Kamailio realtime integration tutorial
May 24, 2010 Average Vote: 9.9
Daniel-Constantin Mierla has posted a link to a tutorial on integrating Asterisk and Kamailio using realtime.

Asterisk and Kamailio (openser) realtime integration
August 5, 2010 Average Vote: 9.8
Daniel-Constantin Mierla posted a writeup on combining Asterisk and Kamailio.

Asterisk IPv6 update
February 1, 2010 Average Vote: 9.8
Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.

Proposal for T.38 transparent gateway design in Asterisk
April 29, 2010 Average Vote: 9.8
Kevin Fleming has posted a proposed design for a transparent T.38 gateway for Asterisk:

Back to life
July 21, 2010 Average Vote: 9.8
Hey all - I am back online after some pretty big projects which have taken all my time. Will be updating the Asterisk news over the next few days.

Announcing Adhearsion 0.8.5
August 25, 2010 Average Vote: 9.8
Ben Klang has posted a note about the latest release of Adhearsion - a framework for developing Asterisk based solutions using Ruby.

app_swift v2.0 released
July 21, 2010 Average Vote: 9.8
Like a few of these news stories that I will be posting over the next couple of days this is a little old - hope it is not something you have already seen. This one is for a new version of the app_swift text-to-speech module for Asterisk 1.2, 1.4, and 1.6.

Monitoring Asterisk with Munin
January 7, 2010 Average Vote: 9.7
I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.

GUI changes from Trixbox, FreePBX, 2600hz, BlueBox
September 1, 2010 Average Vote: 9.7
Ok, bear with me on this one. If you understand all the ramifications, FreePBX has split to a new project called BlueBox contained within the 2600hz project. This obviously has implications for Trixbox that uses FreePBX to provide quite a bit of functionality.

Nerd Vittles: Finally... Installing Asterisk at Home on Your Windows PC
February 9, 2006 Average Vote: 9.7
Ward Mundy has posted details of a how to for installing Asterisk at Home on a windows machine without removing windows.


Asterisk 1.8.0-beta5 Now Available
September 9, 2010
The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta5.

libpri 1.4.11.4 Now Available
September 3, 2010
The Asterisk Development Team has announced the release of libpri 1.4.11.4.

New CDR Stats Package
September 1, 2010
This one has been a long time coming. A new CDR stats package from Star2Billing to replace the 7 year old stalwart for viewing Asterisk call detail records.

GUI changes from Trixbox, FreePBX, 2600hz, BlueBox
September 1, 2010
Ok, bear with me on this one. If you understand all the ramifications, FreePBX has split to a new project called BlueBox contained within the 2600hz project. This obviously has implications for Trixbox that uses FreePBX to provide quite a bit of functionality.

RazorQuotePBP Asterisk Payment Module
August 31, 2010
RazorQuote has sent us a press release about the launch of RazorQuotePBP, a native Asterisk module that allows any Asterisk connected device to accept credit card payments.

CloudVox: Install an open source Asterisk phone app and get 250 dollars
August 30, 2010
CloudVox is running a competition for people to receive 250 dollars for writing up some documentation for Open Source applications on CloudVox - first in first served.

AstriCon approaches
August 25, 2010
John Todd has posted a note about the upcoming AstriCon conference in Washington, DC, and the innovation awards.

Announcing Adhearsion 0.8.5
August 25, 2010
Ben Klang has posted a note about the latest release of Adhearsion - a framework for developing Asterisk based solutions using Ruby.

Asterisk 1.8.0-beta4 Now Available
August 25, 2010
The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta4.

AstriDevCon: October 29th, Washington DC
August 23, 2010
John Todd has posted a note about the AstriDevCon conference which occurs within the Astricon conference.