Browse code

modules_s/osp: moved to obsolete folder

Daniel-Constantin Mierla authored on 07/12/2012 22:14:53
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,60 +0,0 @@
1
-/*
2
- * ser osp module. 
3
- *
4
- * This module enables ser to communicate with an Open Settlement 
5
- * Protocol (OSP) server.  The Open Settlement Protocol is an ETSI 
6
- * defined standard for Inter-Domain VoIP pricing, authorization
7
- * and usage exchange.  The technical specifications for OSP 
8
- * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
9
- *
10
- * Uli Abend was the original contributor to this module.
11
- * 
12
- * Copyright (C) 2001-2005 Fhg Fokus
13
- *
14
- * This file is part of ser, a free SIP server.
15
- *
16
- * ser is free software; you can redistribute it and/or modify
17
- * it under the terms of the GNU General Public License as published by
18
- * the Free Software Foundation; either version 2 of the License, or
19
- * (at your option) any later version
20
- *
21
- * For a license to use the ser software under conditions
22
- * other than those described here, or to purchase support for this
23
- * software, please contact iptel.org by e-mail at the following addresses:
24
- *    info@iptel.org
25
- *
26
- * ser is distributed in the hope that it will be useful,
27
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
- * GNU General Public License for more details.
30
- *
31
- * You should have received a copy of the GNU General Public License
32
- * along with this program; if not, write to the Free Software
33
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34
- */
35
-
36
-#ifndef _OSP_MOD_SIPHEADER_H_
37
-#define _OSP_MOD_SIPHEADER_H_
38
-
39
-#include <osp/osp.h>
40
-#include "../../parser/msg_parser.h"
41
-
42
-#define OSP_TOKEN_HEADER    "P-OSP-Auth-Token: "
43
-#define OSP_HEADER_SIZE     strlen(OSP_TOKEN_HEADER)
44
-
45
-void ospCopyStrToBuffer(str* source, char* buffer, int buffersize);
46
-int ospGetFromUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
47
-int ospGetRpidUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
48
-int ospGetToUserpart(struct sip_msg* msg, char* touser, int buffersize);
49
-int ospGetUriUserpart(struct sip_msg* msg, char* touser, int buffersize);
50
-int ospAddOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int tokensize);
51
-int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tokensize);
52
-int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53
-int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54
-int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
-int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port, int format);
56
-void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57
-int ospGetDirection(struct sip_msg* msg);
58
-
59
-#endif /* _OSP_MOD_SIPHEADER_H_ */
60
-
Browse code

Revert "according to Di-Shi are K's and ser's osp module more or less the same, whereas Kamailio's osp module should be more up2date than ser's module. Thus, ser's osp module will be removed and K's osp module will be used as common OSP module."

This reverts commit 6bdbd8e2ab1ec15695cc156ff74f20af799a947b.

Klaus Darilion authored on 03/07/2009 12:40:57
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,60 @@
1
+/*
2
+ * ser osp module. 
3
+ *
4
+ * This module enables ser to communicate with an Open Settlement 
5
+ * Protocol (OSP) server.  The Open Settlement Protocol is an ETSI 
6
+ * defined standard for Inter-Domain VoIP pricing, authorization
7
+ * and usage exchange.  The technical specifications for OSP 
8
+ * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
9
+ *
10
+ * Uli Abend was the original contributor to this module.
11
+ * 
12
+ * Copyright (C) 2001-2005 Fhg Fokus
13
+ *
14
+ * This file is part of ser, a free SIP server.
15
+ *
16
+ * ser is free software; you can redistribute it and/or modify
17
+ * it under the terms of the GNU General Public License as published by
18
+ * the Free Software Foundation; either version 2 of the License, or
19
+ * (at your option) any later version
20
+ *
21
+ * For a license to use the ser software under conditions
22
+ * other than those described here, or to purchase support for this
23
+ * software, please contact iptel.org by e-mail at the following addresses:
24
+ *    info@iptel.org
25
+ *
26
+ * ser is distributed in the hope that it will be useful,
27
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
+ * GNU General Public License for more details.
30
+ *
31
+ * You should have received a copy of the GNU General Public License
32
+ * along with this program; if not, write to the Free Software
33
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34
+ */
35
+
36
+#ifndef _OSP_MOD_SIPHEADER_H_
37
+#define _OSP_MOD_SIPHEADER_H_
38
+
39
+#include <osp/osp.h>
40
+#include "../../parser/msg_parser.h"
41
+
42
+#define OSP_TOKEN_HEADER    "P-OSP-Auth-Token: "
43
+#define OSP_HEADER_SIZE     strlen(OSP_TOKEN_HEADER)
44
+
45
+void ospCopyStrToBuffer(str* source, char* buffer, int buffersize);
46
+int ospGetFromUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
47
+int ospGetRpidUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
48
+int ospGetToUserpart(struct sip_msg* msg, char* touser, int buffersize);
49
+int ospGetUriUserpart(struct sip_msg* msg, char* touser, int buffersize);
50
+int ospAddOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int tokensize);
51
+int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tokensize);
52
+int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53
+int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54
+int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
+int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port, int format);
56
+void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57
+int ospGetDirection(struct sip_msg* msg);
58
+
59
+#endif /* _OSP_MOD_SIPHEADER_H_ */
60
+
Browse code

according to Di-Shi are K's and ser's osp module more or less the same, whereas Kamailio's osp module should be more up2date than ser's module. Thus, ser's osp module will be removed and K's osp module will be used as common OSP module.

Klaus Darilion authored on 02/07/2009 08:34:13
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,60 +0,0 @@
1
-/*
2
- * ser osp module. 
3
- *
4
- * This module enables ser to communicate with an Open Settlement 
5
- * Protocol (OSP) server.  The Open Settlement Protocol is an ETSI 
6
- * defined standard for Inter-Domain VoIP pricing, authorization
7
- * and usage exchange.  The technical specifications for OSP 
8
- * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
9
- *
10
- * Uli Abend was the original contributor to this module.
11
- * 
12
- * Copyright (C) 2001-2005 Fhg Fokus
13
- *
14
- * This file is part of ser, a free SIP server.
15
- *
16
- * ser is free software; you can redistribute it and/or modify
17
- * it under the terms of the GNU General Public License as published by
18
- * the Free Software Foundation; either version 2 of the License, or
19
- * (at your option) any later version
20
- *
21
- * For a license to use the ser software under conditions
22
- * other than those described here, or to purchase support for this
23
- * software, please contact iptel.org by e-mail at the following addresses:
24
- *    info@iptel.org
25
- *
26
- * ser is distributed in the hope that it will be useful,
27
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
- * GNU General Public License for more details.
30
- *
31
- * You should have received a copy of the GNU General Public License
32
- * along with this program; if not, write to the Free Software
33
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34
- */
35
-
36
-#ifndef _OSP_MOD_SIPHEADER_H_
37
-#define _OSP_MOD_SIPHEADER_H_
38
-
39
-#include <osp/osp.h>
40
-#include "../../parser/msg_parser.h"
41
-
42
-#define OSP_TOKEN_HEADER    "P-OSP-Auth-Token: "
43
-#define OSP_HEADER_SIZE     strlen(OSP_TOKEN_HEADER)
44
-
45
-void ospCopyStrToBuffer(str* source, char* buffer, int buffersize);
46
-int ospGetFromUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
47
-int ospGetRpidUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
48
-int ospGetToUserpart(struct sip_msg* msg, char* touser, int buffersize);
49
-int ospGetUriUserpart(struct sip_msg* msg, char* touser, int buffersize);
50
-int ospAddOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int tokensize);
51
-int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tokensize);
52
-int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53
-int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54
-int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
-int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port, int format);
56
-void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57
-int ospGetDirection(struct sip_msg* msg);
58
-
59
-#endif /* _OSP_MOD_SIPHEADER_H_ */
60
-
Browse code

1. Changed OSP cookie tags to handle the destinations corrupting Record-Route/Route headers. (SER does not have this issue, just for code sync) 2. Fixed reporting wrong translated called numbers issue. 3. Replaced strcpy by strncpy.

Di-Shi Sun authored on 21/12/2007 07:19:49
Showing 1 changed files
... ...
@@ -42,19 +42,19 @@
42 42
 #define OSP_TOKEN_HEADER    "P-OSP-Auth-Token: "
43 43
 #define OSP_HEADER_SIZE     strlen(OSP_TOKEN_HEADER)
44 44
 
45
-void ospCopyStrToBuffer(str *source, char *buffer, int buffersize);
46
-int ospGetFromUserpart(struct sip_msg *msg, char *fromuser, int buffersize);
47
-int ospGetRpidUserpart(struct sip_msg *msg, char *fromuser, int buffersize);
48
-int ospGetToUserpart(struct sip_msg *msg, char *touser, int buffersize);
49
-int ospGetUriUserpart(struct sip_msg *msg, char *touser, int buffersize);
50
-int ospAddOspHeader(struct sip_msg *msg, unsigned char *token, unsigned int tokensize);
51
-int ospGetOspHeader(struct sip_msg *msg, unsigned char *token, unsigned int *tokensize);
52
-int ospGetSourceAddress(struct sip_msg *msg, char *sourceaddress, int buffersize);
53
-int ospGetCallId(struct sip_msg *msg, OSPTCALLID **callid);
54
-int ospGetRouteParameters(struct sip_msg *msg, char *routeparams, int buffersize);
55
-int ospRebuildDestionationUri(str *newuri, char *called, char *dest, char *port, int format);
56
-void ospGetNextHop(struct sip_msg *msg, char *nexthop, int buffersize);
57
-int ospGetDirection(struct sip_msg *msg);
45
+void ospCopyStrToBuffer(str* source, char* buffer, int buffersize);
46
+int ospGetFromUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
47
+int ospGetRpidUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
48
+int ospGetToUserpart(struct sip_msg* msg, char* touser, int buffersize);
49
+int ospGetUriUserpart(struct sip_msg* msg, char* touser, int buffersize);
50
+int ospAddOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int tokensize);
51
+int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tokensize);
52
+int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53
+int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54
+int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
+int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port, int format);
56
+void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57
+int ospGetDirection(struct sip_msg* msg);
58 58
 
59 59
 #endif /* _OSP_MOD_SIPHEADER_H_ */
60 60
 
Browse code

1. Added usage report for BYE without OSP info. 2. Added destination count code (does not work in this release). 3. Reformated code.

Di-Shi Sun authored on 22/10/2007 02:40:45
Showing 1 changed files
... ...
@@ -42,19 +42,19 @@
42 42
 #define OSP_TOKEN_HEADER    "P-OSP-Auth-Token: "
43 43
 #define OSP_HEADER_SIZE     strlen(OSP_TOKEN_HEADER)
44 44
 
45
-void ospCopyStrToBuffer(str* source, char* buffer, int buffersize);
46
-int ospGetFromUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
47
-int ospGetRpidUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
48
-int ospGetToUserpart(struct sip_msg* msg, char* touser, int buffersize);
49
-int ospGetUriUserpart(struct sip_msg* msg, char* touser, int buffersize);
50
-int ospAddOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int tokensize);
51
-int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tokensize);
52
-int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53
-int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54
-int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
-int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port, int format);
56
-void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57
-int ospGetDirection(struct sip_msg* msg);
45
+void ospCopyStrToBuffer(str *source, char *buffer, int buffersize);
46
+int ospGetFromUserpart(struct sip_msg *msg, char *fromuser, int buffersize);
47
+int ospGetRpidUserpart(struct sip_msg *msg, char *fromuser, int buffersize);
48
+int ospGetToUserpart(struct sip_msg *msg, char *touser, int buffersize);
49
+int ospGetUriUserpart(struct sip_msg *msg, char *touser, int buffersize);
50
+int ospAddOspHeader(struct sip_msg *msg, unsigned char *token, unsigned int tokensize);
51
+int ospGetOspHeader(struct sip_msg *msg, unsigned char *token, unsigned int *tokensize);
52
+int ospGetSourceAddress(struct sip_msg *msg, char *sourceaddress, int buffersize);
53
+int ospGetCallId(struct sip_msg *msg, OSPTCALLID **callid);
54
+int ospGetRouteParameters(struct sip_msg *msg, char *routeparams, int buffersize);
55
+int ospRebuildDestionationUri(str *newuri, char *called, char *dest, char *port, int format);
56
+void ospGetNextHop(struct sip_msg *msg, char *nexthop, int buffersize);
57
+int ospGetDirection(struct sip_msg *msg);
58 58
 
59 59
 #endif /* _OSP_MOD_SIPHEADER_H_ */
60 60
 
Browse code

Added redirection_uri_format option in ser.cfg to work with Cisco 2600 IP-IP gateway.

Di-Shi Sun authored on 26/07/2007 14:58:28
Showing 1 changed files
... ...
@@ -52,7 +52,7 @@ int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tok
52 52
 int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53 53
 int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54 54
 int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
-int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port);
55
+int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port, int format);
56 56
 void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57 57
 int ospGetDirection(struct sip_msg* msg);
58 58
 
Browse code

merge code from experimental.

Di-Shi Sun authored on 26/04/2007 08:18:38
Showing 1 changed files
... ...
@@ -32,27 +32,29 @@
32 32
  * along with this program; if not, write to the Free Software
33 33
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34 34
  */
35
-#ifndef OSP_MOD_SIPHEADER_H
36
-#define OSP_MOD_SIPHEADER_H
37 35
 
38
-#include "osp/osp.h"
39
-#include "../../sr_module.h"
36
+#ifndef _OSP_MOD_SIPHEADER_H_
37
+#define _OSP_MOD_SIPHEADER_H_
40 38
 
41
-#define OSP_HEADER        "P-OSP-Auth-Token: "
42
-#define OSP_HEADER_LEN    strlen(OSP_HEADER)
39
+#include <osp/osp.h>
40
+#include "../../parser/msg_parser.h"
43 41
 
44
-int  getFromUserpart(    struct sip_msg* msg, char* fromuser, int buffer_size);
45
-int  getToUserpart(      struct sip_msg* msg, char* touser, int buffer_size);
46
-int  addOspHeader(       struct sip_msg* msg, char* token, int  sizeoftoken);
47
-int  getOspHeader(       struct sip_msg* msg, char* token, int* sizeoftoken);
48
-int  getSourceAddress(   struct sip_msg* msg, char* source_address, int buffer_size);
49
-int  getCallId(          struct sip_msg* msg, OSPTCALLID** callid);
50
-int  getRouteParams(     struct sip_msg* msg, char* route_params, int buffer_size);
51
-int  rebuildDestionationUri(str *newuri, char *destination, char *port, char *callednumber);
52
-void getNextHop(struct sip_msg* msg, char* next_hope, int buffer_size);
53
-void copy_from_str_to_buffer(str* from, char* buffer, int buffer_size);
42
+#define OSP_TOKEN_HEADER    "P-OSP-Auth-Token: "
43
+#define OSP_HEADER_SIZE     strlen(OSP_TOKEN_HEADER)
54 44
 
55
-void skipPlus(char* e164);
45
+void ospCopyStrToBuffer(str* source, char* buffer, int buffersize);
46
+int ospGetFromUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
47
+int ospGetRpidUserpart(struct sip_msg* msg, char* fromuser, int buffersize);
48
+int ospGetToUserpart(struct sip_msg* msg, char* touser, int buffersize);
49
+int ospGetUriUserpart(struct sip_msg* msg, char* touser, int buffersize);
50
+int ospAddOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int tokensize);
51
+int ospGetOspHeader(struct sip_msg* msg, unsigned char* token, unsigned int* tokensize);
52
+int ospGetSourceAddress(struct sip_msg* msg, char* sourceaddress, int buffersize);
53
+int ospGetCallId(struct sip_msg* msg, OSPTCALLID** callid);
54
+int ospGetRouteParameters(struct sip_msg* msg, char* routeparams, int buffersize);
55
+int ospRebuildDestionationUri(str* newuri, char* called, char* dest, char* port);
56
+void ospGetNextHop(struct sip_msg* msg, char* nexthop, int buffersize);
57
+int ospGetDirection(struct sip_msg* msg);
56 58
 
57
-#endif
59
+#endif /* _OSP_MOD_SIPHEADER_H_ */
58 60
 
Browse code

Copied from cvs.berlios.de:/cvsroot/osp-module

Dmitry Isakbayev authored on 31/10/2005 16:28:10
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
1
+/*
2
+ * ser osp module. 
3
+ *
4
+ * This module enables ser to communicate with an Open Settlement 
5
+ * Protocol (OSP) server.  The Open Settlement Protocol is an ETSI 
6
+ * defined standard for Inter-Domain VoIP pricing, authorization
7
+ * and usage exchange.  The technical specifications for OSP 
8
+ * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
9
+ *
10
+ * Uli Abend was the original contributor to this module.
11
+ * 
12
+ * Copyright (C) 2001-2005 Fhg Fokus
13
+ *
14
+ * This file is part of ser, a free SIP server.
15
+ *
16
+ * ser is free software; you can redistribute it and/or modify
17
+ * it under the terms of the GNU General Public License as published by
18
+ * the Free Software Foundation; either version 2 of the License, or
19
+ * (at your option) any later version
20
+ *
21
+ * For a license to use the ser software under conditions
22
+ * other than those described here, or to purchase support for this
23
+ * software, please contact iptel.org by e-mail at the following addresses:
24
+ *    info@iptel.org
25
+ *
26
+ * ser is distributed in the hope that it will be useful,
27
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
+ * GNU General Public License for more details.
30
+ *
31
+ * You should have received a copy of the GNU General Public License
32
+ * along with this program; if not, write to the Free Software
33
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34
+ */
35
+#ifndef OSP_MOD_SIPHEADER_H
36
+#define OSP_MOD_SIPHEADER_H
37
+
38
+#include "osp/osp.h"
39
+#include "../../sr_module.h"
40
+
41
+#define OSP_HEADER        "P-OSP-Auth-Token: "
42
+#define OSP_HEADER_LEN    strlen(OSP_HEADER)
43
+
44
+int  getFromUserpart(    struct sip_msg* msg, char* fromuser, int buffer_size);
45
+int  getToUserpart(      struct sip_msg* msg, char* touser, int buffer_size);
46
+int  addOspHeader(       struct sip_msg* msg, char* token, int  sizeoftoken);
47
+int  getOspHeader(       struct sip_msg* msg, char* token, int* sizeoftoken);
48
+int  getSourceAddress(   struct sip_msg* msg, char* source_address, int buffer_size);
49
+int  getCallId(          struct sip_msg* msg, OSPTCALLID** callid);
50
+int  getRouteParams(     struct sip_msg* msg, char* route_params, int buffer_size);
51
+int  rebuildDestionationUri(str *newuri, char *destination, char *port, char *callednumber);
52
+void getNextHop(struct sip_msg* msg, char* next_hope, int buffer_size);
53
+void copy_from_str_to_buffer(str* from, char* buffer, int buffer_size);
54
+
55
+void skipPlus(char* e164);
56
+
57
+#endif
58
+