# Genesys Quality Management Suite 8.1.520 : Connecting to Two Independent CUCM Clusters

Created and last modified by

Two independent CUCM clusters can record using one Call Recording server. This is only if the total number of devices being recorded does not exceed the maximum number of simultaneous calls for one server. To record two independent clusters on one server, create an extra JTAPI Adaptor. To do so, modify the configuration. Before the configuration is modified, ensure that Call Recording is not running.

## Preventing Call Recording from Restarting New Installations

When carrying out a new installation, follow the instructions in the Genesys QM Suite Implementation Guide and set up recording for CUCM cluster 1 as normal for CUCM until prompted as below:
Select No to modify the code in order to configure the second sniffer for cluster 2, it is safer to do this when Call Recording is not running.

## Stopping Call Recording from Existing Installations

If the Call Recording Recording server is already running, for example when adding an extra CUCM cluster to an existing installation of Call Recording, then stop all Call Recording services before the configuration is changed.

Access the Call Recording server via an ssh client for example PuTTY.

Ensure the log in is as root and enter the following:

    /etc/init.d/callrec stop

## Creating an Additional JTAPI Adaptor

1. Make a copy of `/opt/callrec/jtapi`, for instance:

       cd /opt/callrec; cp -r jtapi jtapi2

2. Copy the JTAPI module startup script, for instance:

       cp /opt/callrec/bin/rc.callrec_rts_jtapi /opt/callrec/bin/rc.callrec_rts_jtapi2

3. Edit `/opt/callrec/bin/rc.callrec
   `Add the following below line 21:

       [ -x $CALLREC/bin/rc.callrec_rts_jtapi2 ] && runme $RUN_RTS_JTAPI2 $CALLREC/bin/rc.callrec_rts_jtapi2 start

   Add the following below line 53:

       [ -x $CALLREC/bin/rc.callrec_rts_jtapi2 ] && runme $RUN_RTS_JTAPI2 $CALLREC/bin/rc.callrec_rts_jtapi2 stop

4. Edit`/opt/callrec/etc/callrec.conf
   `Add the following below line 16:

       RUN_RTS_JTAPI2="1"

   Add the following below line 82:

       JTAPI2="$CALLREC/jtapi2"

5. Edit `/opt/callrec/etc/callrec.javapath`
   Add the following below line 72:

       CLASSPATHJTAPI2=`build-classpath-directory $JTAPI2`

6. Edit `/opt/callrec/bin/rc.callrec_rts_jtapi2
   `

   Change line 16 to:

       CLASSPATH=$CLASSPATHJTAPI2:$CLASSPATHLIB:/etc/callrec

       Change line 25 to:

       echo -n "Starting CallREC JTAPI2: "

   Change line 27 to:

       if [ -f "$PID_RTS_JTAPI2" ] ; then

   Change line 28 to:

       read pid < "$PID_RTS_JTAPI2"

   Change line 42 to:

       echo $PIDNUM > "$PID_RTS_JTAPI2"

   Change line 45 to:

       until [ "`$CALLREC/bin/callrec_status -port $RMIPORT -host $RMIHOST -names 2>%1 | grep \"remoteJTAPI2\"`" ] || [ $count -gt $WAIT ]

   Change line 68 to:

       echo -n "Stopping CallREC JTAPI2: "

   Change line 69 to:

       $CALLREC/bin/callrec_status -host $RMIHOST -port $RMIPORT -name remoteJTAPI2 -stop > /dev/null 2>&1 &

   Change line 76 to:

       if [ -f "$PID_RTS_JTAPI2" ]; then

   Change line 78 to:

       read pid < "$PID_RTS_JTAPI2"

   Change line 90 to:

       rm -f "$PID_RTS_JTAPI2"

   Change line 113 to:

       echo "Usage: rc.callrec_rts_jtapi2 {start|stop|restart}"

7. Edit `/opt/callrec/etc/callrec.derived`
   Add the following below line 47:

       JTAPI2_PARAMS=" -logger /etc/callrec/jtapi.log4j.properties -config $ZOOM_CONFIG/sniffers2"

   Add the following below line 133:

       PID_RTS_JTAPI2="$PID/rts_jtapi2.pid"

8. Copy `/opt/callrec/etc/sniffers.xml to /opt/callrec/etc/sniffers2.xml` for instance:

       cp /opt/callrec/etc/sniffers.xml /opt/callrec/etc/sniffers2.xml

9. Edit `/opt/callrec/etc/core.xml
   `

   Add the following below line 58:

       <EqualGroup name="reader">
       <Value name="name">JtapiReader2</Value>
       <Value name="server">SnifferServer</Value>
       <Value name="port">30301</Value>
       </EqualGroup>

10. Edit `/opt/callrec/etc/sniffers2.xml`

    Change line 6 to:

        <Value name="bindName">remoteJTAPI2</Value>

    Change line 15 to:

        <Value name="port">30301</Value>

11. Edit `/opt/callrec/etc/config_manager.xml
    `

    Add the following below line 60:

        <EqualGroup name="manager">
        <Value name="id">sniffers2</Value>
        <Value name="class">cz.zoom.util.configuration.config.service
        .FileSingleConfigurationManager</Value>
        <Group name="view">
        <Value name="file">sniffers.zip</Value>
        </Group>
        <Value name="configurationFile">sniffers2.xml</Value>
        <EqualGroup name="mapping">
        <Value name="source">servers</Value>
        <Value name="target">_servers</Value>
        <Value name="managerId">core</Value>
        </EqualGroup>
        </EqualGroup>

12. Start Call Recording using the following command:

        /etc/init.d/callrec start