See also: Kamailio 3.0.x - DYK - Table of Content
Another enhancement Kamailio 3.0.x brought is usage of break inside case branches of switch statement. With older versions, break can be used only at the end of case branch:
switch($ru) {It was no way to break out from inside the actions list. With 3.0 you can do it:
case "101":
# actions here
break;
case "102":
# actions here
break;
}
switch($ru) {Very good to make the execution of switch more optimized and the actions list inside simpler.
case "101":
# some actions here
if(condition) {
break;
}
# other actions here
break;
case "102":
# some actions here
break;
}
No comments:
Post a Comment