[sr-dev] git:master: auth_radius: Improve error message to simplify debugging

Olle E. Johansson oej at edvina.net
Fri May 30 10:22:15 CEST 2014


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

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date:   Fri May 30 09:20:49 2014 +0100

auth_radius: Improve error message to simplify debugging

---

 modules/auth_radius/sterman.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/auth_radius/sterman.c b/modules/auth_radius/sterman.c
index be4dcf3..93cd416 100644
--- a/modules/auth_radius/sterman.c
+++ b/modules/auth_radius/sterman.c
@@ -409,7 +409,7 @@ int radius_authorize_sterman(struct sip_msg* _msg, dig_cred_t* _cred, str* _meth
                         goto err;
                 }
 #endif 
-		LM_ERR("authorization failed\n");
+		LM_ERR("authorization failed. RC auth returned %d\n", i);
 	}
 
  err:




More information about the sr-dev mailing list