Commit 3b79d5cc authored by Pekka Pessi's avatar Pekka Pessi

nua_register.c: when restarting REGISTER, report status code 100 to the application.

Problem reported by Mikhail Zabaluev.

darcs-hash:20070402121138-65a35-2379eec37d07af8488fda2388facdff91e817588.gz
parent 7ce69111
......@@ -800,7 +800,7 @@ static int nua_register_client_check_restart(nua_client_request_t *cr,
/* Restart only if nua_base_client_check_restart() did not try to restart */
if (restart && retry_count == cr->cr_retry_count)
return nua_client_restart(cr, status, phrase);
return nua_client_restart(cr, 100, "Outbound NAT Detected");
return 0;
}
......
......@@ -442,7 +442,7 @@ int outbound_check_for_nat(outbound_t *ob,
return -1;
}
return 2;
return ob_reregister_now;
}
return 0;
......
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