[Serusers] Presence agent: not responding to update in usrloc
Johan Bilien
jobi at via.ecp.fr
Fri May 20 21:16:48 CEST 2005
Hi,
I'm trying to setup the pa module in ser-0.9.0.
I am using:
modparam("pa", "pa_domain", "bilien.org")
modparam("pa", "use_db", 1)
modparam("pa", "db_url", "mysql://ser:heslo@localhost/ser")
then in the route():
if (uri==myself) {
if (method=="SUBSCRIBE") {
if (t_newtran()) {
handle_subscription("registrar");
break;
};
};
This seems to work fine, as a SUBSCRIBE message results in
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: handle_subscription() entered
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: get_pres_uri: _puri=sip:foo at bar
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher starting
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher: _p->uri=johan-xten at bilien.org
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: db_new_watcher: watcher->uri=johan-kphone at bilien.org
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher: watcher->package=presence
May 20 21:09:08 coruscant /usr/sbin/ser[18496]: new_watcher: status=active
in the logs.
But when I then register with foo at bar, nothing happens. I don't get any
NOTIFY, nor do I get something in the logs.
I can recompile and add some printf, see if the pa callback
is registered and called in usrloc, but I thought I'd first ask here if
someone sees what the problem is.
Thanks,
Johan.
More information about the sr-users
mailing list