Tcl Application calling tclsh script

Version 1
    This document was generated from CDN thread

    Created by: Sean Eichhorn on 30-09-2009 08:36:40 PM
    Is there a way to call a tclsh script from within a Tcl/IVR application?
    I've got a Tcl script that works fine when run from tclsh on the command line, but I want to trigger it on an incoming call and it seems that all the tclsh commands are not supported in the tcl/ivr application runtime.
     
    Any ideas?

    Subject: RE: Tcl Application calling tclsh script
    Replied by: YAW-MING CHEN on 30-09-2009 09:13:59 PM
    Please refer to
     
    Cisco Tcl IVR 2.0 Programming Guide
     
    http://developer.cisco.com/c/document_library/get_file?folderId=162164&name=DLFE-10902.pdf
     
    First page of chapter 3 for what standard Tcl commands are supported what are not.
     
    Also refer to this document for how to trigger the application and the sample scripts in
    http://developer.cisco.com/web/vgapi/resources
     
    Thanks!
     
     

    Subject: RE: Tcl Application calling tclsh script
    Replied by: Sean Eichhorn on 01-10-2009 10:05:05 PM
    I have reviewed these documents in the past.  What I'm looking for is whether anyone knows how to execute the tclsh scripts from the IVR scripts.  I can trigger a tcl application from a call.  But I want the bigger featureset of the CLI-tclsh.  There are more commands available in the CLI-tclsh than there are in the IVR-tcl interpreter.  So I was hoping for a way to execute a tcl script from the IVR tcl application.
     
    Does this make sense?
     
     

    Subject: RE: Tcl Application calling tclsh script
    Replied by: YAW-MING CHEN on 01-10-2009 11:07:55 PM
    Tcl-IVR API includes the standard commands and APIs specified in programming guide. It's used mostly for call control and IVR applications. If you are looking for something like execute IOS CLI commands within Tcl then Tcl IVR API won't be able to do that. There is another way to use Tcl script
     
    Cisco IOS Embedded Event Manager (EEM)
     
    http://www.cisco.com/en/US/products/ps6815/products_ios_protocol_group_home.html
     
    Have you checked this option ?
     
    Thanks !