You are here: Integrating with External CRM > Defining Screen Pop Settings for External CRM > Example of a Screen Pop

Example of a Screen Pop

The following example illustrates the use of the Screen Pop tab.

Figure 134 illustrates a Screen Pop specification.

Figure 134: Integration, Screen Pop tab, example trigger

In Figure 134:

Example 2 shows a PHP script invoked by the screen pop configuration illustrated in .

Example 2: Example PHP script invoked by an Virtual Contact Center Screen Pop

<?php

/* scriptPop.php – This script should return a web page depending on the phone number dialed */

$channel=$_POST[‘Channel’];

if (is_null($channel)) {

  printf(“No channel data was given”);

}

else {

  switch ($channel) {

  case ‘18005551212’:

    header(‘Location: http://www.8x8.com’);

    break;

  default:

    header(‘Location: http://www.example.com’);

    break;

}

}

The script evaluates the call's ANI.

 

See Also

 


Send us your Feedback