Code – UCWA in C# – Part 04 of 05

In previous post Code – UCWA in C# – Part 03 of 05 we provided support to send IM.

In this post we will extend our prototype with support for Call via Work.

The Call via Work enhances our C# program – which can be deployed internal or external – with third party call capabilities.

Call via Work allows us to set-up a PSTN call between telephone number A and telephone number B, using the Lync Server 2013 or Skype for Business Server 2015 on premise back-end infrastructure.

And conversations are authenticated through AD credentials of an Enterprise Voice enabled on-premise user.

We will now use the botton part of the user interface with button_CallViaWork, textBox_CallViaWork_From, textBox_CallViaWork_To, textBox_CallViaWork_Subject and comboBox_CallViaWork_Priority.

As explained in previous post we receive available resources during logon, here we need two of them : the URL for phoneAudioInvitations and the OperationID.

ucwaStartPhoneAudio

ucwaOperationID

To initiate the Call Via Work in C# we only need a single POST as shown below.

UCWA_Form01

In the example we first call a GSM mobile user tel:+32491621278. That first call-leg is presenting the Enterprise Voice number of the authenticated AD user as calling number. When the first call is answered, a second call is set-up, in our example the second call is to tel:+3224023736 running Skype for Skype for Business client. Note that during that alert we see the subject as provided in the textBox_CallViaWork_Subject.

In case the second call is answered party A is connected to party B.

Since everything is running on the Lync Server 2013 or Skype for Business Server 2015 backbone, the infrastructure is providing information as usual, like missed call notifications.

If you need more information on Call via Work in Skype for Business Server 2015, have a look at the Microsoft Ignite 2015 session Planning and Deploying Call via Work for Enterprise PBX Users.

Also review the ucwa.lync.com to obtain more information on ongoing enhancements of UCWA (changed in Community Update 2 (CU2) and Skype for Business Server 2015).

Best Regards
Francis Missiaen

© 2016 by Francis Missiaen – this is not production code