XCAP Protocol

The more protocols you know, the more of the IMS you are. Right, the IMS is not only about SIP, Diameter or RTP. There are many various protocols involved. This time we’ll take a look at self-provisioning and configuration of services via http, more specifically XML Configuration Access Protocol (XCAP). We have seen it already in the posts about Ut Interface and Aggregation Gateway.

XCAP protocol is a kind of RESTful protocol. If you know a bit about the RESTfull approach, then you should easily become familiar with XCAP.

However the XCAP was created separately and has its own specifics. It was designed as a dedicated protocol for telecommunication environment as a set of conventions for mapping XML documents and document components into HTTP URIs, along with operations allowing to read/write/modify/delete these documents. That means it is not a general purpose XML search protocol. Still the XCAP is meant to support the configuration needs for a multiple applications such as supplementary services, capabilities, resource lists, presence rules and others.

Let’s take as an example the management of VoLTE supplementary services. XCAP allows an user to retrieve the information about the provisioned services and manage the content.





As we want to limit the amount of the exchanged data, XCAP allows to define the scope of the document we are working with. The scope can be the whole document, or an xml element or even only an attribute.


From the practical point of view we need mainly to understand the way how we create the URL for a particular xml document.

URL of a simservs document (document for the supplementary services) can look like this:


The first element is referencing the application by Application Unique ID (AUID). The name uniquely identifies the application usage. In our example the auid is


and it is given by IETF tree. The application usages are documented in specifications. In particular, an application usage specification must provide the following information:

  • AUID: If the application usage is meant for general use on the Internet, the application usage must register the AUID into the IETF tree using the IANA procedures.
  • XML Schema
  • Default Document Namespace
  • MIME Type
  • Validation Constraint
  • Data Semantics
  • Naming Conventions
  • Resource Interdependencies
  • Authorization Policies

(List of all the auids supported for RCS can be found at http://technical.openmobilealliance.org/Technical/technical-information/omna/omna-xcap-auid-registry.)


Then we can select if we want to retrieve global information (global) or for a particular user only (users).


XDMS and TAS typically use the X-XCAP-Asserted-Indentity or x-3gpp-asserted-identity in order to find out if the user is allowed to work with the document. The header is inserted by Authentication/Aggregation Proxy as described in previous posts.

The document we want to work with is the


for the management of supplementary services.

As we don’t want to work with the whole document, we  can select an element


And within the element we can select an attribute


If the UE will send HTTP GET request to the url from our example the 200 OK will contain an XML body which can look like

<cp:rule id="cfu">

If we’d change the url to


we’d get a document with all the configured communication-diversion services

<communication-diversion active="true">
  <cp:ruleset><cp:rule id="cfu">
  <cp:rule id="cfb">
  <cp:rule id="cfnr">

For the


we’d get the whole simservs document.


In case of presence and XMDS we would just use a different auid and document:

GET /xdms/pidf-manipulation/users/sip:123456789012@ims.mnc000.mcc000.3gppnetwork.org/hardstate HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" entity="sip:123456789012@ims.mnc000.mcc000.3gppnetwork.org" xmlns="urn:ietf:params:xml:ns:pidf">
 <person id="that-guy" xmlns="urn:ietf:params:xml:ns:pidf:data-model">
    <status-icon xmlns="urn:ietf:params:xml:ns:pidf:rpid">      http://cs01.operator.com:1023/xdms/org.openmobilealliance.pres-content/users/sip:123456789012@ims.mnc000.mcc000.3gppnetwork.org/iconimage&amp;ts=124356
    <note xmlns="urn:ietf:params:xml:ns:pidf:rpid">Some information</note>


PUT /xdms/org.openmobilealliance.pres-rules/users/sip:123456789012@ims.mnc000.mcc000.3gppnetwork.org/pres-rules
<?xml version="1.0" encoding="UTF-8"?>
<cr:ruleset xmlns="urn:ietf:params:xml:ns:common-policy" xmlns:cr="urn:ietf:params:xml:ns:common-policy" xmlns:op="urn:oma:xml:prs:pres-rules" xmlns:pr="urn:ietf:params:xml:ns:pres-rules">
 <cr:rule id="1234">
 <op:external-list xmlns:op="urn:oma:xml:prs:pres-rules">
 <op:entry anc=""/>
 <pr:sub-handling xmlns:pr="urn:ietf:params:xml:ns:pres-rules">allow</pr:sub-handling>
 <pr:provide-services xmlns:pr="urn:ietf:params:xml:ns:pres-rules">
 <pr:provide-devices xmlns:pr="urn:ietf:params:xml:ns:pres-rules">

With just a little practice we can start with the troubleshooting of the Ut interface. XCAP is very straight-forward and we shouldn’t get lost. For the details refer the IETF RFCs 4825, 4826, 4827, and 5025.

4 thoughts on “XCAP Protocol

  1. Helpfully information, we face some issue in Volte nodes for smile and honest through this article i get an idea on how to come up with solution on issue we face…..thank you

    Liked by 1 person

  2. Thanks! Very useful information!

    However it will be more useful if some traces were being attached especial in pcap format. Could someone can share with the traces?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s