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:[email protected]:5060")
modparam("presence_xml", "force_active", 1)
modparam("xcap","db_url","mysql://voip:[email protected]/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:[email protected]:5060/voip.unisi.it/sip:[email protected]: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:[email protected]:5060/voip.unisi.it/sip:*[email protected]: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:[email protected] via
sip:[email protected]:32768 on behalf of sip:*[email protected] 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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users