<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Great, appreciating the feedback to know that all is ok.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 03/10/15 17:02, Ding Ma wrote:<br>
</div>
<blockquote
cite="mid:CAD6FCvPrK1=VYzkujsYCoeFU34BAFeiyamtawdak2cgyZK9ywQ@mail.gmail.com"
type="cite">
<div dir="ltr">Happy to to report the max_load worked in our
testing. Thanks,</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 15, 2015 at 3:04 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
good to know that you found the issue and it was in the
config file. Would be appreciated if you can report the
results on testing maxload, to know if there is anything
to fix there.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
<div>On 14/09/15 21:52, Ding Ma wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>Figured this out. Seems I had made a mistake
in the names of AVPs. Changed the AVP names as
the exact names used in the example contained in
dispatcher doc. Dispatcher started to work, I
can see even distribution of loads to 2 Asterisk
servers. Will verify if maxload is being
enforced or not, not really an issue even if it
is not enforced. </div>
<div><br>
</div>
<div>Thanks,</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Aug 27, 2015 at
9:07 AM, Ding Ma <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:mading087@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:mading087@gmail.com">mading087@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div dir="ltr">Hi, Daniel
<div><br>
</div>
<div>I just tested the dispatcher in
4.3.1. It showed the same behavior as
4.2.3. All the calls are sent to one
Asterisk (the last one in the dispatcher
list), the maxload setting in dispatcher
table is ignored. </div>
<div><br>
</div>
<div>We use db dispatcher table instead of
dispatcher list file, and the
kamailio.cfg is the same as included in
the previous email in this thread.</div>
<div><br>
</div>
<div>Hope I didn't make any mistake in
kamailio.cfg. </div>
<div><br>
</div>
<div>Thanks</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jun
12, 2015 at 12:34 AM,
Daniel-Constantin Mierla <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000"> Yes, 4.3
should have all fixes in 4.2.<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 12/06/15 06:06,
Ding Ma wrote:<br>
</div>
<blockquote type="cite">
<div>OK, we’ll try to
update and report
back. Wonder if the
latest 4.3 has all the
fixes went into the
latest 4.2.x. We
already have plan to
upgrade to 4.3. </div>
<div>Thanks. </div>
<br>
<div>
<blockquote
type="cite">
<div>On Jun 10,
2015, at 10:01 AM,
Daniel-Constantin
Mierla <<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>>
wrote:</div>
<br>
<div>
<div
bgcolor="#FFFFFF"
text="#000000">
It was a fix for
maxload during
4.2.x, but don't
recall exactly
when was
backported. Can
you upgrade to
latest 4.2.x and
see the results?
Your config file
and database
don't require
any change, only
deploy the
binaries for
latest 4.2.x and
restart.<br>
<br>
If the issue is
still there with
latest 4.2.x,
report here and
I will look at
it with the
first chance.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div>On 10/06/15
16:50, Ding Ma
wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr">
<div>We're
running
kamailio
4.2.3. Are
there any
changes to
dispatcher in
4.2.x?</div>
<div>Thanks,</div>
<div><br>
</div>
<div>#
kamailio -V</div>
<div>version:
kamailio 4.2.3
(x86_64/linux)
5596bd</div>
<div>flags:
STATS: Off,
USE_TCP,
USE_TLS,
TLS_HOOKS,
USE_RAW_SOCKS,
DISABLE_NAGLE,
USE_MCAST,
DNS_IP_HACK,
SHM_MEM,
SHM_MMAP,
PKG_MALLOC,
F_MALLOC,
DBG_F_MALLOC,
USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE,
USE_DNS_FAILOVER,
USE_NAPTR,
USE_DST_BLACKLIST,
HAVE_RESOLV_RES</div>
<div>ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE
262144,
MAX_LISTEN 16,
MAX_URI_SIZE
1024, BUF_SIZE
65535, DEFAULT
PKG_SIZE 8MB</div>
<div>poll
method
support: poll,
epoll_lt,
epoll_et,
sigio_rt,
select.</div>
<div>id:
5596bd</div>
<div>compiled
on 09:32:37
May 6 2015
with gcc 4.4.7</div>
<div><br>
</div>
<div
class="gmail_extra"><br>
<div
class="gmail_quote">On
Wed, Jun 10,
2015 at 7:01
AM,
Daniel-Constantin
Mierla <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
bgcolor="#FFFFFF"
text="#000000">
Hello,<br>
<br>
what version
of kamailio
are you using?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On
09/06/15
20:51, Ding Ma
wrote:<br>
</div>
</div>
</div>
<blockquote
type="cite">
<div>
<div>
<div dir="ltr">I'm
trying to set
up kamailio
dispatcher to
distribute
calls to 2
asterisk
servers. So
far, the
failover case
seems ok, but
I cannot get
the dispatcher
to distribute
load. All
calls are
going to the
last
destination
entry in the
dispatcher
table even if
I have set the
maxload
attributes.
I'm using
algorithm 10
for load
distribution.
The number of
calls sent to
one asterisk
is well above
the maxload.
Hope someone
more
experienced in
dispatcher can
review my
config and
give me some
recommendations.
Thanks in
advance.
<div><br>
</div>
<div>Here is
the content of
dispatcher
table in
postgresql db.</div>
<div><br>
<div>
<div>select *
from
dispatcher;</div>
<div> id |
setid |
destination
| flags |
priority |
attrs
|
description</div>
<div>----+-------+--------------------+-------+----------+---------------------------+-------------</div>
<div> 1 |
1 | sip:<a
moz-do-not-send="true"
href="http://10.0.1.31:5061/" target="_blank">10.0.1.31:5061</a> | 0
| 0 |
duid=asterisk1;maxload=25
| Asterisk1</div>
<div> 2 |
1 | sip:<a
moz-do-not-send="true"
href="http://10.0.1.33:5061/" target="_blank">10.0.1.33:5061</a> | 0
| 0 |
duid=asterisk2;maxload=25
| Asterisk2</div>
<div>(2 rows)</div>
</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
<pre cols="72"><span class="">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></span>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a></pre>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a></pre>
</body>
</html>