Routing is required to tell the platform which scenarios should be executed when a call has arrived at the platform or the StartScenarios API method is called. Routing is done with the help of Rules.
Creating Routing Rules
Any incoming call has two numbers associated with it: "caller ID" - the number of a person that made the call, and "dialed number". In case of an incoming call, Voximplant will execute scenario(s) associated with the first rule, in which a regular expression "pattern" matches a "dialed number".
Please note that the Pattern is relevant only in case of inbound calls to the platform
If a call arrives into the platform and the destination number matches more than one rule then the first matching will be used.
Forcing a Rule for a specific number
There is another option available for routing of inbound calls, a specific Rule for call processing can be specified in phone number settings, if the number is attached to an application. This number-assigned rule will automatically be assigned for incoming calls and any other matching rule will be ignored. Click on the dot menu button and choose Edit. The routing rule can be specified in the Edit number form.