<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Aqs,<br>
      <br>
      Which OpenSIPS is acting as presence server for BLF ?<br>
      <br>
      Also, to which OpenSIPS is user C sending its subscribe ( B BLF) ?<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="moz-cite-prefix">On 01/21/2018 09:17 PM, Aqs Younas
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGVOjVXbP3fXBgq+bs-g4as653gkN+OW2WDHM9=7a-a9p484TQ@mail.gmail.com">
      <div dir="ltr">Greetings list,
        <div><br>
        </div>
        <div>I am unable to make BLF work on two opensips using a shared
          database with opensips 2.3.  Here is the scenario. </div>
        <div><br>
        </div>
        <div>Caller A is registered on opensips A. </div>
        <div>Callee B is registered on opensips B. </div>
        <div>User C is registered on opensips A and has subscribed
          dialog-info of Callee B which is registered on opensips B. </div>
        <div><br>
        </div>
        <div>I see opensips B generating PUBLISH messages through pua
          but I did not see NOTIFY being generated against that
          PUBLISH. </div>
        <div><br>
        </div>
        <div>Below is my configuration of opensips B. </div>
        <div><br>
        </div>
        <div>loadmodule "presence.so"<br>
        </div>
        <div>
          <div>loadmodule "xcap.so"</div>
          <div>loadmodule "presence_xml.so"</div>
          <div>loadmodule "presence_dialoginfo.so"<br>
          </div>
          <div>loadmodule "pua.so"</div>
          <div>loadmodule "pua_dialoginfo.so"</div>
          <div>loadmodule "pua_usrloc.so"</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div># ----- presence params -----</div>
          <div>modparam("xcap|presence", "db_url", "mysql://<a
              href="http://gw:gW044631108@127.0.0.1/asterisk"
              moz-do-not-send="true">gw:gW044631108@127.0.0.1/asterisk</a>")</div>
          <div>modparam("presence", "server_address", "sip:<a
              href="http://35.197.160.205:5060" moz-do-not-send="true">35.197.160.205:5060</a>")</div>
          <div>modparam("presence", "db_update_period", 1)</div>
          <div>modparam("presence", "clean_period", 40)</div>
          <div>modparam("presence", "fallback2db", 1)</div>
          <div><br>
          </div>
          <div># ----- presence_xml params -----</div>
          <div>modparam("presence_xml", "force_active", 1)</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div># ----- presence_dialoginfo params -----</div>
          <div>modparam("presence_dialoginfo", "force_single_dialog", 1)</div>
          <div><br>
          </div>
          <div># ----- pua params -----</div>
          <div>modparam("pua", "db_url", "mysql://<a
              href="http://gw:gW044631108@127.0.0.1/asterisk"
              moz-do-not-send="true">gw:gW044631108@127.0.0.1/asterisk</a>")</div>
          <div><br>
          </div>
          <div># ----- pua_dialoginfo params -----</div>
          <div>modparam("pua_dialoginfo", "include_callid", 1)</div>
          <div>modparam("pua_dialoginfo", "include_tags", 1)</div>
          <div>modparam("pua_dialoginfo", "presence_server", "<a
              href="http://sip:sa@10.152.0.6:5060"
              moz-do-not-send="true">sip:sa@10.152.0.6:5060</a>")</div>
          <div>modparam("pua_dialoginfo", "publish_on_trying", 1)</div>
          <div><br>
          </div>
          <div>modparam("pua_usrloc", "default_domain", "<a
              href="http://cloud-pbx-02.net" moz-do-not-send="true">cloud-pbx-02.net</a>")</div>
        </div>
        <div><br>
        </div>
        <div>route{</div>
        <div>......</div>
        <div>
          <div>        if (is_method("INVITE")) {</div>
          <div>                create_dialog();</div>
          <div>                dialoginfo_set();</div>
          <div>        }</div>
        </div>
        <div>.....}</div>
        <div><br>
        </div>
        <div>I see subscription state in active_watchers table against
          Caller B. </div>
        <div><br>
        </div>
        <div>P.S. Everything works fine if I just use one opensips, and
          things just go awry when I use two opensips together. </div>
        <div><br>
        </div>
        <div>Sometimes, I see these errors in logs not sure if they are
          related or not. </div>
        <div><br>
        </div>
        <div>
          <div>Jan 21 16:52:47 cloud-pbx-01 /sbin/opensips[15302]:
            ERROR:pua:send_publish_int: New 'presence' PUBLISH and no
            body found - invalid request</div>
          <div>Jan 21 16:53:01 cloud-pbx-01 /sbin/opensips[15299]:
            ERROR:presence:update_presentity: No E_Tag match
            [a.1516396279.24224.2406.2580]</div>
          <div>Jan 21 16:53:02 cloud-pbx-01 /sbin/opensips[15299]:
            ERROR:presence:update_presentity: No E_Tag match
            [a.1516396279.24223.1318.20]</div>
          <div>Jan 21 16:53:03 cloud-pbx-01 /sbin/opensips[15300]:
            ERROR:presence:update_presentity: No E_Tag match
            [a.1516396279.24225.2338.1032]</div>
        </div>
        <div><br>
        </div>
        <div>I am stuck here for few days, Any help/suggestion is much
          appreciated. </div>
        <div>Thanks. </div>
      </div>
      <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
        <table style="border-top:1px solid #d3d4de">
          <tbody>
            <tr>
              <td style="width:55px;padding-top:13px"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon"
                  target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
                    alt="" style="width: 46px; height: 29px;"
                    moz-do-not-send="true" height="29" width="46"></a></td>
              <td
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
                <a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link"
                  target="_blank" style="color:#4453ea"
                  moz-do-not-send="true">www.avast.com</a> </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>