mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Correct mistaken option name in error message.
The configuration option for allowing hosts to make non-token-based calls is 'calltokenoptional', not 'calltokenignore'. (reported on asterisk-users) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@230246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4319,7 +4319,7 @@ static int handle_call_token(struct ast_iax2_full_hdr *fh, struct iax_ies *ies,
|
||||
/* ----- Case 3 ----- */
|
||||
} else { /* calltokens are not supported for this client, how do we respond? */
|
||||
if (calltoken_required(sin, ies->username, subclass)) {
|
||||
ast_log(LOG_ERROR, "Call rejected, CallToken Support required. If unexpected, resolve by placing address %s in the calltokenignore list or setting user %s requirecalltoken=no\n", ast_inet_ntoa(sin->sin_addr), S_OR(ies->username, "guest"));
|
||||
ast_log(LOG_ERROR, "Call rejected, CallToken Support required. If unexpected, resolve by placing address %s in the calltokenoptional list or setting user %s requirecalltoken=no\n", ast_inet_ntoa(sin->sin_addr), S_OR(ies->username, "guest"));
|
||||
goto reject;
|
||||
}
|
||||
return 0; /* calltoken is not required for this addr, so permit it. */
|
||||
|
Reference in New Issue
Block a user