[asterisk-bugs] [Asterisk 0015386]: [patch] Milliwatt() is off by -11dbm

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Aug 1 05:59:19 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15386 
====================================================================== 
Reported By:                rue_mohr
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   15386
Category:                   Applications/app_milliwatt
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.1.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-23 20:15 CDT
Last Modified:              2009-08-01 05:59 CDT
====================================================================== 
Summary:                    [patch] Milliwatt() is off by -11dbm
Description: 

Confirmed on asterisk 1.4.25.1 and 1.6.1.1 that the milliwatt is about
-11dbm 

Standard PC system, T100P T1 card, to Newbridge Mainstreet 3624
using dahdi-linux-complete-2.1.0.4+2.1.0.2
Debian kernel linux-2.6.28
measured with dbm meter from channelbank

its -11dbm at 1.000kHz, and at 1.004kHz

This can be confirmed because it worked perfectly on same hardware before
software upgrade ( kernel-2.6.15  asterisk-1.2.15  zaptel-1.2.13). 

suspect slinear<->ulaw conversion process, can't confirm.

====================================================================== 

---------------------------------------------------------------------- 
 (0108494) svnbot (reporter) - 2009-08-01 05:59
 https://issues.asterisk.org/view.php?id=15386#c108494 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 209838

U   branches/1.4/apps/app_milliwatt.c

------------------------------------------------------------------------
r209838 | russell | 2009-08-01 05:59:18 -0500 (Sat, 01 Aug 2009) | 13
lines

Modify how Playtones() is used in Milliwatt() to resolve gain issue.

When Milliwatt() was changed internally to use Playtones() so that the
proper
tone was used, it introduced a drop in gain in the output signal.  So, use
the playtones API directly and specify a volume argument such that the
output
matches the gain of the original Milliwatt() code.

(closes issue https://issues.asterisk.org/view.php?id=15386)
Reported by: rue_mohr
Patches:
      issue_15386.rev2.diff uploaded by russell (license 2)
Tested by: rue_mohr

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=209838 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-01 05:59 svnbot         Checkin                                      
2009-08-01 05:59 svnbot         Note Added: 0108494                          
======================================================================




More information about the asterisk-bugs mailing list