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
24d6adfe
Commit
24d6adfe
authored
4 years ago
by
Sean Bright
Committed by
George Joseph
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
app_read: Release tone zone reference on early return.
Change-Id: I350939f2220f9e5d44ddf4c8d9a4c99fde4d169a
parent
87ad1138
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
apps/app_read.c
+3
-0
3 additions, 0 deletions
apps/app_read.c
with
3 additions
and
0 deletions
apps/app_read.c
+
3
−
0
View file @
24d6adfe
...
...
@@ -195,6 +195,9 @@ static int read_exec(struct ast_channel *chan, const char *data)
if
(
ast_channel_state
(
chan
)
!=
AST_STATE_UP
)
{
if
(
ast_test_flag
(
&
flags
,
OPT_SKIP
))
{
/* At the user's option, skip if the line is not up */
if
(
ts
)
{
ts
=
ast_tone_zone_sound_unref
(
ts
);
}
pbx_builtin_setvar_helper
(
chan
,
arglist
.
variable
,
""
);
pbx_builtin_setvar_helper
(
chan
,
"READSTATUS"
,
"SKIPPED"
);
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