Browse code

- made changes in watchers table ( version increased )

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2619 689a6050-402a-0410-94f2-e92a70836424

Anca Vamanu authored on 20/08/2007 08:47:47
Showing 2 changed files
... ...
@@ -59,7 +59,7 @@
59 59
 
60 60
 MODULE_VERSION
61 61
 
62
-#define S_TABLE_VERSION  1
62
+#define S_TABLE_VERSION  2
63 63
 #define P_TABLE_VERSION  2
64 64
 #define ACTWATCH_TABLE_VERSION 6
65 65
 
... ...
@@ -856,6 +856,12 @@ int handle_subscribe(struct sip_msg* msg, char* str1, char* str2)
856 856
 	db_vals[n_query_cols].nul = 0;
857 857
 	db_vals[n_query_cols].val.str_val = subs.from_domain;
858 858
 	n_query_cols++;
859
+	
860
+	db_keys[n_query_cols] ="event";
861
+	db_vals[n_query_cols].type = DB_STR;
862
+	db_vals[n_query_cols].nul = 0;
863
+	db_vals[n_query_cols].val.str_val = subs.event->name;
864
+	n_query_cols++;
859 865
 
860 866
 	result_cols[0] = "subs_status";
861 867
 	result_cols[1] = "reason";