<br>this is my openser.cfg<br>#<br># $Id: openser.cfg,v <a href="http://1.6.2.1">1.6.2.1</a> 2006/07/17 15:51:03 klaus_darilion Exp $<br>#<br># simple quick-start config script<br>#<br><br># ----------- global configuration parameters ------------------------
<br><br>debug=3 # debug level (cmd line: -dddddddddd)<br>fork=yes # Set to no to enter debugging mode<br>log_stderror=no # (cmd line: -E) Set to yes to enter debugging mode<br><br>check_via=no # (cmd. line: -v)
<br>dns=no # (cmd. line: -r)<br>rev_dns=no # (cmd. line: -R)<br>port=5060<br>children=4<br>fifo="/tmp/openser_fifo"<br><br>#<br># uncomment the following lines for TLS support<br>#disable_tls = 0<br>
#listen = tls:your_IP:5061<br>#tls_verify_server = 1<br>#tls_verify_client = 1<br>#tls_require_client_certificate = 0<br>#tls_method = TLSv1<br>#tls_certificate = "/etc/openser/tls/user/user-cert.pem"<br>#tls_private_key = "/etc/openser/tls/user/user-
privkey.pem"<br>#tls_ca_list = "/etc/openser/tls/user/user-calist.pem"<br><br># ------------------ module loading ----------------------------------<br><br># Uncomment this if you want to use SQL database<br>
loadmodule "/usr/lib/openser/modules/mysql.so"<br><br>loadmodule "/usr/lib/openser/modules/sl.so"<br>loadmodule "/usr/lib/openser/modules/tm.so"<br>loadmodule "/usr/lib/openser/modules/rr.so"
<br>loadmodule "/usr/lib/openser/modules/maxfwd.so"<br>loadmodule "/usr/lib/openser/modules/usrloc.so"<br>loadmodule "/usr/lib/openser/modules/registrar.so"<br>loadmodule "/usr/lib/openser/modules/textops.so"
<br>#loadmodule "mi_fifo.so"<br># Uncomment this if you want digest authentication<br># mysql.so must be loaded !<br>loadmodule "/usr/lib/openser/modules/auth.so"<br>loadmodule "/usr/lib/openser/modules/auth_db.so"
<br><br># ----------------- setting module-specific parameters ---------------<br><br># -- usrloc params --<br>#modparam("mi_fifo","fifo_name","/tmp/openser_fifo")<br>#modparam("usrloc", "db_mode", 0)
<br><br># Uncomment this if you want to use SQL database <br># for persistent storage and comment the previous line<br>modparam("usrloc", "db_mode", 2)<br><br># -- auth params --<br># Uncomment if you are using auth module
<br>#<br>modparam("auth_db", "calculate_ha1", yes)<br>#<br># If you set "calculate_ha1" parameter to yes (which true in this config), <br># uncomment also the following parameter)<br>#<br>modparam("auth_db", "password_column", "password")
<br><br># -- rr params --<br># add value to ;lr param to make some broken UAs happy<br>modparam("rr", "enable_full_lr", 1)<br><br># ------------------------- request routing logic -------------------<br>
<br># main routing logic<br><br>route{<br><br> # initial sanity checks -- messages with<br> # max_forwards==0, or excessively long requests<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");
<br> exit;<br> };<br><br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");<br> exit;<br> };<br><br> # we record-route all messages -- to make sure that
<br> # subsequent messages will go through our proxy; that's<br> # particularly good if upstream and downstream entities<br> # use different transport protocol<br> if (!method=="REGISTER")<br> record_route();
<br><br> # subsequent messages withing a dialog should take the<br> # path determined by record-routing<br> if (loose_route()) {<br> # mark routing logic in request<br> append_hf("P-hint: rr-enforced\r\n");
<br> route(1);<br> };<br><br> if (!uri==myself) {<br> # mark routing logic in request<br> append_hf("P-hint: outbound\r\n"); <br> # if you have some interdomain connections via TLS
<br> #if(uri=~"@tls_domain1.net") {<br> # t_relay("tls:<a href="http://domain1.net">domain1.net</a>");<br> # exit;<br> #} else if(uri=~"@tls_domain2.net") {<br>
# t_relay("tls:<a href="http://domain2.net">domain2.net</a>");<br> # exit;<br> #}<br> route(1);<br> };<br><br> # if the request is for other domain use UsrLoc<br> # (in case, it does not work, use the following command
<br> # with proper names and addresses in it)<br> if (uri==myself) {<br><br> if (method=="REGISTER") {<br><br> # Uncomment this if you want to use digest authentication<br> if (!www_authorize("localhost", "subscriber")) {
<br> www_challenge("localhost", "0");<br> exit;<br> };<br><br> save("location");<br> exit;<br> };<br><br> lookup("aliases");
<br> if (!uri==myself) {<br> append_hf("P-hint: outbound alias\r\n"); <br> route(1);<br> };<br><br> # native SIP destinations are handled using our USRLOC DB<br> if (!lookup("location")) {
<br> sl_send_reply("404", "Not Found");<br> exit;<br> };<br> append_hf("P-hint: usrloc applied\r\n"); <br> };<br><br> route(1);<br>}<br><br><br>route[1] {
<br> # send it out now; use stateful forwarding as it works reliably<br> # even for UDP2TCP<br> if (!t_relay()) {<br> sl_reply_error();<br> };<br> exit;<br>}<br><br><br>-- <br>=====================================================
<br>Legolas_Bilbao[ID2006][GKR]<br>Dios creo un equipo Perfecto a los demas los lleno de extranjeros<br><a href="http://www.forosindicedonkey.com">http://www.forosindicedonkey.com</a><br><a href="http://usuarios.lycos.es/ligaforo/">
http://usuarios.lycos.es/ligaforo/</a><br>=====================================================