Brekeke Contact Center Suite Wiki

CIM - Remove characters from phone numbers before calling

Purpose:

Remove the characters “White Space“, “+“, ““, “(“,”)” from phone number before calling.

 

Sample Script :
var replaceAll = function(str,origin,target){
        return str.split(origin).join(target);
    }
    var converter = function(ci){
        var telno = ci.customer;
        telno = replaceAll(telno," ","");
        telno = replaceAll(telno,"+","");
        telno = replaceAll(telno,"-","");
        telno = replaceAll(telno,"(","");
        telno = replaceAll(telno,")","");

        ci.customer = telno;

    }

 

How to Use:

For example, in the case the script is used on Zoho Widget.

Step 1. Register your script on Brekeke CIM > Tenant menu > [Script].

Step 2. set the following parameter at Brekeke CIM > [Admin menu] > [Settings] > [Advanced settings]

<Whole System>
zoho.widget.scripting.makecall.converter.function = <Your script name>.converter

<Specific Tenant Only>
tenant.<tenant>.zoho.widget.scripting.makecall.converter.function = <Your script name>.converter

*This advanced parameter is available on Brekeke CIM version 2.7.5.10.14151 or later.

 

Yes No
Suggest Edit