[OpenSIPS-Users] X-Lite presence
campusvtv
campusvtv at gmail.com
Fri Feb 27 02:23:52 CET 2015
Hello,
I'm trying to implement presence for X-Lite with pua y pua_usrloc modules.
My modules configuration is:
#### PUA modules
loadmodule "pua.so"
loadmodule "pua_usrloc.so"
modparam("pua", "db_url","mysql://opensips:opensipsrw@localhost/opensips")
modparam("pua_usrloc", "default_domain", "mypublicip")
and in REGISTER BLOCK:
if (is_method("REGISTER")) {
$var(autent_cod) = www_authorize("", "subscriber");
if ( $var(autent_cod) == -1 || $var(autent_cod) == -2 ) {
xlog("L_NOTICE","error de autenticación para $fU@$fd
desde $si causa $var(autent_cod)");
sl_send_reply("403","Forbidden");
exit;
}
if ( $var(autent_cod) < 0 ) {
www_challenge("", "0");
exit;
}
if(search("^User-Agent: X-Lite")) {
xlog("L_NOTICE","User-Agent es X-Lite");
pua_set_publish();
}
save("location","");
xlog("L_NOTICE","Usuario $fU Registrado");
exit;
}
on my LOG:
Feb 26 18:39:26 sip1 /sbin/opensips[27330]: Usuario 44444 Registrado
Feb 26 18:39:26 sip1 /sbin/opensips[27327]: User-Agent es X-Lite
Feb 26 18:39:26 sip1 /sbin/opensips[27327]: ERROR:pua_usrloc:ul_publish:
failed to send publish
Any hint?
Regards
More information about the Users
mailing list