15.0 Caller Id Mapping

The Caller Id Mapping REST interface provides the ability to dynamically set a Caller ID from a handset using a feature code or a programmable button.

Some users need to dynamically change their Caller ID from call to call based on such considerations as the product they are selling.

The Caller Id Mapping in conjunction with custom dial plan allows the agent to move between a small no. of caller ids.

To configure the mapping you need to configure a feature code or programmable button to make a rest call as follows:

https://<server hostname>/servicemanager/rest/njadmin-api-callerIdMapping?exten=NNN&callerId=XXXXXXXXXX&apiKey=XXXXX-XXXXX-XXXXX-XXXXX

Where:

NNN is the extension no.

XXXXXXXXXX is the Caller ID to display

The following customer dial plan is required:

[calleridRemap]
exten => _X.,1,set(tmpclidrs=${CALLERID(NUM)})
exten => _X.,n,Set(tmpvaluers=${DB(TempCallerId/${CALLERID(NUM)})})
exten => _X.,n,execif($[${LEN(${tmpclidrs})} < 8 && ${LEN(${tmpvaluers})}< 3]|Set|CALLERID(NUM)=61385089777)
exten => _X.,n,execif($[${LEN(${tmpvaluers})} > 3]|Set|CALLERID(NUM)=${DB(TempCallerId/${CALLERID(NUM)})})
exten => _X.,n,DBdel(TempCallerId/${tmpclidrs})
exten => _X.,n,return