Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
70c22bcf
Commit
70c22bcf
authored
Feb 26, 2008
by
Pekka Pessi
Browse files
test_nua.c: fixed tests
darcs-hash:20080226174552-65a35-0ae1a3dfc67f89a7690cc5d7a7e45ff18d69e168.gz
parent
20924423
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
libsofia-sip-ua/nua/test_cancel_bye.c
libsofia-sip-ua/nua/test_cancel_bye.c
+3
-0
libsofia-sip-ua/nua/test_nua.h
libsofia-sip-ua/nua/test_nua.h
+4
-1
libsofia-sip-ua/nua/test_ops.c
libsofia-sip-ua/nua/test_ops.c
+6
-0
No files found.
libsofia-sip-ua/nua/test_cancel_bye.c
View file @
70c22bcf
...
...
@@ -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
...
...
libsofia-sip-ua/nua/test_nua.h
View file @
70c22bcf
...
...
@@ -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
;
...
...
libsofia-sip-ua/nua/test_ops.c
View file @
70c22bcf
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment