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
b460e61d
Commit
b460e61d
authored
Oct 14, 2005
by
Pekka Pessi
Browse files
Fixed process_bye().
darcs-hash:20051014133422-65a35-df68f25f1e932ea7b819e83a2ff69ca01a5596cd.gz
parent
7aa8b11e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
libsofia-sip-ua/nua/nua_stack.c
libsofia-sip-ua/nua/nua_stack.c
+15
-1
No files found.
libsofia-sip-ua/nua/nua_stack.c
View file @
b460e61d
...
...
@@ -5175,6 +5175,10 @@ int process_bye(nua_t *nua,
nta_incoming_t
*
irq
,
sip_t
const
*
sip
)
{
struct
nua_session_state
*
ss
=
nh
->
nh_ss
;
nua_server_request_t
*
sr
=
ss
->
ss_srequest
;
int
early
=
0
;
assert
(
nh
);
ua_event
(
nh
->
nh_nua
,
nh
,
nta_incoming_getrequest
(
irq
),
...
...
@@ -5182,9 +5186,19 @@ int process_bye(nua_t *nua,
nta_incoming_treply
(
irq
,
SIP_200_OK
,
TAG_END
());
nta_incoming_destroy
(
irq
),
irq
=
NULL
;
if
(
sr
->
sr_irq
)
{
char
const
*
phrase
;
early
=
ss
->
ss_state
<
nua_callstate_ready
;
phrase
=
early
?
"Early Session Terminated"
:
"Session Terminated"
;
nta_incoming_treply
(
sr
->
sr_irq
,
487
,
phrase
,
TAG_END
());
nta_incoming_destroy
(
sr
->
sr_irq
);
memset
(
sr
,
0
,
sizeof
*
sr
);
}
nsession_destroy
(
nh
);
signal_call_state_change
(
nh
,
200
,
"Received BYE"
,
signal_call_state_change
(
nh
,
200
,
early
?
"Received early BYE"
:
"Received BYE"
,
nua_callstate_terminated
,
0
,
0
);
return
200
;
/* Respond automatically with 200 Ok */
...
...
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