<div dir="ltr">OK I think I realised my mistake - rules are matched on longest prefix.<br><div>So I think my question should be: Can I use the same principle for usernames in groups?</div><div><br></div><div>On a side note, is it possible to match the group based on the destination domain instead of the source domain?</div><div><br></div><div>Thanks</div><div>Mark.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 25 Mar 2019 at 09:56, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi everyone, can I use pattern matching in drouting groups and rules?<div>So for example I'd like to match onĀ +4412345678*@<a href="http://example.com" target="_blank">example.com</a></div><div><div><br></div><div>In Asterisk dialplan I would do _+4412345678X</div><div><br></div><div>Many thanks</div><div>Mark.</div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-3680943109419696468gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>