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
--
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)2169 - fax: 0577.(23)2053
Per trovare una soluzione rapida ai tuoi problemi tecnici
consulta le FAQ di Ateneo, http://www.faq.unisi.it
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
