make sure monitor interface announces creation of new calls.

This commit is contained in:
gardners 2012-05-03 03:41:26 +09:30
parent 25f81aeaaf
commit eb8e34bcde
2 changed files with 5 additions and 0 deletions

View File

@ -355,6 +355,8 @@ int monitor_call_status(vomp_call_state *call)
call->local.state,call->remote.state);
for(i=0;i<monitor_socket_count;i++)
{
if (!(monitor_sockets[i].flags&MONITOR_VOMP))
continue;
nextInSameSlot:
errno=0;
write(monitor_sockets[i].socket,msg,strlen(msg));
@ -399,6 +401,8 @@ int monitor_send_audio(vomp_call_state *call,overlay_mdp_frame *audio)
int i;
for(i=0;i<monitor_socket_count;i++)
{
if (!(monitor_sockets[i].flags&MONITOR_VOMP))
continue;
nextInSameSlot:
errno=0;
write(monitor_sockets[i].socket,msg,msglen);

1
vomp.c
View File

@ -155,6 +155,7 @@ vomp_call_state *vomp_find_or_create_call(unsigned char *remote_sid,
vomp_call_states[i].create_time=overlay_gettime_ms();
vomp_call_states[i].last_activity=vomp_call_states[i].create_time;
WHYF("Returning new call #%d",i);
monitor_call_status(&vomp_call_states[i]);
return &vomp_call_states[i];
}