[Home]

Summary:ASTERISK-02221: [patch] Implement fax detection for SIP calls.
Reporter:fwittekind (fwittekind)Labels:
Date Opened:2004-08-13 10:43:35Date Closed:2011-06-07 14:05:19
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk-1.0-RC1-sip-fax-detect2.patch
Description:Adds faxmode sip.conf option, and SIPFaxMode application, supports rfc2833 or inband for parameter.  Similar in function to dtmfmode option.

****** ADDITIONAL INFORMATION ******

The rfc2833 piece I was unable to test, since none of the equipment on my networks sends the fax tone as rfc2833.  My current config has dtmfmode set to rfc2833, and faxmode set to inband, which allows me to take advantage of the added reliablity of rfc2833 for my dtmf detection, and still use the Asterisk dsp for fax tone detection, and then turn off fax tone detection mid call, to save cpu cycles.
Comments:By: fwittekind (fwittekind) 2004-08-13 10:57:34

sip.conf example:

[Provider]
type=peer
username=XXXXX
secret=XXXXX
host=xxxxx.FakeProvider.com
dtmfmode=rfc2833
faxmode=inband

extensions.conf example: (untested) I use this in a AGI script myself.
the timeout value may need to be adjusted.

exten => s,1,Answer
exten => s,2,ResponseTimeout(5)
exten => s,3,SIPFaxMode(inband)
exten => s,4,read(FAXDETECT||1|)
exten => s,5,GotoIf($["${FAXDETECT}" = "f"]?6:7)
exten => s,6,Goto(fax,1)
exten => s,7,NOOP(Not a fax call)

edited on: 08-13-04 10:58

By: Brian West (bkw918) 2004-08-22 23:12:44

Disclaimed?  And any update to CVS?

By: Mark Spencer (markster) 2004-09-15 15:31:07

Please submit a disclaimer or confirm that you already have in order to have this patch merged, otherwise, we'll have to close out the bug.  Thanks.

By: Mark Spencer (markster) 2004-10-01 23:09:35

Unfortunately we're not able to use this without a disclaimer.  Feel free to reopen if you can submit one.  Thanks.