if (!(tmp = ast_calloc(1, sizeof(*tmp)))) {
return NULL;
}
+
+ memcpy(&tmp->prefs, &client->prefs, sizeof(struct ast_codec_pref));
+
if (sid) {
ast_copy_string(tmp->sid, sid, sizeof(tmp->sid));
ast_copy_string(tmp->them, them, sizeof(tmp->them));
what = i->capability;
else
what = global_capability;
+
+ /* Set Frame packetization */
+ if (i->rtp)
+ ast_rtp_codec_setpref(i->rtp, &i->prefs);
+
tmp->nativeformats = ast_codec_choose(&i->prefs, what, 1) | (i->jointcapability & AST_FORMAT_VIDEO_MASK);
fmt = ast_best_codec(tmp->nativeformats);
if (!(tmp = ast_calloc(1, sizeof(*tmp)))) {
return NULL;
}
+
+ memcpy(&tmp->prefs, &client->prefs, sizeof(tmp->prefs));
+
if (sid) {
ast_copy_string(tmp->sid, sid, sizeof(tmp->sid));
ast_copy_string(tmp->from, from, sizeof(tmp->from));
what = i->capability;
else
what = global_capability;
+
+ /* Set Frame packetization */
+ if (i->rtp)
+ ast_rtp_codec_setpref(i->rtp, &i->prefs);
+
tmp->nativeformats = ast_codec_choose(&i->prefs, what, 1) | (i->jointcapability & AST_FORMAT_VIDEO_MASK);
fmt = ast_best_codec(tmp->nativeformats);