Browse code

modules_k/*: moved k modules in directory modules/

Daniel-Constantin Mierla authored on 20/01/2013 11:57:52
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,47 +0,0 @@
1
-/*
2
- * $Id$
3
- *
4
- * pua module - presence user agent module
5
- *
6
- * Copyright (C) 2006 Voice Sistem S.R.L.
7
- *
8
- * This file is part of Kamailio, a free SIP server.
9
- *
10
- * Kamailio is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version
14
- *
15
- * Kamailio is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License 
21
- * along with this program; if not, write to the Free Software 
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
- */
24
-
25
-
26
-#include "pua_bind.h"
27
-#include "../../dprint.h"
28
-#include "hash.h"
29
-
30
-int bind_pua(pua_api_t* api)
31
-{
32
-	if (!api) {
33
-		LM_ERR("Invalid parameter value\n");
34
-		return -1;
35
-	}
36
-
37
-	api->send_publish   =  send_publish; 
38
-	api->send_subscribe =  send_subscribe;
39
-	api->register_puacb =  register_puacb;
40
-	api->is_dialog      =  is_dialog;
41
-	api->get_record_id  =  get_record_id;
42
-	api->add_event      =  add_pua_event;
43
-	api->get_subs_list  =  get_subs_list;
44
-
45
-	return 0;
46
-}
47
-
Browse code

modules_k/pua, modules_k/rls: Updated rls_update_subs() to remove back-end SUBSCRIBE dialogs when a contact is removed from a resource list

- rls_update_subs() should be called in kamailio.cfg whenever a resource list
changes. The initial version just created new back-end SUBSCRIBE dialogs for
new contacts. This meant that dialogs for removed contacts would remain until
the dialog expired by itself - which means that NOTIFYs for presence changes
to contacts that have been removed will continue to be sent (and with some
clients displayed) for a while after the contact was deleted.
- Working out when a contact has been deleted is a bit more tricky than working
out which ones are new. The mechanism used is to build two insert-sorted
lists. List one contains the contacts in the contact list, list two contains
the active back-end dialogs. You can then pop the top item from list one and
search and remove it from list two (it should be near the top of list two as
they are both sorted). Once you have been through list one the remaining URIs
in list two are those that have been deleted from the contact list.

Peter Dunkley authored on 29/02/2012 14:52:23
Showing 1 changed files
... ...
@@ -40,6 +40,7 @@ int bind_pua(pua_api_t* api)
40 40
 	api->is_dialog      =  is_dialog;
41 41
 	api->get_record_id  =  get_record_id;
42 42
 	api->add_event      =  add_pua_event;
43
+	api->get_subs_list  =  get_subs_list;
43 44
 
44 45
 	return 0;
45 46
 }
Browse code

* modules: presence_mwi, presence_xml, pua, pua_mi

Moved back to modules_k presence related modules, because they include
stuff from sl module that does not exist in modules yet.

Juha Heinanen authored on 18/04/2009 12:53:54
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,46 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * pua module - presence user agent module
5
+ *
6
+ * Copyright (C) 2006 Voice Sistem S.R.L.
7
+ *
8
+ * This file is part of Kamailio, a free SIP server.
9
+ *
10
+ * Kamailio is free software; you can redistribute it and/or modify
11
+ * it under the terms of the GNU General Public License as published by
12
+ * the Free Software Foundation; either version 2 of the License, or
13
+ * (at your option) any later version
14
+ *
15
+ * Kamailio is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+ * GNU General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU General Public License 
21
+ * along with this program; if not, write to the Free Software 
22
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
+ */
24
+
25
+
26
+#include "pua_bind.h"
27
+#include "../../dprint.h"
28
+#include "hash.h"
29
+
30
+int bind_pua(pua_api_t* api)
31
+{
32
+	if (!api) {
33
+		LM_ERR("Invalid parameter value\n");
34
+		return -1;
35
+	}
36
+
37
+	api->send_publish   =  send_publish; 
38
+	api->send_subscribe =  send_subscribe;
39
+	api->register_puacb =  register_puacb;
40
+	api->is_dialog      =  is_dialog;
41
+	api->get_record_id  =  get_record_id;
42
+	api->add_event      =  add_pua_event;
43
+
44
+	return 0;
45
+}
46
+
Browse code

* modules: peering, pua, pua_mi, presence, presence_xml, presence_mwi

Moved some k modules that don't exist in s from modules_k to modules.

Juha Heinanen authored on 18/04/2009 12:29:07
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,46 +0,0 @@
1
-/*
2
- * $Id$
3
- *
4
- * pua module - presence user agent module
5
- *
6
- * Copyright (C) 2006 Voice Sistem S.R.L.
7
- *
8
- * This file is part of Kamailio, a free SIP server.
9
- *
10
- * Kamailio is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version
14
- *
15
- * Kamailio is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License 
21
- * along with this program; if not, write to the Free Software 
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
- */
24
-
25
-
26
-#include "pua_bind.h"
27
-#include "../../dprint.h"
28
-#include "hash.h"
29
-
30
-int bind_pua(pua_api_t* api)
31
-{
32
-	if (!api) {
33
-		LM_ERR("Invalid parameter value\n");
34
-		return -1;
35
-	}
36
-
37
-	api->send_publish   =  send_publish; 
38
-	api->send_subscribe =  send_subscribe;
39
-	api->register_puacb =  register_puacb;
40
-	api->is_dialog      =  is_dialog;
41
-	api->get_record_id  =  get_record_id;
42
-	api->add_event      =  add_pua_event;
43
-
44
-	return 0;
45
-}
46
-
Browse code

- change name in copyright headers

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

Henning Westerholt authored on 28/07/2008 15:39:28
Showing 1 changed files
... ...
@@ -5,14 +5,14 @@
5 5
  *
6 6
  * Copyright (C) 2006 Voice Sistem S.R.L.
7 7
  *
8
- * This file is part of openser, a free SIP server.
8
+ * This file is part of Kamailio, a free SIP server.
9 9
  *
10
- * openser is free software; you can redistribute it and/or modify
10
+ * Kamailio is free software; you can redistribute it and/or modify
11 11
  * it under the terms of the GNU General Public License as published by
12 12
  * the Free Software Foundation; either version 2 of the License, or
13 13
  * (at your option) any later version
14 14
  *
15
- * openser is distributed in the hope that it will be useful,
15
+ * Kamailio is distributed in the hope that it will be useful,
16 16
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 17
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 18
  * GNU General Public License for more details.
Browse code

- replaced LOG/DBG with LM_

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

Anca Vamanu authored on 03/09/2007 13:47:19
Showing 1 changed files
... ...
@@ -30,7 +30,7 @@
30 30
 int bind_pua(pua_api_t* api)
31 31
 {
32 32
 	if (!api) {
33
-		LOG(L_ERR, "PUA:bind_pua: Invalid parameter value\n");
33
+		LM_ERR("Invalid parameter value\n");
34 34
 		return -1;
35 35
 	}
36 36
 
Browse code

- added a new source flag RLS_SUBSCRIBE - added a new field to subs_info_t structure - extra_headers, to be added when sending the Subscribe request - exported a new function get_record_id - fixed a bug in sending refresh for Subscribe - used the same contact as in the first request

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

Anca Vamanu authored on 30/07/2007 09:22:56
Showing 1 changed files
... ...
@@ -25,6 +25,7 @@
25 25
 
26 26
 #include "pua_bind.h"
27 27
 #include "../../dprint.h"
28
+#include "hash.h"
28 29
 
29 30
 int bind_pua(pua_api_t* api)
30 31
 {
... ...
@@ -37,6 +38,7 @@ int bind_pua(pua_api_t* api)
37 38
 	api->send_subscribe =  send_subscribe;
38 39
 	api->register_puacb =  register_puacb;
39 40
 	api->is_dialog      =  is_dialog;
41
+	api->get_record_id  =  get_record_id;
40 42
 	api->add_event      =  add_pua_event;
41 43
 
42 44
 	return 0;
Browse code

- removed pua modules dependencies to presence_xml module, inserted in the last commit; added and exported the xml functions from pua module

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

Anca Vamanu authored on 03/07/2007 16:11:59
Showing 1 changed files
... ...
@@ -33,40 +33,11 @@ int bind_pua(pua_api_t* api)
33 33
 		return -1;
34 34
 	}
35 35
 
36
-	api->send_publish = (send_publish_t )find_export
37
-		("send_publish", 1, 0);
38
-	if (api->send_publish == 0)
39
-	{
40
-		LOG(L_ERR, "PUA:bind_pua: Can't bind send_publish\n");
41
-		return -1;
42
-	}
43
-
44
-	api->send_subscribe = ( send_subscribe_t)find_export
45
-		("send_subscribe", 1, 0);
46
-	if (api->send_subscribe == 0)
47
-	{
48
-		LOG(L_ERR, "PUA:bind_pua: Can't bind send_subscribe\n");
49
-		return -1;
50
-	}
51
-	api->register_puacb = ( register_puacb_t)find_export
52
-		("register_puacb", 1, 0);
53
-	if (api->register_puacb == 0)
54
-	{
55
-		LOG(L_ERR, "PUA:bind_pua: Can't bind send_subscribe\n");
56
-		return -1;
57
-	}
58
-	api->is_dialog= (query_dialog_t)find_export("pua_is_dialog", 1, 0);
59
-	if(api->is_dialog== 0)
60
-	{
61
-		LOG(L_ERR, "PUA:bind_pua: Can't bind pua_is_dialog\n");
62
-		return -1;
63
-	}
64
-	api->add_event= (add_pua_event_t)find_export("add_pua_event", 4, 0);
65
-	if(api->add_event== 0)
66
-	{
67
-		LOG(L_ERR, "PUA:bind_pua: Can't bind add_pua_event\n");
68
-		return -1;
69
-	}
36
+	api->send_publish   =  send_publish; 
37
+	api->send_subscribe =  send_subscribe;
38
+	api->register_puacb =  register_puacb;
39
+	api->is_dialog      =  is_dialog;
40
+	api->add_event      =  add_pua_event;
70 41
 
71 42
 	return 0;
72 43
 }
Browse code

- exported add_event function to enable registering new events from other modules (events currently registered from the module are: presence, presence;winfo, dialog:sla, message-summary )

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

Anca Vamanu authored on 04/05/2007 09:16:47
Showing 1 changed files
... ...
@@ -61,6 +61,13 @@ int bind_pua(pua_api_t* api)
61 61
 		LOG(L_ERR, "PUA:bind_pua: Can't bind pua_is_dialog\n");
62 62
 		return -1;
63 63
 	}
64
+	api->add_event= (add_pua_event_t)find_export("add_pua_event", 4, 0);
65
+	if(api->add_event== 0)
66
+	{
67
+		LOG(L_ERR, "PUA:bind_pua: Can't bind add_pua_event\n");
68
+		return -1;
69
+	}
70
+
64 71
 	return 0;
65 72
 }
66 73
 
Browse code

- added support for XMPP presence and BLA - added a new column in database table- "pua" - added the possibility to have callbacks for received replies

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

Anca Vamanu authored on 04/04/2007 08:59:00
Showing 1 changed files
... ...
@@ -25,8 +25,6 @@
25 25
 
26 26
 #include "pua_bind.h"
27 27
 #include "../../dprint.h"
28
-#include "../../sr_module.h"
29
-
30 28
 
31 29
 int bind_pua(pua_api_t* api)
32 30
 {
... ...
@@ -50,6 +48,19 @@ int bind_pua(pua_api_t* api)
50 48
 		LOG(L_ERR, "PUA:bind_pua: Can't bind send_subscribe\n");
51 49
 		return -1;
52 50
 	}
51
+	api->register_puacb = ( register_puacb_t)find_export
52
+		("register_puacb", 1, 0);
53
+	if (api->register_puacb == 0)
54
+	{
55
+		LOG(L_ERR, "PUA:bind_pua: Can't bind send_subscribe\n");
56
+		return -1;
57
+	}
58
+	api->is_dialog= (query_dialog_t)find_export("pua_is_dialog", 1, 0);
59
+	if(api->is_dialog== 0)
60
+	{
61
+		LOG(L_ERR, "PUA:bind_pua: Can't bind pua_is_dialog\n");
62
+		return -1;
63
+	}
53 64
 	return 0;
54 65
 }
55 66
 
Browse code

-fixed a bug in updating presentity -added the posibility to subscribe with no time limit- by setting the expires field to a value< 0; the modules does periodical updates until a request for a subscription with expires= 0 is received

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

Anca Vamanu authored on 20/02/2007 13:40:09
Showing 1 changed files
... ...
@@ -50,7 +50,6 @@ int bind_pua(pua_api_t* api)
50 50
 		LOG(L_ERR, "PUA:bind_pua: Can't bind send_subscribe\n");
51 51
 		return -1;
52 52
 	}
53
-	
54 53
 	return 0;
55 54
 }
56 55
 
Browse code

- presence user agent client support - pua: common API - pua_mi: MI PUA extension - pua_usrloc: usrloc PUA extension

PUA_MI
- provides functionality to publish presence information from
independent applications (like scripts, web pages ...) via MI

PUA_USRLOC
- enhance openser to be able to publish online/offline status
for SIP devices with no presence extension support

NOTE: lot of new code, help with testing is appreciated


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

Anca Vamanu authored on 30/11/2006 12:05:07
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,56 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * pua module - presence user agent module
5
+ *
6
+ * Copyright (C) 2006 Voice Sistem S.R.L.
7
+ *
8
+ * This file is part of openser, a free SIP server.
9
+ *
10
+ * openser is free software; you can redistribute it and/or modify
11
+ * it under the terms of the GNU General Public License as published by
12
+ * the Free Software Foundation; either version 2 of the License, or
13
+ * (at your option) any later version
14
+ *
15
+ * openser is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+ * GNU General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU General Public License 
21
+ * along with this program; if not, write to the Free Software 
22
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
+ */
24
+
25
+
26
+#include "pua_bind.h"
27
+#include "../../dprint.h"
28
+#include "../../sr_module.h"
29
+
30
+
31
+int bind_pua(pua_api_t* api)
32
+{
33
+	if (!api) {
34
+		LOG(L_ERR, "PUA:bind_pua: Invalid parameter value\n");
35
+		return -1;
36
+	}
37
+
38
+	api->send_publish = (send_publish_t )find_export
39
+		("send_publish", 1, 0);
40
+	if (api->send_publish == 0)
41
+	{
42
+		LOG(L_ERR, "PUA:bind_pua: Can't bind send_publish\n");
43
+		return -1;
44
+	}
45
+
46
+	api->send_subscribe = ( send_subscribe_t)find_export
47
+		("send_subscribe", 1, 0);
48
+	if (api->send_subscribe == 0)
49
+	{
50
+		LOG(L_ERR, "PUA:bind_pua: Can't bind send_subscribe\n");
51
+		return -1;
52
+	}
53
+	
54
+	return 0;
55
+}
56
+