<?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>RE: CUMI notification subscription timeout</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>RE: CUMI notification subscription timeout</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-23T11:15:22Z</updated>
  <dc:date>2013-05-23T11:15:22Z</dc:date>
  <entry>
    <title>RE: Parameter values in the CUNI Subscribe Web Method</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7919296" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7919296</id>
    <updated>2012-10-22T07:33:57Z</updated>
    <published>2012-10-22T07:33:57Z</published>
    <summary type="html">Hi Loyd,
Please find the answers below:
A sample soap request for subscribe is:
&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:even="http://unity.cisco.com/messageeventservice/event" xmlns:even1="http://event.messageeventservice.unity.cisco.com"&gt;
   &lt;soapenv:Header/&gt;
   &lt;soapenv:Body&gt;
      &lt;even:subscribe&gt;
         &lt;even:resourceType&gt;?&lt;/even:resourceType&gt;
         &lt;even:eventTypeList&gt;
            &lt;!--Zero or more repetitions:--&gt;
            &lt;even:string&gt;?&lt;/even:string&gt;
         &lt;/even:eventTypeList&gt;
         ent
         &lt;even:callbackServiceInfo&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:callbackServiceUrl&gt;?&lt;/even1:callbackServiceUrl&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:hostname&gt;?&lt;/even1:hostname&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:password&gt;?&lt;/even1:password&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:port&gt;?&lt;/even1:port&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:protocol&gt;?&lt;/even1:protocol&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:sslCertificates&gt;
               &lt;!--Zero or more repetitions:--&gt;
               &lt;even:string&gt;?&lt;/even:string&gt;
            &lt;/even1:sslCertificates&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:sslValidateCertificate&gt;?&lt;/even1:sslValidateCertificate&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:sslValidateHostname&gt;?&lt;/even1:sslValidateHostname&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:username&gt;?&lt;/even1:username&gt;
         &lt;/even:callbackServiceInfo&gt;
         &lt;even:expiration&gt;?&lt;/even:expiration&gt;
         &lt;!--Optional:--&gt;
         &lt;even:keepAliveInterval&gt;?&lt;/even:keepAliveInterval&gt;
      &lt;/even:subscribe&gt;
   &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
 
Various parameters:
1) &lt;even:eventTypeList&gt;
            &lt;!--Zero or more repetitions:--&gt;
            &lt;even:string&gt;X&lt;/even:string&gt;
         &lt;/even:eventTypeList&gt;
Since you want to subscribe for notification events, you need to mention that for what all events you want notifications. So the value for X could be:
NEW_MESSAGE: in case you want notification for a new message
UNREAD_MESSAGE: in case you want notification when a message is marked unread
SAVED_MESSAGE: in case you want notification when a message isbeing read
DELETED_MESSAGE: in case you want notification when a message is deleted
ALL_EVENTS: For all the above mentoned cases
 
2) &lt;even:resourceIdList&gt;
            &lt;!--Zero or more repetitions:--&gt;
            &lt;even:string&gt;akanksha&lt;/even:string&gt;
         &lt;/even:resourceIdList&gt;
This list would carry the names of all the resources(users) for whom you need notification
 
3)          &lt;even:callbackServiceInfo&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:callbackServiceUrl&gt;http://ucbu-aricent-vm268.cisco.com:7080/vmevents/msgrcv?subscriptionid=5f11dc96-8f84-4d3e-b7e0-f2871cfbaa30&lt;/even1:callbackServiceUrl&gt;
            &lt;!--Optional:--&gt;
            &lt;even1:hostname&gt;ucbu-aricent-vm268.cisco.com&lt;/even1:hostname&gt;
            &lt;even1:username&gt;test1&lt;/even1:username&gt;
         &lt;/even:callbackServiceInfo&gt;
callbackserviceurl: it means the URL where you want to recieve the notification. You can have it as per you application
Hostname: Connection hostname
Username: The one who is subscribing
4) &lt;even:expiration&gt;2012-03-04T01:22:00.0905523+04:00&lt;/even:expiration&gt;
Here you should specify the expiration date for your subscription. After the expiration date, subscription will expire.
 
5) &lt;even:keepAliveInterval&gt;0&lt;/even:keepAliveInterval&gt;
You can specify the value as per your requirement. It means that your call back URL will be pinged after this interval to check if it's alive.
 
In the response to the above request, you will recieve a subscription Id.
Please revert in case you have any further query.
 
Thanks &amp; Regards,
Akanksha A</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-10-22T07:33:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUMI</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7512340" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7512340</id>
    <updated>2012-10-11T06:13:26Z</updated>
    <published>2012-10-11T06:13:26Z</published>
    <summary type="html">And Yes, Anil is right. If you give the voicemail user role of an administrator, then he will be able to GET /vmrest/users.

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Wednesday, October 10, 2012 9:40 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUMI Questions: RE: 401 Unauthorized for service account

Akanksha Agarwal has created a new message in the forum "CUMI Questions": -------------------------------------------------------------- Shivinder,

If you want to access a particular user's voucemail records then you just need his credentials. You need not modify his roles. You can access his voicemail records using the following APIs:
For messages in Inbox: /vmrest/mailbox/folders/inbox/messages
For messages in Deleted Items folder: /vmrest/mailbox/folders/deleted/messages
For messages in Sent Items folder: /vmrest/mailbox/folders/sent/messages
When you want to access a user's mailbox, then you do not need to create a user with administrativr template. You need to create one with voucemailusertemplate. And this is the reason why you are getting a not authorized error.

I guess the API yu are using is /vmrest/messages and giving the userobjectid to fetch a user's mailbox details. Please use the above mentioned APIs to GET the messages.

--
To respond to this post, please click the following link: http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/7493855 or simply reply to this email.</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-10-11T06:13:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Shivinder Singh in Cisco Unity Connection(CUC) - CUMI</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7512158" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7512158</id>
    <updated>2012-10-11T05:08:26Z</updated>
    <published>2012-10-11T05:08:26Z</published>
    <summary type="html">Hi Shivinder,

Please try to understand the roles. How can a voicemail user access some other voicemail user’s details? Only an administrator can do that.

Administrator: vmrest/users  to get the detail of all the users
                               /vmrest/users/userobjectid to get the detail of a particular user
                               /vmrest/user to get his own details

Voicemailuser i.e a normal user: /vmrest/user to get his own details.

Thanks &amp; Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Thursday, October 11, 2012 12:00 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Shivinder Singh in Cisco Unity Connection(CUC) - CUMI Questions: RE: New Message from Shivinder Singh in Cisco Unity Connection(CUC) - CUMI

Shivinder Singh has created a new message in the forum "CUMI Questions": -------------------------------------------------------------- I created the new user using voicemailusertemplate and the app is working now, not getting 401 unauthorized message. BUT, only if I hard code some test object user id in the code.

If I try to GET /vmrest/users using this new service account (which is not a system administrator role), I get 403 forbidden status code, with the following XML:

&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;ErrorDetails&gt;&lt;errors&gt;&lt;code&gt;NOT_AUTHORIZED&lt;/code&gt;&lt;message&gt;Not Authorized&lt;/message&gt;&lt;/errors&gt;&lt;/ErrorDetails&gt;

User with System Administrator role was able to do this, but I would rather this service account not have sysadmin role. What additional privilege can I try to query user object ids from /vmrest/users?

Thanks!

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]&lt;mailto:[mailto:cdicuser@developer.cisco.com]&gt;
Sent: Wednesday, October 10, 2012 11:21 AM
To: cdicuser@developer.cisco.com&lt;mailto:cdicuser@developer.cisco.com&gt;
Subject: New Message from Shivinder Singh in Cisco Unity Connection(CUC) - CUMI Questions: RE: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUMI

Shivinder Singh has created a new message in the forum "CUMI Questions": -------------------------------------------------------------- Akanksha, thanks for your reply. In order to create a user with voicemailusertemplate, I need to give it a phone extension for the voice mailbox. But this is just a service account. What would you suggest?
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/7487378 or simply reply to this email.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/7487992 or simply reply to this email.</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-10-11T05:08:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: 401 Unauthorized for service account</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7493855" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7493855</id>
    <updated>2012-10-10T16:09:36Z</updated>
    <published>2012-10-10T16:09:36Z</published>
    <summary type="html">Shivinder,
 
If you want to access a particular user's voucemail records then you just need his credentials. You need not modify his roles. You can access his voicemail records using the following APIs:
For messages in Inbox: /vmrest/mailbox/folders/inbox/messages
For messages in Deleted Items folder: /vmrest/mailbox/folders/deleted/messages
For messages in Sent Items folder: /vmrest/mailbox/folders/sent/messages
When you want to access a user's mailbox, then you do not need to create a user with administrativr template. You need to create one with voucemailusertemplate. And this is the reason why you are getting a not authorized error.
 
I guess the API yu are using is /vmrest/messages and giving the userobjectid to fetch a user's mailbox details. Please use the above mentioned APIs to GET the messages.
 </summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-10-10T16:09:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7106335" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7106335</id>
    <updated>2012-09-27T06:06:47Z</updated>
    <published>2012-09-27T06:06:47Z</published>
    <summary type="html">Carlo,

This is strange that the password settings are greyed out for this user. This means that something has definitely been changed, may be directly through DB. Couple of questions again:

1)       Are you able to change the pin through the administration page? Please let me know this. And I would like to get the diag_tomcat logs again when you try to change the pin through CUCA. For this you will have to enable the CUCA logs(ALL)  through the serviceability page.

2)      Is this a normal voicemail user created on connection or was it imported  or is there any special case with this user?

In case we don’t find the reason then we’ll set up a webex to look at your system to find the root cause.

Thanks &amp; Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Thursday, September 27, 2012 6:16 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akanksha,
Thanks for the reply.
1. The administrator password hasn't changed.
2. I checked and the user has no Roles Assigned.
3. The Password Settings field is greyed out. I can't click it.
I have observed that we can rename a user through CUPI but PIN reset isn't having the same success.
Could the problem be related to the fact that the users on Unity are Synced to CUCM? And sometimes people would change a persons CUCM Display Name, Label, and then on Unity change the voicemail Name and then try and Reset their PIN?
Thanks!
Carlo

Akanksha Agarwal:
Hi Carlo,

From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:

1) Did you ever change the password of the administrator?

2) Can you tell me the roles assigned to the user whose pin you are trying to edit.

3) I also want to know the password settings of this user. For this please paste me the screen shot of users-&gt;your user-&gt;password settings-&gt;voice mail

4) I want to know the content of tbl_user

I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.

Thanks &amp; Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]&lt;mailto:[mailto:cdicuser@developer.cisco.com]&gt;
Sent: Tuesday, September 25, 2012 5:25 AM
To: cdicuser@developer.cisco.com&lt;mailto:cdicuser@developer.cisco.com&gt;
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,

I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
Thanks!

Akanksha Agarwal:
Carlo,
If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat&lt;&gt; logs of the time when you are facing this issue.
Thanks,
Akanksha A

--
To respond to this post, please click the following link: or simply reply to this email.

--
To respond to this post, please click the following link: or simply reply to this email.</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-27T06:06:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7077158" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7077158</id>
    <updated>2012-09-26T06:36:48Z</updated>
    <published>2012-09-26T06:36:48Z</published>
    <summary type="html">Hi Carlo,

From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:

1)      Did you ever change the password of the administrator?

2)      Can you tell me the roles assigned to the user whose pin you are trying to edit.

3)      I also want to know the password settings of this user. For this please paste me the screen shot of users-&gt;your user-&gt;password settings-&gt;voice mail

4)      I want to know the content of tbl_user

I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.

Thanks &amp; Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, September 25, 2012 5:25 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,

I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
Thanks!

Akanksha Agarwal:
Carlo,
If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat&lt;&gt; logs of the time when you are facing this issue.
Thanks,
Akanksha A

--
To respond to this post, please click the following link: or simply reply to this email.</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-26T06:36:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6542639" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6542639</id>
    <updated>2012-09-20T08:44:45Z</updated>
    <published>2012-09-20T08:44:45Z</published>
    <summary type="html">Carlo,

If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.

Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat&lt;&gt; logs of the time when you are facing this issue.

Thanks,
Akanksha A</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-20T08:44:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error 400 on Reset PIN</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6539081" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6539081</id>
    <updated>2012-09-20T05:35:09Z</updated>
    <published>2012-09-20T05:35:09Z</published>
    <summary type="html">Hi Carlo,

I guess you are using the following API to set the pin for a user:

/vmrest/user/credential/pin?newpin=&lt;new pin&gt;&amp;userobjectid=&lt;obj id&gt;

If you're using the same API and giving the correct userobjectid then it should work.

Let me know how you are setting the pin. I'll be able to answer the query with more details.

Thanks,
Akanksha</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-20T05:35:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6538728" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6538728</id>
    <updated>2012-09-20T05:16:53Z</updated>
    <published>2012-09-20T05:16:53Z</published>
    <summary type="html">For user templates, there is no example in our existing docs. We will be publishing this with our new release documentation. If you have any question for any API that is missing in the docs, please drop us a query at this forum. We'll answer it at the earliest.</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-20T05:16:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI - create User Template</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6516145" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6516145</id>
    <updated>2012-09-18T09:52:06Z</updated>
    <published>2012-09-18T09:52:06Z</published>
    <summary type="html">Hi Ryan,

Yes, it is allowed to create a user template via REST APIs.

You need to do the following for achieving this:

POST: https://&lt;Connection-ip&gt;/vmrest/usertemplates?templateAlias=&lt;template&gt;

Where template for a voice mail user would be "voicemailusertemplate", so the request would become

https://&lt;Connection-ip&gt;/vmrest/usertemplates?templateAlias=voicemailusertemplate

And in the request xml body you can give:

&lt;UserTemplate&gt;
      &lt;Alias&gt;AkkiTemplate&lt;/Alias&gt;
      &lt;DisplayName&gt;Akanksha Template&lt;/DisplayName&gt;
&lt;/UserTemplate&gt;

As a response, you will receive the user template object id. You can view this template by hitting a GET : https://&lt;Connection-ip&gt;/vmrest/usertemplates

Let me know if you have any other question.

Thanks &amp; Regards,
Akanksha A</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-18T09:52:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUMI notification subscription timeout</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6424007" />
    <author>
      <name>Akanksha Agarwal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6424007</id>
    <updated>2012-09-05T16:16:51Z</updated>
    <published>2012-09-05T16:16:51Z</published>
    <summary type="html">Hi Milos,

Here is the list of your questions with their respective answers:

1) is it safe for us to call /vmrest/mailbox?subscribe 24h after we established session.
Answer) Yes, it is. We provide two methods for subscription, "subscribe" and "requestnotification". Both does the same that is they subscribe a user to get notification events.

2) what is happening after we call &lt;em style="font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17.33333396911621px;"&gt;vmrest/mailbox?method=requestnotification?
Does vmrest add sub to db in that case?
Answer) When you hist any of the following APIs:
               /vmrest/mailbox?method=requestnotification
               /vmrest/mailbox?method=subscribe

both return subscription id in response and they get added to the database. 

For example, you have a user Milos in Unity Connection and you subscribe to notifications using method=requestnotification, an entry gets added to the database.

Now for the same user if you subscribe again using method=subscribe, another entry gets added to the database.

Now as far as "Normally this is fine for an HTML/JavaScript client, but if for some reason you need to keep the subscription open longer an additional call to /vmrest/mailbox?subscribe would need to be made to renew the subscription (id will stay the same).

.", this statement is concerned, i would emphasize to read it again and also it's  /vmrest/mailbox?method=subscribe (typing error).

If you are using a client where in you can have a session live (by using session id or whatever), then by just hitting this API, you'll renew the subscription for the same subscription id. However, if your session is not maintained then another entry will get added to db with new expiration period.

You can use any of these two methods. It will not create any problem.

3) Database used is : UnityDynDb and the view that you can access is vw_eventservicesubscription, you can query it.

Feel free to post your query (if any).

Regards,
Akanksha A</summary>
    <dc:creator>Akanksha Agarwal</dc:creator>
    <dc:date>2012-09-05T16:16:51Z</dc:date>
  </entry>
</feed>

