Răsfoiți Sursa

kamailio-kemi-framework: core - updates to some examples

Daniel-Constantin Mierla 3 ani în urmă
părinte
comite
56e98b5e6d
1 a modificat fișierele cu 13 adăugiri și 3 ștergeri
  1. 13 3
      kamailio-kemi-framework/docs/core.md

+ 13 - 3
kamailio-kemi-framework/docs/core.md

@@ -420,6 +420,12 @@ end
 Return true if the next hop URI (`$nh(u)`) matches a local socket (IP) or local
 domain.
 
+```Lua
+if KSR.is_myself_nhuri() then
+  ...
+end
+```
+
 ### KSR.is_myself_ruri() ###
 
 `bool is_myself_ruri()`
@@ -627,8 +633,10 @@ KSR.resetflag(10);
 Return true if the message/transaction flag at the index provided by the parameter is set
 (the bit has value 1).
 
-```
-if ( KSR.isflagset(10) ) ...
+```Lua
+if KSR.isflagset(10) then
+  ...
+end
 ```
 
 ### KSR.setbflag(...) ###
@@ -661,7 +669,9 @@ Return true if the branch flag at the index provided by the parameter is set
 (the bit has value 1).
 
 ```
-if ( KSR.isbflagset(10) ) ...
+if KSR.isbflagset(10) then
+  ...
+end
 ```
 
 ### KSR.setbiflag(...) ###