Browse Source

kamailio-kemi-framework: docs for KSR.ti_IPv4/6()

Daniel-Constantin Mierla 4 years ago
parent
commit
8535882602
1 changed files with 26 additions and 0 deletions
  1. 26 0
      kamailio-kemi-framework/docs/core.md

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

@@ -818,6 +818,32 @@ Example:
 KSR.route("REQINIT");
 KSR.route("REQINIT");
 ```
 ```
 
 
+### KSR.to_IPv4() ###
+
+`bool to_IPv4()`
+
+Return true if the outgoing protocol is IPv4, based on `host` part
+in destination URI or R-RUI (if it is an IP address, no DNS query is done).
+
+```Lua
+if KSR.to_IPv4() then
+  ...
+end
+```
+
+### KSR.to_IPv6() ###
+
+`bool to_IPv6()`
+
+Return true if the outgoing protocol is IPv6, based on `host` part
+in destination URI or R-RUI (if it is an IP address, no DNS query is done).
+
+```Lua
+if KSR.to_IPv6() then
+  ...
+end
+```
+
 ### KSR.to_TCP() ###
 ### KSR.to_TCP() ###
 
 
 `bool to_TCP()`
 `bool to_TCP()`