Configure routing rules using dashboard
Routing rules are created from a phone number in the dashboard:- In the Zero Runtime Dashboard, go to Telephony > Phone Numbers.
- Click Configure Rule on your number, then Create New Routing Rule. To reuse a rule, choose Assign Existing Rule instead.
- Fill in the details:
- Routing Rule Name and API Key.
- Call Direction: Inbound to receive calls, or Outbound to place them.
- Phone Numbers: The numbers this rule applies to.
- Room Configuration: Dynamic creates a new room per call (set a Room Prefix and optional Room PIN). Static sends every call to a fixed room.
- Agent Configuration: Enter the Agent Name or ID and click Verify Agent ID. Optionally add Agent Meta Data as key-value pairs.
- SIP Header Mapping (optional): Convert metadata into SIP headers for outbound requests.
- Access Control (optional): Limit calls to Allowed Numbers or Allowed IP Addresses.
- Tags (optional): Label the rule.
- Click Create Rule. The rule applies immediately, and you can manage all rules in the Routing Rules tab.
Configure routing rules using API
You can also create routing rules using the API for automation or advanced use cases. Endpoint Parameters:gatewayId: The ID of the gateway this routing rule belongs to.name: A descriptive name for the routing rule.numbers: Array of phone numbers associated with this rule.dispatch: Defines how calls should be dispatched (to a room or agent).hidePhoneNumber: (Optional) Hide the caller’s phone number.metadata: (Optional) Custom metadata key-value pairs.tags: (Optional) Custom tags for the rule.