[svn-commits] dvossel: branch 1.2 r229235 - /branches/1.2/channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 10 12:01:45 CST 2009


Author: dvossel
Date: Tue Nov 10 12:01:41 2009
New Revision: 229235

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229235
Log:
don't crash on log message in solaris

AST-2009-006

(closes issue 0016206)
Reported by: bklang
Tested by: bklang

Modified:
    branches/1.2/channels/chan_iax2.c

Modified: branches/1.2/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.2/channels/chan_iax2.c?view=diff&rev=229235&r1=229234&r2=229235
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Tue Nov 10 12:01:41 2009
@@ -4037,7 +4037,7 @@
 	/* ----- 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(iabuf, sizeof(iabuf), sin->sin_addr), ies->username);
+			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(iabuf, sizeof(iabuf), sin->sin_addr), ast_strlen_zero(ies->username) ? "guest" : ies->username);
 			goto reject;
 		}
 		return 0; /* calltoken is not required for this addr, so permit it. */




More information about the svn-commits mailing list