I am trying to configure a 2821 to perform SIP trunking with a Broadsoft switch on an inbound call leg. Outbound calls work fine, but the design for inbound calls is through SIP trunking, where a single phone number is associated to several hundred other phone numbers.
The first part of the SIP Invite is the only part being matched, not the underlying request. I am at a loss to find any documentation that uses a target phone number associated with a dial-peer to perform this type of function.
Once this is working, dial-peer 5 or 8 should be matched and then translated to a 4 digit number that a 5e directly connected switch is ready to accept. Dial-peer 7 can pretty much be ignored as this did not change the results in either direction.