SER example logging

SER logging example


  1. $Id: logging.cfg,v 1.1 2003/02/27 20:29:25 jiri Exp $
  2. logging example

  1. ------------------ module loading ----------------------------------

fork=no
listen=192.168.2.16
log_stderror=yes
debug=3


  1. ------------------------- request routing logic -------------------

  1. main routing logic

route{
  1. 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:.*[@:]iptel.org") {
log(1, "request for iptel.org received\n");
} else {
log(1, "request for other domain received\n");
};
}

See also


Back to SER tips and tricks

SER logging example


  1. $Id: logging.cfg,v 1.1 2003/02/27 20:29:25 jiri Exp $
  2. logging example

  1. ------------------ module loading ----------------------------------

fork=no
listen=192.168.2.16
log_stderror=yes
debug=3


  1. ------------------------- request routing logic -------------------

  1. main routing logic

route{
  1. 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:.*[@:]iptel.org") {
log(1, "request for iptel.org received\n");
} else {
log(1, "request for other domain received\n");
};
}

See also


Back to SER tips and tricks
Created by: oej, Last modification: Fri 19 of Sep, 2003 (19:53 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+