Thank Dave!<div><br></div><div>When going to the "MI commands" tab, surprisingly i found that </div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; -webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; -webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px; ">"Cannot connect to OpenSIPS Server via Management Interface (<a href="http://127.0.0.1/8000">127.0.0.1/8000</a>)<br>
<form action="http://10.2.14.122/cp/tools/system/mi/mi.php?action=execute" method="post" name="form"><table width="500" cellspacing="2" cellpadding="2" border="0" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: rgb(0, 0, 0); ">
<tbody><tr><td colspan="2" class="miTitle" align="center">Execute MI Command"<br><div style="text-align: left;"><br></div><div style="text-align: left;">After i executed the "ps -A" command, i only got this</div>
<div style="text-align: left;">"<span class="Apple-style-span" style="font-size: 11px; "><i>14:02:20</i> | <b>ps -A </b> | <a href="http://127.0.0.1:8000">127.0.0.1:8000</a>"</span></div><div style="text-align: left;">
<span class="Apple-style-span" style="font-size: 11px; "><br></span></div><div style="text-align: left;"><span class="Apple-style-span" style="font-size: 11px; ">The same result for "opensipsctl online" command</span></div>
<div style="text-align: left;"><span class="Apple-style-span" style="font-size: 11px; "> "</span><span class="Apple-style-span" style="font-size: 11px; "><i>14:04:37</i> | <b> opensipsctl online </b> | <a href="http://127.0.0.1:8000">127.0.0.1:8000</a>" </span></div>
<div style="text-align: left;"><span class="Apple-style-span" style="font-size: 11px; "><br></span></div><div style="text-align: left;"><span class="Apple-style-span" style="font-size: 11px; ">And i think the problem is my CP does not connect to my Opensips server on 5060 port. I remember that i have not configured CP listening port before, it is default :-(</span></div>
<div style="text-align: left;"><span class="Apple-style-span" style="font-size: 11px; ">(CP & Opensips server were installed in the same machine) </span></div></td></tr></tbody></table></form></span></div><div>Checking these files "db.inc.php" ; local.inc.php; globals.php in the CP config directory "/var/www/opensips-cp/config"</div>
<div>I don't see anywhere to config CP listening port !</div><div><br></div><div>Please help me to figure out, thanks! </div><div><br></div><div><div class="gmail_quote">2011/3/24 Dave Singer <span dir="ltr"><<a href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Duong,<br>
<br>
Yea missed that. :-)<br>
To check basic CP connection to opensips, go to System, MI Commands.<br>
In box under Execute MI Command, put "ps" and click "execute". It<br>
should show a bunch of lines about the opensips processes that are<br>
running.<br>
<br>
As far as showing Online Users, it may be using presence module/table<br>
rather than active registrations to qualify a user as "online".<br>
Someone else will have to answer that or you can look at the CP source<br>
code for that answer.<br>
<br>
Dave<br>
<br>
On Wed, Mar 23, 2011 at 12:35 PM, Duong Manh Truong<br>
<div><div></div><div class="h5"><<a href="mailto:ngoahotanglongbk@gmail.com">ngoahotanglongbk@gmail.com</a>> wrote:<br>
> Thank David,<br>
> But i found that in my opensips.cfg file:<br>
> "<br>
> # ----- usrloc params -----<br>
> # modparam("usrloc", "db_mode", 0)<br>
> /* uncomment the following lines if you want to enable DB persistency<br>
> for location entries */<br>
> modparam("usrloc", "db_mode", 2)<br>
> modparam("usrloc", "db_url",<br>
> "mysql://opensips:opensipsrw@localhost/opensips")<br>
> "<br>
> So i think that my "db_mode" is not the cause of my failed CP<br>
> " 2 - Write-Back scheme. This is a combination of previous two schemes. All<br>
> changes are made to memory and database synchronization is done in the<br>
> timer. The timer deletes all expired contacts and flushes all modified or<br>
> new contacts to database. Use this scheme if you encounter high-load peaks<br>
> and want them to process as fast as possible. The mode will not help at all<br>
> if the load is high all the time. Also, latency of this mode is much lower<br>
> than latency of mode 1, but slightly higher than latency of mode 0."<br>
> My CP still does not work :-( , even the simple function like "show online<br>
> user" --- "no data found"<br>
> (While checking by using opensipsctl is ok)<br>
> opensipsctl online<br>
> database engine 'MYSQL' loaded<br>
> Control engine 'FIFO' loaded<br>
> 1001<br>
><br>
> Please tell me how to check my CP and its connection to Opensips server?<br>
> Thanks !<br>
><br>
><br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Tue, 22 Mar 2011 21:06:21 -0700<br>
> From: Dave Singer <<a href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>><br>
> Subject: Re: [OpenSIPS-Users] Opensips Control Pannel does not take<br>
> effect into Opensips Server<br>
> To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
> Message-ID:<br>
> <AANLkTimB=bQZ1buVKaWzMKq2LM=<a href="mailto:UsLhEsAQWW%2BuFrrw7@mail.gmail.com">UsLhEsAQWW+uFrrw7@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset=ISO-8859-1<br>
><br>
> The key I think is usrloc db mode is 0, which means db is not used.<br>
> <a href="http://www.opensips.org/html/docs/modules/1.6.x/usrloc.html#id292029" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/usrloc.html#id292029</a><br>
><br>
> On Tue, Mar 22, 2011 at 6:47 PM, Duong Manh Truong<br>
> <<a href="mailto:ngoahotanglongbk@gmail.com">ngoahotanglongbk@gmail.com</a>> wrote:<br>
>> Dear Dave!<br>
>> Thanks for your help.<br>
>> I've checked the opensips.cfg again but i still can not find out what<br>
>> stuff<br>
>> is incorrect ! :-(<br>
>> I attached my config file in this email, hope that will help my problem to<br>
>> be?clearer!<br>
>> If anyone has had the same issue, please tell me how can i check or fix<br>
>> it.<br>
>> (Hope to receive relatively specific informations)<br>
>> Thanks and Best Regards.<br>
>><br>
>><br>
>><br>
>> Date: Mon, 21 Mar 2011 08:45:03 -0700<br>
>> From: Dave Singer <<a href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>><br>
>> Subject: Re: [OpenSIPS-Users] Opensips Control Pannel does not take<br>
>> ? ? ? ?effect into Opensips Server<br>
>> To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
>> Message-ID:<br>
>> ? ? ? ?<<a href="mailto:AANLkTinGLDzzbUgJgQXOd_93r31hjnHAVAzPMo64K-MQ@mail.gmail.com">AANLkTinGLDzzbUgJgQXOd_93r31hjnHAVAzPMo64K-MQ@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset=ISO-8859-1<br>
>><br>
>> Duong,<br>
>><br>
>> Some modules, like drouting, you have to click a reload module button<br>
>> in the control pannel.<br>
>> However, I think your problem is that you haven't implemented the<br>
>> needed stuff in opensips.cfg script.<br>
>> CP only provides an interface to managing/accessing the databases<br>
>> tables. You still have to impliment the logic in opensips.cfg.<br>
>><br>
>> Dave<br>
>><br>
>> On Sat, Mar 19, 2011 at 3:04 AM, Duong Manh Truong<br>
>> <<a href="mailto:ngoahotanglongbk@gmail.com">ngoahotanglongbk@gmail.com</a>> wrote:<br>
>>> Hi all,<br>
>>> I have followed all instructions about Opensips CP installations<br>
>>> After done all configurations, the Web interface is appeared<br>
>>> but unfortunately, when i use modules in this interfaces, it seems there<br>
>>> is<br>
>>> no connection between Opensips CP and Opensips Server Core!<br>
>>> Take add/manage users module as an example: I registered user 1001, then<br>
>>> i<br>
>>> selected this module to show online users<br>
>>> => But the result was "no data found" :-(<br>
>>> I've created opensips database, correctly insert parameters to opensips<br>
>>> CP<br>
>>> config files (including mysql user/pass to connect to opensips database)<br>
>>> No error found !<br>
>>> But i still can not use Opensips CP, someone help me to figure out why<br>
>>> Opensips CP has no effect ??<br>
>>> Do i misconfig ?(or forget to config) some important parameters to make<br>
>>> Opensips CP connect properly to Opensips Server Core?<br>
>>> (Something likes authentications........etc)<br>
>>> Thanks a lot!<br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>>?<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>?<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
>><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>