Hi, some days ago we discused here the need for an analyzer for the 1000 Hz tone, as opposite application to Milliwatt. Here it is: Mwanalyze http://planinternet.net/download/voip/asterisk/app_mwanalyze.c It performs a Fourier analysis for a fixed frequency and tells the amplitude. The frequency is not limited to 1000 Hz, but can be passed as argument. The periode duration must be a mulitple of 0.5 ms, thus the valid frequences are: 2000 Hz, 1000 Hz, 666.666666667 Hz, 500 Hz, ... Furthermore the application computes the ripple on that tone. In order to detect audiogaps and short noise on the line, one can define a treshold and a timeslice duration (typically 1s to 0.1s), and the application will compute the ripple for each timeslice and count the timeslices with a ripple greater than the given treshold. Thus the application is a tool to verify the line quality, e.g. for least-cost-but-not-too-bad-line routings. For conveniance Mwanalyze also generates a tone of the frequency it analyzes. Thus a bidirectional operation, and test for frequencies other than Milliwatt's 1000 Hz are possible. Anyway Milliwatt is much much more economic to CPU and RAM! For details see inline documenation or output while loading the module app_mwanalyze.so! Now, I will try to contact to dev-list, in order to put this application to future releases. Roger.
Great, Thank you for contributing! They best thing to do would be open up a isue on the bugtracker. http://bugs.digium.com Go ahead and add this as well as any other info. I would do this but you as the author need to do it.> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Roger Schreiter > Sent: Thursday, March 02, 2006 5:50 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] Milliwatt Analyzer available > > Hi, > > some days ago we discused here the need for an analyzer for > the 1000 Hz tone, as opposite application to Milliwatt. > > Here it is: Mwanalyze > http://planinternet.net/download/voip/asterisk/app_mwanalyze.c > > It performs a Fourier analysis for a fixed frequency and > tells the amplitude. > > The frequency is not limited to 1000 Hz, but can be passed as > argument. The periode duration must be a mulitple of 0.5 ms, > thus the valid frequences are: 2000 Hz, 1000 Hz, > 666.666666667 Hz, 500 Hz, ... > > Furthermore the application computes the ripple on that tone. > In order to detect audiogaps and short noise on the line, one > can define a treshold and a timeslice duration (typically 1s > to 0.1s), and the application will compute the ripple for > each timeslice and count the timeslices with a ripple greater > than the given treshold. > > Thus the application is a tool to verify the line quality, > e.g. for least-cost-but-not-too-bad-line routings. > > For conveniance Mwanalyze also generates a tone of the > frequency it analyzes. Thus a bidirectional operation, and > test for frequencies other than Milliwatt's 1000 Hz are > possible. Anyway Milliwatt is much much more economic to CPU and RAM! > > > For details see inline documenation or output while loading > the module app_mwanalyze.so! > > > Now, I will try to contact to dev-list, in order to put this > application to future releases. > > > Roger. > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Juan Carlos Castro y Castro
2006-Mar-02 09:09 UTC
[Asterisk-Users] Re: Milliwatt Analyzer available
<SPAN class=quoted1>Could I use this to distinguish human voices from machine beeps and/or ambient noise etc, by (after a few adaptations) calling it a number of times on the same set of samples with some representative set of frequencies? Or is there a better, less CPU-torturing way to do that?<BR><BR>> -----Original Message-----</SPAN><BR><SPAN class=quoted1>> From: asterisk-users-bounces@lists.digium.com</SPAN><BR><SPAN class=quoted1>> [mailto:<A class=fixed onmouseover="status=''Compor Mensagem (asterisk-users-bounces@lists.digium.com)''; return true;" onmouseout="status='''';" href="javascript:open_compose_win(''popup=1&to=asterisk-users-bounces%40lists.digium.com&cc=&bcc=&msg=&subject=&thismailbox=INBOX'');">asterisk-users-bounces@lists.digium.com</A>] On Behalf Of </SPAN><BR><SPAN class=quoted1>> Roger Schreiter</SPAN><BR><SPAN class=quoted1>> Sent: Thursday, March 02, 2006 5:50 AM</SPAN><BR><SPAN class=quoted1>> To: Asterisk Users Mailing List - Non-Commercial Discussion</SPAN><BR><SPAN class=quoted1>> Subject: [Asterisk-Users] Milliwatt Analyzer available</SPAN><BR><SPAN class=quoted1>> </SPAN><BR><SPAN class=quoted1>> Hi,</SPAN><BR><SPAN class=quoted1>> </SPAN><BR><SPAN class=quoted1>> some days ago we discused here the need for an analyzer for</SPAN><BR><SPAN class=quoted1>> the 1000 Hz tone, as opposite application to Milliwatt.</SPAN><BR><SPAN class=quoted1>> </SPAN><BR><SPAN class=quoted1>> Here it is: Mwanalyze </SPAN><BR><SPAN class=quoted1>> <A class=fixed href="https://webmail.moebius.com.br/util/go.php?url=http%3A%2F%2Fplaninternet.net%2Fdownload%2Fvoip%2Fasterisk%2Fapp_mwanalyze.c&Horde=e627900c3463e0a83f6492865c62b0c5" target=_blank>http://planinternet.net/download/voip/asterisk/app_mwanalyze.c</A></SPAN><BR><SPAN class=quoted1>> </SPAN><BR><SPAN class=quoted1>> It performs a Fourier analysis for a fixed frequency and</SPAN><BR><SPAN class=quoted1>> tells the amplitude.</SPAN><BR><SPAN class=quoted1>> </SPAN><BR><SPAN class=quoted1>> The frequency is not limited to 1000 Hz, but can be passed as</SPAN><BR><SPAN class=quoted1>> argument. The periode duration must be a mulitple of 0.5 ms, </SPAN><BR><SPAN class=quoted1>> thus the valid frequences are: 2000 Hz, 1000 Hz, </SPAN><BR><SPAN class=quoted1>> 666.666666667 Hz, 500 Hz, ...</SPAN><BR /> <BR /> __________________________________________________________<BR /> Mensagem enviada usando o Webmail da ViaLink ver. 2.7.8<BR />
Juan Carlos Castro y Castro schrieb:> Could I use this to distinguish human voices from machine beeps and/or > ambient noise etc, by (after a few adaptations) calling it a number of > times on the same set of samples with some representative set of > frequencies? Or is there a better, less CPU-torturing way to do that?Hi, I doubt, Mwanalyze will be versatile enough for that. I think, that would be another project. The only case, you could profit from Mwanalyze for your purpose, would be, if the machine noice/beep/tone will have _either_ a lot _or_ none portion of exectly one of the frequencies supported by Mwanalyze. Mwanalyze will e.g. tell you, that you have an amplitude of 300 (slin) of 500 Hz and a rest of another 10000 (slin). This would be an indicator for a synthetic 500 Hz tone. Whereas a 500 Hz amplitude of 0 would be an indicator for the absence of natural voice sources. Maybe under certain conditions this will be sufficient for your purpose. In general you will need a spectral analysis of (almost) the whole auditible spectral range. Roger.
Roger, Thank you very much for this valuable contribution. In my opinion, this is a great candidate for asterisk-addons. Sincerely, Matthew Roth InterMedia Marketing Solutions Software Engineer and Systems Developer Roger Schreiter wrote:> Hi, > > some days ago we discused here the need for an analyzer > for the 1000 Hz tone, as opposite application to Milliwatt. > > Here it is: Mwanalyze > http://planinternet.net/download/voip/asterisk/app_mwanalyze.c > > It performs a Fourier analysis for a fixed frequency > and tells the amplitude. > > The frequency is not limited to 1000 Hz, but can be passed > as argument. The periode duration must be a mulitple of 0.5 ms, > thus the valid frequences are: 2000 Hz, 1000 Hz, 666.666666667 Hz, > 500 Hz, ... > > Furthermore the application computes the ripple on that tone. > In order to detect audiogaps and short noise on the line, one can > define a treshold and a timeslice duration (typically 1s to 0.1s), and > the application will compute the ripple for each timeslice and count the > timeslices with a ripple greater than the given treshold. > > Thus the application is a tool to verify the line quality, e.g. for > least-cost-but-not-too-bad-line routings. > > For conveniance Mwanalyze also generates a tone of the frequency it > analyzes. Thus a bidirectional operation, and test for frequencies > other than Milliwatt's 1000 Hz are possible. Anyway Milliwatt is much > much more economic to CPU and RAM! > > > For details see inline documenation or output while loading > the module app_mwanalyze.so! > > > Now, I will try to contact to dev-list, in order to put this > application to future releases. > > > Roger.
Hi, I need some basic help to get going. I have done the following in extensions.conf on * machine #1 to use mwanalyze for incoming calls: --snip-- ; Mwanalyze exten => 31,1,Answer exten => 31,2,Mwanalyze(8|8000|10|328) exten => 31,3,NoOp(${mwa_ampitude}) exten => 31,4,NoOp(${mwa_ripple}) exten => 31,5,NoOp(${mwa_bad_timeslices}) --snip-- On * machine #2, I've put the following file in /var/spool/asterisk/outgoing with filename 2026.ext.31.call --snip-- channel: SIP/31@<machine name> maxretries: 3 retrytime: 60 waittime: 60 callerid: "foo" <123> application: Milliwatt data: --snip-- But that doesn't work--mwanalyze never hangs up the call to report the channel variables. The call stays up until I do a soft hangup, at which time channel variables are not reported. I can call into machine #1 on extension 31 from a SIP phone and mwanalyze will play a tone for 10 seconds, populate channel variables, and exit as I would expect. Can you help me understand why Mwanalyze doesn't hang up the call after the configured amount of time when I call between * machines by putting the above file in the outgoing directory? If you're not sure how to answer the question above, then this one might be easier to answer: how do you expect * to be configured to use Mwanalyze? Thanks in advance, Evan
Apparently Analagous Threads
- Analyzer for Milliwatt
- Milliwatt Test Number List
- Effectively using a telco Type 102 Milliwatt Test line with ztmon itor -v to set txgain/rxgain in zapata?
- AST-2012-002: Remote Crash Vulnerability in Milliwatt Application
- Adjusting gain, Milliwatt and ztmonitor