dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
file 2009-04-09 16:27:53 +00:00
parent 0728169c6a
commit 909e050f48
1 changed files with 4 additions and 0 deletions

View 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;