Lync XMPP Gateway Deployment without Edge Server

Over the past few weeks I’ve run into deployments requiring XMPP for multi-vendor application presence integration. One of the caveats that’s published is the requirement to allow federation for any of the user accounts requiring XMPP integration. In highly secure environments this is not an option. It also adds a layer of complexity when troubleshooting presence integration of internal applications.

This blog post doesn’t cover installing or configuring the XMPP gateway itself, or configuring certificates. It does cover:

  • Enabling XMPP communications between “” and “” without the use of an edge server.

To configure XMPP integration:

1. Create a static route in Lync to enable routing for the appropriate SIP domain ( in this case)

$tlsroute = New-CsStaticRoute -TLSRoute -destination “” -port 5061 -matchuri “” -usedefaultcertificate $true

Note that the “destination” switch specifices the server name to send to, and that server must be resolvable from the front end server. Additionally, the server “” must have a certificate with “” for MTLS communication to occur.

2. Create a trusted application pool and application, so Lync can accept inbound requests and presence updates.

New-CsTrustedApplicationPool -Identity -Registrar -site 1 -ComputerFqdn -ThrottleAsServer $true -TreatAsAuthenticated $true

New-CsTrustedApplication -ApplicationID XMPP -TrustedApplicationPoolFqdn -Port 5061

3. Configure the XMPP gateway to send SIP requests to the front end server.



4. Voila!

Now we have XMPP integration without an edge server in place.

If you have an application that leverages this type of integration, or run into any issues/questions when deploying XMPP integration please let me know. With the abundance of XMPP, Web Services/LyncClientAPI/UCMA, and other presence and UC integration technologies being used it’s important to have templates for the UC community to understand and use. Thanks!


This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Lync XMPP Gateway Deployment without Edge Server

  1. Vinay says:


    I am trying to integrate Lync with openfire (xmpp server), but not able to succeed.
    I have followed above steps but getting an error as failed to establish outbound connection.
    Please provide yours inputs to proceed further
    If you have already done the mentioned integration please post it or send to through email which will be of great help.


    Thanks in advance

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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