Dear all<br><br> I have solve my multidomain configuration with ser-0.9.6 and it is working fine for me and i am sending you my configuration for incomming users whos want do some stuff wid ser i have find many document on multi-support and i have consolidate all document and make my ser.cfg script or config<br><br>cat /usr/local/etc/ser/ser.cfg<br><br>#<br># $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $<br>#<br># simple quick-start config script<br>#<br><br># ----------- global configuration parameters ------------------------<br><br>#debug=7 # debug level (cmd line: -dddddddddd)<br>#fork=yes<br>#log_stderror=yes # (cmd line: -E)<br><br>/* Uncomment these lines to enter debugging mode<br>debug=7<br>fork=no<br>log_stderror=yes<br>*/<br><br>check_via=no # (cmd. line:
-v)<br>dns=no # (cmd. line: -r)<br>rev_dns=no # (cmd. line: -R)<br>listen=192.168.104.20<br>port=5060<br>#children=4<br>fifo="/tmp/ser_fifo"<br><br># ------------------ module loading ----------------------------------<br><br># Uncomment this if you want to use SQL database<br>loadmodule "/usr/local/lib/ser/modules/mysql.so"<br>loadmodule "/usr/local/lib/ser/modules/domain.so"<br><br>loadmodule "/usr/local/lib/ser/modules/sl.so"<br>loadmodule "/usr/local/lib/ser/modules/tm.so"<br>loadmodule "/usr/local/lib/ser/modules/rr.so"<br>loadmodule "/usr/local/lib/ser/modules/maxfwd.so"<br>loadmodule "/usr/local/lib/ser/modules/usrloc.so"<br>loadmodule "/usr/local/lib/ser/modules/registrar.so"<br>#loadmodule "/usr/local/lib/ser/modules/call.so"<br>#loadmodule "/usr/local/lib/ser/modules/vm.so"<br><br># Uncomment this if you want digest authentication<br># mysql.so must be loaded !<br>loadmodule
"/usr/local/lib/ser/modules/auth.so"<br>loadmodule "/usr/local/lib/ser/modules/auth_db.so"<br><br># ----------------- setting module-specific parameters ---------------<br><br># -- usrloc params --<br><br>#modparam("usrloc", "db_mode", 0)<br><br># Uncomment this if you want to use SQL database<br># for persistent storage and comment the previous line<br>modparam("usrloc", "db_mode", 0)<br><br># -- auth params --<br># Uncomment if you are using auth module<br>#<br>modparam("auth_db", "calculate_ha1", yes)<br>#<br># If you set "calculate_ha1" parameter to yes (which true in this config),<br># uncomment also the following parameter)<br><br>modparam("auth_db", "password_column", "password")<br><br># -- rr params --<br># add value to ;lr param to make some broken UAs happy<br>modparam("rr", "enable_full_lr", 1)<br><br><br>modparam("domain", "db_url", "mysql://root:mypasswd@localhost/ser")<br>modparam("domain", "db_mode", 1) # Use
chaching<br>modparam("domain", "domain_table", "domain")<br>modparam("domain", "domain_col", "domain")<br><br>modparam("usrloc|registrar|auth_db|avpops|group", "use_domain", 1)<br>#modparam("usrloc", "use_domain", 1)<br>#modparam("registrar", "use_domain", 1)<br><br># ------------------------- request routing logic -------------------<br><br># main routing logic<br><br>route{<br><br> # initial sanity checks -- messages with<br> # max_forwards==0, or excessively long requests<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");<br> break;<br> };<br> if ( msg:len > max_len )
{<br> sl_send_reply("513", "Message too big");<br> break;<br> };<br><br> # we record-route all messages -- to make sure that<br> # subsequent messages will go through our proxy; that's<br> # particularly good if upstream and downstream entities<br> # use different transport protocol<br> record_route();<br> # loose-route processing<br> if (loose_route()) {<br>
t_relay();<br> break;<br> };<br><br> # if the request is for other domain use UsrLoc<br> # (in case, it does not work, use the following command<br> # with proper names and addresses in it)<br> #-----------Multi-domain Logic work blow in stanza--------#<br> if (is_from_local()) {<br><br> if (method=="REGISTER") {<br># Uncomment this if you want to use digest authentication<br> if (!www_authorize("", "subscriber"))
{<br> www_challenge("", "0");<br> break;<br> };<br><br> save("location");<br> break;<br>
save("aliases");<br> break;<br> };<br><br>#----Alias check---<br><br># lookup("aliases");<br># if (!uri==myself) {<br># route(1);<br># break;<br>#
};<br><br><br> # native SIP destinations are handled using our USRLOC DB<br> if (!lookup("location")) {<br> sl_send_reply("404", "Not Found");<br> break;<br> };<br> };<br> # forward to current uri now; use stateful forwarding; that<br> # works reliably even if we forward from TCP to UDP<br> if (!t_relay())
{<br> sl_reply_error();<br> };<br><br>}<br><br><br>#-----END---#<br><br><br>Now to test configuration start ser<br><br>#serctl start<br>#serctl domain add abc.com<br>#serctl add 222@abc.com tulip 222@abc.com<br>#serctl add 333@abc.com tulip 333@abc.com<br><br>this to user 222 and 333 for domain abc.com<br><br>**Notes:- you should configure SRV recode on your DNS otherwise it will not work for you <br><br>NOW configure your Xlite and try to call each other<br><br>Then try to add new domain and do same thing which u have done before abc.com<br><br>Thanks and Best of Luck<br><br><br><BR><BR><span style="font-family: arial black; color: rgb(0, 0, 0);">$ cat
~/satish/url.txt </span><br style="font-family: arial black; color: rgb(0, 0, 0);"><br style="font-family: arial black; color: rgb(0, 0, 0);"><span style="font-family: arial black; color: rgb(0, 0, 0);">http://www.linuxbug.org<br>_____________________________________________________________________________________________________<br></span><p> 
<!--8--><hr size=1></hr> Share files, take polls, and discuss your passions - all under one roof. <a href="http://in.rd.yahoo.com/tagline_groups_8/*http://in.promos.yahoo.com/groups"> Click here.</a>