[sr-dev] git:master: modules/auth: fixed comment in nonce_count example

Juha Heinanen jh at tutpro.com
Thu Oct 7 14:58:23 CEST 2010


Module: sip-router
Branch: master
Commit: d5634f0e2e9f25395e312a98aa6814d78e39b16f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d5634f0e2e9f25395e312a98aa6814d78e39b16f

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date:   Thu Oct  7 15:57:27 2010 +0300

modules/auth: fixed comment in nonce_count example

---

 modules/auth/README         |    6 ++++--
 modules/auth/doc/params.xml |    6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/modules/auth/README b/modules/auth/README
index e70cf07..92e4641 100644
--- a/modules/auth/README
+++ b/modules/auth/README
@@ -194,8 +194,10 @@ modparam("auth", "qop", "auth")    # enable qop=auth
 route{
 ...
         # go stateful and catch retransmissions
-        if (!t_newtran())
-                drop; # retransmission
+        if (!t_newtran()) {
+            xlog("L_NOTICE", "Failed to create new transaction\n");
+            drop;
+        };
         if (method=="REGISTER"){
                 if (!www_authenticate("test", "credentials")){
                         # reply must be sent with t_reply because the
diff --git a/modules/auth/doc/params.xml b/modules/auth/doc/params.xml
index af44e2a..ad84251 100644
--- a/modules/auth/doc/params.xml
+++ b/modules/auth/doc/params.xml
@@ -194,8 +194,10 @@ modparam("auth", "qop", "auth")    # enable qop=auth
 route{
 ...
 	# go stateful and catch retransmissions
-	if (!t_newtran())
-		drop; # retransmission
+	if (!t_newtran()) {
+	    xlog("L_NOTICE", "Failed to create new transaction\n");
+ 	    drop;
+	};
 	if (method=="REGISTER"){
 		if (!www_authenticate("test", "credentials")){
 			# reply must be sent with t_reply because the 




More information about the sr-dev mailing list