int ast_rtp_codec_setpref(struct opbx_rtp *rtp, struct opbx_codec_pref *prefs) { int x; for (x = 0; x < 32; x++) { /* Ugly way */ rtp->pref.order[x] = prefs->order[x]; rtp->pref.framing[x] = prefs->framing[x]; } if (rtp->smoother) opbx_smoother_free(rtp->smoother); rtp->smoother = NULL; return 0; }