[OpenSIPS-Users] BLF and PRESENCE
Răzvan Crainea
razvan at opensips.org
Thu Oct 30 12:26:48 CET 2014
Hi, Michele!
Check the tutorial and description of the pua_dialoginfo module[1]. You
can find some config examples over there.
[1]
http://www.opensips.org/Documentation/Tutorials-PUAExtensions#pua_dialoginfo
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 10/29/2014 12:49 PM, Michele Pinassi wrote:
> 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", "sip:sa at 172.20.1.2:5060")
> modparam("presence_xml", "force_active", 1)
>
> modparam("xcap","db_url","mysql://voip:4LaGjZCK8C6pp3RK@mysql.unisi.it/opensips")
> 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
> [voip.unisi.it/sip:5002 at voip.unisi.it:5060/voip.unisi.it/sip:5008 at voip.unisi.it:5060;user=phone/172.20.1.10/]
> Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]:
> INFO:presence:handle_subscribe: Missing or unsupported event header
> field value
> Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]:
> INFO:presence:handle_subscribe: #011event= dialog
> [...]
> Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]: Route PRESENCE
> [voip.unisi.it/sip:5022 at voip.unisi.it:5060/voip.unisi.it/sip:*98 at voip.unisi.it:5060;user=phone/172.20.2.12/]
> Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]:
> INFO:presence:update_subscription: notify
> Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]:
> INFO:presence:send_notify_request: NOTIFY sip:5022 at voip.unisi.it via
> sip:5022 at 172.20.2.12:32768 on behalf of sip:*98 at voip.unisi.it 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141030/bef38ff7/attachment.htm>
More information about the Users
mailing list