Commit 5bfabd9b authored by Pekka Pessi's avatar Pekka Pessi
Browse files

test_nta.c: timer C now CANCELs INVITE transaction

Ignore-this: 8de2e5747e7ae0e62e2d8ad9aeb0cbed

408 response is not generated (unless CANCEL times out, too.)

darcs-hash:20090303164951-db55f-668b3dc8b31d07ea8e8d396b33a3d2e548223836.gz
parent ba06a4f5
......@@ -530,7 +530,7 @@ until_server_canceled(client_t *c)
{
agent_t *ag = c->c_ag;
for (ag->ag_canceled = 0; !ag->ag_canceled;) {
for (ag->ag_canceled = 0; !ag->ag_canceled || c->c_status < 200;) {
if (tstflags & tst_verbatim) {
fputs(".", stdout); fflush(stdout);
}
......@@ -3612,8 +3612,9 @@ int test_prack(agent_t *ag)
SIPTAG_PAYLOAD(sdp),
TAG_END()));
/* Run until 1) server gets CANCEL and 2) client gets 408 */
TEST_1(!client_run_until_canceled(ctx, 408));
/* Run until 1) server gets CANCEL and 2) client gets 487 */
/* Note: this has been changed in 1.12.11 */
TEST_1(!client_run_until_canceled(ctx, 487));
TEST_1(ag->ag_canceled != 0);
TEST_P(ag->ag_latest_leg, ag->ag_server_leg);
......
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