Blogs

Showing 13 results.
Items per Page 20
of 1

Forums

« Back to TCL-API

Using Tcl-script packages in IVR Tcl-scripts

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
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
 
 

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
 
 

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!!! (((

Did you try "package" command inside of your main script ?

By the way package command works fine for me

Yes!

puts "packages: [package names]"

packages: ... tclcore ...

My package (greet) is not listed! (


But with command:

Teler-gw6#sh call application voice sum

SERVICES (standalone applications):
name type description
....
ivrtest Tcl Script tftp://xxx.xxx.net/tcl/ivrtest.tcl
...

PACKAGES:
name type description
...
tclcore C Script builtin:tclcore_package.C
greet Tcl Script tftp://xxx.xxx.net/tcl/greet.tcl
...

here is listed! )

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

Problem solved by simply commenting out line

# package require Tcl 8.3

in package! )))

Thank you!

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)

This is an API, we don't run it in tclsh
npectrtvbexgw02#tclsh displayName.tcl
Please refer to programming guide.
 
Thanks !

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.

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
 
 

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.

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"
 

Collateral


No files available