/*
 * test along with nmr.sip
 *
 */

listen=127.0.0.1
port=6060
fork=no
log_stderror=yes

loadmodule "/home/srouter/sip_router/modules/sl/sl.so"
loadmodule "/home/srouter/sip_router/modules/textops/textops.so"


route {
	if (!search("^(From|f)\:.*sip\:[0-9]+@")) {
		  log(1, " From non-numerical\n");
          sl_send_reply("400", "entry numerical from check failed\n");
          break;
    };
    log(1, " From numerical\n");
    sl_send_reply("200", "entry numerical from check ok\n");
}

