Explorar o código

kamailio-kemi-framework: docs for add tcp alias functions

Daniel-Constantin Mierla %!s(int64=7) %!d(string=hai) anos
pai
achega
1b8e2a9b9c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      kamailio-kemi-framework/docs/core.md

+ 4 - 0
kamailio-kemi-framework/docs/core.md

@@ -25,10 +25,14 @@ Set the internal flag to add rport parameter to local generated Via header.
 
 `add_tcp_alias(int port)`
 
+Adds a tcp port alias for the current connection (if tcp). Useful if you want to send all the trafic to port_alias through the same connection this request came from (it could help for firewall or nat traversal). When the `aliased` connection is closed (e.g. it is idle for too much time), all the port aliases are removed.
+
 ### KSR.add_tcp_alias_via() ###
 
 `int add_tcp_alias_via()`
 
+Adds the port from the message via as an alias to TCP connection. See `add_tcp_alias(int port)` for more details.
+
 ### void KSR.dbg(...) ###
 
 `void KSR.dbg(str "msg")`