[SR-Users] Presence module for BLF issue

SamyGo govoiper at gmail.com
Thu Feb 5 23:55:12 CET 2015


Here are the contents of the presentity table for the test call.



On Thu, Feb 5, 2015 at 5:54 PM, SamyGo <govoiper at gmail.com> wrote:

> Hi Daniel,
> Thanks alot for your time, please see the log file attached.
>
> If needed, I can provide sip captures received at the phone .
>
> Thanks,
>
> On Thu, Feb 5, 2015 at 4:42 PM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>>  Hello,
>>
>> 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.
>>
>> Cheers,
>> Daniel
>>
>>
>> On 05/02/15 22:21, SamyGo wrote:
>>
>> Hi community,
>>
>>  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.
>>
>>  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.
>>
>>  Here is what I've figured out a manual way to make the BLF work fine
>> again.
>>
>>  *Step -1* Make call between two endpoints. see entries in presentitiy
>> table showing up.
>> *Step -2* NOTIFYs sent to phones subscribing those users from Kamailio
>> and phones show correct flashing red BLF lights
>>
>>  *Step -3* clear the entries from presentity table manually i.e mysql>
>> truncate presentity;
>>
>>  *Step -4* Hangup the phones, presentity table shows few more entries
>> with state='terminated' NOTIFY sent again to subscribers.. BLF lighst turn
>> green happily.
>>
>>  Here are my module params:
>>
>>
>>  modparam("presence", "db_url", DBURL)
>> modparam("presence", "notifier_processes", 1)
>>  modparam("presence", "server_address", "sip:1.2.5.5" )
>> modparam("presence", "send_fast_notify", 0)
>> modparam("presence", "db_update_period", 1)
>> modparam("presence", "clean_period", 4)
>> modparam("presence", "subs_db_mode", 2)
>> modparam("presence", "max_expires", 36)
>> modparam("presence", "expires_offset", 10)
>> modparam("presence", "subs_htable_size", 12)
>>  modparam("presence", "pres_htable_size", 12)
>> modparam("presence", "fetch_rows", 1000)
>>  (these params were set as default earlier but I changed them as above
>> hoping they'll help)
>>
>>  Kindly share your expert opinion.
>>
>>  Best Regards,
>> Sammy
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>> Kamailio World Conference, May 27-29, 2015
>> Berlin, Germany - http://www.kamailioworld.com
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150205/cc08b342/attachment.html>
-------------- next part --------------
|  2 | 205      | mdpop75.devkam.com | presence | a.1423176314.1570.4.2 | 1423180025 |    1423176425 | <?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='pres:sip:205 at mdpop75'><tuple id='t6b077d14'><status><basic>open</basic></status></tuple><dm:person id='peb11fc0a'><rpid:activities><rpid:unknown/></rpid:activities></dm:person></presence>                                                                                                                                                                                                          |        |
|  3 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1570.2.0 | 1423180006 |    1423176406 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>Trying</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                    |        |
|  4 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1572.2.0 | 1423180013 |    1423176413 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." local-tag="db6b480b" remote-tag="as29f7e478" direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
 |        |
|  5 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1572.3.0 | 1423180013 |    1423176413 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." local-tag="as29f7e478" remote-tag="db6b480b" direction="recipient">
    <state>early</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </local>
  </dialog>
</dialog-info>
     |        |
|  6 | 205      | 192.168.1.12        | dialog   | a.1423176314.1563.1.0 | 1423180013 |    1423176413 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at 192.168.1.12:50041">
  <dialog id="0bdcfa4560a5836c1baea98e533449e1 at 192.168.1.37:5060" local-tag="12008e7c" remote-tag="as747180f1" direction="recipient">
    <state>early</state>
    <remote>
      <identity>sip:205 at 192.168.1.37</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </remote>
    <local>
      <identity>sip:205 at 192.168.1.12:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562;rinstance=f4ddb0494944634f"/>
    </local>
  </dialog>
</dialog-info>
               |        |
|  7 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1571.1.0 | 1423180013 |    1423176413 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." local-tag="db6b480b" remote-tag="as29f7e478" direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
 |        |
|  8 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1573.2.0 | 1423180013 |    1423176413 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." local-tag="as29f7e478" remote-tag="db6b480b" direction="recipient">
    <state>early</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </local>
  </dialog>
</dialog-info>
     |        |
|  9 | 205      | 192.168.1.12        | dialog   | a.1423176314.1562.1.0 | 1423180016 |    1423176416 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at 192.168.1.12:50041">
  <dialog id="0bdcfa4560a5836c1baea98e533449e1 at 192.168.1.37:5060" direction="recipient">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at 192.168.1.37</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </remote>
    <local>
      <identity>sip:205 at 192.168.1.12:50041</identity>
      <target uri="sip:205 at 192.168.1.12:50041"/>
    </local>
  </dialog>
</dialog-info>
                                                                                     |        |
| 10 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1573.3.0 | 1423180016 |    1423176416 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 11 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1571.2.0 | 1423180016 |    1423176416 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="recipient">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 12 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1572.4.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 13 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1570.3.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 14 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1573.4.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="recipient">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 15 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1571.3.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="recipient">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 16 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1572.5.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 17 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1573.5.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="recipient">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 18 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1571.4.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 19 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1571.5.0 | 1423180017 |    1423176417 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="recipient">
    <state>confirmed</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                      |        |
| 20 | 205      | 192.168.1.12        | dialog   | a.1423176314.1563.2.0 | 1423180025 |    1423176425 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at 192.168.1.12:50041">
  <dialog id="0bdcfa4560a5836c1baea98e533449e1 at 192.168.1.37:5060" direction="recipient">
    <state>terminated</state>
    <remote>
      <identity>sip:205 at 192.168.1.37</identity>
      <target uri="sip:205 at 192.168.1.37:5060"/>
    </remote>
    <local>
      <identity>sip:205 at 192.168.1.12:50041</identity>
      <target uri="sip:205 at 192.168.1.12:50041"/>
    </local>
  </dialog>
</dialog-info>
                                                                                    |        |
| 21 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1572.6.0 | 1423180025 |    1423176425 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="initiator">
    <state>terminated</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </local>
  </dialog>
</dialog-info>
                                     |        |
| 22 | 205      | mdpop75.devkam.com | dialog   | a.1423176314.1572.7.0 | 1423180025 |    1423176425 | <?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:205 at mdpop75.devkam.com:50041">
  <dialog id="a01e8f622e0c940dOGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg." direction="recipient">
    <state>terminated</state>
    <remote>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at 64.231.216.122:55562"/>
    </remote>
    <local>
      <identity>sip:205 at mdpop75.devkam.com:50041</identity>
      <target uri="sip:205 at mdpop75.devkam.com:50041"/>
    </local>
  </dialog>
</dialog-info>
                                     |        |


More information about the sr-users mailing list