Hi Klaus,
Indeed i have read de README and trying to adapt my presence.cfg from version 1.2.0 to trunk version.
The problem is the messages SUBSCRIBE and PUBLISH have no response from openser.
I have using the following configuration:
... loadmodule "presence.so" loadmodule "presence_xml.so" ... modparam("presence|presence_xml","db_url","mysql://openser:openserrw@127 .0.0.1/openser") modparam("presence", "max_expires", 3600) modparam("presence", "server_address", "sip:10.112.128.218:5060" ) modparam("presence_xml", "force_active", 0) modparam("presence_xml", "xcap_table", "xcap_xml") modparam("presence_xml", "pidf_manipulation", 0) ... if (uri==myself) { # presence handling if( is_method("PUBLISH|SUBSCRIBE")){ route(2); }; ...
route[2] { # absorb retransmissions if (! t_newtran()) { sl_reply_error(); exit; };
if(is_method("PUBLISH")){ handle_publish(""); t_release(); } else if( is_method("SUBSCRIBE")) { handle_subscribe(); t_release(); };
exit; }
Is there something missing?
Best Regards Toni
-----Original Message----- From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at] Sent: quarta-feira, 6 de Junho de 2007 18:53 To: Toni Barata Cc: users@openser.org Subject: Re: [Users] presence cfg example for trunk versions
Toni Barata wrote:
Hi all
Can someone send me an openser.cfg example with presence support for trunk version?
Can you read the documentation of the presence module? ;-)
if(is_method("PUBLISH")) { handle_publish(""); } ...
if(method=="SUBSCRIBE") handle_subscribe();
regards klaus