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
928c1059
Commit
928c1059
authored
Dec 29, 2010
by
Mikhail Zabaluev
Committed by
Pekka Pessi
Jan 11, 2011
Browse files
Don't use the Min-Expires value with the stale contacts.
parent
8e65c525
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
libsofia-sip-ua/nua/nua_register.c
libsofia-sip-ua/nua/nua_register.c
+8
-6
No files found.
libsofia-sip-ua/nua/nua_register.c
View file @
928c1059
...
...
@@ -780,12 +780,14 @@ int nua_register_client_request(nua_client_request_t *cr,
/* Remove the expire parameters from contacts */
msg_header_remove_param
(
m
->
m_common
,
"expires"
);
}
else
if
(
nr
&&
nr
->
nr_min_expires
&&
strtoul
(
m
->
m_expires
,
0
,
10
)
<
nr
->
nr_min_expires
)
{
if
(
min_expires
==
NULL
)
min_expires
=
su_sprintf
(
msg_home
(
msg
),
"expires=%lu"
,
nr
->
nr_min_expires
);
msg_header_replace_param
(
msg_home
(
msg
),
m
->
m_common
,
min_expires
);
else
if
(
nr
&&
nr
->
nr_min_expires
)
{
unsigned
long
exp
=
strtoul
(
m
->
m_expires
,
0
,
10
);
if
(
exp
!=
0
&&
exp
<
nr
->
nr_min_expires
)
{
if
(
min_expires
==
NULL
)
min_expires
=
su_sprintf
(
msg_home
(
msg
),
"expires=%lu"
,
nr
->
nr_min_expires
);
msg_header_replace_param
(
msg_home
(
msg
),
m
->
m_common
,
min_expires
);
}
}
}
...
...
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