<?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>Notification Devices</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6179437" />
  <subtitle>Notification Devices</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6179437</id>
  <updated>2013-05-21T19:50:25Z</updated>
  <dc:date>2013-05-21T19:50:25Z</dc:date>
  <entry>
    <title>RE: Notification Devices</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6182622" />
    <author>
      <name>John Vosburg</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6182622</id>
    <updated>2012-07-25T22:59:08Z</updated>
    <published>2012-07-25T22:59:08Z</published>
    <summary type="html">Thanks for the feedback.  We are running 8.6.2 also.  I'll let you know how it goes.</summary>
    <dc:creator>John Vosburg</dc:creator>
    <dc:date>2012-07-25T22:59:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: Notification Devices</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6179546" />
    <author>
      <name>Jeff Lindborg</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6179546</id>
    <updated>2012-07-25T17:31:45Z</updated>
    <published>2012-07-25T17:31:45Z</published>
    <summary type="html">1.The type field should not be empty – it should have a number (1 through 8) – I suspect you’re seeing the type empty because of #2.

2.You should not be passing in the device name – “Other” is always the name for all added notification devices – if you add a device via the SA, regardless of type, the name is _always_ “other” and the type will be 1, 2, 4 or 5 (or 8 in CUC 9.0) – the SMTP, Work Phone, Mobile Phone etc… are the built in notification devices created for all users that are present for everyone – these are also the ones available via the TUI interface for enable/disable purposes (i.e. the conversation needs to know they’re there).  

3.You should pass in the type as appropriate (1 for phone devices, 2 for pager, 4 for SMTP and so on) – these will have different data associated with them – not sure if you’re talking about these conflicting objects you’re creating or the base objects.

It really shouldn’t let you pass the device name frankly – but to be fair the database stored procs allow this as well (they have to as the install scripts go this route for creating those base devices) – but doing some quick testing here I’m getting the appropriate data base for each device type.  If after cleaning up your system (I’d recommend deleting those added devices and/or users and starting clean) let me know and I can check it – also need to know exactly what version of Connection you’re working against (I’m testing against 8.6.2).</summary>
    <dc:creator>Jeff Lindborg</dc:creator>
    <dc:date>2012-07-25T17:31:45Z</dc:date>
  </entry>
  <entry>
    <title>Notification Devices</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6179436" />
    <author>
      <name>John Vosburg</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6179436</id>
    <updated>2012-07-25T16:53:27Z</updated>
    <published>2012-07-25T16:53:27Z</published>
    <summary type="html">I am building a portal for setting notification devices in Unity Connection via CUPI and have a couple questions:
 
1.       I can create SMTP and Pager devices with no problem via the API but when I query the API to get a list of devices the "type" field is empty.  Is there a workaround for this?

2.       The Device Name defaults to 'Other' in Unity Connection if I don’t pass in a value to the API.
·       If I pass in Device Name set to SMTP or PAGER the device cannot be deleted. Even when I pass the 'Undeletable' field set to false. 
Should I only be creating devices with DeviceName = ‘Other’? 
note: The Display Name can be set to any text. Display Name is what the user will enter and see on their device list . They don’t see Device Name.
 
3.       When I create a device, some of the additional data appears to be saved in Unity Connection but I do not see all of the data when I query  the API.
·       Pager: The fields “PhoneNumber” and “AfterDialDigits” are empty when I query the API
·       SMTP: The field “SmtpAddress” is empty when I query the API
·       Note: I am using the following API call to get the list of devices for a user: /vmrest/users/&lt;UserObjectId&gt;/notificationdevices</summary>
    <dc:creator>John Vosburg</dc:creator>
    <dc:date>2012-07-25T16:53:27Z</dc:date>
  </entry>
</feed>

