examples/kamailio/logging.cfg
91301510
 #
 # $Id$
 #
 # logging example
 #
 
 # ------------------ module loading ----------------------------------
 
 fork=no
00daf736
 port=5060
91301510
 log_stderror=yes
 debug=3
 
 
 # -------------------------  request routing logic -------------------
 
 # main routing logic
 
 route{
 	# for testing purposes, simply okay all REGISTERs
 	if (method=="REGISTER") {
 		log(1, "REGISTER received\n");
 	} else {
 		log(1, "non-REGISTER received\n");
 	};
 	if (uri=~"sip:.*[@:]siphub.net") {
 		log(1, "request for siphub.net received\n");
 	} else {
 		log(1, "request for other domain received\n");
 	};
 }