Hi Paul,
yes, this syntax is valid. A route() call returns as all the other SER
cfg function true or false. The return value of a route is equal to a
return value of the last function call from the route.
NOTE: break returns all the time true :-)
Best regards,
Marian
Java Rockx wrote:
Hi All.
Is this allowed in ser.cfg and if so, what causes route(1) to evaluate true or false?
route {
if (route(1)) {
.. do something
} else {
.. do something else
};
}
route[1] {
if (some_condition) {
setflag(xx);
} else {
break;
};
}
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
--
Voice System
http://www.voice-system.ro