Hello,
Though you could use dialplan+dispatcher to do that, that would mean
querying the dB every time you get call. You’d match the incoming DID with
a group id in the dialplan table, and use that gid to load-balance to the
gateways via the diaspatcher module.
I’d recommend using a db_cache