Re: [SR-Users] 503 on DB Error

2011-12-10 Thread Olle E. Johansson
9 dec 2011 kl. 18:54 skrev Spencer Thomason: > Hello all, > Is it possible to configure Kamailio to reply to a request with a 503 if it > cannot connect to a necessary database for the operation? > > I.e. Kamailio cannot connect to the database, when a REGISTER comes in and > userloc can't fi

[SR-Users] route return value confusion

2011-12-10 Thread Juha Heinanen
i have defined two routes: route [TEST_ROUTE_MINUS_ONE] { return (-1); } route [TEST_ROUTE_PLUS_ONE] { return (1); } and then test them with these statements: if (route(TEST_ROUTE_MINUS_ONE) == -1) { xlog("L_INFO", "TEST_ROUTE returned -1\n"); } if (!route(TEST_