diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-09 16:27:53 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-09 16:27:53 +0000 |
commit | 909e050f4854eeb322834a657d6842e8a3f70e5b (patch) | |
tree | ba6854c73f225d18a1d97eef4fa443675b499b7b /channels/chan_iax2.c | |
parent | 0728169c6a3fee14f31c87f6477058dc3d096b81 (diff) |
Do not try to send the format read/format write/make compatible options over IAX2.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187361 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index d594498f6..fd71e3acc 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -4087,6 +4087,10 @@ static int iax2_setoption(struct ast_channel *c, int option, void *data, int dat /* these two cannot be sent, because they require a result */ errno = ENOSYS; return -1; + case AST_OPTION_FORMAT_READ: + case AST_OPTION_FORMAT_WRITE: + case AST_OPTION_MAKE_COMPATIBLE: + return -1; case AST_OPTION_OPRMODE: errno = EINVAL; return -1; |