[Users] Problem with module dispatcher funtion ds_next_dst()
Edson
4lists at gmail.com
Tue Jul 11 04:33:18 CEST 2006
Look line 128, columns 25 and 26... there is something wrong.... ;)
Edson.
P.S.: After fixing, try openser c <Your-config-file> to get rid all
syntax errors. :-)
_____
From: users-bounces at openser.org [mailto:users-bounces at openser.org] On Behalf
Of Jose Gil Navarrete
Sent: segunda-feira, 10 de julho de 2006 21:06
To: users at openser.org
Subject: [Users] Problem with module dispatcher funtion ds_next_dst()
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.kamailio.org/pipermail/users/attachments/20060710/7a61d363/attachment.htm
More information about the Users
mailing list