Commit 70c22bcf authored by Pekka Pessi's avatar Pekka Pessi

test_nua.c: fixed tests

darcs-hash:20080226174552-65a35-0ae1a3dfc67f89a7690cc5d7a7e45ff18d69e168.gz
parent 20924423
......@@ -1433,6 +1433,9 @@ int test_bye_with_407(struct context *ctx)
a_call->sdp = "m=audio 5008 RTP/AVP 8";
c_call->sdp = "m=audio 5010 RTP/AVP 0 8";
if (!ctx->proxy_tests)
return 0;
/* BYE after receiving 401
A C
......
......@@ -178,7 +178,10 @@ struct context
unsigned bit4:1, bit5:1, bit6:1, bit7:1;
unsigned :0;
} flags;
/* Accross-run state information */
struct {
unsigned n;
} state;
} a, b, c;
struct proxy *p;
......
......@@ -182,6 +182,12 @@ void print_event(nua_event_t event,
ep->name, (void *)nh, nua_event_name(event), phrase,
nua_substate_name(t ? t->t_value : 0));
}
else if ((int)event >= nua_i_bye ||
event == nua_i_invite || event == nua_i_cancel ||
event == nua_i_ack) {
fprintf(stderr, "%s %s.nua(%p): event %s %03d %s\n", timestamp,
ep->name, (void *)nh, nua_event_name(event), status, phrase);
}
else if ((int)event >= 0) {
fprintf(stderr, "%s %s.nua(%p): event %s %s\n", timestamp,
ep->name, (void *)nh, nua_event_name(event), phrase);
......
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