mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +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:
@@ -219,7 +219,7 @@ static int gen_nextfile(struct gen_state *state)
|
||||
u->playing_silence = 1;
|
||||
}
|
||||
|
||||
if (!(state->stream = ast_openstream_full(u->chan, file_to_stream, u->chan->language, 1))) {
|
||||
if (!(state->stream = ast_openstream_full(u->chan, file_to_stream, ast_channel_language(u->chan), 1))) {
|
||||
ast_chan_log(LOG_WARNING, u->chan, "File '%s' could not be opened: %s\n", file_to_stream, strerror(errno));
|
||||
AST_LIST_LOCK(&u->playlist);
|
||||
AST_LIST_REMOVE_HEAD(&u->playlist, list);
|
||||
@@ -761,7 +761,7 @@ static int eivr_comm(struct ast_channel *chan, struct ivr_localuser *u,
|
||||
send_eivr_event(eivr_events, 'Z', NULL, chan);
|
||||
continue;
|
||||
}
|
||||
if (!ast_fileexists(&input[2], NULL, u->chan->language)) {
|
||||
if (!ast_fileexists(&input[2], NULL, ast_channel_language(u->chan))) {
|
||||
ast_chan_log(LOG_WARNING, chan, "Unknown file requested '%s'\n", &input[2]);
|
||||
send_eivr_event(eivr_events, 'Z', &input[2], chan);
|
||||
} else {
|
||||
@@ -791,7 +791,7 @@ static int eivr_comm(struct ast_channel *chan, struct ivr_localuser *u,
|
||||
send_eivr_event(eivr_events, 'Z', NULL, chan);
|
||||
continue;
|
||||
}
|
||||
if (!ast_fileexists(&input[2], NULL, u->chan->language)) {
|
||||
if (!ast_fileexists(&input[2], NULL, ast_channel_language(u->chan))) {
|
||||
ast_chan_log(LOG_WARNING, chan, "Unknown file requested '%s'\n", &input[2]);
|
||||
send_eivr_event(eivr_events, 'Z', &input[2], chan);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user