<p></p>
<blockquote>
<p dir="auto">Wouldn't it work in the old version by providing <code class="notranslate">sip:group_id@domain</code> as the second parameter of <code class="notranslate">sl_lookup()</code>, with the <code class="notranslate">username</code> set to <code class="notranslate">group_id</code> inside database table?</p>
</blockquote>
<p dir="auto">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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3255#issuecomment-1261018604">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKVKN4TRRZ6ORFDAODWARKMHANCNFSM6AAAAAAQXPS6JU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZN3OH7WH5V4UPWDWXLWARKMHA5CNFSM6AAAAAAQXPS6JWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSLFGO6Y.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3255/c1261018604</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3255#issuecomment-1261018604",
"url": "https://github.com/kamailio/kamailio/pull/3255#issuecomment-1261018604",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>