@@ -332,6 +332,18 @@ static inline int authenticate(struct sip_msg* msg, str* realm, authdb_table_inf
ret = -1;
switch(auth_api.pre_auth(msg, realm, hftype, &h, NULL)) {
+ case NONCE_REUSED:
+ LM_DBG("nonce reused");
+ ret = AUTH_NONCE_REUSED;
+ goto end;
+ case STALE_NONCE:
+ LM_DBG("stale nonce\n");
+ ret = AUTH_STALE_NONCE;
+ case NO_CREDENTIALS:
+ LM_DBG("no credentials\n");
+ ret = AUTH_NO_CREDENTIALS;
case ERROR:
case BAD_CREDENTIALS:
ret = -3;