<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Date: Mon, 23 Oct 2006 16:48:09 -0400 (EDT)<br>From: &quot;Frank Tarczynski&quot; &lt;
<a href="mailto:ftarz@mindspring.com">ftarz@mindspring.com</a>&gt;<br>Subject: [asterisk-users] Where to best start looking for<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;voicemail/moh sound quality problem?<br>To: <a href="mailto:asterisk-users@lists.digium.com">
asterisk-users@lists.digium.com</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<a href="mailto:22138.192.58.204.226.1161636489.squirrel@www.tarczynski.com">22138.192.58.204.226.1161636489.squirrel@www.tarczynski.com</a>&gt;<br>Content-Type: text/plain;charset=iso-8859-1
<br><br>I'm running Asterisk 1.2.13 on a Solaris 10 X86 box behind an IPCop<br>firewall on a 5Mbps down/512 up cable connection.<br><br>I'm having sound quality problems when users call in for voicemail and<br>with music on hold.&nbsp;&nbsp;The sound is choppy and muffled while souding pretty
<br>good for calls inside the network.<br><br>I'd appreciate some pointers as to where to start looking to improve things.<br><br>I've tried setting QOS paramters for IPCop but I'm sure that had any effect.<br><br>Frank<br>
<br><br></blockquote></div>Frank-<br><br>I'm afraid a little more detail may be necessary to help you.&nbsp; From this, I have to assume the users are calling in over some sort of network connection- say SIP or IAX from a provider, and not on the analog, and that they're making a single stop- at the server hosting Asterisk for MOH and Voicemail.&nbsp; If that's not accurate, please let me know.
<br><br>Given that picture, keep in mind that asymetric bandwidth is always a bad match for VoIP, and has to be managed very, very carefully.&nbsp; The simplest way to think of it is to use a rate limiter to make that 512/512, which will improve quality, and should still leave you plenty of room for calls, assuming a reasonable codec compression level.&nbsp; (not to mention, if your QOS is set up that way, you get good amount of headroom for downloads and other traffic)
<br><br>That being said, both MOH and Voicemail are sort of special- meaning that they're both using different audio sources, with varying levels of compression on their own.&nbsp; If you have high compression (gsm or 729) on your trunk, and are trying to play back high quality audio (128K mp3 MOH sources, for instance), the transcoding is bound to produce some 'garble'.&nbsp; This is the reason hold music is a bad choice for playback via a cellphone- it almost always sounds like garbage.&nbsp; Your voicemail problems- is the quality of the prompts bad, or the recorded message itself?&nbsp; Both, and either, have different audio characteristics, and compression applies differently.
<br><br>So, to start, try switching your MOH source to an encoding that matches the trunk- depending on your version of Asterisk and how you've got MOH configured, this can be done a lot of different ways- check the wiki for it.&nbsp; See also if you can match the recording of voicemail to your codec, or at least find one with a very low translation cost- this may help as well.&nbsp; For example, if your trunk is using the gsm codec, make sure you're recording voicemails as gsm, not WAV, wav49, or wav- those can be used as well, but gsm should be in the mix for best quality.
<br><br>-pbd<br>