summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2009-04-09 16:27:53 +0000
committerJoshua Colp <jcolp@digium.com>2009-04-09 16:27:53 +0000
commite2a336124f6ddf2868e0800b1fe2dc35545e250e (patch)
treeba6854c73f225d18a1d97eef4fa443675b499b7b /channels
parentabcc0b93976fe5d93143aacd46841aed40f1ff45 (diff)
Do not try to send the format read/format write/make compatible options over IAX2.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c4
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;