<div dir="ltr">Hi All,<br><br>I don't know it's possible or not. I want to do run time codec selection by asterisk. <br><br>I have an account in sip.conf and I have active only g729 on it <br><br>[2209]<br>.......<br>
disallow=all<br>allow=g729<br>.......<br><br>When try to dial that number when I want to use codec GSM. <br><br>Is this possbile to change code after making call to exten ? <br><br><b>extensions.conf information is below:-</b><br>
<br>exten => _2xxx,1,Answer()<br> same => n,GotoIf($["${EXTEN}" = "2209"]?setchannel:gowithoutit)<br> same => n(setchannel),Set(foo=${CHANNEL(audioreadformat)})<br><span style="background-color:rgb(153,153,153)">; same => n,Set(CHANNEL(audioreadformat)=gsm)</span> <font color="#cc0000">it's not update anything might be readonly property, that's y commented.</font><br>
same => n,Set(_SIP_CODEC=gsm)<br> same => n,Set(_SIP_CODEC_OUTBOUND=gsm)<br>; same => n,Set(foo=${CHANNEL(audionativeformat)})<br>; same => n,Set(foo=${CHANNEL(audiowriteformat)})<br>
same => n(gowithoutit),Dial(SIP/${EXTEN},60)<br> same => n,GotoIf($["${EXTEN}" = "2209"]?voicemail)<br> same => n(voicemail),VoiceMail(2209@hyd,u)<br> same => n,Hangup()<br>
<br><br clear="all">-- <br><div dir="ltr"><br>Thanks and regards<br><br> Virendra Bhati<br>+91-8885268942<br>Software Engineer<br>E-mail-: <a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a><br>Skype id:- virbhati2<br>
</div><br>
</div>