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

-fixed extra uncommented code related to presence.

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3284 689a6050-402a-0410-94f2-e92a70836424
Bogdan-Andrei Iancu 18 жил өмнө
parent
commit
af4032cba3
1 өөрчлөгдсөн 26 нэмэгдсэн , 22 устгасан
  1. 26 22
      etc/openser.cfg

+ 26 - 22
etc/openser.cfg

@@ -269,9 +269,10 @@ route{
 	}
 
 	# requests for my domain
-	
+
 	/* uncomment this if you want to enable presence server 
-	   and comment the next 'if' block */
+	   and comment the next 'if' block
+	   NOTE: uncomment also the definition of route[2] from  below */
 	##if( is_method("PUBLISH|SUBSCRIBE"))
 	##		route(2);
 
@@ -346,27 +347,30 @@ route[1] {
 	exit;
 }
 
+
 # Presence route
-route[2]
-{
-	if (!t_newtran())
-    {
-        sl_reply_error();
-        exit;
-     };
-
-		
-	if(is_method("PUBLISH"))
-	{
-		handle_publish();
-		t_release();
-	} 
-	else 
-	if( is_method("SUBSCRIBE"))
-	{
-		handle_subscribe();
-			t_release();
-	}
+/* uncomment the whole following route for enabling presence
+   NOTE: do not forget to enable the call of this route from the main
+     route */
+##route[2]
+##{
+##	if (!t_newtran())
+##	{
+##		sl_reply_error();
+##		exit;
+##	};
+##
+##	if(is_method("PUBLISH"))
+##	{
+##		handle_publish();
+##		t_release();
+##	}
+##	else
+##	if( is_method("SUBSCRIBE"))
+##	{
+##		handle_subscribe();
+##		t_release();
+##	}
 
 	exit;
 }