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:
parent
0728169c6a
commit
909e050f48
|
@ -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;
|
||||
|
|
Reference in New Issue