<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Experts,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have been trying to configure IMC&nbsp; for
quite some time.I would like to know the reason why am i not gettin the
module working.I understand that the&nbsp; command to create chatroom is
#create roomname, but iam not very sure as to where do i add the create
chat room command .Kindly take time to go through my cfg file and tel
me where do i need to add the command&nbsp; to create chatroom.<br>
<br>
<br>
debug=4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)<br>
fork=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # don't fork<br>
log_stderror=yes&nbsp; # log to stderr (cmd line: -E)<br>
<br>
<br>
children=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # number of children<br>
check_via=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -v)<br>
dns=off&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -r)<br>
rev_dns=off&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -R)<br>
port=5066<br>
<br>
listen=192.168.64.75<br>
#alias="stefan.lo"<br>
<br>
# ------------------ module loading ----------------------------------<br>
mpath="/usr/local//lib/kamailio/modules/"<br>
loadmodule "db_mysql.so"<br>
<br>
loadmodule "textops.so"<br>
<br>
loadmodule "sl.so"&nbsp;&nbsp;&nbsp; <br>
loadmodule "maxfwd.so"<br>
loadmodule "imc.so"<br>
loadmodule "tm.so"<br>
loadmodule "xlog.so"<br>
loadmodule "registrar.so"<br>
loadmodule "usrloc.so"<br>
loadmodule "mi_fifo.so"<br>
<br>
# ----------------- setting module-specific parameters ---------------<br>
<br>
# -- mi_fifo params --<br>
<br>
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")<br>
<br>
# -- usrloc params --<br>
<br>
modparam("usrloc", "db_mode", 2)<br>
<br>
# -- registrar params --<br>
<br>
modparam("registrar", "default_expires", 120)<br>
<br>
# -- registrar params --<br>
<br>
modparam("usrloc", "db_mode", 0)<br>
<br>
# -- imc params --<br>
modparam("imc", "imc_cmd_start_char", "#")<br>
modparam("imc|usrloc", "db_url",
<a class="moz-txt-link-rfc2396E" href="mailto:mysql://openser:openserrw@192.168.64.75/openser">"mysql://openser:openserrw@192.168.64.75/openser"</a>)<br>
<br>
# -- tm params --<br>
<br>
modparam("tm", "fr_timer", 10 )<br>
modparam("tm", "fr_inv_timer", 15 )<br>
modparam("tm", "wt_timer", 10 )<br>
<br>
<br>
route{<br>
&nbsp;&nbsp;&nbsp; if ( !mf_process_maxfwd_header("10") )<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("483","To Many Hops");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drop();<br>
&nbsp;&nbsp;&nbsp; };<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # registrations -<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(is_method("REGISTER")) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; save("location");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #imc##if(uri=~<a class="moz-txt-link-rfc2396E" href="sip:q.*@">"sip:q.*@"</a>)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(uri=~<a class="moz-txt-link-rfc2396E" href="sip:chatroom000@192.168.64.75">"sip:chatroom000@192.168.64.75"</a>)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # IMC - message<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ##imc##&nbsp;&nbsp;&nbsp; xdbg("script: message from [$fu] r-uri [$ru] msg
[$rb]\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xdbg("script: message from [$fu]&nbsp; chatroom000 [$ru]
msg [$rb]\n");<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(is_method("MESSAGE"))<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; log("MESSAGE received -&gt; processing with imc\n");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("200", "ok");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; imc_manager();&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "not found");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ##edited as below for imc&nbsp;&nbsp;&nbsp; xdbg("script: message not for
room, from [$fu] r-uri [$ru] msg [$rb]\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xdbg("script: message not for room, from [$fu]
chatroom000 [$ru] msg [$rb]\n");<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!lookup("location"))<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "not found");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #sl_send_reply("200", "ok");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
<font color="Blue" face="Trebuchet MS" size="2"> Regards,<br>
Rajesh Sreedharan<br>
Software Trainee-Wireless &amp; Mobile Technology<br>
</font>
<br>
<font color="Black" face="Trebuchet MS" size="2"> SIPTECH Solutions
Limited<br>
G4, Elnet Software City, CPT Road,<br>
Taramani, Chennai - 600 113, India.<br>
Tel : +91 (44) 2254 1473/ 74<br>
Extn.:206<br>
Fax : +91 (44) 2254 1475<br>
E-Mail :<a href="mailto:Rajesh.Sreedharan@Siptech.com?">Rajesh.Sreedharan@Siptech.com</a><br>
Website : <a href="http://www.siptech.com/">www.siptech.com</a><br>
</font>
<a href="http://www.siptech.com"><img
 src="cid:part1.08080104.07070307@siptech.com"></a>
</div>
</body>
</html>