<?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>Receiving a http information on TCL IVR</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=13129937" />
  <subtitle>Receiving a http information on TCL IVR</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=13129937</id>
  <updated>2013-05-20T21:26:42Z</updated>
  <dc:date>2013-05-20T21:26:42Z</dc:date>
  <entry>
    <title>RE: Receiving a http information on TCL IVR</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13354157" />
    <author>
      <name>Jean Lofrano</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13354157</id>
    <updated>2013-03-21T17:57:03Z</updated>
    <published>2013-03-21T17:57:03Z</published>
    <summary type="html">ok. thanks.</summary>
    <dc:creator>Jean Lofrano</dc:creator>
    <dc:date>2013-03-21T17:57:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Receiving a http information on TCL IVR</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13136347" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13136347</id>
    <updated>2013-03-15T21:32:27Z</updated>
    <published>2013-03-15T21:32:27Z</published>
    <summary type="html">Tcl IVR API can only send a http query, can not receive any query.
 
 </summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-03-15T21:32:27Z</dc:date>
  </entry>
  <entry>
    <title>RES: 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=13131749" />
    <author>
      <name>Jean Lofrano</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13131749</id>
    <updated>2013-03-15T20:48:52Z</updated>
    <published>2013-03-15T20:48:52Z</published>
    <summary type="html">Hey Yaw,

My doubt is about TCL script.

How can I receive a http information on tcl script?

Because today I can receive only If I send something…

Thanks.



De: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Enviada em: sexta-feira, 15 de março de 2013 17:28
Para: cdicuser@developer.cisco.com
Assunto: New Message from Yaw-Ming Chen in Voice Gateway API (VGAPI) - TCL-API: RE: Receiving a http information on TCL IVR

Yaw-Ming Chen has created a new message in the forum "TCL-API": -------------------------------------------------------------- If you can have your Tcl script working you should have no problem to have it point to other server. So think you quertion is rather than how to communocate with CCX right ?
If this is the case I think you may want to go to CCX portal. The discusss in this forum is all Tcl related, chance may be small have a CCX expert here.

Thanks !
--
To respond to this post, please click the following link: or simply reply to this email.</summary>
    <dc:creator>Jean Lofrano</dc:creator>
    <dc:date>2013-03-15T20:48:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Receiving a http information on TCL IVR</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13131289" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13131289</id>
    <updated>2013-03-15T20:28:19Z</updated>
    <published>2013-03-15T20:28:19Z</published>
    <summary type="html">If you can have your Tcl script working you should have no problem to have it point to other server. So think you quertion is rather than how to communocate with CCX right ?
If this is the case I think you may want to go to CCX portal. The discusss in this forum is all Tcl related, chance may be small have a CCX expert here.

Thanks !</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-03-15T20:28:19Z</dc:date>
  </entry>
  <entry>
    <title>Receiving a http information on TCL IVR</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13129936" />
    <author>
      <name>Jean Lofrano</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13129936</id>
    <updated>2013-03-15T20:16:50Z</updated>
    <published>2013-03-15T20:16:50Z</published>
    <summary type="html">Hi team,

My TCL script is working properly. 
My script was configured with the commands below, which I can collect the digits, create the http with the digits collected and send for my application, than I receive a answer and I put in the variable webreturn1.  
proc ActionCollectQuestion2 { } {
    puts "IT7: collect question 2"

    set Question2Param(interruptPrompt) true
    set Question2Param(terminationKey) #
    set Question2Param(maxDigits) 11
    set Question2Param(dialPlan) true
    set Question2Pattern(1) "..........."
   

    leg collectdigits leg_incoming Question2Param

    puts "IT7: collected question 2"
}


proc Action2 { } {
    global WebServer
    global Response2
    global CallerID
    global count

   

    set StatusCollectDigits [infotag get evt_status]
    
      puts "IT7: collectdigits $StatusCollectDigits"

    #matched pattern
    if {$StatusCollectDigits == "cd_005"} {

       set Response2 [infotag get evt_dcdigits]
      
     set URL http://$WebServer/URA/ValidarCPF?telefoneorigem=$CallerID&amp;cpf=$Response2
    


       puts "IT7: URL Validacao #2 $URL"

       ::httpios::geturl $URL -command httpCallback2

    } else {

    media play leg_incoming "flash:/Fem/cpf-invalido.wav"
    fsm setstate PLAYEDWRONG2
    }
}


proc httpCallback2 { token } {

    global WebServer
    global Response1
    global WebReturn1
    global CallerID
     

   if {[::httpios::status $token] == "ok"} {
      set WebReturn1 [string trim [::httpios::data $token]]
   } else {
      set WebReturn1 0 
   }


 
But, now I would like to create a script that it allows receive some information from CCX via http action. 
So, I want only to receive a information from CCX via http in my TCL script. 
 
Can you help me please? 
 
thanks.
 </summary>
    <dc:creator>Jean Lofrano</dc:creator>
    <dc:date>2013-03-15T20:16:50Z</dc:date>
  </entry>
</feed>

