Archive for 2012

Separation of concerns

Friday, March 23rd, 2012

Voxeo’s VoiceObjects lifecycle management platform is used by many large enterprises in various industries to build, run, analyze, and maintain their phone applications. Clearly then VoiceObjects needs to integrate with these organizations’ IT processes designed to protect both the internal integrity and stability of services, as well as caller’s data (specifically in environments dealing e.g. with credit card or other sensitive data).

In this article, I’ll look at how VoiceObjects supports some of these IT processes with a focus on access control and user management.

Development and Deployment

Typically, and for good reason, there is a fairly strict separation between the development of applications and their production deployment. After building, testing, and validating an application it is important that it goes into production unaltered. And once in production, it is crucial that no unplanned and unauthorized changes are made so as not to cause accidental yet costly outages.

On the development side, VoiceObjects provides the core role of a Designer. Designers work in Desktop for Eclipse to build applications, either alone or in teams, supported by collaborative development mechanisms such as object locking and versioning. Service Controllers are a slightly more elevated development-focused role; they can also deploy their applications within tightly defined boundaries in order to test them.

On the deployment side, the Server Controller is the key role. They have control of all deployment and monitoring capabilities, but cannot make changes to applications.

While strict separation is ideal in theory, “let me take a look” is of course routinely heard in practice and often inevitable for timely resolution of problem situations. So how can this be done safely? VoiceObjects provides the read-only user roles of Reviewer and Observer.
Reviewers can inspect projects and even leave comments for developers, yet they cannot make any changes to the applications themselves. This role is often used for Quality Assurance team members, or project managers.
Observers have read-only access to a deployment’s Control Center and can inspect call traffic, logs, error messages, and so on. Developers frequently have Observer access to production deployments, so they can assist with problems but cannot accidentally impact the system.

Four-Eye Principle

Another pair of tasks that are often kept separate is the administration of user accounts, and the actual operational work done with these accounts. This is particularly true in environments dealing with sensitive customer data (e.g. credit cards, bank accounts, etc.). One of the goals is to prevent rogue users from creating arbitrary new accounts for themselves, which they can then use to access protected information. To counter such attempts, VoiceObjects supports the “four-eye principle”.

The role of User Manager has been created specifically to work with user objects, and user objects only. When one User Manager creates a new user object, or modifies an existing one, this action needs to be cross-checked and approved by a second User Manager (or higher role) in order for the modification to be activated.

Independent of the specific user role, VoiceObjects also supports the delivery of credentials directly to users by email. This adds another level of indirection in that those creating or modifying a user object never get to see the password, which is automatically created by VoiceObjects. Additional policies control when and how often users can or need to change their password, which password strings are acceptable, and so on. Finally, an integration with existing user management frameworks (such as LDAP) is also possible.

Departmental Access

Large organizations sometimes want to use shared infrastructure differently in different departments, or in different regional offices. Still the central IT team needs to remain in charge of the overall installation and the collective set of deployments. Setups of this nature are ideally covered by the VoiceObjects Site concept of multi-tenancy.

Each site, corresponding to a department or regional office in the examples mentioned above, has its own sandbox within the single, enterprise-wide VoiceObjects installation. Within each such sandbox, all of the principles listed above can be employed, and full trees of users can be created and maintained. This enables each department, if necessary and desired, to maintain its own development/QA/deployment teams. They have full access to their own projects while being shielded from what other departments are doing. Each department can focus on their own work without the risk of impacting others, while IT can stay in control of the overall system.

In this setup, the Site Administrator role corresponds to the one in charge of each individual sandbox; the Server Administrator at the top corresponds to the central IT team managing the enterprise-wide VoiceObjects installation.

You can find all the details on VoiceObjects User Management in chapters 2 and 3 of the Administration Guide (PDF).

For questions and comments, reach out to me on Twitter at @voxeostefan!

E Pluribus Unum

Monday, March 19th, 2012

When in the course of large deployments, it becomes necessary for one installation to dissolve the bands which have connected it with another, a decent respect to the opinions of our customers and partners requires that we should declare the causes which impel us to the separation.

In other words: While small to medium-sized deployments can be handled very well using the standard VoiceObjects clustering approach, matters get more interesting when you scale up to multi-thousand port installations that often also span different geographical locations e.g. for disaster recovery purposes. Using a single big cluster is impractical in this case, yet deploying multiple disconnected clusters adds the encumbrance of multiple Control Centers with separate monitoring and management commands.
To address this challenge, VoiceObjects 11 introduced the concept of the virtual cluster, which combines multiple “real” clusters into a deployment that can be monitored and managed as a unit: Out of many clusters, comes one virtual cluster.

The virtual cluster combines the flexibility of small-scale individual installations with the comfort of integrated monitoring and management. Its component units are loosely coupled and therefore easily replaceable. At the same time, it presents a unified, aggregated view and management interface that can be accessed through the graphical Control Center as well as through the SOAP-based Web Service Interface for custom monitoring and scripting.
In this sense, the virtual cluster is a piece in VoiceObjects’ cloud strategy, more on which we will provide over time in a series of blog postings.

When building a virtual cluster, we hold a number of pre-requisites to be self-evident:

  • All clusters must use the same Metadata Repository
    An integrated view can only be provided if all VoiceObjects clusters use the same  Metadata Repository since only then do they operate on the same underlying objects.
  • All clusters must run the same Server object
    Within the same Metadata Repository, all VoiceObjects clusters involved must also reference the same Server object. This ensures that they run the same set of services.
  • Server instance IDs must be unique across the virtual cluster
    In order to prevent conflicts and to allow for unique addressing, each individual server instance must have an ID that is unique across the entire virtual cluster.

In addition, certain settings must be respected in order to ensure the correct management of application caches across the virtual cluster.

What brings the virtual cluster together is the Virtual Control Center (VCC). Its configuration is easy – simply provide the list of component clusters with their server instances, and VCC does all the work of detecting what is or is not running at any given moment, aggregating views into a merged representation, and replicating commands across the virtual cluster. VCC even allows you to change this configuration dynamically in case you need to augment your cluster, or to change individual server instances.

On the “front end”, VCC exposes the exact same interface as a regular server instance – so clients such as Desktop for Eclipse and Desktop for Web can readily connect. The same is true for the VoiceObjects Web Service Interface, which enables you to create your own monitoring and maintenance scripts.

You can find detailed information about Virtual Control Center, including all requirements and configuration choices, in Appendix C of the Deployment Guide (PDF).

If you have any comments or questions, feel free to reach out to me on Twitter at @voxeostefan!

VoiceObjects 11.1 powers Mobile Web apps on Smartphones

Monday, January 30th, 2012

With the latest version of VoiceObjects, 11.1, the most visible and important addition was the new jQuery Mobile web driver that makes it possible to create great looking mobile web applications in like no time. If you have missed out on the developer Jam Session we did last week, be sure to take a peek at the slides from that webinar.

Also, we have updated the Prime Telecom sample application, which has been our demo application for multi-channel service implementation in VoiceObjects for quite a while now. It has received a polished, fancy new UI when used on Smartphones and Tablets. Having VoiceObjects 11.1 Desktop for Eclipse installed, go to our Demos and Templates page to download and install the Prime Telecom package to get started. You’ll learn how to create a self service application that provides a consistent user experience across IVR, text, and mobile channels, making best use of each of these channels.

Below, there’s some screenshots from Prime Telecom used on the iPhone.

Join our first Jam Session in 2012 – it is coming soon

Thursday, January 19th, 2012

Our first developer jam session in 2012 is scheduled for Wednesday, January 25, 2012.

Andreas Volmer, Sr. Product Manager will talk about “iPhone, Android, Windows7: Creating Mobile Web Apps with VoiceObjects”

Creating mobile web applications with VoiceObjects has become easier again: We have integrated VoiceObjects with the JQuery mobile framework. Developers will now not only get a great, consistent out-of-the-box user interface on all relevant types of smartphones, but will also find it easy to tune the UI as needed.

In this webinar, Andreas will show you examples of the new mobile web interface, and explain what it takes to get there.

REGISTER NOW

Looking forward to welcome you in this session.

Welcoming JSON

Tuesday, January 10th, 2012

JSON (short for JavaScript Object Notation) is a text-based representation of structured data, and as such an alternative to XML (Extensible Markup Language). JSON’s primary claim to fame is that when working with JavaScript, it can easily be transformed into JavaScript objects; however in general it is programming language-independent and can be used as a general purpose approach for data exchange. It has become increasingly popular especially in the context of RESTful interfaces.

The VoiceObjects Connector object has added comprehensive support for RESTful interfaces with the past few releases, and with VoiceObjects 11.1 we now also provide a variety of convenience mechanisms for dealing with JSON markup – XML has always been supported as the “native” language.

Assume we have a RESTful backend that returns the following JSON structure encompassing a user’s fictitious contact details:

{ "person":
{ "lastName":"Smith",
  "phoneNumber":12345,
  "address":{"streetAddress":"21 2nd Street", "postalCode":10021, "state":"NY", "city":"New York"},
  "age":25,
  "firstName":"John"
}}

Further assume that for the purpose of our application, we would like to extract the user’s first and last name as well as the city he lives in. How best to do this?

In previous versions of VoiceObjects, the answer would likely have been to use a Script object. This, of course, still works – but in 11.1 there is a much simpler way since VoiceObjects now implicitly and automatically converts JSON results into XML, on which you can then utilize XPATH expressions in the Result Mapping portion of the Connector object.
In our example, VoiceObjects automatically converts the JSON return value into the following XML structure (see below for more details on the conversion):

<person>
  <lastName>Smith</lastName>
  <phoneNumber>12345</phoneNumber>
  <address>
    <streetAddress>21 2nd Street</streetAddress>
    <postalCode>10021</postalCode>
    <state>NY</state>
    <city>New York</city>
  </address>

  <age>25</age>

  <firstName>John</firstName>
</person>

So we can use a Result Mapping as shown in this screenshot to extract first name, last name, and city:

Since the conversion from JSON to XML is not a one-to-one mapping, some ground rules need to be defined for boundary cases. They are as follows:

  • No XML attributes are used; everything is converted to elements.
  • If the JSON structure does not provide a “natural” XML root element that wraps the structure, then a wrapping outer element <root> is added.
  • If a list of items in JSON does not provide a “natural” wrapping XML element, then the wrapping element <array> is added.
  • XML-specific characters such as ampersand (&) or brackets (<,>) are automatically masked.

A simple example incorporating these rules would be the JSON structure

[1, "2<3", "a&b"]

which gets translated into the XML

<root>
<array>1</array>
<array>2&lt;3</array>
<array>a&amp;b</array>
</root>

RESTful backend interfaces sometimes also allow you to to specify your preferred result format, e.g. XML or JSON. Often this is done by setting the “Accept” header of your request appropriately.

VoiceObjects 11.1 lets you to do this, too, by setting an entry in the Connector object’s Parameter Set using a notation of the form #HeaderName#. So if you want to set the “Accept” header to “application/json” to indicate that you prefer a JSON result structure, you would do this:

For the Result Mapping inside Connector objects, the conversion from JSON to XML is done automatically. Outside of Connector objects, it is also possible to manually convert between XML and JSON using the two new Expression functions XML2JSON() and JSON2XML(). This uses the same conversion as that for Result Mapping.

As always, we’re looking forward to your feedback, so do not hesitate to contact us with any questions or comments you may have!

VoiceObjects 11.1

Monday, January 2nd, 2012

First off, we’d like to take the opportunity to wish all our readers a happy, healthy, prosperous new year 2012!

And to contribute our part to a good start, we’d like to draw your attention to VoiceObjects 11.1, which is now available on both the Service Portal and the Developer Portal. Highlights include:

  • New jQuery Mobile driver
    The new jQuery Mobile driver for the mobile Web channel enables applications to use a near-native look and feel on iOS and Android devices. We’ll provide more details in a separate blog post soon.

         

  • Augmented Service-level configuration
    Rendering templates for the textual channels as well as libraries for dynamic Text-To-Audio (TTA) conversion can now be configured on the level of the Service object, making it easier to swap them out or to add new ones.
  • Enhanced JSON support
    The Connector object now provides built-in handling for responses in the JSON format and enables the use of the Result Mapping functionality on them. In addition, new Expression functions have been added to convert between JSON and XML. Here, too, a subsequent blog post is going to dig into more details and explore typical use cases.
  • Integration with external authentication frameworks (e.g. LDAP)
    The User object now provides additional configuration capabilities to easily connect to external authentication frameworks such as LDAP to facilitate single sign-on.

Give VoiceObjects 11.1 a try and let us know what you think!