Dial Peers for Inbound and Outbound Calls

Dial Peers for Inbound and Outbound Calls
Inbound and outbound calls use dial peers to receive and complete calls.You
must remember that the definition of inbound and outbound is based on the
perspective of the router.What this means is that a call coming into the router is
considered an inbound call while a call originating from the router is considered
an outbound call.
When an inbound call is destined for a device on the packet network and is
coming from a POTS interface, the router will match the dial peers for the voice
network with the inbound call leg so it is properly routed to the outbound port.
If the call originates within the packet network, then the router will match the
POTS dial peer and a voice network dial peer so it can modify its attributes for
VAD, CODEC, and QoS.
Routers that receive inbound POTS calls are destined for outbound voice
network dial peers, it will forward all of the collected digits. For outbound POTS
calls, the router will remove explicitly matched digits and forward the remaining
digits to the destination port.
The following configuration is a basic example of POTS and VoIP peers:
dial-peer voice 1 pots
destination-pattern 707....
port 1/0:1
dial-peer voice 2 voip
destination-pattern 707....
session target ipv4:10.1.100.1
As you can see, the router will choose a dial peer for a call leg by matching
the digits defined by the destination-pattern, but it can also use the answeraddress
or incoming called-number commands if they are used within the dial
peer configuration. Be aware that the character “.” is the only wildcard applied if
you use answer-address or incoming call-number commands for the creation of
your dial peers.