From: Joshua Colp Date: Thu, 9 Apr 2009 16:27:53 +0000 (+0000) Subject: Do not try to send the format read/format write/make compatible options over IAX2. X-Git-Tag: 11.0.0-beta1~5091 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2a336124f6ddf2868e0800b1fe2dc35545e250e;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index d594498f65..fd71e3acc7 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;