[Users] Problem with module dispatcher funtion ds_next_dst()
Jose Gil Navarrete
gijoenav at yahoo.com.mx
Tue Jul 11 02:06:18 CEST 2006
Hi, somebody can help me?? I am trying to set up OpenSer 1.0.1 like dispatcher to loadbalance and failover but when I use ds_next_dst() for failover I obtain the next error:
0(19024) parse error (128,25-26): unknown command, missing loadmodule?
ERROR: bad config file (1 errors)
My config file is the next:
loadmodule "/lib/openser/modules/sl.so"
loadmodule "/lib/openser/modules/tm.so"
loadmodule "/lib/openser/modules/rr.so"
loadmodule "/lib/openser/modules/maxfwd.so"
loadmodule "/lib/openser/modules/usrloc.so"
loadmodule "/lib/openser/modules/registrar.so"
loadmodule "/lib/openser/modules/textops.so"
loadmodule "/lib/openser/modules/dispatcher.so"
loadmodule "/lib/openser/modules/avpops.so"
modparam("dispatcher", "list_file", "/usr/local/etc/openser/dispatcher.list")
modparam("dispatcher", "force_dst", 1)
modparam("dispatcher", "flags", 2)
route{
if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
drop();
};
ds_select_dst("2","0");
sl_send_reply("100","Trying");
forward(uri:host, uri:port);
t_on_failure("1");
if (!t_relay()) {
sl_reply_error();
return;
};
}
failure_route[1] {
if (t_check_status("408")) {
if (ds_next_dst()) {
# On Failure: Choose next Proxy
t_on_failure("1");
# Relay to Proxy
t_relay();
} else {
t_reply("503", "Service not available");
return;
}
}
}
I try to use modparam("dispatcher", "dst_avp_id", 100) but I obtain:
0(19260) set_mod_param_regex: parameter <dst_avp_id> not found in module <dispatcher>
0(19260) parse error (86,21-22): Can't set module parameter
0(19260) parse error (128,25-26): unknown command, missing loadmodule?
ERROR: bad config file (2 errors)
---------------------------------
Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060710/452c8bcc/attachment.htm>
More information about the sr-users
mailing list