cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
97
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Julien LAFFITTE on 23-09-2010 03:43:09 PM
Hello all,
 
A client asked us if we were able to retreive the number of new messages of a user mailbox (or eventually if there is any new messages) on our CUCM 7.1(3).
 
I worked previously on a provisioning application for CUCM (using AXL interface), so I searched an equivalent for Unity Connection and found CUPI.
 
So my first step was to try retreiving user information: Successful!
However it seems the information I need is not present in the answer...
 
I searched a little further and found the mailboxStore / mailboxes objects.
 
My second step was to try retreiving the mailboxStore information: Successful!
Bu again, no valuable information...
 
Finally I tried to retreive the user's mailbox information (using the request format of the 7.1.3-CUPI-WADL.xml file): Unsuccessful...
 
Here is what i get:
 
URL
https://172.16.32.11/vmrest/mailboxstores/c5595e26-08fb-460d-9c9f-f21b6aed6a3c/m

ailboxes/34bd27e8-9a44-4ff2-af8e-e6016816606f

Error in request: 404 https://172.16.32.11/vmrest/mailboxstores/c5595e26-08fb-46
0d-9c9f-f21b6aed6a3c/mailboxes/34bd27e8-9a44-4ff2-af8e-e6016816606f

mailbox - MailboxStoreObjectId=c5595e26-08fb-460d-9c9f-f21b6aed6a3cMailboxId=34b
d27e8-9a44-4ff2-af8e-e6016816606f
Died at cupi-setpw-example-2.pl line 55.


c5595e26-08fb-460d-9c9f-f21b6aed6a3c is the objectID of the mailbox Store copied from the administration interface link (Message Storage > Mailbox Stores).
 
34bd27e8-9a44-4ff2-af8e-e6016816606f is the objectID of the user's mailbox copied from the administration interface link (Edit > mailbox).
 
It seems the mailbox is not found, but I do not understand why. Is my request uncorrect? Or is impossible to retreive this information?
 
Subsidiary question: if it is possible, will I get the number of new messages/new messages information? I was unable to find any information about this on the forum....
 
Someone also told me this can be done by using the IMAP account, but I really don't know how.
 
I used and modified the perl example for my tests.
 
Thanks in advance for your help,
 
Julien

Subject: RE: Retreiving Mailbox information
Replied by: David Wanagel on 24-09-2010 10:53:54 AM
Hello Julien,
 
The URI you are trying to use is not supported and would have very limited information about the mailbox.  The only interface available in 7.x is CUPI, which is a provisioning interface, so it only provides provision information about mailboxes (e.g. store data, maximum size, mailbox count). 
 
In 8.x the CUMI interface was added that provides access to the contents of mailboxes, including message counts.  It sounds like that is more like the interface you would need to get the information you are looking for,
 
-Dave
 
Hello all,
 
A client asked us if we were able to retreive the number of new messages of a user mailbox (or eventually if there is any new messages) on our CUCM 7.1(3).
 
I worked previously on a provisioning application for CUCM (using AXL interface), so I searched an equivalent for Unity Connection and found CUPI.
 
So my first step was to try retreiving user information: Successful!
However it seems the information I need is not present in the answer...
 
I searched a little further and found the mailboxStore / mailboxes objects.
 
My second step was to try retreiving the mailboxStore information: Successful!
Bu again, no valuable information...
 
Finally I tried to retreive the user's mailbox information (using the request format of the 7.1.3-CUPI-WADL.xml file): Unsuccessful...
 
Here is what i get:
 
URL
https://172.16.32.11/vmrest/mailboxstores/c5595e26-08fb-460d-9c9f-f21b6aed6a3c/m

ailboxes/34bd27e8-9a44-4ff2-af8e-e6016816606f

Error in request: 404 https://172.16.32.11/vmrest/mailboxstores/c5595e26-08fb-46
0d-9c9f-f21b6aed6a3c/mailboxes/34bd27e8-9a44-4ff2-af8e-e6016816606f

mailbox - MailboxStoreObjectId=c5595e26-08fb-460d-9c9f-f21b6aed6a3cMailboxId=34b
d27e8-9a44-4ff2-af8e-e6016816606f
Died at cupi-setpw-example-2.pl line 55.


c5595e26-08fb-460d-9c9f-f21b6aed6a3c is the objectID of the mailbox Store copied from the administration interface link (Message Storage > Mailbox Stores).
 
34bd27e8-9a44-4ff2-af8e-e6016816606f is the objectID of the user's mailbox copied from the administration interface link (Edit > mailbox).
 
It seems the mailbox is not found, but I do not understand why. Is my request uncorrect? Or is impossible to retreive this information?
 
Subsidiary question: if it is possible, will I get the number of new messages/new messages information? I was unable to find any information about this on the forum....
 
Someone also told me this can be done by using the IMAP account, but I really don't know how.
 
I used and modified the perl example for my tests.
 
Thanks in advance for your help,
 
Julien


Subject: RE: Retreiving Mailbox information
Replied by: Julien LAFFITTE on 24-09-2010 11:56:14 AM
Hello Julien,
 
The URI you are trying to use is not supported and would have very limited information about the mailbox.  The only interface available in 7.x is CUPI, which is a provisioning interface, so it only provides provision information about mailboxes (e.g. store data, maximum size, mailbox count). 
 
In 8.x the CUMI interface was added that provides access to the contents of mailboxes, including message counts.  It sounds like that is more like the interface you would need to get the information you are looking for,
 
-Dave
 

Hi Dave,
 
Thank you for your reply. So it means I will not be able to perform this until a future migration to CUCM 8.x or higher... a bit disappointing.
 
However I found an alternate solution to perform the message count: I developped a script that is connecting to the Unity Connection server using IMAP and then performing the operation.
 
So problem solved !
 
Thanks again,
 
Julien
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links