I have a question about a scenario I have about pots dial-peers for calls comming in from 2PRI's. I am having to route calls using calling party numbers to different locations.
I have 2 E1's into a Router. Between the two E1's the calls come in from the same calling numbers at different times from different ports. The requirement is to send the calls from one E1 to another E1. So for example when 222 calls a number and the call comes in from the first E1 it should go out over the second E1. But if a call from 222 comes from the second E1 it should go out over the first E1.
Is there a way to achieve this using answer-address(or any other way)? I am using incoming and outgoing corlists to direct calls to the correct ports. For this it is important the the correct dial-peer is matched in the first place. The router seems to be matching the first dial-peer it comes across with the matching answer-address and does not worry about the port it is coming in, which seems to be the way the router is supposed to route.
Thanks in advance for any help on this guys.