Browse code

modules: readme files regenerated - nathelper ... [skip ci]

Kamailio Dev authored on 22/02/2018 12:16:13
Showing 3 changed files
... ...
@@ -252,7 +252,7 @@ Chapter 1. Admin Guide
252 252
 
253 253
    Example 1.1. Set force_socket parameter
254 254
 ...
255
-modparam("nathelper", "force_socket", "localhost:33333")
255
+modparam("nathelper", "force_socket", "127.0.0.1:5060")
256 256
 ...
257 257
 
258 258
 4.2. natping_interval (integer)
... ...
@@ -35,7 +35,7 @@ Daniel-Constantin Mierla
35 35
               4.7. sdp_with_active_media(type)
36 36
               4.8. sdp_remove_media(type)
37 37
               4.9. sdp_with_transport(type)
38
-              4.10. sdp_with_transport_like(string)
38
+              4.10. sdp_with_transport_like(type)
39 39
               4.11. sdp_transport(pv)
40 40
               4.12. sdp_remove_transport(type)
41 41
               4.13. sdp_with_codecs_by_id(list)
... ...
@@ -90,7 +90,7 @@ Chapter 1. Admin Guide
90 90
         4.7. sdp_with_active_media(type)
91 91
         4.8. sdp_remove_media(type)
92 92
         4.9. sdp_with_transport(type)
93
-        4.10. sdp_with_transport_like(string)
93
+        4.10. sdp_with_transport_like(type)
94 94
         4.11. sdp_transport(pv)
95 95
         4.12. sdp_remove_transport(type)
96 96
         4.13. sdp_with_codecs_by_id(list)
... ...
@@ -142,7 +142,7 @@ Chapter 1. Admin Guide
142 142
    4.7. sdp_with_active_media(type)
143 143
    4.8. sdp_remove_media(type)
144 144
    4.9. sdp_with_transport(type)
145
-   4.10. sdp_with_transport_like(string)
145
+   4.10. sdp_with_transport_like(type)
146 146
    4.11. sdp_transport(pv)
147 147
    4.12. sdp_remove_transport(type)
148 148
    4.13. sdp_with_codecs_by_id(list)
... ...
@@ -321,26 +321,27 @@ sdp_remove_media("video");
321 321
 4.9.  sdp_with_transport(type)
322 322
 
323 323
    Return true of the SDP has 'media=media port type ...' line. Useful to
324
-   check the transport of the RTP sessions, such as 'RTP/AVP', 'RTP/SAVP'
325
-   or 'RTP/SAVPF'. The parameter can be static string or variable holding
326
-   the transport type.
324
+   check the transport of the RTP sessions, such as 'RTP/AVP', 'RTP/SAVP',
325
+   'RTP/SAVPF' or 'UDP/TLS/RTP/SAVPF'. The parameter can be static string
326
+   or variable holding the transport type. The function does an exact
327
+   match of the strings.
327 328
 
328 329
    This function can be used from ANY_ROUTE.
329 330
 
330 331
    Example 1.9. sdp_with_transport usage
331 332
 ...
332 333
 # check for RTP/SAVP stream
333
-if(sdp_with_transport("RTP/SAVP"))
334
+if(sdp_with_transport("UDP/TLS/RTP/SAVPF"))
334 335
 {
335
-    # the session has a SRTP/SAVP stream
336
+    # the session has a UDP/TLS/RTP/SAVPF stream
336 337
 }
337 338
 ...
338 339
 
339
-4.10.  sdp_with_transport_like(string)
340
+4.10.  sdp_with_transport_like(type)
340 341
 
341 342
    Returns true if the SDP has 'media=media port type ...' line, where
342
-   type contains string. The parameter can be static string or variable
343
-   holding a string.
343
+   type contains the string in the parameter. The parameter can be static
344
+   string or variable holding a string.
344 345
 
345 346
    This function can be used from ANY_ROUTE.
346 347
 
... ...
@@ -999,7 +999,7 @@ if (starts_with("$rU", "+358"))
999 999
    The core will take care of the last boundary ending "--". Detecting
1000 1000
    wich one is the last and fixing the others if needed.
1001 1001
 
1002
-   Note: it may be required that msg_apply_changes() from textops module
1002
+   Note: it may be required that msg_apply_changes() from textopsx module
1003 1003
    has to be executed if there are other operations over the new body.
1004 1004
 
1005 1005
    Example 1.37. set_body_multipart usage