[asterisk-bugs] [Asterisk 0012164]: Distorted playback of G.722 prompts

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Mar 7 18:52:12 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12164 
====================================================================== 
Reported By:                milazzo
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12164
Category:                   Codecs/codec_g722
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 106518 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-06-2008 21:04 CST
Last Modified:              03-07-2008 18:52 CST
====================================================================== 
Summary:                    Distorted playback of G.722 prompts
Description: 
With the changes in r106501, G.722 audio FROM a Polycom 650 now works
properly; it can be recorded, transcoded, etc. without impairment.

Unfortunately, playback of G.722 audio TO a Polycom 650 is now distorted;
it plays choppily at half speed. G.722 voicemail prompts, Playback() of a
.g722 file, and G.722 MOH exhibit this distortion, as does a call being
transcoded from GSM (the Polycom -> GSM direction sounds fine).

Playback of other file formats (uLaw, slin) sounds fine, as does a call
being transcoded from uLaw.
====================================================================== 

---------------------------------------------------------------------- 
 milazzo - 03-07-08 18:52  
---------------------------------------------------------------------- 
"Can you please update to the latest trunk and try again?"

Sure; hang on... [F/X: frantic typing sounds]

OK, I just updated to r106896, did a "make distclean", reconfigured and
recompiled everything, shut down Asterisk, manually removed all modules,
sounds, and MOH files, reinstalled everything, checked for relevant updates
to the configuration files (there were none), restarted Asterisk, and
rebooted the Polycom 650 on my desk.

Here's what I observe:

"core show version" now reports "SVN-trunk-r106896M".

Placing a call from my 650 in G.722 mode to a Zap line (uLaw) works
perfectly in both directions. Routing the same call through my VOIP
provider in GSM format yields perfect outgoing audio (to the remote phone)
but distorted incoming audio (to the 650).

Calling the VoiceMailMain in uLaw mode works perfectly. Calling
VoiceMailMain in G.722 mode produces distorted, half-speed prompts. The
console reports that it is playing:
    -- <SIP/xxx> Playing 'vm-youhave.g722' (language 'en')
    -- <SIP/xxx> Playing 'digits/2.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-Old.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-messages.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-onefor.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-Old.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-messages.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-opts.g722' (language 'en')
    -- <SIP/xxx> Playing 'vm-helpexit.g722' (language 'en')

I then set up the following extensions to test recording:
        // test extensions
        5081 => {
            Answer();
            Playback(priv-recordintro);
            Playback(then-press-pound);
            Wait(1);
            Record(/tmp/recorded-name-g722.g722);
            Wait(1);
            Playback(beep);
            Playback(/tmp/recorded-name-g722);
            Playback(beep);
            Hangup();
        };
        5083 => {
            Answer();
            Playback(priv-recordintro);
            Playback(then-press-pound);
            Wait(1);
            Record(/tmp/recorded-name-ulaw.ulaw);
            Wait(1);
            Playback(beep);
            Playback(/tmp/recorded-name-ulaw);
            Playback(beep);
            Hangup();
        };

When I called either extension from the 650, the prerecorded prompts were
played half-speed and distorted. The .g722 recording played with the same
distortion as the prompts, but the .ulaw recording sounded fine.

If I manually convert the .g722 recording to .wav with "file convert", the
result also sounds fine when played on my PC, suggesting that the recording
portion of the process is working properly.

MOH plays at the proper speed on my 650, but sounds somewhat distorted. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-07-08 18:52  milazzo        Note Added: 0083638                          
======================================================================




More information about the asterisk-bugs mailing list