Mon Apr 7 13:20:55 EDT 2008 Pekka.Pessi@nokia.com

* nua_session.c: fixed call state reporting from failed INVITE
  
  If INVITE was returned a failure response, and session was being terminated
  (like BYE was sent while INVITE transaction was on-going), Sofia reported
  session as already terminated.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8052 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-04-07 19:44:39 +00:00
parent b97a5f9060
commit aca515cb8e
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
Mon Apr 7 13:06:49 EDT 2008
Mon Apr 7 15:44:29 EDT 2008

View File

@ -3910,6 +3910,8 @@ static void signal_call_state_change(nua_handle_t *nh,
ss->ss_state = next_state;
else if (ss->ss_state == nua_callstate_ready)
next_state = ss->ss_state;
else if (ss->ss_state == nua_callstate_terminating)
return;
else
ss->ss_state = next_state = nua_callstate_terminated;
}