Juha Heinanen writes:

 > i'm getting syntax error on last line of this kind of switch statement:
 > 
 >      if (defined($fd.foo)) {
 >          switch ($fd.foo) {
 >              case "fi":
 >              route(TEST);
 >              return($retcode);
 > 
 > why is that?  in k, that kind of construct used to work.

i figured it out, $retcode does not exist in sr.  $rc works.

-- juha

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to