mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
make sure monitor interface announces creation of new calls.
This commit is contained in:
parent
25f81aeaaf
commit
eb8e34bcde
@ -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
1
vomp.c
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user