<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hi, Michele!<br>
        <br>
        Check the tutorial and description of the pua_dialoginfo
        module[1]. You can find some config examples over there.<br>
        <br>
        [1]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Tutorials-PUAExtensions#pua_dialoginfo">http://www.opensips.org/Documentation/Tutorials-PUAExtensions#pua_dialoginfo</a><br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
      On 10/29/2014 12:49 PM, Michele Pinassi wrote:<br>
    </div>
    <blockquote cite="mid:5450C62F.9010208@unisi.it" type="cite">
      <pre wrap="">Hi all,

on our opensips system i'm trying to implement PRESENCE-BLF
funcionality, where the boss phone (Snom 760) "subscribe" the workers
line and see when they are busy/free.

As i see, here's my opensips.cfg relevant parts:

[...]
#### PRESENCE modules
loadmodule "presence.so"
loadmodule "presence_xml.so"
loadmodule "presence_mwi.so"
loadmodule "presence_callinfo.so"
loadmodule "xcap.so"

modparam("presence", "server_address", <a class="moz-txt-link-rfc2396E" href="mailto:sip:sa@172.20.1.2:5060">"sip:sa@172.20.1.2:5060"</a>)
modparam("presence_xml", "force_active", 1)

modparam("xcap","db_url",<a class="moz-txt-link-rfc2396E" href="mailto:mysql://voip:4LaGjZCK8C6pp3RK@mysql.unisi.it/opensips">"mysql://voip:4LaGjZCK8C6pp3RK@mysql.unisi.it/opensips"</a>)
modparam("xcap", "integrated_xcap_server", 1)

[...]

and simply add a route for presence:

[...]
    if( is_method("PUBLISH|SUBSCRIBE"))
            route(handle_presence);

[...]
# Presence route

route[handle_presence] {
    xlog("L_INFO","Route PRESENCE [$fd/$fu/$rd/$ru/$si/]\n");
    if(!t_newtran()){
        sl_reply_error();
        exit;
    }

    if (is_method("PUBLISH")) {
        handle_publish();
    }
   
    if (is_method("SUBSCRIBE")) {
    handle_subscribe();
    }
    exit;
}
[...]

on the boss phone (5002) i set up BLF for 5009 but BLF simply don't work.

On Opensips logs i have:

Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]: Route PRESENCE
[<a class="moz-txt-link-abbreviated" href="mailto:voip.unisi.it/sip:5002@voip.unisi.it:5060/voip.unisi.it/sip:5008@voip.unisi.it:5060;user=phone/172.20.1.10/">voip.unisi.it/sip:5002@voip.unisi.it:5060/voip.unisi.it/sip:5008@voip.unisi.it:5060;user=phone/172.20.1.10/</a>]
Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]:
<a class="moz-txt-link-freetext" href="INFO:presence:handle_subscribe">INFO:presence:handle_subscribe</a>: Missing or unsupported event header
field value
Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]:
<a class="moz-txt-link-freetext" href="INFO:presence:handle_subscribe">INFO:presence:handle_subscribe</a>: #011event= dialog
[...]
Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]: Route PRESENCE
[<a class="moz-txt-link-abbreviated" href="mailto:voip.unisi.it/sip:5022@voip.unisi.it:5060/voip.unisi.it/sip:*98@voip.unisi.it:5060;user=phone/172.20.2.12/">voip.unisi.it/sip:5022@voip.unisi.it:5060/voip.unisi.it/sip:*98@voip.unisi.it:5060;user=phone/172.20.2.12/</a>]
Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]:
<a class="moz-txt-link-freetext" href="INFO:presence:update_subscription">INFO:presence:update_subscription</a>: notify
Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]:
<a class="moz-txt-link-freetext" href="INFO:presence:send_notify_request">INFO:presence:send_notify_request</a>: NOTIFY <a class="moz-txt-link-abbreviated" href="mailto:sip:5022@voip.unisi.it">sip:5022@voip.unisi.it</a> via
<a class="moz-txt-link-abbreviated" href="mailto:sip:5022@172.20.2.12:32768">sip:5022@172.20.2.12:32768</a> on behalf of <a class="moz-txt-link-abbreviated" href="mailto:sip:*98@voip.unisi.it">sip:*98@voip.unisi.it</a> for event
message-summary, to_tag=f315b2d58ae8829149b784764c5a40e3-c2fb, cseq=1


Moreover, i've tried to see how watchers/presentity works but i'm not
able to find any tutorial....hints ? Suggestions ?

Thanks, Michele

</pre>
      <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>