that's my setting in my sip.conf but the codec is still randomize.<br><br><div><span class="gmail_quote">On 11/16/05, <b class="gmail_sendername">Andy Kuo</b> <<a href="mailto:akuoca@gmail.com">akuoca@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>I think you can specify the priority in sip.conf in the [general] section</div>
<div> </div>
<div>disallow=all</div>
<div>allow=g729</div>
<div>allow=ulaw</div>
<div>allow=alaw</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div> </div>
<div>During call setup, Asterisk will negotiate for g729 first, if it's
not available on the other end, it'll try ulaw next, then alaw...</div>
<div> </div>
<div>I'm not sure what happens when your g729 license is used
up. I'm assuming it should go on the next codec on the
priority. Need to confirm on that. So far, we have morce
g729 license than what we are using now.</div>
<div> </div>
<div>Cheers.</div><span class="sg">
<div>AK<br><br> </div></span><div><span class="e" id="q_107958c509532468_2">
<div><span class="gmail_quote">On 11/15/05, <b class="gmail_sendername">Mark Quitoriano</b> <<a href="mailto:markquitoriano@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">markquitoriano@gmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">hmmm... so there's no way i can prioritize g.729 before ulaw and alaw? i just want to do is use all
g.729 first if all
g.729 already used now thats the time ulaw will be used.<br><br>
<div>
<div><span><span class="gmail_quote">On 11/16/05, <b class="gmail_sendername">trixter aka Bret McDanel</b> <<a href="mailto:trixter@0xdecafbad.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
trixter@0xdecafbad.com</a>> wrote: </span></span></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span>On Wed, 2005-11-16 at 01:20 +0800, Mark Quitoriano wrote:<br>> how can i force asterisk to use g.729 codec first. i try to call<br>> outside sometimes the g.729 is being used sometimes not.
<br><br>Asterisk will negotitate based on your list of available codecs for a<br>channel and the remote end points available codecs. If you set it to <br>only g.729 and the other end doesnt support g.729 the call will fail.
<br><br>Keep in mind that g.729 takes more cpu than some other codecs. Take<br>ulaw, while it uses quantinization it doesnt really compress (its<br>arguable that quantinization is compression but that is a symantic<br>argument more than anything). So its a trade off between cpu and
<br>network resources.<br><br>If you truely want to force all calls to use g.729 or nothing only allow <br>g.729 and disallow everything else. I do not think you will be happy<br>unless you use only providers that support
g.729 and have enough<br>licenses available for every call that you make. If you directly<br>connect to other servers that you dont know whether or not they do g.729<br>or if your provider doesnt have enough g.729 licenses you may see both
<br>inbound and outbound calls fail from time to time.<br><br><br>--<br>Trixter <a href="http://www.0xdecafbad.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.0xdecafbad.com</a> Bret McDanel
<br>UK +44 870 340 4605 Germany +49 801 777 555 3402<br>US +1 360 207 0479 or +1 516 687 5200<br>FreeWorldDialup: 635378<br><a href="http://www.sacaug.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.sacaug.org/</a> Sacramento Asterisk Users Group <br><br><br></span></div>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.1 (GNU/Linux)<br><br>iD8DBQBDeh2V+1olxlzQw5cRAtF3AKCykanu2BnxlIvD9YD6Se4s6yztfgCfQL7l
<br>vKqil6wmZbgG2d6v8bFZKrc=<br>=jqaB<br>-----END PGP SIGNATURE-----<span><br><br><br>_______________________________________________<br>--Bandwidth and Colocation sponsored by <a href="http://easynews.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Easynews.com</a> --<br><br>Asterisk-Users mailing list<br><a href="mailto:Asterisk-Users@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Asterisk-Users@lists.digium.com</a><br><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></span></blockquote></div>
<div><span><br><br clear="all"><br>-- <br>Regards,<br>Mark Quitoriano, CCNA<br><a href="http://www.atamanetworks.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.atamanetworks.com </a><br><br>Fan the flame...<br><a href="http://www.spreadfirefox.com/?q=user/register&r=19441" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.spreadfirefox.com/?q=user/register&r=19441
</a> </span></div><br>_______________________________________________<br>--Bandwidth and Colocation sponsored by <a href="http://easynews.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com
</a> --<br><br>Asterisk-Users mailing list<br><a href="mailto:Asterisk-Users@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Asterisk-Users@lists.digium.com</a><br><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br>
</span></div><br>_______________________________________________<br>--Bandwidth and Colocation sponsored by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com
</a> --<br><br>Asterisk-Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Mark Quitoriano, CCNA<br><br>Fan the flame...<br><a href="http://www.spreadfirefox.com/?q=user/register&r=19441">
http://www.spreadfirefox.com/?q=user/register&r=19441</a>