[Freeswitch-users] Javascript

Jonas Gauffin jonas.gauffin at gmail.com
Sat May 12 00:37:35 PDT 2007


Hello

1. How do I configure FS to allow DTMF to abort streamFile? (i.e. The
sound files should stop playing if the user knows which key to press
in the menu)

2. I'm trying to use TeleTone, I've looked at the answeringmachine
example and are trying to generate the same tone.

I get the following error:
2007-05-12 09:34:32 [DEBUG] mod_spidermonkey_teletone.c:119
teletone_construct() Raw Codec Activated
Generate: (941.00+1477.00) [volume 3761; samples 480(60ms) x 1
channel; wait 0(0ms); decay_factor 0; decay_step 2; wrote 960 bytes]
2007-05-12 09:34:32 [ERR] switch_core_file.c:51
switch_core_file_open() Invalid Format

My code:
    var tts = new TeleTone(session);
    tts.addTone("d", 350.0, 440.0, 0.0);
    tts.generate("v=4000;>=0;+=2;#(60,0)");

//Jonas




More information about the FreeSWITCH-users mailing list