[asterisk-users] Too Few Fax Detections

2011-01-06 Thread Thomas Rymes
OK, after my last message about fax detection, I feel a bit better informed and 
able to press forward. I started looking into this because I was getting lots 
of false positive fax detection errors in the logs with faxdetect=both set in 
chan_dahdi.conf.

Anyhow, I do not currently use fax detection, and we have a dedicated Fax DID 
on our PRI, so setting faxdetect=no works fine. Having said that, I would like 
to sort it out as I may want to use fax detection in the future. Unfortunately, 
I seem to be having odd results. I set faxdetect=incoming last night and 
restarted dahdi and asterisk. Since that time, we have received 17 faxes, but I 
only have three fax detections in my asterisk log, so far as I can tell:

# grep -i fax /var/log/asterisk/full
[Jan  5 05:53:39] NOTICE[6686] chan_dahdi.c: Fax detected, but no fax extension
[Jan  5 10:24:27] NOTICE[11834] chan_dahdi.c: Fax detected, but no fax extension
[Jan  5 11:48:52] NOTICE[13804] chan_dahdi.c: Fax detected, but no fax extension

All three calls listed are indeed fax calls, and since there is no fax 
extension in that context, the call just proceeds along as if nothing happened 
(which is appropriate). 

My question is this: If I have received 17 faxes since enabling fax detection, 
shouldn't I see ~17 entries in the log?

Assuming the answer to that question is yes, what might be causing the system 
to not detect faxes on the other 14 calls?

Many thanks,

Tom
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] MOH problems (asterisk 1.4.38)

2011-01-04 Thread Thomas Rymes
On Jan 4, 2011, at 8:49 PM, Earl Terwilliger wrote:

 On Tuesday, January 04, 2011 04:37:21 pm Tom Rymes wrote:
 On 01/04/2011 12:31 PM, Earl Terwilliger wrote:
 Hi list,
 
 I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and
 am getting this error :
 
 WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No
 such file or directory
 
 [snip]
 
 Have you installed mpg123 or some other program to handle the mp3 files?
 I am fairly certain that Asterisk cannot handle mp3 natively (most
 likely for licensing reasons).
 
 Tom
 
 Hi Tom
 
 that was my next step if i could not find a way to just play the wav files.
 I re-booted the server and that seems to have fixed whatever problem was 
 causing this. stopping and starting asterisk had no affect.
 
 earl

Ah. I got the impression that you were trying to play MP3 files. I would not 
recommend that you use MP3 instead of WAV, though.

Tom
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Clarification on DAHDI Fax Detection

2011-01-04 Thread Thomas Rymes
On Jan 4, 2011, at 7:37 PM, Steve Underwood wrote:

 It is very normal for many people to chat and then start their FAX machines, 
 especially domestic FAX users with a FAX machine attached to their home land 
 line. If you don't care about those your proposal is OK, otherwise.

Well, I was suggesting an OPTION to disable the detection after a specified 
period, so anyone who wishes to do as you describe could just leave the setting 
to indefinite if they wished. Having said that, I don't think that sort of 
behavior is particularly common anymore. More importantly, I would argue that 
practically all users doing that are, as you mention, using a phone connected 
to a fax machine, eliminating the usual needs for sending the call to the fax 
extension. 

Either way, if defined as an option, users could choose how they wanted it to 
work.

 There is no excuse for false detection of FAX tone. It takes a very poor 
 detector to mistake voice for FAX, unless the person is specifically trying 
 to whistle the right tones (which some people are quite good at).

While that might be true, false detections are anything but unheard of, so 
being able to disable detection after the first few moments of a call might be 
useful. 

Tom
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Clarification on DAHDI Fax Detection

2011-01-03 Thread Thomas Rymes
On Jan 3, 2011, at 3:22 PM, Kevin P. Fleming wrote:

 On 01/03/2011 11:26 AM, Tom Rymes wrote:

[snip]

 1.) Echo cancellation is automatically disabled upon recognition of a
 CNG tone, regardless of the faxdetect setting. This can only be disabled
 at compile time.
 
 No. CNG tone is never used to affect the state of an echo canceller. All 
 G.168 compliant echo cancellers will respond to the CED tone (generated by 
 the answering endpoint) and will reconfigure the echo canceller 
 appropriately. Most modern ECs will *not* be disabled, but will enter a 
 'linear' mode where they can do some echo suppression but not complete 
 cancellation. DAHDI will detect CED when most software echo cancellers are in 
 use and will disable them (since none of the available software ECs can go 
 into linear mode). The Digium HPEC software EC will detect CED on its own and 
 enter linear mode.

OK. Either way, though, the changes to echo cancellation are not affected by 
the faxdetect setting, right?

 2.) faxdetect=incoming will, upon detection of a CNG tone, send the call
 to the fax extension.
 
 If the CNG tone arrives from the network side of the DAHDI channel (the far 
 endpoint), then yes.

Great. This is the typical usage, I presume, directing fax machines to FFA, 
Hylafax, another fax machine, or hangup (if this isn't a fax line). 

Is there a time limit to when DAHDI listens for faxes (say the first 10 seconds 
of a call?), or might it detect one in the middle of a ten minute call?

 3.) faxdetect=outgoing will ??
 
 The same thing, but if the CNG tone is being sent towards the DAHDI channel 
 (from the near endpoint). This is rarely used.

[snip]

I figured that must be it. Presumedly you might use this to perform some 
activity on an outgoing fax prior to sending it, such as logging something, 
etc? Maybe send it to FFA, receive it, and e-mail it to another server that 
faxes it out on a local number to save toll calls, etc?

Thanks for the clarification, there's a lot of conflicting info out there.

Tom


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users