You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/test/unit/30.cfg

31 lines
594 B

debug=2
loadpath "../../modules/:../../modules_k/"
loadmodule "sl"
loadmodule "../../modules/tm/tm.so"
loadmodule "xlog"
loadmodule "maxfwd"
loadmodule "pv"
loadmodule "../../modules/carrierroute/carrierroute.so"
route{
# initial sanity checks
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
return;
}
if (msg:len > 4096) {
sl_send_reply("513", "Message too big");
return;
}
# default route
if (!cr_route("default", "proxy", "$rU", "$rU", "call_id")) {
xlog("L_ERR", "cr_route failed\n");
exit;
}
if (!t_relay()) {
sl_reply_error();
}
}