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
belle-sip
Commits
83c5a70b
Commit
83c5a70b
authored
Jan 17, 2014
by
Simon Morlat
Browse files
fix redirection in refresher
parent
562a8ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/refresher.c
View file @
83c5a70b
...
...
@@ -225,7 +225,8 @@ static void process_response_event(belle_sip_listener_t *user_ctx, const belle_s
case
302
:
contact
=
belle_sip_message_get_header_by_type
(
response
,
belle_sip_header_contact_t
);
if
(
contact
){
if
(
belle_sip_refresher_refresh_internal
(
refresher
,
refresher
->
target_expires
,
TRUE
,
&
refresher
->
auth_events
,
NULL
)
==
0
)
belle_sip_uri_t
*
uri
=
belle_sip_header_address_get_uri
(
BELLE_SIP_HEADER_ADDRESS
(
contact
));
if
(
uri
&&
belle_sip_refresher_refresh_internal
(
refresher
,
refresher
->
target_expires
,
TRUE
,
&
refresher
->
auth_events
,
uri
)
==
0
)
return
;
}
break
;
...
...
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