|
@@ -156,13 +156,15 @@ onreply_route[REGISTER_reply]
|
|
xlog("L_DBG", "REGISTER SUCCESS[$ci] took $var(stat_add)ms\n");
|
|
xlog("L_DBG", "REGISTER SUCCESS[$ci] took $var(stat_add)ms\n");
|
|
update_stat("register_success", "+1");
|
|
update_stat("register_success", "+1");
|
|
update_stat("register_time", "$var(stat_add)");
|
|
update_stat("register_time", "$var(stat_add)");
|
|
- ipsec_forward("location");
|
|
|
|
|
|
+#!ifdef WITH_IPSEC
|
|
|
|
+ ipsec_forward("location");
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
if (t_check_status("401")) {
|
|
if (t_check_status("401")) {
|
|
ipsec_create("location");
|
|
ipsec_create("location");
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+#!endif
|
|
|
|
+ }
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|