test/test1.cfg
71b44bf0
 # test config file
 
 /* C style comment */
 
 /*
  * same thing but on multiple lines
  */
 
 /*
   /* Nested
     comment */
 */
 
 
 debug=1
 dns=true #comment on the same line
 
 route{
36ce7f10
 	(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");
36a0a8ee
 	( uri=~"test\n" &  ! src_ip=~"dorian") forward(dorian.fokus.gmd.de);
71b44bf0
 
36a0a8ee
 	(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri=~"s$") \
71b44bf0
 		error("440","not forwarding"); log(2,"droping..."); drop;
 
 	src_ip==127.0.0.1 route(3); drop;
 }
 
 fork=no
 
 route[3]{
 	(src_ip==0.0.0.0/0) exec('/bin/ls >/tmp/x'); send(4.3.2.1,8000); /* catch all */
 }
 
 /* eof */