<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I will adjust the tutorial to make the note about PUBLISH looping
    back and need to authorize it by IP check.<br>
    <br>
    Regarding "db_mode", are you referring to "subs_db_mode" parameter?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <meta charset="utf-8">
    <div class="moz-cite-prefix">On 11/09/15 09:17, huseyin kalyoncu
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPf+86X8r=HB99pwooO-45unYfWAoy8OApT6SR-BzOKDYQ+SrA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div>After some struggling i solved the problem. It turns out
          that Kamailio was sending 407 for PUBLISH messages</div>
        <div>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</div>
        <div>without a proper debug output.</div>
        <div><br>
        </div>
        <div>I fixed the problem with adding following check to the
           AUTH route block:</div>
        <div><br>
        </div>
        <div>
          <div>        if (is_method("PUBLISH") &&
            src_ip=="MY_IP_ADDRESS") {</div>
          <div>                return;</div>
          <div>        }</div>
        </div>
        <div><br>
        </div>
        <div>After adding this, BLF is working normally with the conf
          given in the tutorial which was i mentioned in my previous
          message.</div>
        <div><br>
        </div>
        <div>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</div>
        <div>about presentity table and the light remains red constantly
          after hangup the call. </div>
        <div>I will try to send those db error messages to this thread
          later when i have time.</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Huseyin</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Sep 11, 2015 at 10: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>
              have you captured the traffic on loopback network
              interface? Try also to run with debug=3 in kamailio.cfg.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 10/09/15 22:44, huseyin kalyoncu wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi
                      <div><br>
                      </div>
                      <div>I am trying to implement BLF functionality as
                        described in <a moz-do-not-send="true"
                          href="http://kb.asipto.com/kamailio:presence:k43-blf"
                          target="_blank">http://kb.asipto.com/kamailio:presence:k43-blf</a>.</div>
                      <div><br>
                      </div>
                      <div>I am using the same conf with the one in the
                        tutorial except that i am using postgres
                        database instead of mysql.</div>
                      <div><br>
                      </div>
                      <div>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. </div>
                      <div>i can see PUBLISH & NOTIFY messages in
                        the tcpdump output with the working
                        configuration.</div>
                      <div>But i can not see any PUBLISH messages in the
                        tcpdump output with the original config (one
                        with presence and proxy servers are same).</div>
                      <div><br>
                      </div>
                      <div>My question</div>
                      <div>in the normal working environment (when BLF
                        working perfectly);</div>
                      <div>should i see PUBLISH and NOTIFY messages in
                        the tcpdump output when the presence and proxy
                        servers are the same? </div>
                      <div><br>
                      </div>
                      <div>thanks</div>
                      <div><br>
                      </div>
                      <div>Huseyin</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
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>
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>
                </font></span></div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </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>