You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/doc/dsm/mods
Stefan Sayer 8e238656c3
b/f:DSM: fix var names on vars passed to DSM with dlg.dialout
15 years ago
..
Readme.mod_aws.txt moved DSM module docs to doc directory 16 years ago
Readme.mod_conference.txt dsm: fix typo in doc 15 years ago
Readme.mod_dlg.txt b/f:DSM: fix var names on vars passed to DSM with dlg.dialout 15 years ago
Readme.mod_groups.txt DSM: groups module 15 years ago
Readme.mod_monitoring.txt moved DSM module docs to doc directory 16 years ago
Readme.mod_mysql.txt moved DSM module docs to doc directory 16 years ago
Readme.mod_py.txt moved DSM module docs to doc directory 16 years ago
Readme.mod_sys.txt DSM: sys.getTimestamp() and sys.subTimestamp() 15 years ago
Readme.mod_uri.txt moved DSM module docs to doc directory 16 years ago
Readme.mod_utils.txt dsm: adds utils.playRingTone() function 15 years ago

Readme.mod_utils.txt

Actions: 
 utils.getNewId(string varname)

 utils.playCountRight(int cnt [, string basedir])
    play count for laguages that have single digits after the 10s (like english)
    * Throws "file" exeption with #path if file can not be opened
    * sets $errno (arg)

 utils.playCountLeft(int cnt [, string basedir])
    play count for laguages that have single digits befire the 10s (like german)  
    * Throws "file" exeption with #path if file can not be opened
    * sets $errno (arg)

 utils.spell(string word[, string basedir])
  plays each character in the word (e.g. utils.spell(321,wav/digits/) plays
    wav/digits/3.wav, wav/digits/2.wav, wav/digits/1.wav 
  (like SayDigits from *)
  * Throws "file" exeption with #path if file can not be opened

 utils.rand(string varname [, int modulo])
  generates random number: $varname=rand()%modulo or $varname = rand()

 utils.srand() 
  seed the RNG with time().

 utils.add($var, val)
   add val (float value) to var. also 
   utils.add($var1, $val); utils.add($var, #param)

 utils.sub($var, val)
   subtract val from var

 utils.int($var, val)
   get integer part of val into var

 utils.splitStringCR($var [, $dstvar])
 utils.splitStringCR(val, $dstvar])
   split a string on newline (carriage return, \n) 
   into an array ($var[0]..$var[n])

   example: 
    sys.popen($myresult="/bin/ls wav/*");    
    utils.splitStringCR($myresult);

utils.playRingTone(length [, on [, off [, f [, f2]]]])
   play a RingTone (ringback tone)
   defaults to length=0 (indefinite), on 1000ms, off 2000ms, f 440Hz, f2 480Hz

   Example:
      utils.playRingTone(0, 1000, 4000, 425, 0);   -- Germany