Call processing function
In the below example, the function accepts the cmd
variable from a call in Voximplant Kit and writes a reply in the answer
variable.
If the cmd
variable contains date
, the function writes the current date in the answer
variable.
If the cmd
variable contains random
, the function writes a random number from 0 to 10 in the answer
variable.
If the cmd
variable contains something else, the function writes the unknown command
text in the answer
variable.
Call processing function