In the scenario below, if the first t_replicate fails because 192.168.10.5 returns
"Not Found", the second t_replicate command does not execute. Why? How can I
make it execute? Call me crazy, but this doesn't seem at all intuitive to me. In a
functional programming world, if the first fails, the next should still run.
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("voip.com", "subscriber"))
{
www_challenge("voip.com", "0");
exit;
};
save("location");
t_replicate("192.168.10.5","5060");
t_replicate("192.168.10.7","5060");
exit;
};
Thanks,
Doug.
Show replies by date