M4 Routing according to destination and callerid numbers
Routing based on Destination and CallerID numbers is created by using Dial Peers Settings.
Each Dial Peer can accept or deny a specific Destination or CallerID number going through it.
Allowed/Denied CallerIDs are configured in Dial Peers Settings, "Source" section.
Allowed/Denied Destinations are configured in Dial Peers Settings, "Destination" section.
The call flow is following:
Originator call is directed to the Routing Group which is assigned to Originators Connection Point;
The Routing Group contains Dial Peers. Based on priorities defined in Routing Group and Dial Peers settings (allowed/denied numbers) one of Dial Peers is selected to terminate the call;
Dial Peer contains Termination Points. Based on Percent or Weight particular Termination Point is selected to terminate the call.