Commit 0cce7fd6 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_session.c: fix in session activation by Jussi Mutanen

darcs-hash:20080424154957-70aaf-1262a8deb0d21b9b6e46c10787d52a9b860f5f75.gz
parent 6fa95411
......@@ -2214,11 +2214,11 @@ int nua_invite_server_respond(nua_server_request_t *sr, tagi_t const *tags)
}
else if (sr->sr_offer_recv && !sr->sr_answer_sent && early_answer) {
/* Generate answer */
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) */
if (soa_generate_answer(nh->nh_soa, NULL) >= 0 &&
soa_activate(nh->nh_soa, NULL) >= 0) {
answer = 1; /* signal that O/A answer sent (answer to invite) */
}
/* We have an error! */
else if (sr->sr_status >= 200) {
sip_warning_t *warning = NULL;
int wcode;
......
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