Hi After some struggling i solved the problem. It turns out that Kamailio was sending 407 for PUBLISH messages which sent to itself by itself :) and because of that it was not relaying PUBLISH messages. It is a very strange behaviour and hard to recognize without a proper debug output.
I fixed the problem with adding following check to the AUTH route block: if (is_method("PUBLISH") && src_ip=="MY_IP_ADDRESS") { return; } After adding this, BLF is working normally with the conf given in the tutorial which was i mentioned in my previous message. Btw. there is another problem whith BLF when i change db_mode of presence module from 2 to 3. It gives strange duplicate key errors about presentity table and the light remains red constantly after hangup the call. I will try to send those db error messages to this thread later when i have time. Thanks Huseyin On Fri, Sep 11, 2015 at 10:04 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > have you captured the traffic on loopback network interface? Try also to > run with debug=3 in kamailio.cfg. > > Cheers, > Daniel > > > On 10/09/15 22:44, huseyin kalyoncu wrote: > > Hi > > I am trying to implement BLF functionality as described in > <http://kb.asipto.com/kamailio:presence:k43-blf> > http://kb.asipto.com/kamailio:presence:k43-blf. > > I am using the same conf with the one in the tutorial except that i am > using postgres database instead of mysql. > > The problem is BLF is not working with this config (presence server and > proxy server are in the same kamailio with same IP). But when I separate > presence server from proxy server (2 different kamilio boxes with different > IPs) BLF working perfect. > i can see PUBLISH & NOTIFY messages in the tcpdump output with the working > configuration. > But i can not see any PUBLISH messages in the tcpdump output with the > original config (one with presence and proxy servers are same). > > My question > in the normal working environment (when BLF working perfectly); > should i see PUBLISH and NOTIFY messages in the tcpdump output when the > presence and proxy servers are the same? > > thanks > > Huseyin > > > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing > listsr-us...@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 > Book: SIP Routing With Kamailio - http://www.asipto.com > Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - > http://asipto.com/u/kat > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > >
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users