Browse Source

kamailio-kemi-framework: docs for KSR.pv.gete(...)

Daniel-Constantin Mierla 7 years ago
parent
commit
c033b1cc28
1 changed files with 14 additions and 1 deletions
  1. 14 1
      kamailio-kemi-framework/docs/kemimods.md

+ 14 - 1
kamailio-kemi-framework/docs/kemimods.md

@@ -27,6 +27,19 @@ Example:
 KSR.dbg("ruri is: " + KSR.pv.get("$ru") + "\n");
 KSR.dbg("ruri is: " + KSR.pv.get("$ru") + "\n");
 ```
 ```
 
 
+### KSR.pv.gete(...) ###
+
+`val KSR.pv.gete("pvname")`
+
+Return the value of pseudo-variable `pvname` if it is different than `$null` or the empty string
+("") if the variable is having the `$null` value.
+
+Example:
+
+```
+KSR.dbg("avp is: " + KSR.pv.gete("$avp(x)") + "\n");
+```
+
 ### KSR.pv.getw(...) ###
 ### KSR.pv.getw(...) ###
 
 
 `val KSR.pv.getw("pvname")`
 `val KSR.pv.getw("pvname")`
@@ -38,7 +51,7 @@ in the scripting languages that throw and error when attempting to print a `NULL
 Example:
 Example:
 
 
 ```
 ```
-KSR.dbg("ruri is: " + KSR.pv.getw("$avp(x)") + "\n");
+KSR.dbg("avp is: " + KSR.pv.getw("$avp(x)") + "\n");
 ```
 ```
 
 
 ### KSR.pv.seti(...) ###
 ### KSR.pv.seti(...) ###