Commit 9fae2c51 authored by Pekka Pessi's avatar Pekka Pessi

nua_session.c: if nua fails to create a response message to INVITE request,...

nua_session.c: if nua fails to create a response message to INVITE request, respond with 500 Internal Server Error

darcs-hash:20061121144431-65a35-f6a5a33a8519eadd386794b57b9a4684b3db83d0.gz
parent 3aec8e35
......@@ -1890,7 +1890,10 @@ int respond_to_invite(nua_server_request_t *sr, tagi_t const *tags)
TAG_NEXT(tags));
sip = sip_object(msg);
assert(sip); /* XXX */
if (!sip) {
SET_STATUS1(SIP_500_INTERNAL_SERVER_ERROR), reliable = 0;
goto send_response;
}
reliable =
(status >= 200)
......@@ -1989,6 +1992,8 @@ int respond_to_invite(nua_server_request_t *sr, tagi_t const *tags)
SET_STATUS1(SIP_500_INTERNAL_SERVER_ERROR);
}
send_response:
if (reliable && status < 200)
/* we are done */;
else if (status != sr->sr_status) { /* Error responding */
......
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