Friday, 18 August 2023

Audio Optimization and redirection for Voice based applications inside Citrix

 

Step 1: Only applicable if users are coming via Company managed laptops or Desktop

Audio setting policies for user devices :

  1. Load the group policy templates by following below article:                                                       Get started | Citrix Workspace app for Windows
  2. In the Group Policy Editor, expand Administrative Templates > Citrix Components > Citrix Workspace > User Experience.
  3. For Client audio settings, select Not Configured, Enabled, or Disabled.
    • Not Configured. By default, Audio Redirection is enabled using high quality audio or the previously configured custom audio settings.
    • Enabled. Enables audio redirection using the selected options.
    • Disabled. Disables audio redirection.
  4. If you select Enabled, choose a sound quality. For UDP audio, use Medium (default).
  5. For UDP audio only, select Enable Real-Time Transport and then set the range of incoming ports to open in the local Windows firewall.
  6. To use UDP Audio with Citrix Gateway, select Allow Real-Time Transport Through gateway. Configure Citrix Gateway with DTLS. For more information, see this article.

Or Else follow below steps as per my recommendations:

Step 1: Storefront changes

As an Administrator, if you do not have control on endpoint devices to make these changes, use the default.ica attributes from StoreFront to enable UDP Audio. For example, for bring your own devices or home computers.

  1. On the StoreFront machine, open C:\inetpub\wwwroot\Citrix\<Store Name>\App_Data\default.ica with an editor such as notepad.
  2. Make the following entries under the [Application] section.

; This text enables Real-Time Transport

EnableRtpAudio=true

; This text allows Real-Time Transport Through gateway

EnableUDPThroughGateway=true

; This text sets audio quality to Medium

AudioBandwidthLimit=1

; UDP Port range

RtpAudioLowestPort=16500

RtpAudioHighestPort=16509

If you enable User Datagram Protocol (UDP) audio by editing default.ica, then UDP audio is enabled for all users who are using that store.

Step 2: Configure Studio Policy:


Note: If users coming from Citrix cloud Gateway service URL, then they can use Rendezvous Protocol however HDX adaptive transport policy should be disabled in such case otherwise we can enable HDX adaptive transport.

Step 3: Ports required:

Source

Destination

Port

Client /User/Any (if users coming via open internet)

NetScaler gateway

TCP 443 and UDP 443

NetScaler Subnet IP

Citrix HSDs/VDI VMs

TCP 1494, TCP 2598, UDP 1494, UDP 2598, UDP 16500-16509

Note: Considering rest all ports are already allowed hence not incorporated the details here

Step 4: Proxy and Antivirus requirement:

Citrix Gateway URL should be SSL bypassed for all users

UDP 443 port should be whitelisted on Antivirus if it is getting blocked

 

Note:

Things which should be considered if users face any issue with connecting to Audio/microphone if above settings were already implemented.

  • There is a default UDP traffic idle timeout policy on Firewalls. If user is not using Voice application, then audio channel on firewall drops the packets and which results in issue where user is unable to connect microphone within Citrix
  • Admin should create a SOP to those users so that they can logoff their Citrix session from Citrix Workspace connection centre if Microphone is not connecting after they come from break or and when they re-login then their issue would be fixed. Reconnect to disconnected session will not help
  •  UDP idle session out policy can be increased at firewall end however it may result in performance issue so its better to check with Firewall support team to involve vendor who can share the correct value.
  • Voice users should logoff if they are going for break or we should enable session timeout policy so that session logoffs with 30 minutes if remain idle.

No comments:

Post a Comment

Click below link