[OpenSER-Devel] Presence server configuration file (devel)
Adrian Georgescu
ag at ag-projects.com
Sun Jun 24 11:05:33 CEST 2007
Try this:
===============================
fork = yes
debug = 3
log_stderror = no
log_facility = LOG_LOCAL0
# ------------------ module loading ----------------------------------
mpath="/usr/local/openser/lib/openser/modules/"
loadmodule "mysql.so"
loadmodule "sl.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "presence.so"
loadmodule "presence_xml.so"
loadmodule "xlog.so"
loadmodule "mi_fifo.so"
loadmodule "mi_xmlrpc.so"
loadmodule "pua.so"
loadmodule "pua_mi.so"
loadmodule "usrloc.so"
loadmodule "permissions.so"
loadmodule "xmpp.so"
loadmodule "pua_xmpp.so"
modparam("mi_fifo", "fifo_name", "/usr/local/openser/tmp/openser_fifo")
modparam("mi_fifo", "reply_dir", "/usr/local/openser/tmp/")
modparam("mi_fifo", "reply_indent", "/usr/local/openser/tmp/
openser_reply")
modparam("mi_xmlrpc", "log_file", "/var/log/openser-xmlrpc.log")
modparam("mi_xmlrpc", "port", 8080)
# ----------------- setting module-specific parameters ---------------
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# -- presence params --
modparam("presence|pua", "db_url", "mysql://openser:openser@db/openser")
modparam("presence", "server_address", "sip:XXX.XXX.XXX.XXX:5060")
# -- xcap params --
modparam("presence_xml", "db_url", "mysql://openser:openser@db/openser")
modparam("presence_xml", "force_active", 0)
modparam("presence_xml", "xcap_table", "xcap_xml")
modparam("presence_xml", "pidf_manipulation", 1)
# -- permissions params --
modparam("permissions", "db_url", "mysql://openser:openser@db/openser")
# ------------------------- request routing logic -------------------
# main routing logic
route {
if (!mf_process_maxfwd_header("10")) {
xlog("L_ERR", "Too many hops");
if (method!="ACK") {
force_rport();
sl_send_reply("483", "Too many hops");
}
return;
}
if (msg:len >= max_len) {
xlog("L_ERR", "Message too big");
if (method!="ACK") {
force_rport();
sl_send_reply("513", "Message too big");
}
return;
}
# accept requests only from SIP Proxies that we trust and
perform AAA
if (!allow_trusted()) {
xlog("L_ERR", "$rm from $fu ($si:$sp) to $tu: Reject with
403, not a trusted party");
force_rport();
sl_send_reply("403", "Not a trusted party");
exit;
}
xlog("L_INFO", "----- Start routing");
if(is_method("PUBLISH")) {
xlog("L_INFO", "$rm $hdr(event) for $fu ($ua)");
if (!t_newtran()) {
sl_reply_error();
exit;
};
handle_publish();
t_release();
} else if( is_method("SUBSCRIBE")) {
xlog("L_INFO", "$rm $hdr(event) from $fu to $ru ($ua)");
if (!t_newtran()) {
sl_reply_error();
exit;
};
handle_subscribe();
t_release();
} else {
xlog("L_INFO", "Method $rm Not Acceptable Here");
sl_send_reply("488", "Not Acceptable Here");
exit;
};
}
===============================
On Jun 23, 2007, at 7:13 PM, Reinhold Buchinger wrote:
> Hi!
>
> Can anybody tell me where I can find a working configuration file
> for a Presence Server using the devel version? The configuration
> file from the wiki does not work with the devel version...
>
> Thanks!
>
> Best regards,
> Reinhold
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
More information about the Devel
mailing list