Wouldn't it work in the old version by providing `sip:group_id@domain` as the second parameter of `sl_lookup()`, with the `username` set to `group_id` inside database table?
Yes, I failed to communicate the idea: that a group could have multiple domains. For example: group A has speed dial 123@domain1 (returning sip:999999@domain1) while 123@domain2 from the same group returns a different URI.