[Serusers] least configuration for running the ser

varala ramakanth varala_kanth at yahoo.com
Wed Jul 14 09:17:19 CEST 2004


hello friends,

mines os is-Linux i686 i686 i386 GNU/Linux
ser is -ser 0.8.12-tcp_nonb (i386/linux)

iam trying to find out the least configuration for the

ser to run .

i.e i just want to establish a seesion between two sip


end points which are in public ip and the ser is also 

in public ip .

so with my analysis i found this as the least,

can any body suggest that further decrease the
statements .

with regrards 
rama kanth

ser.cfg is
---------------------------------------------------
---- global configuration parameters
------------------------

debug=8         # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes        # (cmd line: -E)


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
----------------------------------

# Uncomment this if you want to use SQL database

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"


# ----------------- setting module-specific parameters
---------------

# -- usrloc params --
modparam("usrloc", "db_mode",   0)


# -------------------------  request routing logic
-------------------

# main 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;
        };


        record_route();
              if (loose_route()) {
                t_relay();
                break;
        };

        if (uri==myself) {

                if (method=="REGISTER") {
                        save("location");
                        break;
                };

                if (!lookup("location")) {
                        sl_send_reply("404", "Not
Found");
                        break;
                };
        };

        if (!t_relay()) {
                sl_reply_error();
        };

}





		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 




More information about the sr-users mailing list