Browse code

outbound: removed references to lib kmi - not used

Daniel-Constantin Mierla authored on 02/01/2017 12:52:50
Showing 6 changed files
... ...
@@ -49,7 +49,4 @@ LIBS+= $(TLS_EXTRA_LIBS)
49 49
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
50 50
 DEFS+=-DKAMAILIO_MOD_INTERFACE
51 51
 
52
-SERLIBPATH=../../lib
53
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
54
-
55 52
 include ../../Makefile.modules
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2012-2013 Crocodile RCS Ltd
5 3
  *
6 4
  * This file is part of Kamailio, a free SIP server.
... ...
@@ -15,8 +13,8 @@
15 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 14
  * GNU General Public License for more details.
17 15
  *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program; if not, write to the Free Software
20 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 19
  *
22 20
  * Exception: permission to copy, modify, propagate, and distribute a work
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * This file is part of Kamailio, a free SIP server.
5 3
  *
6 4
  * Kamailio is free software; you can redistribute it and/or modify
... ...
@@ -13,8 +11,8 @@
13 11
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 12
  * GNU General Public License for more details.
15 13
  *
16
- * You should have received a copy of the GNU General Public License 
17
- * along with this program; if not, write to the Free Software 
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
18 16
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 17
  *
20 18
  * Exception: permission to copy, modify, propagate, and distribute a work
... ...
@@ -25,7 +23,7 @@
25 23
  */
26 24
 
27 25
 /*!
28
- * \file 
26
+ * \file
29 27
  * \brief Outbound :: Configuration
30 28
  * \ingroup outbound
31 29
  */
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * This file is part of Kamailio, a free SIP server.
5 3
  *
6 4
  * Kamailio is free software; you can redistribute it and/or modify
... ...
@@ -13,8 +11,8 @@
13 11
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 12
  * GNU General Public License for more details.
15 13
  *
16
- * You should have received a copy of the GNU General Public License 
17
- * along with this program; if not, write to the Free Software 
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
18 16
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 17
  *
20 18
  * Exception: permission to copy, modify, propagate, and distribute a work
... ...
@@ -25,7 +23,7 @@
25 23
  */
26 24
 
27 25
 /*!
28
- * \file 
26
+ * \file
29 27
  * \brief Outbound :: Configuration Framework support
30 28
  * \ingroup outbound
31 29
  */
... ...
@@ -10,9 +10,9 @@
10 10
 <!-- Module User's Guide -->
11 11
 
12 12
 <chapter>
13
-	
13
+
14 14
 	<title>&adminguide;</title>
15
-	
15
+
16 16
 	<section>
17 17
 	<title>Overview</title>
18 18
 	<para>This module provides C-API functions to enable &kamailio; to be
... ...
@@ -511,15 +511,5 @@ modparam("outbound", "force_no_outbound_flag", 2)
511 511
 
512 512
 	</section>
513 513
 
514
-	<section>
515
-	<title>Functions</title>
516
-	<para><emphasis>None</emphasis></para>
517
-	</section>
518
-
519
-	<section>
520
-	<title>MI Commands</title>
521
-	<para><emphasis>None</emphasis></para>
522
-	</section>
523
-
524 514
 </chapter>
525 515
 
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2012-2013 Crocodile RCS Ltd
5 3
  *
6 4
  * This file is part of Kamailio, a free SIP server.
... ...
@@ -36,7 +34,6 @@
36 34
 #include "../../core/mod_fix.h"
37 35
 #include "../../core/sr_module.h"
38 36
 #include "../../core/counters.h"
39
-#include "../../lib/kmi/mi.h"
40 37
 #include "../../core/parser/contact/parse_contact.h"
41 38
 #include "../../core/parser/parse_rr.h"
42 39
 #include "../../core/parser/parse_uri.h"
... ...
@@ -56,7 +53,7 @@ static unsigned int ob_force_flag = (unsigned int) -1;
56 53
 static unsigned int ob_force_no_flag = (unsigned int) -1;
57 54
 static str ob_key = {0, 0};
58 55
 
59
-static cmd_export_t cmds[]= 
56
+static cmd_export_t cmds[]=
60 57
 {
61 58
 	{ "bind_ob", (cmd_function) bind_ob,
62 59
 	  1, 0, 0,
... ...
@@ -71,7 +68,7 @@ static param_export_t params[]=
71 68
 	{ 0, 0, 0 }
72 69
 };
73 70
 
74
-struct module_exports exports= 
71
+struct module_exports exports=
75 72
 {
76 73
 	"outbound",
77 74
 	DEFAULT_DLFLAGS,	/* dlopen flags */
... ...
@@ -145,7 +142,7 @@ static void destroy(void)
145 142
    <protocol> specifies whether the addresses are IPv4 or IPv6 and the
146 143
    transport.
147 144
 		Bits 0-6:	transport (see sip_protos enum from ip_addr.h)
148
-		Bit 7:		IPv6 if set, IPv4 if unset	
145
+		Bit 7:		IPv6 if set, IPv4 if unset
149 146
 
150 147
    IP addresses will be 4 (for IPv6) or 16 (for IPv6) bytes.
151 148
 
... ...
@@ -172,7 +169,7 @@ int encode_flow_token(str *flow_token, struct receive_info rcv)
172 169
 	}
173 170
 
174 171
 	/* Encode protocol information */
175
-	unenc_flow_token[pos++] = 
172
+	unenc_flow_token[pos++] =
176 173
 		(rcv.dst_ip.af == AF_INET6 ? 0x80 : 0x00) | rcv.proto;
177 174
 
178 175
 	/* Encode destination address */
... ...
@@ -299,7 +296,7 @@ end:
299 296
 static int use_outbound_register(struct sip_msg *msg)
300 297
 {
301 298
 	contact_t *contact;
302
-	
299
+
303 300
 	/* Check there is a single Via: */
304 301
 	if (!(parse_headers(msg, HDR_VIA2_F, 0) == -1 || msg->via2 == 0
305 302
 		|| msg->via2->error != PARSE_OK))
... ...
@@ -323,7 +320,7 @@ static int use_outbound_register(struct sip_msg *msg)
323 320
 			LM_ERR("empty Contact:\n");
324 321
 			return 0;
325 322
 		}
326
-		
323
+
327 324
 		if (contact->reg_id)
328 325
 		{
329 326
 			LM_DBG("found REGISTER with ;reg-id parameter on"
... ...
@@ -439,7 +436,7 @@ static int use_outbound_non_reg(struct sip_msg *msg)
439 436
 			LM_ERR("empty Contact:\n");
440 437
 			return 0;
441 438
 		}
442
-	
439
+
443 440
 		if (parse_uri(contact->uri.s, contact->uri.len, &puri)
444 441
 			< 0)
445 442
 		{