Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
8a281776
Commit
8a281776
authored
7 years ago
by
Jenkins2
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "pjsip_options: dynamic contact's fields not updated on reload"
parents
afb6e859
bd2218ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
res/res_pjsip/pjsip_options.c
+18
-1
18 additions, 1 deletion
res/res_pjsip/pjsip_options.c
with
18 additions
and
1 deletion
res/res_pjsip/pjsip_options.c
+
18
−
1
View file @
8a281776
...
...
@@ -1147,7 +1147,24 @@ static int qualify_and_schedule_cb_with_aor(void *obj, void *arg, int flags)
static
int
qualify_and_schedule_cb_without_aor
(
void
*
obj
,
void
*
arg
,
int
flags
)
{
qualify_and_schedule_contact
((
struct
ast_sip_contact
*
)
obj
);
/*
* These are really dynamic contacts. We need to retrieve the aor associated
* with the contact since it's possible some of the aor's fields were updated
* since last load.
*/
struct
ast_sip_contact
*
contact
=
obj
;
struct
ast_sip_aor
*
aor
=
ast_sip_location_retrieve_aor
(
contact
->
aor
);
if
(
aor
)
{
qualify_and_schedule_cb_with_aor
(
obj
,
aor
,
flags
);
ao2_ref
(
aor
,
-
1
);
}
else
{
ast_log
(
LOG_WARNING
,
"Unable to locate AOR for contact '%s'. Keeping old "
"associated settings: frequency=%d, timeout=%f, authenticate=%s
\n
"
,
contact
->
uri
,
contact
->
qualify_frequency
,
contact
->
qualify_timeout
,
contact
->
authenticate_qualify
?
"yes"
:
"no"
);
qualify_and_schedule_contact
(
contact
);
}
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment