<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>You can always add a bit of caching to avoid too many sql queries
and improve the performances. Just use the htable module to store
in memory the value associated with authid that you fetch from
database.</p>
<p>Then you can llok first in htable, and if not found store in
htable. You can set a lifetime for values in the htable, so they
disappear, forcing a load from db.<br>
</p>
Also, you can set/remove values from htable via rpc commands, if you
need to do a change immediately.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 10.08.17 14:51, Ryan Wagoner wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGExVfvREccsHBoT-s_VSWMLQkj8qorAyu8V5TRArNk4N6u34g@mail.gmail.com">
<div dir="ltr">Thanks for the explanation! I finally got the
dispatcher working in an active / passive Kamailio cluster in
front of three FreePBX servers. I was using the Asipto Kamailio
and Asterisk real time guide as a starting point so it had the
WITHINDLG route. I ended up modifying the TOASTERISK route to
call <span style="font-size:12.8px">ds_select_dst</span> and the
FROMASTERSK route uses an htable for matching IPs off a mySQL
view of the Kamailio dispatcher table. I also have some
modifications to the REGFWD route. We'll see how performance is
today as I did have to use a sqlops query to lookup the
dispatcher set ID for TOASTERISK and REGFWD depending on the
authentication ID. This setup is responsible for around 1000
extensions with 2000 devices for a high volume call center.
<div><br>
</div>
<div>Ryan</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Aug 10, 2017 at 4:16 AM, Daniel
Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl"
target="_blank" moz-do-not-send="true">d.tryba@pocos.nl</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On Wed, Aug 09, 2017 at 01:21:36PM -0400, Ryan
Wagoner wrote:<br>
> How do I mark these server side invites so the call
hash is known by<br>
> kamailio? Or am I thinking about this the wrong way?<br>
<br>
</span>It is the latter, in dialog replies should be routed
on headers only. In<br>
the "default" config these replies/reINVITES are handled in
the<br>
WITHINDLG route, the dispatcher should only be called for
new dialogs.<br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>