<?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>TCL-API</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_category?p_l_id=&amp;mbCategoryId=1063409" />
  <subtitle />
  <id>http://developer.cisco.com/c/message_boards/find_category?p_l_id=&amp;mbCategoryId=1063409</id>
  <updated>2013-05-24T08:44:58Z</updated>
  <dc:date>2013-05-24T08:44:58Z</dc:date>
  <entry>
    <title>RE: How TCL can speak a password for caller?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15555520" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15555520</id>
    <updated>2013-05-24T04:25:47Z</updated>
    <published>2013-05-24T04:25:47Z</published>
    <summary type="html">You are right !</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-24T04:25:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: How TCL can speak a password for caller?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15554194" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15554194</id>
    <updated>2013-05-24T01:30:24Z</updated>
    <published>2013-05-24T01:30:24Z</published>
    <summary type="html">Is this the same tcl which you where working before? Are you media playing inside the procedure of callback of http consult? 
 
For what I read you have bad syntax of media play command...
[b]media play[/b] [color=#ff0000]{legID | info-tag }[/color] { &lt;url&gt; | token }
and you seems to wrote
[color=#525252]media play alteracao-ok.wav $prompt[/color]
[color=#525252]You are missing the legID or info-tag.[/color]
[color=#525252]Experts correct me if I am wrong..[/color]
[color=#525252] [/color]</summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-24T01:30:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: How TCL can speak a password for caller?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15547477" />
    <author>
      <name>Jean Lofrano</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15547477</id>
    <updated>2013-05-23T20:38:32Z</updated>
    <published>2013-05-23T20:38:32Z</published>
    <summary type="html">Hey Mark, 

I have tried to use your suggestion, but I had the follow issue: 

000967: May 23 20:32:28.435: //176//TCL :/tcl_PutsObjCmd: IT7--------------------------------&gt; OK FINAL !
000968: May 23 20:32:28.439:
000969: May 23 20:32:28.439: //176//PACK:/tclhttp_handle_httpcb_event: Tcl_Eval to drive http callback failed. code=1 code=ERROR
it7-rot-csc-03#
000970: May 23 20:32:28.439: TCL script failure
        Result:
                         expected integer but got "alteracao-ok.wav"Invalid Leg ID in List: alteracao-ok.wavIllegal Info Tag or not a Leg List: alteracao-ok.wav
000971: May 23 20:32:28.443:    TCL script failure errorInfo:
                        expected integer but got "alteracao-ok.wav"Invalid Leg ID in List: alteracao-ok.wavIllegal Info Tag or not a Leg List: alteracao-ok.wav
    while executing
"media play alteracao-ok.wav $prompt
    (procedure "httpCallback3" line 38)
    invoked from within
"httpCallback3 ::httpios::httpios_36"


can you help me please?
 
regards,</summary>
    <dc:creator>Jean Lofrano</dc:creator>
    <dc:date>2013-05-23T20:38:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15546697" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15546697</id>
    <updated>2013-05-23T19:47:17Z</updated>
    <published>2013-05-23T19:47:17Z</published>
    <summary type="html">It's getting complicate. You may want to consider oper  a SR with CDN support.
http://developer.cisco.com/web/join-the-network/support-only

One of the good moment to do handoff is when you recieve call setup doen event
You can do " call close" as soons as you do [color=#525252]handoff appl leg_incoming AA -s “I send you result=$res”[/color]
 </summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-23T19:47:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15545108" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15545108</id>
    <updated>2013-05-23T19:34:20Z</updated>
    <published>2013-05-23T19:34:20Z</published>
    <summary type="html">Thanks Yaw that was becouse I reaload it again with other name..
The error now is..: %CALL_CONTROL-6-APP_NOT_FOUND: Application[color=#ff0000] web[/color] in dial-peer 100 not found.  Handing callid 45 to the alternate app .

With debug I got the error what really my fault :D
I forgot to put # on the last line of the code.....   IT was " -------------------------------------------------" without # 
Seems its working and getting the response of web server...
If want to handoff this call and let the other tcl to take it.. the other tcl called ex. aa.tcl
[color=#525252]handoff appl leg_incoming AA -s “I send you result=$res”[/color]
Did I need to connect/proccess any leg before handoff couse I don't have any leg I guess..
 Or I could send it as it is now ? When the other app recevied the call it has to connect the leg or it received already connected? when I handoff and status of hand is off should I disconnect the call from first TCL ?
Maybe I should open a new post for handoff
 </summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-23T19:34:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15543281" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15543281</id>
    <updated>2013-05-23T18:23:53Z</updated>
    <published>2013-05-23T18:23:53Z</published>
    <summary type="html">You have application "web" why here said html4 not found ?
got: %CALL_CONTROL-6-APP_NOT_FOUND: Application [color=#ff0000]html4[/color] in dial-peer 100 not found.  Handing callid 31 to the alternate app .

Do it again enable deb voip app tcl and deb voip app scr.
"call appl voice load web" then amke a call 
and show what you have  incluing dial-peer
Thanks !
 
 
 </summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-23T18:23:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15541975" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15541975</id>
    <updated>2013-05-23T18:05:12Z</updated>
    <published>2013-05-23T18:05:12Z</published>
    <summary type="html">Just loaded like web...
[b]sh call app voice sum[/b]
web                       Tcl Script      http://10.16.4.43/lisa/html.tcl
 
dial-peer voice 100 pots
 description *** PSTN Dial Peer ***
 [b]service web[/b]
  incoming called-number .
 port 0/1/0
!
 
loading the app..
 
*May 23 18:11:04.751: //-1//HIFS:/hifs_http_cb: hifs http read succeeded. size=1467, url=http://10.16.4.43/lisa/html.tcl
*May 23 18:11:04.751: //-1//HIFS:/hifs_http_cb: hifs ifs file read succeeded. size=1467, url=http://10.16.4.43/lisa/html.tcl
*May 23 18:11:04.751: //-1//HIFS:/hifs_free_idata: hifs_free_idata: 0x48509054
*May 23 18:11:04.751: //-1//HIFS:/hifs_hold_idata: hifs_hold_idata: 0x48509054
*May 23 18:11:04.763: //-1//TCL :EE472F7CF4000:/tcl_PutsObjCmd: its in
*May 23 18:11:04.763: 
.................................
Thanks</summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-23T18:05:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15542779" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15542779</id>
    <updated>2013-05-23T17:53:34Z</updated>
    <published>2013-05-23T17:53:34Z</published>
    <summary type="html">do "sh call app voice sum" see if you see your application "html4"</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-23T17:53:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15542613" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15542613</id>
    <updated>2013-05-23T17:44:40Z</updated>
    <published>2013-05-23T17:44:40Z</published>
    <summary type="html">After looking in diferrent post and mixing codes I got this:
 
When I load the application it read it success, but when I make a call got: %CALL_CONTROL-6-APP_NOT_FOUND: Application html4 in dial-peer 100 not found.  Handing callid 31 to the alternate app .
I check name of service on dial peer its ok.
 
proc init { } {
 
 
 
     #global token
 
    
 
     set event [infotag get evt_event]
 
    puts "entro"
 
    
 
}
 
 
proc act_GetHTTP { } {
 
global hoy
set hoy "25052013"
 
   #httpios::config -accept "text/plain"
 
    set url "http://10.16.4.43/lisa/test.php?fecha=$hoy"
 
    puts "Before httpios::geturl"   
 
    httpios::geturl "$url" -command act_RequestResult -timeout 1
 
    puts "After httpios::geturl"
 
 
 
 
 
}
 
 
 
 
 
proc act_RequestResult {token} {
 
global res
global WebReturn1
    #global token  
 
 if {[::httpios::status $token] == "ok"} {
      set WebReturn1 [string trim [::httpios::data $token]]
   } else {
      set WebReturn1 0
      set res 0 
      
   }
 
    set res [http::data $token]
 
   
 
    puts "Capture Result: $res"
    puts "Capture Result: $WebReturn1"
 
}
 
 
 
proc act_Cleanup { } {
 
 
 
    set evt_name [infotag get evt_event]
 
    call close
 
}
 
 
 
package require httpios 1.0
 
 
 
init
 
#----------------------------------
 
#   State Machine
 
#----------------------------------
 
set TopFSM(any_state,ev_disconnected)         "act_Cleanup, same_state"
 
set TopFSM(any_state,ev_destroy_done)         "act_Cleanup, same_state"
 
set TopFSM(CALL_INIT,ev_setup_indication)    "act_GetHTTP, same_state"
 
set TopFSM(any_state,ev_any_event) "act_LogState, same_state"
 
fsm define TopFSM CALL_INIT
 
-------------------------------------------------</summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-23T17:44:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15514377" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15514377</id>
    <updated>2013-05-23T01:16:50Z</updated>
    <published>2013-05-23T01:16:50Z</published>
    <summary type="html">That's the idea.</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-23T01:16:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15514256" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15514256</id>
    <updated>2013-05-23T00:54:10Z</updated>
    <published>2013-05-23T00:54:10Z</published>
    <summary type="html">Good question, I'll put them both in same tcl..
If I want to receive a 1 or a 0 from server side script...
I will got it with: set res [http::data $token]  ??
under the Request Result ?
Thanks.. </summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-23T00:54:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error messages</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15500283" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15500283</id>
    <updated>2013-05-22T19:50:20Z</updated>
    <published>2013-05-22T19:50:20Z</published>
    <summary type="html">The best way is to open a SR and use SR attachment.
By the way do you have CCO login ? There may have a way, but I need to check.</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-22T19:50:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15500264" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15500264</id>
    <updated>2013-05-22T19:47:17Z</updated>
    <published>2013-05-22T19:47:17Z</published>
    <summary type="html">Yes you can use handoff but why you need to separate working and non-working day into two scripts ?</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-22T19:47:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15495726" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15495726</id>
    <updated>2013-05-22T18:30:02Z</updated>
    <published>2013-05-22T18:30:02Z</published>
    <summary type="html">Thanks ill try now... Another question..I already have 2 AA tcl. one for  for non-working day .. and the second one tcl its for working days and it has 2 levels aa (one prompt.. collect digit.. a second promp with collect digit again)...
Could I try to make a third tcl ... that check if its working day or not.. 
if not... use handoff to call first tcl script
if not... use handoff to call the second tcl script
Becouse I discover handoff while reading programming guide and seems to be good for me.
thanks.</summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-22T18:30:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error messages</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15494735" />
    <author>
      <name>Adolfo Arizpe</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15494735</id>
    <updated>2013-05-22T17:53:14Z</updated>
    <published>2013-05-22T17:53:14Z</published>
    <summary type="html">Thanks Taw-Ming
It is a 200MB file, compressed, what is the best way to send it?
I am concerned about sharing it publicly.
 
Adolfo</summary>
    <dc:creator>Adolfo Arizpe</dc:creator>
    <dc:date>2013-05-22T17:53:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15493724" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15493724</id>
    <updated>2013-05-22T17:34:58Z</updated>
    <published>2013-05-22T17:34:58Z</published>
    <summary type="html">Are you using VXML ? I think for you ::httpios::geturl is right one to use</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-22T17:34:58Z</dc:date>
  </entry>
  <entry>
    <title>httpios vs leg vxmldialog</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15491540" />
    <author>
      <name>Lisandro Quinteros</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15491540</id>
    <updated>2013-05-22T16:31:05Z</updated>
    <published>2013-05-22T16:31:05Z</published>
    <summary type="html">Hi, still working with the Public Holiday date script  ([url=http://developer.cisco.com/web/vgapi/forums/-/message_boards/message/14328210]http://developer.cisco.com/web/vgapi/forums/-/message_boards/message/14328210[/url])
I have now need to install that script on 300 gateways so I must load it from http and load variables from a web otherwhise I would have to reload 300 script every time a public holiday date change.
The script just need to read the date when the call is made and send it to a web site and this website checks if it's a working day or not (it has an array inside the website).. and just return a 0 or a 1.. and then the script just play differents prompt for working or non-workingday.
 
I have been reading several post and programming guide and I coudn't figure out which is the difference between making..
ex. ::httpios::geturl $URL -command
or
leg vxmldialog
 
for my pourpose is the same?
Server side script is the same for any of this options ?
 
Thanks..
 
 
 
 </summary>
    <dc:creator>Lisandro Quinteros</dc:creator>
    <dc:date>2013-05-22T16:31:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error messages</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15457003" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15457003</id>
    <updated>2013-05-21T16:22:35Z</updated>
    <published>2013-05-21T16:22:35Z</published>
    <summary type="html">I am not sure but I don't think so. 
You can send it to developer-support@cisco.com instead of posting here.</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-05-21T16:22:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error messages</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15453954" />
    <author>
      <name>Adolfo Arizpe</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15453954</id>
    <updated>2013-05-21T15:20:59Z</updated>
    <published>2013-05-21T15:20:59Z</published>
    <summary type="html">Thanks for your reply
Does the core dump include any sensitive information, like passowrds and IPs?</summary>
    <dc:creator>Adolfo Arizpe</dc:creator>
    <dc:date>2013-05-21T15:20:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: Collect digits</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15453158" />
    <author>
      <name>Jean Lofrano</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15453158</id>
    <updated>2013-05-21T14:43:46Z</updated>
    <published>2013-05-21T14:43:46Z</published>
    <summary type="html">Hey!!!

Good job Yaw! 
It´s working right now! 

regards,</summary>
    <dc:creator>Jean Lofrano</dc:creator>
    <dc:date>2013-05-21T14:43:46Z</dc:date>
  </entry>
</feed>

