<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Hi All,</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">I struck with codec config issue. Please suggest me if you have any idea with codec configuration of asterisk.</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">I have simulated Chan phone code of asterisk to my own driver and able to make calls between my own driver and external sip [X-lite: Configured alaw, ulaw] using asterisks pbx.</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Added ulaw, alaw, g726, and g729 codecs as capabilities of ast_channel_tech and able to make both incoming and outgoing calls with u-law. </span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">But not able to make outgoing call [from Phone to X-lite] with <b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">a-law</span></b> where as incoming call is working fine.Config files are shown below,</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Sip.conf</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">[siptrunk]</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">username = 3300<span style="mso-tab-count: 2"> </span></span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">fromuser = 3300 <span style="mso-tab-count: 1"> </span></span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">type = friend</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">outboundproxy = 192.168.5.100</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">fromdomain = 192.168.5.100</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">host = 192.168.5.100</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">secret = 12345</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">qualify = no</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">insecure = invite</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">port = 5060</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">session-timers = refuse</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">context = EXT_3300</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><b style="mso-bidi-font-weight: normal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt; FONT-WEIGHT: bold; mso-bidi-font-weight: normal">disallow = all</span></font></b></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><b style="mso-bidi-font-weight: normal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt; FONT-WEIGHT: bold; mso-bidi-font-weight: normal">allow=alaw</span></font></b></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">canreinvite = no</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Outgoing call failed with “<b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">No</span></b> <b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">audio format found to offer. Cancelling call to EXTEN</span></b>” and also some times I am seeing below print from asterisk CLI.</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">“<b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">Dropping</span></b> <b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">incompatible voice frame on Phone/1 of format unknown since our native format has changed to 0x90c (ulaw|alaw|g726|g729)</span></b>”</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Observations:</span></font></p>
<ol style="MARGIN-TOP: 0in" type="1">
<li style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l1 level1 lfo1; tab-stops: list .5in" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">If I configure ast_channel_tech<span style="mso-spacerun: yes"> </span>capabilities as only <b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">a-law</span></b> then I am not seeing this issue and able to make both incoming and outgoing calls.</span></font></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l1 level1 lfo1; tab-stops: list .5in" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">If I add g723 also in capabilities [ulaw, alaw, <b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">g723</span></b>, g726, g729] then I am seeing set_format always selecting G723 codec and trying to do some translation. In this case ulaw also is not working.</span></font></li>
<li style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l1 level1 lfo1; tab-stops: list .5in" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Tried <b style="mso-bidi-font-weight: normal"><span style="FONT-WEIGHT: bold; mso-bidi-font-weight: normal">core show translation</span></b> from asterisk CLI and it shown all codecs [ulaw,alaw,g723,g726,g729….].</span></font></li>
</ol>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Consider:</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"><span style="mso-spacerun: yes"> </span>-<span style="mso-spacerun: yes"> </span>Is any thing need to configure from conf files [sip.conf / phone.conf: Actually I am not reading any config from phone.conf].</span></font></p>
<p style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo2; tab-stops: list .5in" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt; mso-fareast-font-family: Arial"><span style="mso-list: Ignore">-<font size="1" face="Times New Roman"><span style="FONT: 7pt 'Times New Roman'"> </span></font></span></span></font><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Is phone driver restricted to use only one codec at a time [I mean, need to register only a-law as capabilities]</span></font></p>
<p style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo2; tab-stops: list .5in" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt; mso-fareast-font-family: Arial"><span style="mso-list: Ignore">-<font size="1" face="Times New Roman"><span style="FONT: 7pt 'Times New Roman'"> </span></font></span></span></font><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">I have tried with other codec [g726] and I am facing same outgoing issue. I will check with g729 also.</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">I found similar issues reported by other people also, but I did not get any root cause for this issue. Please help me. </span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Thanks in advance.</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoAutoSig"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt; mso-no-proof: yes">Regards,</span></font></p>
<p style="MARGIN: 0in 0in 0pt" class="MsoAutoSig"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt; mso-no-proof: yes">garge</span></font></p>