Hi Dave, <div>My default config in was :</div><div><div>// default: $boxes[$box_id]['mi']['conn']="<a href="http://127.0.0.1:8000">127.0.0.1:8000</a>";</div><div>// default: $boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";</div>
</div><div><br></div><div>then i changed it to</div><div><div>$boxes[$box_id]['mi']['type']="fifo";</div><div>$boxes[$box_id]['mi']['fifo']="/tmp/opensips_fifo";</div><div>
<br></div></div><div>And i found some functions of CP works such as: Add/edit users; Add/edit domain.</div><div>But a lot of others still dont work such as: cdrs, show online users, ........</div><div><br></div><div>I see the "apply changes to server" button, i hit it and get this message for a new web browser tab:</div>
<div>"<a href="http://10.2.14.122/cp/tools/system/domains/apply_changes.php">http://10.2.14.122/cp/tools/system/domains/apply_changes.php</a></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">Cannot connect to OpenSIPS Server via Management Interface ()"</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">I come to /cp/tools/system/domains but find no "apply_changes.php" file :-(</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><br></span></div><div><font class="Apple-style-span" face="'Times New Roman'" size="3">Please help me to find out how i can connect to Opensips Server and making changes</font></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3"><br></font></div><div><font class="Apple-style-span" face="'Times New Roman'" size="3">Thanks! </font></div><div><br><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>
The MI commands are for opensips and ps does NOT take any arguments.<br>
The easiest way for it to connect when on the same box is with fifo.<br>
Here is a snippet from the boxes.global.inc.php:<br>
/*==================== DEFINITION OF BOXES (servers) ========================*/<br>
// each server is a box<br>
$box_id=0;<br>
$boxes[$box_id]['mi']['type']="fifo";<br>
$boxes[$box_id]['mi']['fifo']="/tmp/opensips_fifo";<br>
<br>
This does require that opensips module mi_fifo is loaded and<br>
configured with the same path/file as you set in the config above<br>
(above path is the default path).<br>
opensipsctl uses it also (unless it was configured to use xmlrpc (not<br>
sure it can)).<br>
Opensips xmlrpc module by default lisetns on port 8000, not the sip<br>
port 5060. That is why you got that message.<br>
I've not been able to get xmlrpc to compile and work on Centos 5 servers.<br>
<br>
Dave<br>
<br>
On Thu, Mar 24, 2011 at 12:17 AM, Duong Manh Truong<br>
<div><div></div><div class="h5"><<a href="mailto:ngoahotanglongbk@gmail.com">ngoahotanglongbk@gmail.com</a>> wrote:<br>
><br>
> Thank Dave!<br>
> When going to the "MI commands" tab, surprisingly i found that<br>
> "Cannot connect to OpenSIPS Server via Management Interface (<a href="http://127.0.0.1/8000" target="_blank">127.0.0.1/8000</a>)<br>
> Execute MI Command"<br>
><br>
> After i executed the "ps -A" command, i only got this<br>
> "14:02:20 | ps -A | <a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>"<br>
> The same result for "opensipsctl online" command<br>
> "14:04:37 | opensipsctl online | <a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>"<br>
> 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 :-(<br>
> (CP & Opensips server were installed in the same machine)<br>
> Checking these files "db.inc.php" ; local.inc.php; globals.php in the CP config directory "/var/www/opensips-cp/config"<br>
> I don't see anywhere to config CP listening port !<br>
> Please help me to figure out, thanks!<br>
> 2011/3/24 Dave Singer <<a href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>><br>
>><br>
>> 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>
>> <<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>
><br>
</div></div></blockquote></div><br></div>