Upgrade 3CX to v18 and get it hosted free!

SER example logging

Author image

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


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.