mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 02:03:39 +00:00
working on 2 boxes at once ignore me
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15152 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ba52012c36
commit
d4c5b8c850
@ -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) {
|
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_caller_profile_t *caller_profile;
|
||||||
switch_channel_t *caller_channel;
|
switch_channel_t *caller_channel;
|
||||||
const char *name, *number;
|
const char *name, *number;
|
||||||
@ -111,13 +111,13 @@ static void send_display(switch_core_session_t *session, switch_core_session_t *
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg = switch_core_session_alloc(peer_session, sizeof(*msg));
|
||||||
msg.message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
|
MESSAGE_STAMP_FFL(msg);
|
||||||
msg.string_array_arg[0] = name;
|
msg->message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
|
||||||
msg.string_array_arg[1] = number;
|
msg->string_array_arg[0] = switch_core_session_strdup(peer_session, name);
|
||||||
msg.from = __FILE__;
|
msg->string_array_arg[1] = switch_core_session_strdup(peer_session, number);
|
||||||
|
msg->from = __FILE__;
|
||||||
switch_core_session_receive_message(peer_session, &msg);
|
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;
|
int answer_timeout, sent_update = -50;
|
||||||
time_t answer_limit = 0;
|
time_t answer_limit = 0;
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWITCH_VIDEO_IN_THREADS
|
#ifdef SWITCH_VIDEO_IN_THREADS
|
||||||
struct vid_helper vh = { 0 };
|
struct vid_helper vh = { 0 };
|
||||||
uint32_t vid_launch = 0;
|
uint32_t vid_launch = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user