mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-10 14:40:00 +00:00
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:
parent
3ee1e1bc8f
commit
1bf92980a7
@ -51,8 +51,9 @@ libtestnua_la_SOURCES = test_nua.h test_ops.c \
|
|||||||
test_call_reject.c test_cancel_bye.c \
|
test_call_reject.c test_cancel_bye.c \
|
||||||
test_call_hold.c test_session_timer.c \
|
test_call_hold.c test_session_timer.c \
|
||||||
test_refer.c test_100rel.c \
|
test_refer.c test_100rel.c \
|
||||||
test_sip_events.c test_extension.c
|
test_sip_events.c test_simple.c \
|
||||||
#test_simple.c
|
test_extension.c
|
||||||
|
|
||||||
|
|
||||||
libtestproxy_la_SOURCES = test_proxy.h test_proxy.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";
|
a_call->sdp = "m=audio 5008 RTP/AVP 8";
|
||||||
c_call->sdp = "m=audio 5010 RTP/AVP 0 8";
|
c_call->sdp = "m=audio 5010 RTP/AVP 0 8";
|
||||||
|
|
||||||
|
if (!ctx->proxy_tests)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* BYE after receiving 401
|
/* BYE after receiving 401
|
||||||
|
|
||||||
A C
|
A C
|
||||||
|
@ -178,7 +178,10 @@ struct context
|
|||||||
unsigned bit4:1, bit5:1, bit6:1, bit7:1;
|
unsigned bit4:1, bit5:1, bit6:1, bit7:1;
|
||||||
unsigned :0;
|
unsigned :0;
|
||||||
} flags;
|
} flags;
|
||||||
|
/* Accross-run state information */
|
||||||
|
struct {
|
||||||
|
unsigned n;
|
||||||
|
} state;
|
||||||
} a, b, c;
|
} a, b, c;
|
||||||
|
|
||||||
struct proxy *p;
|
struct proxy *p;
|
||||||
|
@ -182,6 +182,12 @@ void print_event(nua_event_t event,
|
|||||||
ep->name, (void *)nh, nua_event_name(event), phrase,
|
ep->name, (void *)nh, nua_event_name(event), phrase,
|
||||||
nua_substate_name(t ? t->t_value : 0));
|
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) {
|
else if ((int)event >= 0) {
|
||||||
fprintf(stderr, "%s %s.nua(%p): event %s %s\n", timestamp,
|
fprintf(stderr, "%s %s.nua(%p): event %s %s\n", timestamp,
|
||||||
ep->name, (void *)nh, nua_event_name(event), phrase);
|
ep->name, (void *)nh, nua_event_name(event), phrase);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user