<?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 CURRI - Sample code to modify CUCM Calling number and number ? in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4118427#M2930</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wondering if one of you would share some sample code that does the following :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query MS AD based on a calling number, get some field like Calling name and Calling number and then replace the current CUCM fields with what we got from AD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have something in that range by any chance please ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks...Francois&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 13:24:48 GMT</pubDate>
    <dc:creator>fleclair</dc:creator>
    <dc:date>2020-07-14T13:24:48Z</dc:date>
    <item>
      <title>CURRI - Sample code to modify CUCM Calling number and number ?</title>
      <link>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4118427#M2930</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wondering if one of you would share some sample code that does the following :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query MS AD based on a calling number, get some field like Calling name and Calling number and then replace the current CUCM fields with what we got from AD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have something in that range by any chance please ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks...Francois&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 13:24:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4118427#M2930</guid>
      <dc:creator>fleclair</dc:creator>
      <dc:date>2020-07-14T13:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: CURRI - Sample code to modify CUCM Calling number and number ?</title>
      <link>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4118428#M2931</link>
      <description>Sorry...small mistake in the title.  should read : "Calling Name and Number".  Thank you.</description>
      <pubDate>Tue, 14 Jul 2020 13:26:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4118428#M2931</guid>
      <dc:creator>fleclair</dc:creator>
      <dc:date>2020-07-14T13:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: CURRI - Sample code to modify CUCM Calling number and number ?</title>
      <link>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4123198#M2934</link>
      <description>&lt;P&gt;May be this will help you. You need to write JAVA Servlet which will read info from database/AD. Configure Servlet URL in CUCM -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import java.io.IOException;&lt;BR /&gt;import java.io.InputStream;&lt;BR /&gt;import javax.servlet.ServletException;&lt;BR /&gt;import javax.servlet.http.HttpServlet;&lt;BR /&gt;import javax.servlet.http.HttpServletRequest;&lt;BR /&gt;import javax.servlet.http.HttpServletResponse;&lt;/P&gt;&lt;P&gt;import javax.xml.parsers.ParserConfigurationException;&lt;BR /&gt;import javax.xml.parsers.SAXParser;&lt;BR /&gt;import javax.xml.parsers.SAXParserFactory;&lt;BR /&gt;import org.dom4j.Document;&lt;BR /&gt;import org.dom4j.io.SAXReader;&lt;BR /&gt;import org.xml.sax.SAXException;&lt;/P&gt;&lt;P&gt;public class CLIModifier extends HttpServlet {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;@Override&lt;BR /&gt;protected void doPost(HttpServletRequest request, HttpServletResponse response)&lt;BR /&gt;throws ServletException, IOException {&lt;/P&gt;&lt;P&gt;System.out.println("Request Received From CURRI");&lt;BR /&gt;response.setContentType("text/xml");//;charset=UTF-8&lt;/P&gt;&lt;P&gt;String strXML="&amp;lt;?xml encoding=\"UTF-8\" version=\"1.0\"?&amp;gt; &amp;lt;Response&amp;gt;&amp;lt;Result&amp;gt;&amp;lt;Decision&amp;gt;Permit&amp;lt;/Decision&amp;gt;&amp;lt;Obligations&amp;gt; &amp;lt;Obligation FulfillOn=\"Permit\" ObligationId=\"continue.simple\"&amp;gt;&amp;lt;AttributeAssignment AttributeId=\"Route:continue.simple\"&amp;gt;&amp;lt;AttributeValue DataType=\"&lt;A href="https://community.cisco.com/" target="_blank"&gt;http://www.w3.org/2001/XMLSchema#string\"&amp;gt;&amp;amp;lt;cixml&lt;/A&gt; version=\"1.0\"&amp;amp;gt;&amp;amp;lt;continue&amp;amp;gt;&amp;amp;lt;modify callingnumber=\"12345678\"/&amp;amp;gt;&amp;amp;lt;/continue&amp;amp;gt; &amp;amp;lt;/cixml&amp;amp;gt;&amp;lt;/AttributeValue&amp;gt;&amp;lt;/AttributeAssignment&amp;gt; &amp;lt;/Obligation&amp;gt;&amp;lt;/Obligations&amp;gt;&amp;lt;/Result&amp;gt; &amp;lt;/Response&amp;gt;";&lt;BR /&gt;&lt;BR /&gt;response.getWriter().print(strXML);&lt;BR /&gt;//response.setStatus(HttpServletResponse.SC_OK);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 05:00:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4123198#M2934</guid>
      <dc:creator>upchaurasia</dc:creator>
      <dc:date>2020-07-22T05:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: CURRI - Sample code to modify CUCM Calling number and number ?</title>
      <link>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4260703#M3014</link>
      <description>&lt;P&gt;Be mindful though that for internal calls, only hardphones will show that modified information. Softphones (jabber) won't.. they'll merrily show the information that was there before you started changing things with CURRI. According to the response I got on one of my cases, that's "by design".&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 13:02:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/curri-sample-code-to-modify-cucm-calling-number-and-number/m-p/4260703#M3014</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2020-12-18T13:02:34Z</dc:date>
    </item>
  </channel>
</rss>

