if (method=="INVITE" && client_nat_test("3")) {
}
I have met similar issue. There is nothing in between "{" and "}" and
SER
does not like this. Try to add an extra line into it such as:
log(1, "this is INVITE block\n");
etc, it will solve the syntax error