test1.cfg 654 B

12345678910111213141516171819202122232425262728293031323334
  1. # test config file
  2. /* C style comment */
  3. /*
  4. * same thing but on multiple lines
  5. */
  6. /*
  7. /* Nested
  8. comment */
  9. */
  10. debug=1
  11. dns=true #comment on the same line
  12. route{
  13. (method==invite and src_ip==1.2.3.4/32 or (src_ip==4.3.2.1 and src_ip==11.12.13.14/24) ) log("test log\n"); forward("ape");
  14. ( uri=~"test\n" & ! src_ip=~"dorian") forward(dorian.fokus.gmd.de);
  15. (src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri=~"s$") \
  16. error("440","not forwarding"); log(2,"droping..."); drop;
  17. src_ip==127.0.0.1 route(3); drop;
  18. }
  19. fork=no
  20. route[3]{
  21. (src_ip==0.0.0.0/0) exec('/bin/ls >/tmp/x'); send(4.3.2.1,8000); /* catch all */
  22. }
  23. /* eof */