listen=udp:196.211.9.222
port=5065
loadmodule "presence.so"
loadmodule "avpops.so"
loadmodule "auth.so"
loadmodule "auth_db.so"
loadmodule "mi_fifo.so"
loadmodule "uri.so"
loadmodule "uri_db.so"
loadmodule "nathelper.so"
loadmodule "textops.so"
loadmodule "acc.so"
loadmodule "domain.so"
loadmodule "pua.so"
loadmodule "pua_mi.so"
loadmodule "pua_usrloc.so"
modparam("usrloc|auth_db|uri_db|acc", "db_url",
mysql://openser:password@localhost/openser")
modparam("presence|pua", "db_url",
"mysql://openser:password@localhost/openser")
modparam("pua_usrloc", "default_domain", "196.211.9.222")
modparam("presence", "force_active", 1)
modparam("presence", "max_expires", 3600)
modparam("presence", "server_address",
"sip:196.211.9.222:5065")
if( is_method("PUBLISH|SUBSCRIBE"))
{
route(4);
}
if (method=="REGISTER") {
xlog("L_INFO", "Kyk of ek moet PUBLISH........................\n");
if(!search("^User-Agent: X-Lite"))
{
xlog("L_INFO", "JA - ek moet PUBLISH........................\n");
pua_set_publish();
}
save("location");
exit;
};
# presence handling route
route[4]
{
xlog("L_INFO","Route 4........................................\n");
sl_send_reply("100","trying");
# absorb retransmissions
if (! t_newtran())
{
xlog("L_INFO", "Not new
transaction.................................\n");
sl_reply_error();
exit;
};
#
append_to_reply("Contact: <sip:196.211.9.222:5065>\r\n");
if(is_method("PUBLISH"))
{
xlog("L_INFO", "Handling
PUBLISH.................................\n");
handle_publish();
t_release();
} else if( is_method("SUBSCRIBE")) {
xlog("L_INFO", "Handling
SUBSCRIBE.................................\n");
handle_subscribe();
t_release();
};
exit;
}
Show replies by date
All seems ok.
Don't you see a message (ERROR or WARNING) in the logs
after "pua_set_publish();"?
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es