<?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>Resettin voice-port every time it is used</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9338341" />
  <subtitle>Resettin voice-port every time it is used</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9338341</id>
  <updated>2013-05-26T06:28:59Z</updated>
  <dc:date>2013-05-26T06:28:59Z</dc:date>
  <entry>
    <title>RE: Resettin voice-port every time it is used</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9338748" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9338748</id>
    <updated>2012-12-13T18:55:46Z</updated>
    <published>2012-12-13T18:47:21Z</published>
    <summary type="html">You need to use timer command Tcl IVR. This is different from tclsh But Tcl IVR cannot excute IOS command.
So I see the possible solution is this:
After 15 seconds we use log command to ask IOS generate syslog then use EEM to pickup syslog trigger and execute "shut". Do the same after 3 seconds with different syslog message to do "no shut".
You can check here for Cisco EEM detail:
https://supportforums.cisco.com/community/netpro/network-infrastructure/eem</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2012-12-13T18:47:21Z</dc:date>
  </entry>
  <entry>
    <title>Resettin voice-port every time it is used</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9338340" />
    <author>
      <name>Christopher Bomba</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9338340</id>
    <updated>2012-12-13T18:20:32Z</updated>
    <published>2012-12-13T18:20:32Z</published>
    <summary type="html">Not sure if this is doable, but we have a voice-port that hangs all the time.  We are trying to configure a TCL script that is tied to a dial-peer that when the dial-peer receives a call it triggers the service that waits 15 seconds, shuts the port, waits 3 more seconds and then no-shuts the port.  When we use the tclsh and send the commands through there it works.   When we configure the TCL script as a service and apply it to the dial-peer the router throws us errors back saying our commands are invalid. 
 
Here is what works in tclsh:
after 15000
ios_config "voice-port 0/3/0" "shut"
after 3000
ios_config "voice-port 0/3/0" "no shut"
exit


 
Here is the error we get on every call to the dial-peer:
2467068: Dec 13 13:16:22.026 EST: //-1//AFW_:EE17BF30B4000:/Tcl_Link: Linking script pageport
2467069: Dec 13 13:16:22.026 EST: //-1//AFW_:EE17BF30B4000:/Tcl_Link: Tcl_Eval Failed on top-level eval. code=1 code=ERROR
2467070: Dec 13 13:16:22.026 EST: TCL script failure
        Result:
                         invalid command name "after"
2467071: Dec 13 13:16:22.026 EST:       TCL script failure errorInfo:
                        invalid command name "after"
    while executing
"
2467072: Dec 13 13:16:22.026 EST: //-1//AFW_:EE17BF30B4000:/AFW_ExecEnv_Link: Cannot link script: pageport
2467073: Dec 13 13:16:22.026 EST: //-1//SCRI:/AFW_M_Script_Register:  Cannot set the script: pageport


 
 </summary>
    <dc:creator>Christopher Bomba</dc:creator>
    <dc:date>2012-12-13T18:20:32Z</dc:date>
  </entry>
</feed>

