switch_core_session_t *session;
switch_channel_t *channel;
switch_media_handle_t *media_handle;
- switch_core_media_params_t *mparams;
+ switch_core_media_params_t mparams;
switch_frame_t read_frame;
char *codec_order[SWITCH_MAX_CODECS];
switch_mutex_lock(tech_pvt->flag_mutex);
switch_mutex_lock(profile->flag_mutex);
- tech_pvt->mparams = switch_core_session_alloc(session, sizeof(*tech_pvt->mparams));
-
-
/* copy flags from profile to the sofia private */
for (x = 0; x < TFLAG_MAX; x++) {
tech_pvt->flags[x] = profile->flags[x];