Commit 3625fadd authored by Pekka Pessi's avatar Pekka Pessi

nua_session.c: do not indicate error when there is no answer to send with 100rel

darcs-hash:20061031193934-65a35-803c8467c4025f27f4a9a6dc5049b64290f73e21.gz
parent c628639e
......@@ -1754,7 +1754,12 @@ int respond_to_invite(nua_server_request_t *sr, tagi_t const *tags)
else if (sr->sr_offer_recv && !sr->sr_answer_sent &&
(reliable || early_answer)) {
/* Generate answer */
if (soa_generate_answer(nh->nh_soa, NULL) < 0) {
if (soa_generate_answer(nh->nh_soa, NULL) >= 0) {
answer = 1;
soa_activate(nh->nh_soa, NULL);
/* signal that O/A answer sent (answer to invite) */
}
else (if status >= 200) {
int wcode;
char const *text;
char const *host = "invalid.";
......@@ -1769,9 +1774,7 @@ int respond_to_invite(nua_server_request_t *sr, tagi_t const *tags)
}
}
else {
answer = 1;
soa_activate(nh->nh_soa, NULL);
/* signal that O/A answer sent (answer to invite) */
/* 1xx - we don't have to send answer */
}
}
else if (sr->sr_offer_recv && sr->sr_answer_sent == 1 &&
......
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