# Force g729 codec at endpoint (phone) on outbound SIP trunk

**URL:** <https://community.freepbx.org/t/force-g729-codec-at-endpoint-phone-on-outbound-sip-trunk/9960>\
**Category:** General Help\
**Created:** [January 20, 2011, 7:28am UTC](https://community.freepbx.org/t/force-g729-codec-at-endpoint-phone-on-outbound-sip-trunk/9960 "2011-01-20T07:28:41Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mcbsys](https://community.freepbx.org/user_avatar/community.freepbx.org/mcbsys/32/4149_2.png) [@mcbsys](https://community.freepbx.org/u/mcbsys)\
**Post date:** [November 5, 2011, 8:39pm UTC](https://community.freepbx.org/t/force-g729-codec-at-endpoint-phone-on-outbound-sip-trunk/9960/13 "2011-11-05T20:39:38Z")

</div>

With the change to sip\_general\_custom.conf listed above, and the g729 sounds files extracted, the system is now using g729 on all internal and external calls. Not the mixed solution originally asked for, but at least trunk calls are on the compressed codec. We’ll see how that sounds…

I wrote this up here: [Get Asterisk to Use the G.729a Codec](http://www.mcbsys.com/techblog/2011/11/get-asterisk-to-use-the-g-729a-codec/).

Update 11/5/2011: I had to set the Preferred Codec of my SPA3102 to G729a for inbound calls. And it seems we still need a transcoder to handle some voicemail and other functions, but the pass-through means far less transcoding. Blog post updated.

Mark Berry  
MCB Systems

---

_[View the full topic](https://community.freepbx.org/t/force-g729-codec-at-endpoint-phone-on-outbound-sip-trunk/9960)._
