Thu Jun 25 12:34:42 CDT 2009 Pekka Pessi <first.last@nokia.com>

* nua_server.c: replying 200 OK to BYE left unreplied upon nua_handle_destroy



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13986 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-06-26 19:56:10 +00:00
parent fac4ab6d5d
commit fd8106afcf
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
Fri Jun 26 14:53:27 CDT 2009
Fri Jun 26 14:54:58 CDT 2009

View File

@ -299,8 +299,12 @@ void nua_server_request_destroy(nua_server_request_t *sr)
if (SR_HAS_SAVED_SIGNAL(sr))
nua_destroy_signal(sr->sr_signal);
if (sr->sr_irq)
if (sr->sr_irq) {
if (sr->sr_method == sip_method_bye && sr->sr_status < 200) {
nta_incoming_treply(sr->sr_irq, SIP_200_OK, TAG_END());
}
nta_incoming_destroy(sr->sr_irq), sr->sr_irq = NULL;
}
if (sr->sr_request.msg)
msg_destroy(sr->sr_request.msg), sr->sr_request.msg = NULL;