"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/examples/logging.cfg" (16 Apr 2019, 552 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # logging example
    3 #
    4 
    5 # ------------------ module loading ----------------------------------
    6 
    7 port=5060
    8 log_stderror=yes
    9 log_level=3
   10 
   11 
   12 # -------------------------  request routing logic -------------------
   13 
   14 # main routing logic
   15 
   16 route{
   17 	# for testing purposes, simply okay all REGISTERs
   18 	if (is_method("REGISTER")) {
   19 		log(1, "REGISTER received\n");
   20 	} else {
   21 		log(1, "non-REGISTER received\n");
   22 	};
   23 	if ($ru=~"sip:.*[@:]siphub.net") {
   24 		xlog("request for siphub.net received\n");
   25 	} else {
   26 		xlog("request for other domain [$rd] received\n");
   27 	};
   28 }