From c59e81964956449e362ddc080301276f417306d0 Mon Sep 17 00:00:00 2001 From: gardners Date: Sun, 6 May 2012 20:47:50 +0930 Subject: [PATCH] fixed call-state error related to ringing timeout. --- vomp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vomp.c b/vomp.c index a43a0f1a..a3a029b8 100644 --- a/vomp.c +++ b/vomp.c @@ -591,6 +591,7 @@ int vomp_mdp_event(overlay_mdp_frame *mdp, bcopy(mdp->vompevent.remote_sid,call->remote.sid,SID_SIZE); bcopy(mdp->vompevent.local_did,call->local.did,64); bcopy(mdp->vompevent.remote_did,call->remote.did,64); + call->create_time=overlay_gettime_ms(); call->local.state=VOMP_STATE_CALLPREP; call->remote.state=VOMP_STATE_NOCALL; /* far end has yet to agree that a call is happening */ /* allocate unique call session token, which is how the client will @@ -746,7 +747,7 @@ int vomp_mdp_received(overlay_mdp_frame *mdp) /* could not allocate a call slot, so do nothing */ return WHY("No free call slots"); } - if (1) { + if (0) { WHYF("Far end is in state %s",vomp_describe_state(sender_state)); WHYF("I am in state %s",vomp_describe_state(call->local.state)); } @@ -1418,12 +1419,13 @@ int vomp_tick() /* See if any calls need to begin expiring (current timeout is set at 2 minutes) */ if (vomp_call_states[i].local.state