Commit 5494fbc1 authored by Pekka Pessi's avatar Pekka Pessi

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

Ignore-this: bf90d0f94955ef8306c2d2ae7f80058b

darcs-hash:20090625173442-db55f-e7212937d01f67f46e6e14b056907e79c98e4994.gz
parent c74b6426
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment