[OpenSIPS-Users] Active_dialogs=0?

M.Abdulaziz malduwais1 at ksu.edu.sa
Mon Dec 12 19:16:03 CET 2011


Hello, 

Thank you for helping I solved the problem it was caused from using
forward() instead of t_relay() when I just changed this function the
statistics has changed.



here is my .cfg & I'm using opensips version 1.7.0


Note: I want to forward a copy of the server's response to (400 Bad Request)
to another port in the machine is there any fuction to do this?

#
# $Id: openser.cfg 1676 2007-02-21 13:16:34Z bogdan_iancu $
#
# simple quick-start config script
# Please refer to the Core CookBook at
http://www.openser.org/dokuwiki/doku.php
# for a explanation of possible statements, functions and parameters.
#

# ----------- global configuration parameters ------------------------

debug=6            # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes    # (cmd line: -E)
children=2
log_facility=LOG_LOCAL0
log_name="OPENSIPS-proxy"
disable_tcp=yes
disable_dns_blacklist=yes
disable_dns_failover=yes

# Uncomment these lines to enter debugging mode 
#fork=no
#log_stderror=yes
#

listen=udp:192.168.1.69:5060

# ------------------ module loading ----------------------------------
mpath="/usr/local/lib64/opensips/modules/"

loadmodule "tm.so"
loadmodule "sl.so"
loadmodule "textops.so"
loadmodule "db_mysql.so"
loadmodule "dialog.so"
loadmodule "mi_fifo.so"
loadmodule "usrloc.so"
loadmodule "signaling.so"
loadmodule "maxfwd.so"
loadmodule "rr.so"
loadmodule "registrar.so"


modparam("tm", "wt_timer", 2)

modparam("dialog","enable_stats",1)

#modparam("dialog","db_mode",1)

modparam("usrloc", "db_mode",   2)

modparam("usrloc", "db_url","mysql://root:opensips@localhost/opensips")

modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0666)





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

# main routing logic

route{
#create_dialog("Pp");
#set_dlg_flag("13");

if(is_method("REGISTER"))
	{
create_dialog();
		#set_time_stamp("before new ul save");
		save("location");
		#diff_time_stamp(1,"after ul save");
		exit;
	}

	#set_time_stamp("before new ul lookup");
	if(lookup("location"))
	{
		#diff_time_stamp(1,"after ul lookup");
		sl_send_reply("200", "ok");
	} else {
		#diff_time_stamp(1,"after ul lookup");
		sl_send_reply("404", "not found");
	}

 if (method=="INVITE")
    create_dialog();

  if(search_body("health check") ) {

# I want to forward a copy of this replay to another port Is it possible to
send this same replay to many ports at the same time?

   sl_send_reply("400", "Bad Request");

    exit;
  };
	t_relay();
             #forward();

}


Thank you,

--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Active-dialogs-0-tp7084655p7087191.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list