<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">Eric<br />
<br />
With 1.8.x I use. <span lang="EN">
<p>exten => Process,1,Set(SIP_CODEC=ulaw)<br />
<br />
And the system kicks the call over to ulaw. Now this is just prior to the answer so I don't know if it meets your criteria. But it works great to enforce inline T.30 audio faxes. I also use the f/F option T.38 or T.30 on recevie fax. This option was added as part of a patch in 1.8 and is in the 1.10/2.0 branch. </p>
</span>
<div id="divSignature">Thanks<br />
<br />
Bryant Zimmerman (ZK Tech Inc.)<br />
616-855-1030 Ext. 2003</div>
<br />
<br />
<br />
<div id="divSignature">Thanks<br />
<br />
Bryant Zimmerman (ZK Tech Inc.)<br />
616-855-1030 Ext. 2003</div>
<br />
<br />
<span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><hr width="100%" size="2" align="center" />
<b>From</b>: "Eric Wieling" <EWieling@nyigc.com><br />
<b>Sent</b>: Friday, July 22, 2011 11:06 AM<br />
<b>To</b>: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><br />
<b>Subject</b>: Re: [asterisk-users] Question about codec re-negotiation in asterisk 1.4.X</span><br />
<br />
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family: "calibri","sans-serif"; color: #1f497d; font-size: 11pt;">Asterisk supports reinvites (if reinvites are enabled in sip.conf), just not changing codecs in the middle of the call. If anyone has managed to get it to work, I’d love to hear about it. </span></p>
<p class="MsoNormal"><span style="font-family: "calibri","sans-serif"; color: #1f497d; font-size: 11pt;"> </span></p>
<div style="border-bottom: medium none; border-left: blue 1.5pt solid; padding-bottom: 0in; padding-left: 4pt; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;">
<div>
<div style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; border-top: #b5c4df 1pt solid; border-right: medium none; padding-top: 3pt;">
<p class="MsoNormal"><b><span style="font-family: "tahoma","sans-serif"; font-size: 10pt;">From:</span></b><span style="font-family: "tahoma","sans-serif"; font-size: 10pt;"> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Matteo Campana<br />
<b>Sent:</b> Friday, July 22, 2011 11:00 AM<br />
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br />
<b>Subject:</b> Re: [asterisk-users] Question about codec re-negotiation in asterisk 1.4.X</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;"> </p>
<div>
<p class="MsoNormal">On Fri, Jul 22, 2011 at 4:46 PM, Eric Wieling <<a href="mailto:EWieling@nyigc.com">EWieling@nyigc.com</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="color: #1f497d; font-size: 11pt;"> </span></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="color: #1f497d; font-size: 11pt;">Asterisk does not support changing codecs on the fly.</span></p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">And why asterisk sends 200 OK to the provider, if does not support its re-invite?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">M.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<blockquote style="border-bottom: medium none; border-left: #cccccc 1pt solid; padding-bottom: 0in; padding-left: 6pt; padding-right: 0in; margin-left: 4.8pt; border-top: medium none; margin-right: 0in; border-right: medium none; padding-top: 0in;">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="color: #1f497d; font-size: 11pt;"> </span></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Matteo Campana<br />
<b>Sent:</b> Friday, July 22, 2011 10:39 AM<br />
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br />
<b>Subject:</b> [asterisk-users] Question about codec re-negotiation in asterisk 1.4.X</span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Hi all,</p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">I have a major issue with a codec renegotiation in an asterisk 1.4.33.1 setup, which leads me to ask a general question about asterisk 1.4.X codec negotiation: asterisk can support a re-negotiation of a codec "on the fly" through a re-Invite? If my SIP provider sends me a re-invite changing codec from g729 to g711, asterisk properly handle the matter?</p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">I see in the trace that asterisk responds 200 OK to the provider, but <span style="text-decoration: underline;">does not send the re-invite to the UAC, and stops to send rtp to the UAC</span>.</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="color: #1f497d; font-size: 11pt;"> </span></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="color: #1f497d; font-size: 11pt;"> </span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal">-</p>
</blockquote></div>
</div>
</div>
<br /></span>