test/struas.cfg
caf80ae6
 #
 # $Id$
 #
 # iptel.org real world configuration
 #
 
 # ----------- global configuration parameters ------------------------
 
 debug=3
 fork=no
 #children=2
 log_stderror=yes	# (cmd line: -E)
 check_via=yes     # (cmd. line: -v)
 dns=0           # (cmd. line: -r)
 rev_dns=0      # (cmd. line: -R)
 port=5088
 reply_to_via=no
 
 # advertise IP address in Via (as opposed to advertising DNS name
 # which is annoying for downstream servers and some phones can
 # not handle DNS at all)
 listen=195.37.77.100
 
 # ------------------ module loading ----------------------------------
 
 loadmodule "../sip_router/modules/sl/sl.so"
 loadmodule "../sip_router/modules/print/print.so"
 
 # ----------------- setting module-specific parameters ---------------
 
 
 # -------------------------  request routing logic -------------------
 
 # main routing logic
 
 route{
e58a9c9b
 	if (method=="CANCEL") {
 		sl_send_reply("200", "glad to cancel");
 		break;
caf80ae6
 	};
e58a9c9b
 	sl_send_reply("180", "Jinggle Bells");
caf80ae6
 }