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? -- #Joseph
Gilad Ben-Yossef
2004-Dec-06 02:23 UTC
[Asterisk-Users] BLOCKING incoming FAXES on voice line.
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@codefidence.com> Codefidence. A name you can trust(tm) Web: http://codefidence.com | SIP: gilad@pbx.codefidence.com Tel: +972.9.8650475 ext. 201 | Fax: +972.9.8850643 "I am Jack's Overwritten Stack Pointer" -- Hackers Club, the movie
On Sat, 2004-12-04 at 19:21 -0700, 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?On zap interfaces enable the fax detect in zaptel.conf and the create a fax extension which just hangs up. -- Dave Cotton <dcotton@linuxautrement.com>
Stefan Tichy
2004-Dec-06 08:07 UTC
[Asterisk-Users] Re: BLOCKING incoming FAXES on voice line.
On Sat, Dec 04, 2004 at 07:21:03PM -0700, Joseph wrote:> Is there a way to block call / issue hangup command if the incoming call > is a fax?"Asterisk as a fax/voice switch" documentation can be found at http://www.voip-info.org/wiki-Asterisk+fax -- Stefan Tichy <asterisk@pi4tel.de>
Steve Murphy
2004-Dec-06 08:33 UTC
[Asterisk-Users] Re: BLOCKING incoming FAXES on voice line.
> 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? > > -- > #JosephTry the "fax" extension in your extensions.conf file: exten => fax,1,Dial(Zap/4) or exten => fax,1,Hangup>From the sounds of it, you don't have any menu for the incoming caller?They come straight to your phone? You'll have to put in a menu now for the incoming callers, play an announcement, etc. The result: No more faxes. No more telemarketers (mostly). Your customers/coworkers have to dial 1 or something else creative to reach you, which hopefully isn't too much trouble. So, your incoming menu goes from something like this: [incomingcall] exten => s,1,Answer exten => s,2,Dial(x) exten => s,3,Voicemail(u1) ; If unavailable, send to voicemail ... exten => s,103,Voicemail(b1) ; If busy, send to voicemail ... Now, you COULD try just adding the fax extension, and not including a menu. The trouble is, though, that unless the fax tone sounds right away, asterisk will go straight to the dial before the fax tone is heard. You might be able to insert a few seconds delay to allow the fax tone a chance to be heard... but... I've never tried this, and it might not work... [incomingcall] exten => s,1,Answer exten => s,2,Wait(2) ; remem, callers sit with blank line... wondering.. exten => s,2,Dial(x) exten => s,3,Voicemail(u1) ; If unavailable, send to voicemail ... exten => s,103,Voicemail(b1) ; If busy, send to voicemail ... exten => fax,1,Hangup Barring this, you can do the menu: Your context now goes to: [incomingcall] exten => s,1,Answer exten => s,2,Background,incoming-caller-announcements-sound-file exten => 1,2,Dial(x) exten => 1,3,Voicemail(u1) ; If unavailable, send to voicemail ... exten => 1,103,Voicemail(b1) ; If busy, send to voicemail ... exten => fax,1,Hangup exten => t,1,Goto(incomingcall,s,2) ; can't think of something to dial? exten => i,1,Background,you-have-not-chosen-wisely-announcement-snd-file exten => i,2,Goto(s,2) ; shorter version of above exten => o,1,Congestion ... or whatever. murf -- Steve Murphy <murf@e-tools.com> Electronic Tools Company
Wilson Pickett
2004-Dec-06 09:35 UTC
[Asterisk-Users] BLOCKING incoming FAXES on voice line.
> Is there a way to block call / issue hangup command if the incoming call > is a fax?Look for faxdetect=incoming in zapata.conf and then put a fax extension and do whatever you want there. If you were sure they were junk faxes, you could maybe tie up the machine for a few minutes each time, especially late at night. I hate junk faxes!
Possibly Parallel Threads
- How do I match a "D"? (Was: RE: In-band disc onn ect problem (legacy PBX) - asterisk doesn't hear the touchtone?)
- redhat9 100% CPU
- how to call s extension from SIP phone?
- Memory Consumption
- How do I match a "D"? (Was: RE: In-band disconn ect problem (legacy PBX) - asterisk doesn't hear the touchtone?)