2
0
Эх сурвалжийг харах

kamaili.cfg: basic updates to make it work with SR core
(cherry picked from commit 5adb83ef2c7e6f1e07a2df1f7f26e6933f7f34ab)

Daniel-Constantin Mierla 16 жил өмнө
parent
commit
10a05af721
1 өөрчлөгдсөн 9 нэмэгдсэн , 4 устгасан
  1. 9 4
      etc/kamailio.cfg

+ 9 - 4
etc/kamailio.cfg

@@ -4,6 +4,7 @@
 # Kamailio (OpenSER) SIP Server - basic configuration script
 #     - web: http://www.kamailio.org
 #     - svn: http://openser.svn.sourceforge.net/viewvc/openser/
+#     - git: http://sip-router.org
 #
 # Direct your questions about this file to: <[email protected]>
 #
@@ -57,6 +58,8 @@
 ####### Global Parameters #########
 
 debug=3
+memdbg=5
+memlog=5
 log_stderror=no
 log_facility=LOG_LOCAL0
 
@@ -110,8 +113,10 @@ mpath="/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/"
 /* uncomment next line for MySQL DB support */
 #m#loadmodule "db_mysql.so"
 loadmodule "mi_fifo.so"
+loadmodule "kex.so"
 loadmodule "sl.so"
 loadmodule "tm.so"
+loadmodule "tmx.so"
 loadmodule "rr.so"
 loadmodule "pv.so"
 loadmodule "maxfwd.so"
@@ -345,7 +350,7 @@ route{
 		exit;
 	}
 
-	if ($rU==NULL) {
+	if ($rU==$null) {
 		# request with no Username in RURI
 		sl_send_reply("484","Address Incomplete");
 		exit;
@@ -355,7 +360,7 @@ route{
 	##alias_db_lookup("dbaliases");
 
 	if (!lookup("location")) {
-		switch ($retcode) {
+		switch ($rc) {
 			case -1:
 			case -3:
 				t_newtran();
@@ -420,7 +425,7 @@ route[2]
 #p#	exit;
 	
 	# if presence enabled, this part will not be executed
-	if (is_method("PUBLISH") || $rU==null)
+	if (is_method("PUBLISH") || $rU==$null)
 	{
 		sl_send_reply("404", "Not here");
 		exit;
@@ -523,7 +528,7 @@ failure_route[1] {
 #n#		unforce_rtp_proxy();
 #n#	}
 
-	if (t_was_cancelled()) {
+	if (t_is_canceled()) {
 		exit;
 	}