Hello Daniel,
Ok my problem is that there is several entries for the same contact in the presentity table.
Thus kamailio sends a lot of NOTIFY.
Since i added the folowing settings in my kamailio.cfg config file :
if(is_method("REGISTER") ) {
xlog("L_INFO", "LBO - pua_set_publish() call for $rm from $fu (IP:$si:$sp) \n");
if(!pua_set_publish())
xlog("L_INFO", "LBO - set publish failed\n");
}
I see at least 2 entries for 124 in the presentity table:
| 1246 | 124 | 192.168.0.186 | presence | a.1450269471.610.326.0 | 1450281200 | 1450281080 | <?xml version="1.0"?>
<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="124@192.168.0.186"> <tuple id="0x7f57cfdb9570">
<status>
<basic>open</basic>
</status>
</tuple>
</presence>
| | 0 |
| 1247 | 124 | 192.168.0.186 | presence | a.1450269471.609.402.0 | 1450281200 | 1450281080 | <?xml version="1.0" encoding="UTF-8" standalone="no"?><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" entity="sip:124@192.168.0.186"><dm:person id="p4404"><rpid:activities/></dm:person><tuple id="t7423"><status><basic>open</basic></status><contact>sip:124@192.168.0.186</contact><note>Online</note></tuple></presence>
Is it possible to use pua module only if the sip contact does not provide presence infos?
Best regards
Loic