Please refer to the two dial-peers bellow:
I ran debug and found out that incoming calls always match dial-peer 911, not dial-peer 1? Users will see caller-id as 911. Could anyone explain to me how dial-peers are matched? I thought it would match the pattern with incoming dialed-number.
dial-peer voice 911 pots
translation-profile incoming called_main
destination-pattern 911
no digit-strip
direct-inward-dial
port 0/2/0
dial-peer voice 1 pots
translation-profile incoming called_main
incoming called-number .
direct-inward-dial
port 0/2/0