Hello,
are you using latest sr from git of
http://sip-router.org?
I just tested something similar and it starts.
Cheers,
Daniel
On 05/28/2009 09:01 PM, Edson - Lists wrote:
Hi, Guys...
I use a 'switch' block to drive decisions after a failed 'lookup' (on
router-block). In theory all Ok, but....
In the body of this switch, if I use a 'break' inside an 'if' it gives
me error, saying that it's not allowed.
See below the code.
What am I doing wrong?
Edson.
========================================================
route[1] {
if (!lookup("location") {
switch ($retcode) {
case -1:
case -3:
if ('situation A') {
t_on_failure("1");
break;
} else {
if ('condition b') {
if ('condition b.1') {
t_on_failure("2");
break;
};
};
};
exit;
case -2:
sl_send_reply("500", "Internal lookup error");
exit;
}
}
if (!t_relay()) {
sl_reply_error();
}
exit;
}
_______________________________________________
sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com/