Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: corba voip on 12-07-2011 03:14:40 PM Yes, of course! The question is, why I can't call procedures of one Tcl script (Tcl-package) from another script (IVR-service). Both were loaded into the same Cisco Access Server (AS5350). Tcl command 'source' is not supported in IVR, 'package require' is not working!!! (((
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: corba voip on 13-07-2011 02:53:37 AM Yes!
PACKAGES: name type description ... tclcore C Script builtin:tclcore_package.C greet Tcl Script tftp://xxx.xxx.net/tcl/greet.tcl ...
here is listed! ) This document was generated from CDN thread
Created by: corba voip on 12-07-2011 11:31:00 AM Hello! Why I get error message "package not found" when code in Tcl IVR script (AS5350): package require mytestpack Before run the script, I do conf t application package mytestpack tftp://....... Thank's
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: Yaw-Ming Chen on 12-07-2011 12:41:58 PM Can you link your script ? conf t application service mytest tftp://....../mytest.tcl
Hello! Why I get error message "package not found" when code in Tcl IVR script (AS5350): package require mytestpack Before run the script, I do conf t application package mytestpack tftp://....... Thank's
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: Yaw-Ming Chen on 12-07-2011 03:22:27 PM Did you try "package" command inside of your main script ?
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: Yaw-Ming Chen on 12-07-2011 03:28:14 PM By the way package command works fine for me
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: Raghavendra Gutty Veeranagappa on 13-07-2011 09:44:01 AM Hi,
please check the state of package as registered by issuing below command, if it is in loaded state then there will be errors please check the logs.
sh call application voice greet
Thanks, Raghavendra
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: corba voip on 13-07-2011 10:09:09 AM Problem solved by simply commenting out line
# package require Tcl 8.3
in package! )))
Thank you!
Subject: Ref: tclivr scrip does not recognize the fsm command Replied by: king hsu on 26-11-2012 02:57:21 PM we already have serval tclivr scripts running in the production. We tried to add another tcl ivr script into the system. w e run the same ios in the lab as well as production. software: Cisco IOS Software, 5350 Software (C5350-JK9S-M), Version 15.0(1)M7, RELEASE SOFTWARE (fc2) at the tcl program we define the fsm. here is our content for the fsm. init set fsm(any_state,ev_disconnected) "act_Abort,same_state" set fsm(CALL_INIT,ev_setup_indication) "act_Setup,PLACECALL" set fsm(PLACECALL,ev_setup_done) "act_CallSetupDone,CALLACTIVE" set fsm(CALLACTIVE,ev_disconnected) "act_Cleanup,CALLDISCONNECTED" set fsm(CALLDISCONNECTED,ev_disconnect_done) "act_Cleanup,same_state" fsm define fsm CALL_INIT after the following commad we get the error. - npectrtvbexgw02#tclsh displayName.tcl invalid command name "fsm" while executing "fsm define FSM CALL_INIT" (file "displayName.tcl" line 80)
Subject: RE: Ref: tclivr scrip does not recognize the fsm command Replied by: Yaw-Ming Chen on 26-11-2012 04:11:14 PM This is an API, we don't run it in tclsh npectrtvbexgw02#tclsh displayName.tcl Please refer to programming guide. Thanks !
Subject: RE: New Message from Yaw-Ming Chen in Voice Gateway API (VGAPI) - TCL-API: Replied by: king hsu on 27-11-2012 07:42:50 AM Hi, How do I check if the version of tcl ivr is 2.0 in my voice gateway? Thanks, king
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com] Sent: Monday, November 26, 2012 5:11 PM To: cdicuser@developer.cisco.com Subject: New Message from Yaw-Ming Chen in Voice Gateway API (VGAPI) - TCL-API: RE: Ref: tclivr scrip does not recognize the fsm command
Yaw-Ming Chen has created a new message in the forum "TCL-API": -------------------------------------------------------------- This is an API, we don't run it in tclsh npectrtvbexgw02#tclsh displayName.tcl Please refer to programming guide.
Thanks ! -- To respond to this post, please click the following link: or simply reply to this email.
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: Anusha Kannappan on 29-11-2012 12:11:12 AM Hi King, You can use the following cli after loading your script in the voice gateway to view the version 2811#sh call app voice <application name> Thanks, Anusha
Subject: RE: New Message from Anusha Kannappan in Voice Gateway API (VGAPI) - TCL-AP Replied by: king hsu on 29-11-2012 08:16:50 AM Hi, How do I know the ivr is included in the tcl 2.1 ? I see the tcl2.1 is included. But it does not have information which including ivr extension. Thanks, king
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com] Sent: Thursday, November 29, 2012 1:11 AM To: cdicuser@developer.cisco.com Subject: New Message from Anusha Kannappan in Voice Gateway API (VGAPI) - TCL-API: RE: Using Tcl-script packages in IVR Tcl-scripts
Anusha Kannappan has created a new message in the forum "TCL-API": -------------------------------------------------------------- Hi King,
You can use the following cli after loading your script in the voice gateway to view the version 2811#sh call app voice <application name>
Thanks, Anusha
-- To respond to this post, please click the following link: or simply reply to this email.
Subject: RE: Using Tcl-script packages in IVR Tcl-scripts Replied by: Yaw-Ming Chen on 29-11-2012 04:52:05 PM Please refer to grogramming guide. http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2.html We mostly deal with the commands provided in programming guide not "other extension"
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: