<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>it looks like you expect dialog info notifications. You need to
      load dialog and pua_/presence_dialoginfo modules and configure
      them in your kamailio.cfg</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 22.11.18 13:33,
      <a class="moz-txt-link-abbreviated" href="mailto:denislav.tsonev@musala.com">denislav.tsonev@musala.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:OF65AAA666.71C2960C-ONC225834D.00433995-C225834D.0044FFFC@musala.com">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <font size="2" face="sans-serif">Hello,</font>
      <br>
      <br>
      <font size="2" face="sans-serif">I'm trying to configure Kamailio
        to
        be "Presence Server". Simple scheme: two phones (one "hard
        phone" Grandstream GXP1620 and "Soft phone" MicroSIP) and
        Kamailio server with default configuration. So when "MicroSIP"
        send SIP SUBSCRIBE to Kamailio, server response with SIP NOTIFY
        but without
        XML part. Then when hard phone change his status from "Ready"
        to "Ringing" and then "On-The-Phone" Kamailio is not
        sending any SIP NOTIFY messages. Is this normal behavior or I
        missed something?
        (In DB I have records in "active_watchers" and  "watchers"
        tables but not in "presentity" table)</font>
      <br>
      <font size="2" face="sans-serif">======================================================================</font>
      <br>
      <font size="2" face="sans-serif">====================== Module
        configuration:
        =============================</font>
      <br>
      <font size="2" face="sans-serif">======================================================================</font>
      <br>
      <br>
      <font size="2" face="sans-serif">#!ifdef WITH_PRESENCE</font>
      <br>
      <font size="2" face="sans-serif">loadmodule "presence.so"</font>
      <br>
      <font size="2" face="sans-serif">loadmodule "presence_xml.so"</font>
      <br>
      <font size="2" face="sans-serif">#!endif</font>
      <br>
      <br>
      <font size="2" face="sans-serif">#!ifdef WITH_PRESENCE</font>
      <br>
      <font size="2" face="sans-serif"># ----- presence params -----</font>
      <br>
      <font size="2" face="sans-serif">modparam("presence", "db_url",
        DBURL)</font>
      <br>
      <font size="2" face="sans-serif">modparam("presence",
        "server_address",
        <a class="moz-txt-link-rfc2396E" href="sip:10.0.6.123:5060">"sip:10.0.6.123:5060"</a>)</font>
      <br>
      <br>
      <font size="2" face="sans-serif"># ----- presence_xml params -----</font>
      <br>
      <font size="2" face="sans-serif">modparam("presence_xml",
        "db_url",
        DBURL)</font>
      <br>
      <font size="2" face="sans-serif">modparam("presence_xml",
        "force_active",
        1)</font>
      <br>
      <br>
      <font size="2" face="sans-serif">#!endif</font>
      <br>
      <br>
      <font size="2" face="sans-serif">======================================================================</font>
      <br>
      <br>
      <br>
      <font size="2" face="sans-serif">==============================================================</font>
      <br>
      <font size="2" face="sans-serif">======================== Route:
        ================================</font>
      <br>
      <font size="2" face="sans-serif">==============================================================</font>
      <br>
      <font size="2" face="sans-serif">route[PRESENCE] {</font>
      <br>
      <font size="2" face="sans-serif">       
        if(!is_method("PUBLISH|SUBSCRIBE"))</font>
      <br>
      <font size="2" face="sans-serif">           
            return;</font>
      <br>
      <br>
      <font size="2" face="sans-serif">#!ifdef WITH_PRESENCE</font>
      <br>
      <font size="2" face="sans-serif">        if (!t_newtran())
        {</font>
      <br>
      <font size="2" face="sans-serif">           
            sl_reply_error();</font>
      <br>
      <font size="2" face="sans-serif">           
            exit;</font>
      <br>
      <font size="2" face="sans-serif">        }</font>
      <br>
      <br>
      <font size="2" face="sans-serif">        if(is_method("PUBLISH"))
        {</font>
      <br>
      <font size="2" face="sans-serif">           
            handle_publish();</font>
      <br>
      <font size="2" face="sans-serif">           
            t_release();</font>
      <br>
      <font size="2" face="sans-serif">        } else
        if(is_method("SUBSCRIBE"))
        {</font>
      <br>
      <font size="2" face="sans-serif">           
            handle_subscribe();</font>
      <br>
      <font size="2" face="sans-serif">           
            t_release();</font>
      <br>
      <font size="2" face="sans-serif">        }</font>
      <br>
      <font size="2" face="sans-serif">        exit;</font>
      <br>
      <font size="2" face="sans-serif">#!endif</font>
      <br>
      <br>
      <font size="2" face="sans-serif">        # if presence
        enabled, this part will not be executed</font>
      <br>
      <font size="2" face="sans-serif">        if (is_method("PUBLISH")
        || $rU==$null) {</font>
      <br>
      <font size="2" face="sans-serif">           
            sl_send_reply("404", "Not here");</font>
      <br>
      <font size="2" face="sans-serif">           
            exit;</font>
      <br>
      <font size="2" face="sans-serif">        }</font>
      <br>
      <font size="2" face="sans-serif">        return;</font>
      <br>
      <font size="2" face="sans-serif">}</font>
      <br>
      <br>
      <font size="2" face="sans-serif">================================================================</font>
      <br>
      <font size="2" face="sans-serif"><br>
        Thanks in advance</font>
      <br>
      <table style="border-collapse:collapse;" width="573">
        <tbody>
          <tr height="8">
            <td colspan="2"
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="573">
              <hr>
            </td>
          </tr>
          <tr height="8">
            <td rowspan="3"
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="52"><img
                src="cid:part1.CD17E3F0.40CB00A7@gmail.com" alt="Musala
                Soft Jsc." style="border:0px solid;" class=""
                align="bottom">
            </td>
            <td
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="521"><font size="2"
                face="Arial"><b>Denislav
                  Raychev Tsonev</b>  |  Integration and Infrastructure
                Engineer
                |  <b>Musala Soft JSC</b> </font>
            </td>
          </tr>
          <tr height="8">
            <td
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="521"><a
                href="www.musala.com" moz-do-not-send="true"><font
                  size="1" face="Arial" color="#0060a0"><u>www.musala.com</u></font></a><font
                size="1" face="Arial" color="#808080">
                 |  t: +359 2 969 58 21   |  m: +359 878 270 965  
                |  f: +359 2 969 58 22 </font>
            </td>
          </tr>
          <tr height="8">
            <td
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="521"><font size="1"
                face="Arial" color="#808080">World
                Trade Center, 36 Dragan Tsankov blvd., Sofia 1057,
                Bulgaria </font>
            </td>
          </tr>
          <tr height="8">
            <td
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="52">
              <br>
            </td>
            <td
              style="border-style:solid;border-color:#000000;border-width:0px
              0px 0px 0px;padding:0px 0px;" width="521"><font size="1"><br>
              </font>
              <table style="border-collapse:collapse;" width="265">
                <tbody>
                  <tr height="8">
                    <td
                      style="border-style:solid;border-color:#000000;border-width:0px
                      0px 0px 0px;padding:0px 0px;" width="55"><a
                        href="https://www.facebook.com/MusalaSoft"
                        target="_blank" moz-do-not-send="true"><img
                          src="cid:part3.C3CC1364.954350A7@gmail.com"
                          alt="Find Us on Facebook" style="border:0px
                          solid;" class="" align="bottom"></a>
                    </td>
                    <td
                      style="border-style:solid;border-color:#000000;border-width:0px
                      0px 0px 0px;padding:0px 0px;" width="55"><a
                        href="https://www.linkedin.com/company/26544"
                        target="_blank" moz-do-not-send="true"><img
                          src="cid:part5.2C19710E.7B1DD310@gmail.com"
                          alt="LinkedIn Group" style="border:0px solid;"
                          class="" align="bottom"></a>
                    </td>
                    <td
                      style="border-style:solid;border-color:#000000;border-width:0px
                      0px 0px 0px;padding:0px 0px;" width="155"><a
                        href="https://muffin.musala.com/"
                        target="_blank" moz-do-not-send="true"><img
                          src="cid:part7.E9A4B07D.FF2A8121@gmail.com"
                          alt="Muffin Conference" style="border:0px
                          solid;" class="" align="bottom"></a></td>
                  </tr>
                </tbody>
              </table>
              <br>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>