mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
Dialplan functions: Fix some channel autoservice misuse.
* Fix off nominal paths leaving the channel in autoservice. * Remove unnecessary start/stop channel autoservice. * Fix channel locking around a channel datastore search. Change-Id: I7ff2e42388064fe3149034ecae57604040b8b540
This commit is contained in:
@@ -941,10 +941,6 @@ int ast_get_txt(struct ast_channel *chan, const char *number, char *txt, int txt
|
||||
|
||||
ast_debug(4, "ast_get_txt: Number = '%s', suffix = '%s'\n", number, suffix);
|
||||
|
||||
if (chan && ast_autoservice_start(chan) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (pos > 128) {
|
||||
pos = 128;
|
||||
}
|
||||
@@ -965,9 +961,6 @@ int ast_get_txt(struct ast_channel *chan, const char *number, char *txt, int txt
|
||||
} else {
|
||||
ast_copy_string(txt, context.txt, txtlen);
|
||||
}
|
||||
if (chan) {
|
||||
ret |= ast_autoservice_stop(chan);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user