Business locations on calls
A business with several places (shops, clinics, offices) often has a phone number per place and lists it on the place's Google Business Profile. MonoPbx can tag every incoming call with the location of the number that was called, so the call history tells you which place the customer wanted, however the call was routed afterwards.
The tag is only a label. It never changes where a call rings.
Give a number a location
- Open Numbers and trunks, then Numbers.
- Add a number, or open the ... menu of an existing row and choose Set location.
- Type the name of the location, up to 80 characters, for example
Downtown branch, and save.
A range of numbers carries one location for the whole range. Clear the field to remove it.
The same field is location on each entry of PUT /api/v1/trunks/{id}/dids and on GET /api/v1/trunk-dids (you can filter that list with filter=location:eq:...). A PUT replaces the trunk's complete list, so send the existing locations back with every entry you keep.
Take the location from Google Business
When your company has a connected Google Business channel that lists each location's name and the numbers its profile shows, a call to a number that has no location of its own is tagged with the location the channel lists for that number. A location you set on the number always wins.
Until a Google Business channel is connected, nothing changes: calls to numbers without a location are simply not tagged, and no error is shown. The channel itself is set up with your Google partner account; see Omnichannel setup.
Where the location shows
- Call history: each incoming call to a number with a location shows it in the details, and the Location filter selects the calls of one location (
filter=location:eq:Downtown branchonGET /api/v1/cdr). Calls made before the number had a location, outgoing calls and internal calls have none. - Call API:
locationon each call ofGET /api/v1/cdrandGET /api/v1/cdr/{id}. - Call events:
call.startedcarrieslocationfor incoming calls, so webhooks and automations can use it.
Good to know
- The location is looked up for the number that was dialled (the DID), after the call was accepted. A slow or failed lookup leaves the call untagged; it never delays or refuses the call.
- Calls that an inbound rule sends straight to an outside number are not tagged yet.
- The location is a plain name. Use the same spelling on every number of a place so the filter finds them all.