diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-10 19:25:08 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-10 19:25:08 +0000 |
commit | 2d7639134c53e53ef345904913933b3eead99694 (patch) | |
tree | 26999f806d1bba5e9f5df58d7485d0ba25e77974 /include/asterisk/pbx.h | |
parent | 6368131c6cbe811d9348bf387b9f62ae40b9fb37 (diff) |
Inherit CHANNEL() writes to both sides of a Local channel
Having Local (/n) channels as queue members and setting the language in the
extension with Set(CHANNEL(language)=fr) sets the language on the Local/...,2
channel. Hold time report playbacks happen on the Local/...,1 channel and
therefor do not play in the specified language.
This patch modifies func_channel_write to call the setoption callback and pass
the CHANNEL() write info to the callback. chan_local uses this information to
look up the other side of the channel and apply the same changes to it.
(closes issue #17673)
Reported by: Guggemand
Review: https://reviewboard.asterisk.org/r/903/
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@286059 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/pbx.h')
-rw-r--r-- | include/asterisk/pbx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index 16c02f7fb..29a0535b8 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -71,8 +71,8 @@ struct ast_custom_function { const char *synopsis; /*!< Short description for "show functions" */ const char *desc; /*!< Help text that explains it all */ const char *syntax; /*!< Syntax description */ - int (*read)(struct ast_channel *, char *, char *, char *, size_t); /*!< Read function, if read is supported */ - int (*write)(struct ast_channel *, char *, char *, const char *); /*!< Write function, if write is supported */ + ast_acf_read_fn_t read; /*!< Read function, if read is supported */ + ast_acf_write_fn_t write; /*!< Write function, if write is supported */ AST_LIST_ENTRY(ast_custom_function) acflist; }; |