<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-15">
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">Hello!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">I have
following problem: <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">My current
session is connected to a third-party Application by using an
own Freeswitch application
"DoingReadAndWriteFrames". The communication between Freeswitch
Session and third-party application is done by reading and
writing frames in a
while loop.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">At start of
Freeswitch session the codec is PCMA, which I need for voice
recognition.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">Customer reports,
that the codec of the Freeswitch session changes from PCMA to
PCMU.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">If an
external call comes in, I’m playing an audio ringing tone into
the Freeswitch
session.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">I have realize,
that the codec is changed back from u-law to a-law.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">I have
recorded the voice stream and I have heard the codec change. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">I have
never reproduced the codec change of an active Freeswitch
session on my test
system.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">Some
customer reports, that the system is running fine (no codec
change) for half a
year.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">My own bug fix
is to manually translate PCMU data to PCMA, if session codec is
switched to
PCMU.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">But I
cannot test my bug fix, because I can't force the changing of
codec within a
running session.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">Maybe the
"codec change" was a bug from Freeswitch version at October
2010.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">Maybe the
hardware SPA3102 sends a sip re-invite message on special cases.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">I have no
idea.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">I have some
questions about codec negotiation and sip re-invite:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">A) On what
reasons can a re-invite message triggered and why is the session
codec changed?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">B) What
must be happen, that a codec is changing, after a codec
negotiation was done,
on a running Freeswitch session?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">C) Why is
there a codec change back to a-law, when I’m playing an own
ringing tone?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">D) Is there
a solution for forcing Freeswitch always use PCMA?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">My
configuration of Freeswitch in “vars.xml” to force codec PCMA:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><X-PRE-PROCESS
cmd="set" data="global_codec_prefs=PCMA"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><X-PRE-PROCESS
cmd="set" data="outbound_codec_prefs=PCMA"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-ansi-language:EN-GB"
lang="EN-GB">Greetings</span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Achim Stamm</p>
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 11">
<meta name="Originator" content="Microsoft Word 11">
<link rel="File-List"
href="file:///C:%5CDOKUME%7E1%5CACHIMS%7E1%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Normale Tabelle";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>