<?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 How to get data from subscriptionUri? in Management</title>
    <link>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606698#M2876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am newbie from &lt;SPAN style="color: #525252; font-family: CiscoSansLight, Arial, 'Liberation Sans', FreeSans, sans-serif; font-size: 14px;"&gt;MediaSense, I try to get data from &lt;SPAN style="color: #525252; font-family: CiscoSansLight, Arial, 'Liberation Sans', FreeSans, sans-serif; font-size: 14px;"&gt;MediaSense api (subscriptionUri), but I can't. Please help me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #525252; font-size: 14px; font-family: CiscoSansLight, Arial, 'Liberation Sans', FreeSans, sans-serif;"&gt;Thank you for your comment or suggestion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trinnachart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 10:13:14 GMT</pubDate>
    <dc:creator>zeroone555</dc:creator>
    <dc:date>2015-05-11T10:13:14Z</dc:date>
    <item>
      <title>How to get data from subscriptionUri?</title>
      <link>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606698#M2876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am newbie from &lt;SPAN style="color: #525252; font-family: CiscoSansLight, Arial, 'Liberation Sans', FreeSans, sans-serif; font-size: 14px;"&gt;MediaSense, I try to get data from &lt;SPAN style="color: #525252; font-family: CiscoSansLight, Arial, 'Liberation Sans', FreeSans, sans-serif; font-size: 14px;"&gt;MediaSense api (subscriptionUri), but I can't. Please help me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #525252; font-size: 14px; font-family: CiscoSansLight, Arial, 'Liberation Sans', FreeSans, sans-serif;"&gt;Thank you for your comment or suggestion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trinnachart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:13:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606698#M2876</guid>
      <dc:creator>zeroone555</dc:creator>
      <dc:date>2015-05-11T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get data from subscriptionUri?</title>
      <link>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606699#M2877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; font-family: arial; color: #8b8b8b;"&gt;&lt;SPAN class="replyToName" style="font-weight: inherit; font-style: inherit; font-size: 14.3999996185303px; font-family: inherit;"&gt;trinnachart,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please describe your question in detail. Show your work. What actually you want to do and what you did so far? And What is the actual error you are getting? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally Using Subscription API you subscribe for Mediasense Call Notification. For this you first write Webservice which will be getting requests on particular URL and you will be using this URL in your Subscription API. And in the response of that API you get the status of your subscription.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 11:06:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606699#M2877</guid>
      <dc:creator>Bilal Ahmed Yaseen</dc:creator>
      <dc:date>2015-05-11T11:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get data from subscriptionUri?</title>
      <link>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606700#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilal Ahmed Yaseen,&lt;/P&gt;&lt;P&gt;I try to use Mediasense API "subscribeToEvents" to subscribe my Mediasense server, see my code below&lt;/P&gt;&lt;P&gt;$data = array(&lt;/P&gt;&lt;P&gt;&amp;nbsp; "requestParameters" =&amp;gt; array(&lt;/P&gt;&lt;P&gt;&amp;nbsp; "subscriptionType" =&amp;gt; "http",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "subscriptionUri" =&amp;gt; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://APPLICATION_SERVER_IP:81/test/content.php" rel="nofollow" target="_blank"&gt;http://APPLICATION_SERVER_IP:81/test/content.php&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "subscriptionFilters" =&amp;gt; ["RECORDING_EVENTS"]&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://MEDIASENSE_IP:8440/ora/eventService/event/subscribeToEvents" rel="nofollow" target="_blank"&gt;https://MEDIASENSE_IP:8440/ora/eventService/event/subscribeToEvents&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$header = array(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Content-Type: application/json',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Cookie: JSESSIONID=xxxxxxxxxxxxxxxxxxxxxxx'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ); &lt;/P&gt;&lt;P&gt;$json = json_encode($data);&lt;/P&gt;&lt;P&gt;$ch = curl_init($url);&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, $header);&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_HEADER, true);&lt;/P&gt;&lt;P&gt;$result = curl_exec($ch);&lt;/P&gt;&lt;P&gt;curl_close ($ch); // close curl handle&lt;/P&gt;&lt;P&gt;var_dump($result); // show output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After execute my code, I got the result like this&lt;/P&gt;&lt;P&gt;{"responseMessage":"Success: Your request was successfully completed.","responseCode":2000,"responseBody":{"subscriptionFilters":["SESSION_STARTED_EVENT","SESSION_UPDATED_EVENT","SESSION_ENDED_EVENT"],"subscriptionId":"HfKrs2JXPdpfMVW13"}}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Trinnachart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 02:51:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606700#M2878</guid>
      <dc:creator>zeroone555</dc:creator>
      <dc:date>2015-05-12T02:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get data from subscriptionUri?</title>
      <link>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606701#M2879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;Hi trinnachart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; According to the response you received from mediasense, It is clear that you subscription process for mediasense notification has been completed successfully. Now, you will be getting notification for the following call events: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;EM&gt;"SESSION_STARTED_EVENT","SESSION_UPDATED_EVENT","SESSION_ENDED_EVENT".&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, Mediasense will push notifications to the URI you mentioned while subscribing, that was: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://application_server_ip:81/test/content.php" rel="nofollow" style="font-size: 12px; font-family: arial; color: #0a63a7;" target="_blank"&gt;http://APPLICATION_SERVER_IP:81/test/content.php&lt;/A&gt;&lt;SPAN style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when you will make call from a phone against which recording profile will be enabled, you will get notifications from mediasense on the specified URI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to receive mediasense notifications, you need to make sure two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;IP Phones which you are using for callings have recording enabled on it. (Your phone should be properly configured for recording)&lt;/LI&gt;&lt;LI&gt;Your have properly deployed your listener on some server, and is properly listening on the specified URL. (You can use poster to test this by sending test data to this URL with POST request)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please let me know If you further need any assistance. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 06:25:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/how-to-get-data-from-subscriptionuri/m-p/3606701#M2879</guid>
      <dc:creator>Bilal Ahmed Yaseen</dc:creator>
      <dc:date>2015-05-12T06:25:15Z</dc:date>
    </item>
  </channel>
</rss>

