debug=2
loadmodule "sl"
loadmodule "tm/tm.so"
loadmodule "xlog"
loadmodule "maxfwd"
loadmodule "pv"
loadmodule "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();
	}
}