mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Opaquify channel stringfields
Continue channel opaque-ification by wrapping all of the stringfields. Eventually, we will restrict what can actually set these variables, but the purpose for now is to hide the implementation and keep people from adding code that directly accesses the channel structure. Semantic changes will follow afterward. Review: https://reviewboard.asterisk.org/r/1661/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -194,7 +194,7 @@ static int readexten_exec(struct ast_channel *chan, const char *data)
|
||||
if (ts && ts->data[0]) {
|
||||
res = ast_playtones_start(chan, 0, ts->data, 0);
|
||||
} else if (arglist.filename) {
|
||||
if (ast_test_flag(&flags, OPT_INDICATION) && ast_fileexists(arglist.filename, NULL, chan->language) <= 0) {
|
||||
if (ast_test_flag(&flags, OPT_INDICATION) && ast_fileexists(arglist.filename, NULL, ast_channel_language(chan)) <= 0) {
|
||||
/*
|
||||
* We were asked to play an indication that did not exist in the config.
|
||||
* If no such file exists, play it as a tonelist. With any luck they won't
|
||||
@@ -203,7 +203,7 @@ static int readexten_exec(struct ast_channel *chan, const char *data)
|
||||
*/
|
||||
res = ast_playtones_start(chan, 0, arglist.filename, 0);
|
||||
} else {
|
||||
res = ast_streamfile(chan, arglist.filename, chan->language);
|
||||
res = ast_streamfile(chan, arglist.filename, ast_channel_language(chan));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user