diff --git a/monitor.c b/monitor.c index 9b8d1ebc..84fc3933 100644 --- a/monitor.c +++ b/monitor.c @@ -158,6 +158,8 @@ int monitor_poll() /* tell all monitor clients about status of all calls periodically */ long long now=overlay_gettime_ms(); + char msg[128]; + int m; if (now>(monitor_last_update_time+1000)) { monitor_last_update_time=now; int i; @@ -165,12 +167,15 @@ int monitor_poll() /* Push out any undelivered status changes */ monitor_call_status(&vomp_call_states[i]); /* And let far-end know that call is still alive */ - char msg[128]; - int m; snprintf(msg,128,"KEEPALIVE:%06x\n",vomp_call_states[i].local.session); for(m=0;m