[Asterisk-Users] BLOCKING incoming FAXES on voice line.

Gilad Ben-Yossef gilad at codefidence.com
Mon Dec 6 02:23:25 MST 2004


Joseph wrote:
> At time to time somebody is trying "their luck" and send me most likely
> a junk fax on my voice line.  During normal working hours is not a
> problem I just pickup the line and hangup the call but after-hours my
> voice mailbox is intercepting the call and recording those
> "beeps" (waisting my CPU cycles).
> 
> Is there a way to block call / issue hangup command if the incoming call
> is a fax?
> 

Assuming you're getting the calls on some sort of a Zap channel, then in 
the same context where your extention is defined, add:

exten => fax,1,Hangup

or even better yet:

exten => fax,1,Background(if-this-really-is-a-human-please-press-1)
exten => fax,2,Hangup

You must also have:

faxdetect=incoming

In zaptel.conf for this to work.

Hope this helps,
Gilad

-- 
Gilad Ben-Yossef <gilad at codefidence.com>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: gilad at pbx.codefidence.com
Tel: +972.9.8650475 ext. 201 | Fax:  +972.9.8850643

"I am Jack's Overwritten Stack Pointer"
	-- Hackers Club, the movie



More information about the asterisk-users mailing list