AMR,
The default behavior is that the sip server lets the two connection parties negotiate their own codec, but you can use the dial plan to intervene and force your chosen codec. This is what is so poweful about Brekeke.
The ability to force a codec and turn on rtp relay dynamically with the dial plan enables you to virtually make any connection between devices you need. For example Version 1 sip server can't relay T.38 packets so you can turn off rtp relay for faxes. Some phones can't negotiate codecs properly so you can force all incoming call to a particular phone to come in with g729. If you want all outgoing calls from a phone to use g729 and can't rely on the phone or the person managing the phone to set it up correctly you can force all outgoing calls from a particular phone to use g729.
The more you learn about Brekeke the more you realize the capabilities they give you are priceless.