]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not try to send the format read/format write/make compatible options over IAX2.
authorJoshua Colp <jcolp@digium.com>
Thu, 9 Apr 2009 16:27:53 +0000 (16:27 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 9 Apr 2009 16:27:53 +0000 (16:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187361 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index d594498f65d06363beb21536430b546df0a53627..fd71e3acc746b0defcc3d8bd5071212a677fb574 100644 (file)
@@ -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;