1 Reply Latest reply: Apr 1, 2010 1:36 PM by 764216 RSS

    ECMAScript

    751309
      How does the info like phone number, callerid pass from CCA to Virtual CTI driver and Siebel. Apart from configuring the drivers and profiles, driver parameters and events, commands does this require to write any script to pass the values when the agent accepts the call for screen pop.
        • 1. Re: ECMAScript
          764216
          First, I would like to point out I am not any kind of programmer. My information and terms may be inaccurate.

          If I understand your question correctly, the variables are automatically passed. I wrote a PHP file to parse all the variables and dump them for me. This also helps when testing the use of variables through campaigns or project menus. You can drop this file on any web server and test it out by invoking a URL like:

          http://mydomin.com/paratest.php?myvariable=123456

          Make note of the *[HTTP_GET_VARS] => Array* section, *?myvariable=123456* pushed a GET Variable to the web service.

          OUTPUT:
          -----
          Array
          (
          [_ENV] => Array
          (
          [APACHE_PID_FILE] => /var/run/apache2.pid
          [PATH] => /usr/local/bin:/usr/bin:/bin
          [LANG] => C
          [APACHE_RUN_GROUP] => www-data
          [APACHE_RUN_USER] => www-data
          [PWD] => /home/web-srvc
          )

          [HTTP_ENV_VARS] => Array
          (
          [APACHE_PID_FILE] => /var/run/apache2.pid
          [PATH] => /usr/local/bin:/usr/bin:/bin
          [LANG] => C
          [APACHE_RUN_GROUP] => www-data
          [APACHE_RUN_USER] => www-data
          [PWD] => /
          )

          [HTTP_POST_VARS] => Array
          (
          )

          [HTTP_GET_VARS] => Array
          (
          [myvariable] => 123456
          )
          -----

          CODE:
          -----
          <?php
          function getDefinedVars($varList, $excludeList)
          {
          $temp1 = array_values(array_diff(array_keys($varList), $excludeList));
          $temp2 = array();
          while (list($key, $value) = each($temp1)) {
          global $$value;
          $temp2[$value] = $$value;
          }
          return $temp2;
          }

          $excludeList = array('GLOBALS', '_FILES', '_COOKIE', '_POST', '_GET', 'excludeList');

          //get all variables defined in current scope
          $varList = get_defined_vars();

          //Time to call the function
          print "<pre>";
          print_r(getDefinedVars($varList, $excludeList));
          print "</pre>";

          ?>
          -----