12-03-2007 11:56 AM - edited 03-15-2019 07:33 AM
Hi all,
I'm looking for a basic TCL-Script for only associate an audio.au file to a phone-nr.
Tried with B-ACD/AA from CCME but is too oversized for my purpose.
Any ideas?
Thanks,
Norbert
12-03-2007 06:43 PM
Hi Norbert,
this would be minimal script that does that.
Hope this helps, please rate post if it does!
proc act_Setup { } {
leg setupack leg_incoming
leg proceeding leg_incoming
leg connect leg_incoming
media play leg_incoming disconnect.au
}
proc act_Close { } {
call close
}
set fsm(any_state,ev_disconnected) "act_Close same_state"
set fsm(any_state,ev_media_done) "act_Close same_state"
set fsm(INIT,ev_setup_indication) "act_Setup same_state"
fsm define fsm INIT
12-04-2007 12:02 AM
Hi Paolo,
Thanks for the script.
Is there no way to reload a TCL-Script without rebooting the whole router?
Greets,
Norbert
12-04-2007 07:08 AM
You can reload the script, the problem is with the audio files when loaded from flash.
I've found that these become sticky and no command helps. One workaround is changing the name of the file in the script.
12-04-2007 08:39 AM
Thanks,
I'll try the workaround solution.
Greets,
Norbert
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide