提交 1bf92980 authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 3ee1e1bc
......@@ -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
......
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论