When trying to do your outbound campaigns, you may want the ability to change the trunk used based on the area code that you are calling so that your caller ID looks localized to the person you are calling. The benefits of this are the fact that you can have different SIP Trunks for different places, so one trunk may provide a cheaper and better rate than another one.
Luckily, our Call Center Manager with Rules Engine can accomplish this.
The steps to utilize this feature are outlined below:
*Required: Call Center Manager with Rules Engine
- Open Call Center Manager
- Go to “Manage”
- Go to “Rules Engine” -> “Set Line Usage Rules”
An example rule is as follows: If you are calling a telephone with the area code 408, it will only use channels 1 to 9 to make the call. The first 9 channels have a caller ID associated with 408.
Rule Name:
AreaCode408
Condition:
(__Call__.Phone.length() == 11 && __Call__.Phone.substring(1,4) == '408') || (__Call__.Phone.length() == 10 && __Call__.Phone.substring(0,3) == '408')
Apply to lines:
__Line__.Number < = 10
Explanation:
__Call__.Phone.length() == 11
Will check the length of the telephone number.
__Call__.Phone.substring(1,4) == '408'
Will grab the second, third, and fourth letters of a telephone number. It will ignore the first number which is usually a country code.