Tue Feb 26 12:45:52 EST 2008 Pekka.Pessi@nokia.com

* test_nua.c: fixed tests



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7744 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-02-26 18:08:51 +00:00
parent 3ee1e1bc8f
commit 1bf92980a7
4 changed files with 16 additions and 3 deletions

View File

@ -51,8 +51,9 @@ libtestnua_la_SOURCES = test_nua.h test_ops.c \
test_call_reject.c test_cancel_bye.c \
test_call_hold.c test_session_timer.c \
test_refer.c test_100rel.c \
test_sip_events.c test_extension.c
#test_simple.c
test_sip_events.c test_simple.c \
test_extension.c
libtestproxy_la_SOURCES = test_proxy.h test_proxy.c

View File

@ -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

View File

@ -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;

View File

@ -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);