<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Using Tcl-script packages in IVR Tcl-scripts</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=4216428" />
  <subtitle>Using Tcl-script packages in IVR Tcl-scripts</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=4216428</id>
  <updated>2013-05-26T01:11:54Z</updated>
  <dc:date>2013-05-26T01:11:54Z</dc:date>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8931558" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8931558</id>
    <updated>2012-11-29T22:52:05Z</updated>
    <published>2012-11-29T22:52:05Z</published>
    <summary type="html">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"
 </summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2012-11-29T22:52:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Anusha Kannappan in Voice Gateway API (VGAPI) - TCL-AP</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8917067" />
    <author>
      <name>king hsu</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8917067</id>
    <updated>2012-11-29T14:16:50Z</updated>
    <published>2012-11-29T14:16:50Z</published>
    <summary type="html">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 &lt;application name&gt;

Thanks,
Anusha


--
To respond to this post, please click the following link: or simply reply to this email.</summary>
    <dc:creator>king hsu</dc:creator>
    <dc:date>2012-11-29T14:16:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8905531" />
    <author>
      <name>Anusha Kannappan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8905531</id>
    <updated>2012-11-29T06:11:12Z</updated>
    <published>2012-11-29T06:11:12Z</published>
    <summary type="html">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 &lt;application name&gt;
 
Thanks,
Anusha
 
 </summary>
    <dc:creator>Anusha Kannappan</dc:creator>
    <dc:date>2012-11-29T06:11:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Yaw-Ming Chen in Voice Gateway API (VGAPI) - TCL-API:</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8854303" />
    <author>
      <name>king hsu</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8854303</id>
    <updated>2012-11-27T13:42:50Z</updated>
    <published>2012-11-27T13:42:50Z</published>
    <summary type="html">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.</summary>
    <dc:creator>king hsu</dc:creator>
    <dc:date>2012-11-27T13:42:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Ref: tclivr scrip does not recognize the fsm command</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8838534" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8838534</id>
    <updated>2012-11-26T22:11:14Z</updated>
    <published>2012-11-26T22:11:14Z</published>
    <summary type="html">This is an API, we don't run it in tclsh
npectrtvbexgw02#tclsh displayName.tcl
Please refer to programming guide.
 
Thanks !</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2012-11-26T22:11:14Z</dc:date>
  </entry>
  <entry>
    <title>Ref: tclivr scrip does not recognize the fsm command</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8837659" />
    <author>
      <name>king hsu</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8837659</id>
    <updated>2012-11-26T20:57:21Z</updated>
    <published>2012-11-26T20:57:21Z</published>
    <summary type="html">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)</summary>
    <dc:creator>king hsu</dc:creator>
    <dc:date>2012-11-26T20:57:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4221210" />
    <author>
      <name>corba voip</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4221210</id>
    <updated>2011-07-13T15:09:09Z</updated>
    <published>2011-07-13T15:09:09Z</published>
    <summary type="html">Problem solved by simply commenting out line

# package require Tcl 8.3

in package! )))

Thank you!</summary>
    <dc:creator>corba voip</dc:creator>
    <dc:date>2011-07-13T15:09:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4220888" />
    <author>
      <name>Raghavendra Gutty Veeranagappa</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4220888</id>
    <updated>2011-07-13T14:44:01Z</updated>
    <published>2011-07-13T14:44:01Z</published>
    <summary type="html">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</summary>
    <dc:creator>Raghavendra Gutty Veeranagappa</dc:creator>
    <dc:date>2011-07-13T14:44:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216260" />
    <author>
      <name>corba voip</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216260</id>
    <updated>2011-07-13T07:53:37Z</updated>
    <published>2011-07-13T07:53:37Z</published>
    <summary type="html">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! )</summary>
    <dc:creator>corba voip</dc:creator>
    <dc:date>2011-07-13T07:53:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216876" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216876</id>
    <updated>2011-07-12T20:28:14Z</updated>
    <published>2011-07-12T20:28:14Z</published>
    <summary type="html">By the way package command works fine for me</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2011-07-12T20:28:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216868" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216868</id>
    <updated>2011-07-12T20:22:27Z</updated>
    <published>2011-07-12T20:22:27Z</published>
    <summary type="html">Did you try "package" command inside of your main script ?</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2011-07-12T20:22:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4215404" />
    <author>
      <name>corba voip</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4215404</id>
    <updated>2011-07-12T20:14:40Z</updated>
    <published>2011-07-12T20:14:40Z</published>
    <summary type="html">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!!! (((</summary>
    <dc:creator>corba voip</dc:creator>
    <dc:date>2011-07-12T20:14:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216612" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216612</id>
    <updated>2011-07-12T17:43:08Z</updated>
    <published>2011-07-12T17:41:58Z</published>
    <summary type="html">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
 
 </summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2011-07-12T17:41:58Z</dc:date>
  </entry>
  <entry>
    <title>Using Tcl-script packages in IVR Tcl-scripts</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216427" />
    <author>
      <name>corba voip</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4216427</id>
    <updated>2011-07-12T16:31:00Z</updated>
    <published>2011-07-12T16:31:00Z</published>
    <summary type="html">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
 
 </summary>
    <dc:creator>corba voip</dc:creator>
    <dc:date>2011-07-12T16:31:00Z</dc:date>
  </entry>
</feed>

