提交 f69b1aef authored 作者: Anthony Minessale's avatar Anthony Minessale

doh

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4375 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 119c10f8
...@@ -239,8 +239,6 @@ struct sofia_profile { ...@@ -239,8 +239,6 @@ struct sofia_profile {
char *timer_name; char *timer_name;
int sip_port; int sip_port;
char *codec_string; char *codec_string;
char *codec_order[SWITCH_MAX_CODECS];
int codec_order_last;
int running; int running;
int codec_ms; int codec_ms;
int dtmf_duration; int dtmf_duration;
...@@ -269,6 +267,8 @@ struct private_object { ...@@ -269,6 +267,8 @@ struct private_object {
switch_payload_t agreed_pt; switch_payload_t agreed_pt;
switch_core_session_t *session; switch_core_session_t *session;
switch_frame_t read_frame; switch_frame_t read_frame;
char *codec_order[SWITCH_MAX_CODECS];
int codec_order_last;
const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS]; const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
int num_codecs; int num_codecs;
switch_codec_t read_codec; switch_codec_t read_codec;
...@@ -824,11 +824,11 @@ static void tech_set_codecs(private_object_t *tech_pvt) ...@@ -824,11 +824,11 @@ static void tech_set_codecs(private_object_t *tech_pvt)
if (codec_string) { if (codec_string) {
char *tmp_codec_string; char *tmp_codec_string;
if ((tmp_codec_string = strdup(codec_string))) { if ((tmp_codec_string = strdup(codec_string))) {
tech_pvt->profile->codec_order_last = switch_separate_string(tmp_codec_string, ',', tech_pvt->profile->codec_order, SWITCH_MAX_CODECS); tech_pvt->codec_order_last = switch_separate_string(tmp_codec_string, ',', tech_pvt->codec_order, SWITCH_MAX_CODECS);
tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs, tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs,
SWITCH_MAX_CODECS, SWITCH_MAX_CODECS,
tech_pvt->profile->codec_order, tech_pvt->codec_order,
tech_pvt->profile->codec_order_last); tech_pvt->codec_order_last);
free(tmp_codec_string); free(tmp_codec_string);
} }
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论