route[2] {
# -----------------------------------------------------------------
# REGISTER Message Handler
# ----------------------------------------------------------------
if (!www_authorize("192.168.1.67","subscriber")) {
www_challenge("$td","0");
break;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
# -----------------------------------------------------------------
# INVITE Message Handler
# -----------------------------------------------------------------
if (!proxy_authorize("$fd","subscriber")) {
proxy_challenge("$fd","0");
break;
};
consume_credentials();
# Forward to SDIN S3
rewritehostport("uk.sdin.bt.net:5060");
forward(uk.sdin.bt.net,5060);
break;
}
route[4] {
# -----------------------------------------------------------------
# CANCEL or ACK Message Handler
# -----------------------------------------------------------------
# Forward to SDIN S3
rewritehostport("uk.sdin.bt.net:5060");
forward(uk.sdin.bt.net,5060);
break;
}
========================================================