Sfoglia il codice sorgente

kamailio-kemi-framework: docs for KSR.route(...)

Daniel-Constantin Mierla 4 anni fa
parent
commit
528b86d6ae
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14 0
      kamailio-kemi-framework/docs/core.md

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

@@ -793,6 +793,20 @@ URI parameter.
 KSR.forward_uri("sip:127.0.0.1:5080;transport=tcp");
 ```
 
+### KSR.route(...) ###
+
+`int KSR.route(str "rname")`
+
+Execute a route block written in configuration file using native scripting
+language. It returns `0` if the last action in the route block is an exit
+operation (e.g., like `exit`, `drop` or Kamailio function returning `0`).
+
+Example:
+
+```
+KSR.route("REQINIT");
+```
+
 ### KSR.pv Submodule ###
 
 `KSR.pv` submodule provides the functions to get, set and test the values of