[OpenSER-Users] multi-domain support
satish patel
satish_patel_2000_2000 at yahoo.com
Wed Oct 24 07:42:50 CEST 2007
Dear all
I Am working on Voip projects asterisk,freeswitch and other opensource software. now i come on Openser community i have setup of openser and it is working fine with mysql base user authentication verything runing fine now i want to implement multi-domain support with openser but i am stuck in some problem i have read doc and implement configuation but there is some problem
My configure file
openser.cfg
fork=no
log_stderror=yes
port=5060
children=4
port=5060
children=4
fifo="/tmp/openser_fifo"
fifo_db_url="mysql://root:tulip786@localhost/openser"
loadmodule "/usr/lib/openser/modules/mysql.so"
loadmodule "/usr/lib/openser/modules/sl.so"
loadmodule "/usr/lib/openser/modules/tm.so"
loadmodule "/usr/lib/openser/modules/rr.so"
loadmodule "/usr/lib/openser/modules/maxfwd.so"
loadmodule "/usr/lib/openser/modules/usrloc.so"
loadmodule "/usr/lib/openser/modules/registrar.so"
loadmodule "/usr/lib/openser/modules/textops.so"
loadmodule "/usr/lib/openser/modules/xlog.so"
loadmodule "/usr/lib/openser/modules/auth.so"
loadmodule "/usr/lib/openser/modules/auth_db.so"
loadmodule "/usr/lib/openser/modules/uri_db.so"
loadmodule "/usr/lib/openser/modules/domain.so"
modparam("auth_db|uri_db|domain|usrloc", "db_url", "mysql://root:tulip786@localhost/openser")
modparam("usrloc", "db_mode", 2)
modparam("rr", "enable_full_lr", 1)
modparam("xlog", "buf_size", 8192)
route {
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
return;
};
if (msg:len > max_len) {
sl_send_reply("513", "Message Overflow");
return;
};
if (method!="REGISTER") {
record_route();
};
if (loose_route()) {
route(1);
return;
};
if (!is_from_local()) {
sl_send_reply("403", "Unknown domain");
return;
};
if (method=="ACK") {
route(1);
return;
} if (method=="INVITE") {
route(3);
return;
} else if (method=="REGISTER") {
route(2);
return;
};
lookup("aliases");
if (uri!=myself) {
route(1);
return;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
return;
};
route(1);
}
route[1] {
if (!t_relay()) {
sl_reply_error();
};
}
route[2] {
sl_send_reply("100", "Trying");
if (!check_to()) {
sl_send_reply("401", "Unauthorized");
return;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
consume_credentials();
lookup("aliases");
if (uri!=myself) {
route(1);
return;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
return;
};
route(1);
}
but this is not working for me ??
I have created domain in mysql domain tables
anyone have runing configuration of multidoamin support in openser
Satish Patel
http://linuxbug.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20071023/007c39e9/attachment.htm>
More information about the sr-users
mailing list