Browse code

modules/outbound: updated to reflect STUN being in a module now

Peter Dunkley authored on 29/03/2013 21:49:29
Showing 3 changed files
... ...
@@ -30,10 +30,9 @@ Peter Dunkley
30 30
 
31 31
    List of Examples
32 32
 
33
-   1.1. Compiling Kamailio with STUN support
34
-   1.2. Edge Proxy Configuration
35
-   1.3. Registrar Configuration
36
-   1.4. Set force_outbound_flag parameter
33
+   1.1. Edge Proxy Configuration
34
+   1.2. Registrar Configuration
35
+   1.3. Set force_outbound_flag parameter
37 36
 
38 37
 Chapter 1. Admin Guide
39 38
 
... ...
@@ -70,12 +69,7 @@ Chapter 1. Admin Guide
70 69
 1.1. Edge Proxy Keep-Alives (STUN)
71 70
 
72 71
    Outbound Edge Proxies MUST support STUN NAT keep-alives on their SIP
73
-   UDP ports. Kamailio supports this as a compile-time option that is
74
-   disabled by default.
75
-
76
-   Example 1.1. Compiling Kamailio with STUN support
77
-make FLAVOUR=kamailio cfg STUN=1
78
-make all
72
+   UDP ports. Kamailio supports this though the “stun” module.
79 73
 
80 74
 1.2. Flow Timer
81 75
 
... ...
@@ -98,7 +92,7 @@ make all
98 92
    the Registrar flow timer interval and a little less than the
99 93
    “tcp_connection_lifetime”.
100 94
 
101
-   Example 1.2. Edge Proxy Configuration
95
+   Example 1.1. Edge Proxy Configuration
102 96
 #!KAMAILIO
103 97
 #
104 98
 # Edge proxy configuration
... ...
@@ -265,7 +259,7 @@ failure_route[FAIL_OUTBOUND]{
265 259
         }
266 260
 }
267 261
 
268
-   Example 1.3. Registrar Configuration
262
+   Example 1.2. Registrar Configuration
269 263
 ...
270 264
 loadmodule "tm.so"
271 265
 ...
... ...
@@ -353,7 +347,7 @@ failure_route[FAIL_OUTBOUND] {
353 347
 
354 348
    Default value is -1.
355 349
 
356
-   Example 1.4. Set force_outbound_flag parameter
350
+   Example 1.3. Set force_outbound_flag parameter
357 351
 ...
358 352
 modparam("outbound", "force_outbound_flag", 1)
359 353
 ...
... ...
@@ -22,15 +22,8 @@
22 22
 	<section>
23 23
 		<title>Edge Proxy Keep-Alives (STUN)</title>
24 24
 		<para>Outbound Edge Proxies MUST support STUN NAT keep-alives
25
-		on their SIP UDP ports. &kamailio; supports this as a
26
-		compile-time option that is disabled by default.</para>
27
-		<example>
28
-		<title>Compiling &kamailio; with STUN support</title>
29
-		<programlisting><![CDATA[
30
-make FLAVOUR=kamailio cfg STUN=1
31
-make all
32
-]]></programlisting>
33
-		</example>
25
+		on their SIP UDP ports. &kamailio; supports this though the
26
+		<quote>stun</quote> module.</para>
34 27
 	</section>
35 28
 	<section>
36 29
 		<title>Flow Timer</title>
... ...
@@ -98,15 +98,6 @@ static int mod_init(void)
98 98
 		       "random bytes\n", ob_key.len);
99 99
 	}
100 100
 
101
-#ifndef USE_STUN
102
-	LM_WARN("STUN support not built-in. UDP keep-alive not supported.\n");
103
-#else
104
-	if (stun_allow_stun != 1)
105
-	{
106
-		LM_WARN("STUN disabled.  UDP keep-alive not supported.\n");
107
-	}
108
-#endif
109
-
110 101
 	return 0;
111 102
 }
112 103