Registration has nothing to do with codecs in use.
Typically registration issues are due to DNS failing to resolve the DNS SRV records for the SIP domain. Make sure your Fanvil is looking to sipx (or a DNS server that has all the SRV records for your SIP domain that sipx has) for the primary DNS server.
Codec negotiation happens during the 200 OK with SDP and ACK to that. If opus isn't available on one side or the other, they will negotiate another codec that both has available. Sipx isn't involved in this process, unless you're attempting to use a B2BUA function on sipx. Those are basically any freeswitch service -- things like IVR / AA, conference or voicemail. It's also important to understand that you're not going to be able to use opus on the PSTN. You'd only be able to use that on internal calls between extension to extension.
Regards,
Matt