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
1aa22ff9
Commit
1aa22ff9
authored
Oct 18, 2005
by
Pekka Pessi
Browse files
Simplified test_basic_call().
darcs-hash:20051018162414-65a35-4c66b25602b8b3b1bf173f035e3acf3ab8401e80.gz
parent
ed76cec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
libsofia-sip-ua/nua/test_nua.c
libsofia-sip-ua/nua/test_nua.c
+1
-18
No files found.
libsofia-sip-ua/nua/test_nua.c
View file @
1aa22ff9
...
...
@@ -1026,25 +1026,12 @@ CONDITION_FUNCTION(until_terminated)
CONDITION_FUNCTION
(
receive_basic_call
)
{
int
state
=
nua_callstate_init
;
if
(
!
check_handle
(
ep
,
nh
,
SIP_486_BUSY_HERE
))
return
0
;
if
(
event
!=
nua_i_active
&&
event
!=
nua_i_terminated
)
save_event_in_list
(
ctx
,
ep
);
if
(
event
!=
nua_i_state
)
return
0
;
tl_gets
(
tags
,
NUTAG_CALLSTATE_REF
(
state
),
TAG_END
());
switch
(
state
)
{
case
nua_callstate_init
:
return
0
;
case
nua_callstate_calling
:
return
0
;
case
nua_callstate_proceeding
:
return
0
;
switch
(
callstate
(
tags
))
{
case
nua_callstate_received
:
respond
(
ep
,
nh
,
SIP_180_RINGING
,
TAG_END
());
return
0
;
...
...
@@ -1054,13 +1041,9 @@ CONDITION_FUNCTION(receive_basic_call)
"a=rtcp:5011"
),
TAG_END
());
return
0
;
case
nua_callstate_completed
:
return
0
;
case
nua_callstate_ready
:
bye
(
ep
,
nh
,
TAG_END
());
return
0
;
case
nua_callstate_terminating
:
return
0
;
case
nua_callstate_terminated
:
return
1
;
default:
...
...
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