Location Caller ID

From Integrics Wiki
Jump to: navigation, search

Location caller ID can be used to set a different caller ID for a telephone line when calling a number that matches a pattern such as the number for emergency services.

In System -> Configuration, set "Use location callerid" to the emergency number like "^911$". A new select box appears on the edit telephone page to set the location callerid for each telephone.

Then if anyone calls a number matching that regular expression, the location callerid will be used rather than the external callerid.

One warning though:

This means that if the customer has no numbers, their telephones cannot be saved. Therefore each customer must have at least one number. After enabling location callerid, it's a good idea to run these two SQL commands.

To set the location callerid for existing phones:

update phones set callerid_location=callerid_external;

To get a list of phones that need to be set manually:

select name, customer from phones where callerid_location=;