[Serusers] ser.cfg

sai latha sailatha_atp at yahoo.com
Tue Feb 15 07:16:03 CET 2005


Hi All


---------------------------------
These is my configuration file
---------------------------------
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei
Exp $
#
# simple quick-start config script
#
                                                      
                      
# ----------- global configuration parameters
------------------------
                                                      
                      
#debug=3         # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no        # (cmd line: -E)
                                                      
                      
#Uncomment these lines to enter debugging mode
debug=8
fork=yes
log_stderror=yes
                                                      
                      
check_via=no      # (cmd. line: -v)
dns=no           # (cmd. line: -r)
rev_dns=no      # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
                                                      
                      
# ------------------ module loading
----------------------------------
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
                                                      
                      
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
                                                      
                      
# ----------------- setting module-specific parameters
---------------
modparam("usrloc", "db_mode",   0)
modparam("rr", "enable_full_lr", 1)
                                                      
                      
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
#modparam("auth_radius", "service_type", 15)
                                                      
                      
# -------------------------  request routing logic
-------------------
                                                      
                      
route{
                                                      
                      
     if (!mf_process_maxfwd_header("10")) {
           sl_send_reply("483","Too Many Hops");
           break;
     };
     if ( msg:len > max_len ) {
           sl_send_reply("513", "Message too big");
           break;
     }
;
                                                      
                      
     # authenticate register message using radius
     if (method=="REGISTER") {
  # Uncomment this if you want to use digest
authentication
           if (!radius_www_authorize("")) {
                 www_challenge("","0");
                 break;
           };
           save("location");
           break;
     };
                                                      
                      
     # route (proxy) invite message to gateway
#     if (method=="INVITE") || (method=="CANCEL") {
           # Uncomment this if you want to use digest
authentication
#           if (!radius_www_authorize("")) {
 #                www_challenge("", "0");
  #               break;
   #        };
     if (method=="INVITE") || (method=="CANCEL") {
           # Uncomment this if you want to use digest
authentication
          if (!radius_www_authorize("")) {
              www_challenge("","0");
   break;
           };
            record_route();
           rewritehostport("cisco_sip_gw_ip:5060");
           if (!t_relay()) {
                 sl_reply_error();
           };
           break;
     };
}
                                                      
                      
--------------------------------------------
When it is running it showes the this result
--------------------------------------------
 0(14249) DEBUG: init_mod: auth
 0(14249) auth module - initializing
 0(14249) find_export: found <sl_send_reply> in module
sl_module [/usr/local/lib/ser/modules/sl.so]
 0(14249) DEBUG: init_mod: auth_radius
 0(14249) auth_radius - Initializing

Upto this it shows after this it does not says SER is
ready

when i run ./serctl moni
[cycle #: 1; if constant make sure server lives and
fifo is on]

SER is not showing  server is ready
please tell me 

Thank u
Silatha


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250




More information about the sr-users mailing list