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

working on 2 boxes at once ignore me

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15152 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ba52012c
......@@ -81,7 +81,7 @@ static void launch_video(struct vid_helper *vh)
static void send_display(switch_core_session_t *session, switch_core_session_t *peer_session) {
switch_core_session_message_t msg = { 0 };
switch_core_session_message_t *msg;
switch_caller_profile_t *caller_profile;
switch_channel_t *caller_channel;
const char *name, *number;
......@@ -111,13 +111,13 @@ static void send_display(switch_core_session_t *session, switch_core_session_t *
}
}
msg.message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
msg.string_array_arg[0] = name;
msg.string_array_arg[1] = number;
msg.from = __FILE__;
switch_core_session_receive_message(peer_session, &msg);
msg = switch_core_session_alloc(peer_session, sizeof(*msg));
MESSAGE_STAMP_FFL(msg);
msg->message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
msg->string_array_arg[0] = switch_core_session_strdup(peer_session, name);
msg->string_array_arg[1] = switch_core_session_strdup(peer_session, number);
msg->from = __FILE__;
switch_core_session_queue_message(peer_session, msg);
}
......@@ -164,6 +164,7 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
int answer_timeout, sent_update = -50;
time_t answer_limit = 0;
#ifdef SWITCH_VIDEO_IN_THREADS
struct vid_helper vh = { 0 };
uint32_t vid_launch = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论