CLID Rewrite-4916

CLID Rewrite

CLID Rewrites allows you to adjust the Caller ID to be displayed.

Whist Trunk CLID Rewrites are designed to format a Caller ID in a manner which is accepted by the SIP Provider, these Trunk Group CLID Rewrites are designed to allow you to become more creative when sending CLIDs.

Trunk Group CLID Rewrites support:

  • Simple rewrites
  • Hide CLID
  • Use a CLID from a random Pool
  • Set an explicit CLID
  • Pattern match on either the DID and CLID

You should remember that any CLID rewrite performed by a Trunk Group CLID Rewrite may be further modified by the Trunk CLID Rewrite, however this is only to get the CLID in a format that is acceptable for the SIP Provider of the selected trunk.

Noojee Campaigner

Noojee's Dialer, Noojee Campaigner, bypasses Trunk Group CLID Rewrites as it manages CLID's directly.

Noojee API

CLID's set by the API will be written by the Trunk Gruop CLID. If this is not desirable then have the API set the CLID using an unusual prefix (e.g. 000000) before the CLID. Then use a CLID Rewrite to match that prefix, strip it and you are left with the desired CLID.

Account

An Account CLID will be written by the Trunk Group and Trunk CLID rewrites. If you don't want an Account to be affected by the CLID Rewrites then create a separate Trunk Group and set the Account's handset to use that Trunk Group.

Manual dials

When dialing manually (from a handset or softphone keypad) CLID Rewrites are always applied. If you don't want Trunk Group CLID rewrites to apply then simply create a new Trunk Group with no CLID Rewrites or uses a unique prefix for the handset CLID with its own CLID Rewrite.

A Rewrite consists of a:

Match Type: DID or CLID

Pattern which is used to match either the number dialed or the CLID based on the Match Type.

Rewrite Type: Simple, Pool

Simple Rewrite Type

When the Rewrite Type is set to Simple then you set:

Strip prefix length which optionally removes digits from the start of the dialed number

Replacement prefx which optionally adds new digits to the start of the dialed number.

Example (1)

The area code for local numbers is 03

User dials a local number: 8320 8100

SIP provider requires the full area code on any number dialed:

Pattern: XXXX XXX

Strip prefix Length: 0

Replacment prefix: 03

The pattern matches 8320 8100 and adds an 03 prefix to give 03 8320 8100

Example (2)

The area code for local numbers is 03

User dials a national number: 02 8320 8100

SIP provider requires the full internatinal code on any number dialed:

Pattern:XX XXXX XXX

Strip prefix Length: 1

Replacment prefix: 612

The pattern matches 02 8320 8100, strips the leading '0' to give 2 8320 8100 and then adds an  prefix of 612 to give 612 8320 8100

Pool Rewrite Type

When you set the Rewrite Type to Pool you must first configure a Pool of CLIDs (Provision | CLID Pools). A Pool of CLID's has one or more CLID's, one of which is selected each time a CLID needs to be re-written. You may need multiple Pools as some trunks only allow CLID's to be of a certain type. e.g. National vs Mobile.

Patterns

The order of patterns is important. When looking for a pattern that matches a phone number the system starts from the top pattern and evaluates each pattern in order until a match is found. That pattern is applied and any further patterns are ignored.

Fields

Field Description
Name A name for the pattern that will be meaningful to you.
Description A description of what the pattern is used for.
Match Type The match type controls whether the Pattern is used to match against the DID or CLID. Regardless of the Match Type the Rewrite ALWAYS rewrites the CLID.
Pattern The Pattern used to match the CLID or DID according to the Match Type.
Strip Prefix Length

Simple Rewrite:

The number of digits to strip of the start of the CLID.

Replacement prefix

Simple Rewrite: 

The digits to add to the start of the CLID after the strip prefix has been done.

 

Pool The name of the Pool to use to select a Random CLID from.
Test Phone No. This is a convenience field that allows you to enter a phone number that you expect to match the Pattern. Enter a phone number and then click the Test button. The results will be displayed in the Results field.
Results Displays the results of the test.
Â