ICM Scripting Tip

Using the Trailhead medium on the Media Blender server, you can configure a CallOnly destination and a Collaborative destination that point to the same peripheral target. This requires that you:

  1. Edit the in.map.properties file on the Media Blender Server

  2. Configure the ICM

  3. Set up the ICM routing script

Edit in.map.properties on the Media Blender Server

Edit the in.map.properties file on the Media Blender server and set the ICM Call Variable 2 to the Web WantsCollab field. For example, the file should contain this line:

 CallVar2=WantsCollab

Configure the ICM

Create two labels with the same peripheral target; for example, site1_collab-6000 and site1_callonly-6000.

Set up the ICM routing script

This routing script example has two rules, one which maps to Service.Sales for a call-only session, and the other which maps to Service.Sales for a collaborative session. Using the following method, the same label is returned every time; that is, the first rule returns the site1_collab-6000 label, and the second rule returns the site1_callonly-6000 label.

Complete the following steps:

  1. In the lower left corner of the Routes tab on the ICM Route Select Properties dialog box, select the "Allow connection for each target" checkbox.

  2. Add the following formula in the "Consider If" section for the Collaborative destination:

    Service.Sales.AgentsLoggedOn > 0 && Call.PeripheralVar2 = = "on" 

    This assumes that CallVar2 contains the contents of the Wants Collab form element mapped through the in.map.properties file.

  3. Add the following formula in the "Consider If" section for the CallOnly destination:

    Service.Sales.AgentsLoggedOn > 0 && Call.PeripheralVar2 != "on"

  4. Create Label nodes for each Route Select connection and attach them. You can directly specify the returned label in each of these Label nodes.

Note: You can also use node connections after each route selection rule to set a call variable that should be returned in out.map.properties for that route selection. For example, a CMB call type could be set if the destined CMB was configured with multiple call strategies.

See the ICM documentation for additional information on scripting.