Iam too interested in this discussion, can some one explicitly elaborate how iam gonna satisfy all the conditions in a situation whereby OpenSER is relaying to Asterisk for local PSTN calls and to another a voip provider for International PSTN calls, ofcourse this applies for any numeric uri.
you should be able to use lcr module for that. it allows you to select gateways based on prefix of called number.
-- juha