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
2f36cba4
Commit
2f36cba4
authored
9 years ago
by
Richard Mudgett
Browse files
Options
Downloads
Patches
Plain Diff
res_stasis_recording.c: Cleanup stasis_app_recording_find_by_name().
Change-Id: Ic7d93c402c498677a122505558859c853d4e5ac7
parent
23d2a561
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
res/res_stasis_recording.c
+8
-10
8 additions, 10 deletions
res/res_stasis_recording.c
with
8 additions
and
10 deletions
res/res_stasis_recording.c
+
8
−
10
View file @
2f36cba4
...
...
@@ -265,7 +265,13 @@ static enum stasis_app_control_channel_result check_rule_recording(
return
STASIS_APP_CHANNEL_RECORDING
;
}
struct
stasis_app_control_rule
rule_recording
=
{
/*
* XXX This only works because there is one and only one rule in
* the system so it can be added to any number of channels
* without issue. However, as soon as there is another rule then
* watch out for weirdness because of cross linked lists.
*/
static
struct
stasis_app_control_rule
rule_recording
=
{
.
check_rule
=
check_rule_recording
};
...
...
@@ -465,15 +471,7 @@ const char *stasis_app_recording_get_name(
struct
stasis_app_recording
*
stasis_app_recording_find_by_name
(
const
char
*
name
)
{
RAII_VAR
(
struct
stasis_app_recording
*
,
recording
,
NULL
,
ao2_cleanup
);
recording
=
ao2_find
(
recordings
,
name
,
OBJ_KEY
);
if
(
recording
==
NULL
)
{
return
NULL
;
}
ao2_ref
(
recording
,
+
1
);
return
recording
;
return
ao2_find
(
recordings
,
name
,
OBJ_KEY
);
}
struct
ast_json
*
stasis_app_recording_to_json
(
...
...
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