[asterisk-commits] mmichelson: branch mmichelson/authenticate r380790 - /team/mmichelson/authent...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 1 15:16:03 CST 2013
Author: mmichelson
Date: Fri Feb 1 15:15:59 2013
New Revision: 380790
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380790
Log:
Don't always return that authentication is required.
Modified:
team/mmichelson/authenticate/res/res_sip_authenticator.c
Modified: team/mmichelson/authenticate/res/res_sip_authenticator.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/authenticate/res/res_sip_authenticator.c?view=diff&rev=380790&r1=380789&r2=380790
==============================================================================
--- team/mmichelson/authenticate/res/res_sip_authenticator.c (original)
+++ team/mmichelson/authenticate/res/res_sip_authenticator.c Fri Feb 1 15:15:59 2013
@@ -32,9 +32,9 @@
static int default_requires_authentication(struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata)
{
- /* XXX While we are using hardcoded values, let's always claim that
- * the incoming request requires authentication
- */
+ if (ast_strlen_zero(endpoint->secret)) {
+ return 0;
+ }
return 1;
}
More information about the asterisk-commits
mailing list