Configure routing rules using dashboard
The dashboard provides an intuitive interface to create and manage routing rules:- Navigate to the SIP section and select “Routing Rules”.
- Click “Add Routing Rule”.
- Fill in the required details:
- Gateway: Select the SIP gateway (inbound or outbound) for this rule.
- Name: Enter a descriptive name for the rule.
- Numbers: Specify the phone numbers this rule applies to.
- Dispatch: Choose how calls should be routed (to a room or agent).
- Room Options: For room dispatch, select static or dynamic, and configure prefix, room ID, and PIN as needed.
- Agent Options: For agent dispatch, select agent type and provide agent ID and metadata.
- Additional Options: Set tags, metadata, and whether to hide the caller’s phone number.
- Save the rule. The new routing rule will be applied immediately.
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.