<div dir="ltr">great thanks fred</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020 at 4:53 PM Fred Posner <<a href="mailto:fred@palner.com">fred@palner.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 2020-10-13 at 16:40 +0100, Andy Kama wrote:<br>
> Hi All,<br>
> <br>
> What is the best way to approach this?<br>
> <br>
> example if a call comes into kamailio with a specific number it<br>
> example to:123456789 it must go to the dispatcher module<br>
> but if a call comes with any other number it must route to a uac<br>
> <br>
<br>
May different ways to approach this.<br>
<br>
First thoughts would be htable module for specific numbers or perhaps<br>
prefix_route in your case... but there are many ways you can approach<br>
this.<br>
<br>
> or can you use uac with dispatcher?<br>
> <br>
> basically i want to route inbound calls to a dispatcher and calls<br>
> from that dispatcher out a uac<br>
> <br>
<br>
if(ds_is_from_list()) {<br>
    ...<br>
}<br>
<br>
ds_is_from_list is a great way to quickly check if the source is a<br>
dispatcher node.<br>
<br>
-- <br>
Fred Posner<br>
<a href="mailto:fred@palner.com" target="_blank">fred@palner.com</a><br>
<a href="https://www.palner.com" rel="noreferrer" target="_blank">https://www.palner.com</a><br>
<br>
Need Fred? Call Fred. 336-HEY-FRED<br>
Matrix: @fred:<a href="http://matrix.lod.com" rel="noreferrer" target="_blank">matrix.lod.com</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>