<div dir="ltr">Hello Again,<div>Thanks for the great and timely help Daniel. Finally adjusted the BLF lights. Only couple of things, which I'm sure are some functions missing the call flow, are:</div><div><br></div><div>1- When users register or un-register the BLF don't update anything though NOTIFY are triggered.</div><div>2- When call comes from PSTN and an available user answers the call, BLF stays on green/available. </div><div><br></div><div>I'll continue working on fixing these in the config, any hints are still welcome.</div><div><br></div><div>Many thanks once again.</div><div>Best Regards,</div><div>Sammy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 10, 2015 at 4:33 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</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>
ok, good that is working better now.<br>
<br>
I will also look more into these module in the near future. I think
the Expires value must be different based on state, e.g., trying and
ringing should be shorter than active call.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 10/02/15 10:27, SamyGo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Daniel,
<div>This has helped us substantially, I've added few more lines
in the config and seems we've working BLF now. I'll share the
results when we complete the tests.</div>
<div><br>
</div>
<div>Thanks alot for the timely help. </div>
<div class="gmail_extra">BR,</div>
<div class="gmail_extra">Sammy</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 9, 2015 at 11:24 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</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>
went and configured a server for BLF as the logs were
not showing any obvious issue.<br>
<br>
The result was that the way module parameters were set
or have default values was creating this situation.<br>
<br>
The story is that the pua_dialoginfo takes the dialog
lifetime to set the expires for PUBLISH. Dialog module
sets that by default to 12 hours. That means the entries
in presentity table were kept for 12 hours.<br>
<br>
Then force_single_dialog for presence_dialoginfo is 0,
which means aggregate all the xml documents from
presentity table. That could end up in a long message.<br>
<br>
The solution is to overwrite the dialog lifetime via
pua_dialoginfo:<br>
 -
<a href="http://kamailio.org/docs/modules/4.2.x/modules/pua_dialoginfo.html#idp2576952" target="_blank">http://kamailio.org/docs/modules/4.2.x/modules/pua_dialoginfo.html#idp2576952</a><br>
<br>
Set override_lifetime to a lower value, like 90 .. 120
seconds, see the readme for hints on its value.<br>
<br>
Also, force_single_dialog set to 1 could be considered,
but lowering the lifetime should make it work.<br>
<br>
Let me know if works ok with these settings.<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 07/02/15 10:48, SamyGo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Please ignore the previous
attachment got corrupted, these are the complete
debug logs.
<div><br>
</div>
<div>Many Thanks,</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 6, 2015 at
4:38 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</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"> Btw,
there is no 'debug' message -- have you
set debug=3?<span><font color="#888888"><br>
<br>
Daniel</font></span>
<div>
<div><br>
<br>
<div>On 06/02/15 10:26,
Daniel-Constantin Mierla wrote:<br>
</div>
<blockquote type="cite"> Hello,<br>
<br>
the log doesn't show the messages
from the INVITE to the BYE. Are you
sure you got them for the entire
call? There are notes from syslog
that there are rate limits, dropping
logs.<br>
<br>
Also, I noticed errors printed by
t_check_trans(), are you using it
from a branch_route? Eventually you
can send the config to me to figure
out from where the issues for error
log messages are coming.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<div>On 05/02/15 23:54, SamyGo
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Daniel,
<div>Thanks alot for your time,
please see the log file
attached.</div>
<div><br>
</div>
<div>If needed, I can provide
sip captures received at the
phone .</div>
<div><br>
</div>
<div>Thanks,</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu,
Feb 5, 2015 at 4:42 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
can you reproduce this
with three phones (not to
get too much traffic)? Use
debug=3 in kamailio.cfg
and send to me all the
logs from kamailio start.
I will look to see what
happens.<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 05/02/15
22:21, SamyGo wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi
community,
<div><br>
</div>
<div>I'm dealing
with a problem
here related to
presence module
handling BLF. My
BLF phones are
Yealink T28p
with latest
firmware and
work perfectly
with Asterisk
and FreeSwitch
but not with
Kamailio as
expected. </div>
<div><br>
</div>
<div>What I'm
observing here
is a
malfunctioning
statuses due to
accumulation of
multiple entries
of just one
status in
"presentitiy"
table. These
entries neither
get expired not
cleared from DB
hence I see
atleast 21 XML
tags combined in
the NOTIFY sent
to Phones.</div>
<div><br>
</div>
<div>Here is what
I've figured out
a manual way to
make the BLF
work fine again.</div>
<div><br>
</div>
<div><b>Step -1</b>
Make call
between two
endpoints. see
entries in
presentitiy
table showing
up. </div>
<div><b>Step -2</b>
NOTIFYs sent to
phones
subscribing
those users from
Kamailio and
phones show
correct flashing
red BLF lights </div>
<div><br>
</div>
<div><b>Step -3</b>
clear the
entries from
presentity table
manually i.e
mysql>
truncate
presentity;</div>
<div><br>
</div>
<div><b>Step -4</b>
Hangup the
phones,
presentity table
shows few more
entries with
state='terminated'
NOTIFY sent
again to
subscribers..
BLF lighst turn
green happily.</div>
<div><br>
</div>
<div>Here are my
module params:</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>modparam("presence",
"db_url",
DBURL)</div>
<div>modparam("presence",
"notifier_processes",
1)<br>
</div>
<div>modparam("presence",
"server_address",
<a>"sip:1.2.5.5"</a>
)</div>
<div>modparam("presence",
"send_fast_notify",
0)</div>
<div>modparam("presence",
"db_update_period",
1)</div>
<div>modparam("presence",
"clean_period",
4)</div>
<div>modparam("presence",
"subs_db_mode",
2)</div>
<div>modparam("presence",
"max_expires",
36)</div>
<div>modparam("presence",
"expires_offset",
10)</div>
<div>modparam("presence",
"subs_htable_size",
12)<br>
</div>
<div>modparam("presence",
"pres_htable_size",
12)</div>
<div>modparam("presence",
"fetch_rows",
1000)</div>
</div>
<div>(these params
were set as
default earlier
but I changed
them as above
hoping they'll
help)</div>
<div><br>
</div>
<div>Kindly share
your expert
opinion.</div>
<div><br>
</div>
<div>Best Regards,</div>
<div>Sammy</div>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</div>
</div>
<span>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
</div></div></div>
</blockquote></div><br></div>