<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to store data in variable and reference it in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545558#M1718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; am not sure, But headers need to be passed to leg setup command.&lt;BR /&gt;set callinfo(protoHeaders) headers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 11:43:13 GMT</pubDate>
    <dc:creator>Raghavendra G V</dc:creator>
    <dc:date>2015-04-24T11:43:13Z</dc:date>
    <item>
      <title>How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545555#M1715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Raghavendra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using below command to get data from http server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;::httpios::geturl &amp;lt;url&amp;gt; -command getEndCallResponse -timeout&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;getEndCallResponse is another proc which retrieves the data. However we are not able to understand how to use the data returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;we want to reference to that data ( Possibly by storing it in variable) and update the DNIS of Sip Header. &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px; line-height: 1.5em;"&gt;Both Invite and To Filed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;Can you please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: arial;"&gt;Ashish&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 10:38:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545555#M1715</guid>
      <dc:creator>AshG</dc:creator>
      <dc:date>2015-04-24T10:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545556#M1716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer SIP Headers section in TCL ivr programming guide from below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/site/voice-gateway/documentation/"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://developer.cisco.com/site/voice-gateway/documentation/&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 10:58:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545556#M1716</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2015-04-24T10:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545557#M1717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Raghavendra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the guide. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question . We are trying to not answer the call in tcl script but just use "leg proceeding leg_incoming"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update the sip header with new DNIS and then release the call from .tcl script and let carry on its normal route. I.e hit the next dial peer in gateway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this do able ? and any pointers will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 11:28:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545557#M1717</guid>
      <dc:creator>AshG</dc:creator>
      <dc:date>2015-04-24T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545558#M1718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; am not sure, But headers need to be passed to leg setup command.&lt;BR /&gt;set callinfo(protoHeaders) headers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 11:43:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545558#M1718</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2015-04-24T11:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545559#M1719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Raghavendra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are not able to store data returned by http in variable to use it later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have tried to define global variables or even tried to use token but not able to refer to the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can see the data in log but not sure how to refer to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 13:26:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545559#M1719</guid>
      <dc:creator>AshG</dc:creator>
      <dc:date>2015-04-24T13:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545560#M1720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why you can't refer the data, could you share code how you are trying to refer the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:08:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545560#M1720</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2015-04-24T17:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545561#M1721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Raghavendra,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Apologies for late reply. Due to some other work we had to drop this development for a while.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Below is my code.&amp;nbsp; However we have found that we need to use function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;httpios:data to retrieve output from url ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getHTTPiosResponse is proc we use in - command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc getHTTPiosResponse {token} {&lt;BR /&gt;# Get response data&lt;BR /&gt;puts "***** In getHTTPiosResponse: start"&lt;/P&gt;&lt;P&gt;# Declare variables&lt;BR /&gt;variable resp&lt;/P&gt;&lt;P&gt;if {![ string compare [ ::httpios::status $token ] "ok" ]} {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "***** In getHTTPiosResponse: http status ok "&lt;BR /&gt; set resp [ httpios::data $token ]&lt;BR /&gt; puts "***** In getHTTPiosResponse: Response - $resp"&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts stderr [ ::httpios::error $token ]&lt;BR /&gt;}&lt;BR /&gt;httpios::cleanup $token&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:39:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545561#M1721</guid>
      <dc:creator>AshG</dc:creator>
      <dc:date>2015-04-30T11:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to store data in variable and reference it</title>
      <link>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545562#M1722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add "global resp" in your function as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc getHTTPiosResponse {token} {&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;global resp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:57:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-to-store-data-in-variable-and-reference-it/m-p/3545562#M1722</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2015-04-30T11:57:33Z</dc:date>
    </item>
  </channel>
</rss>

