|
@@ -780,18 +780,16 @@ int save(struct sip_msg* _m, char* _d, char* _cflags)
|
|
goto error;
|
|
goto error;
|
|
ret = (ret==0)?1:ret;
|
|
ret = (ret==0)?1:ret;
|
|
}
|
|
}
|
|
-#ifdef STATISTICS
|
|
|
|
|
|
+
|
|
update_stat(accepted_registrations, 1);
|
|
update_stat(accepted_registrations, 1);
|
|
-#endif
|
|
|
|
|
|
+
|
|
/* Only send reply upon request, not upon reply */
|
|
/* Only send reply upon request, not upon reply */
|
|
if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) && (reg_send_reply(_m) < 0))
|
|
if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) && (reg_send_reply(_m) < 0))
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
error:
|
|
error:
|
|
-#ifdef STATISTICS
|
|
|
|
update_stat(rejected_registrations, 1);
|
|
update_stat(rejected_registrations, 1);
|
|
-#endif
|
|
|
|
if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) )
|
|
if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) )
|
|
reg_send_reply(_m);
|
|
reg_send_reply(_m);
|
|
|
|
|