Hi Dave!<div>I changed my config to</div><div>"$<i>box_id=0;</i><div><i><br></i></div><div><i>// mi host:port pair || fifo_file</i></div><div><i>//$boxes[$box_id]['mi']['type']="fifo";</i></div>
<div><i>//$boxes[$box_id]['mi']['fifo']="/tmp/opensips_fifo";</i></div><div><i><br></i></div><div><i>$boxes[$box_id]['mi']['conn']="<a href="http://127.0.0.1:8000">127.0.0.1:8000</a>";</i></div>
<div><i>$boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";</i></div><div>"</div><div>And i've got the same results: OK with add users only!</div><div><br></div><div>When i hit the "apply changes to server" button, i see this</div>
<div>"<span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">sorry -- cannot open write fifo"</span></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">Or when using MI commands:</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">"</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><i>10:40:18</i></span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "> | </span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><b> opensipsctl online </b></span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "> | /tmp/opensips_fifo</span></div>
<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><hr width="100%"><pre>sorry -- cannot open write fifo"</pre>
</span><div><font class="Apple-style-span" face="'Times New Roman'" size="3">Check the file: </font></div><div>[root@opensips tmp]# ls -l opensips_fifo </div><div><i>prw-rw-rw-. 1 root root 0 Mar 25 10:31 opensips_fifo</i></div>
<div><i><br></i></div><div>I think that file's permission here is ok !!</div><div>Continued checking the opensips.cfg, i had added the lines following</div><div><i>"</i></div><div><div><i># ----- mi_fifo params -----</i></div>
<div><i>modparam("mi_fifo", "fifo_mode", 0666)</i></div><div><i>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")</i></div></div><div><i>"</i></div><div>But error is still occured :-(</div>
<div><br></div><div>My "acc table" has "<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; font-weight: bold; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">cdr_id filed", not </span><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">the "cdr field"</span></div>
<div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">additionally, i have "Cdrs" table separately. </span></font></div>
<div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Both 2 tables above are empty. (although i made several internal calls)</span></font></div>
<div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div>
<font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">And i've checked the "location table" and it truly contained records of online users </span></font></div>
<div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">(not the presence module as you suggested)</span></font></div>
<div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div>
<font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Please tell me what are the next steps to check ?</span></font></div>
<div><font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></div><div>
<font class="Apple-style-span" face="sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Thanks! </span></font></div><div> </div>
<div> </div><div class="gmail_quote">2011/3/25 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>
Sorry. I forgot I modified my CP and those options.<br>
You need to have it:<br>
<div class="im">$boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";<br>
<br>
</div>and remove:<br>
<div class="im">$boxes[$box_id]['mi']['type']="fifo";<br>
$boxes[$box_id]['mi']['fifo']="/tmp/opensips_fifo";<br>
<br>
</div>Are you sure cdrs are being recorded (you have seen cdrs in the acc table)?<br>
Have you verified online users is using the location (registered<br>
users) table and not the presence module fifo/table (I haven't used<br>
presence so don't know what is available and how CP would pull<br>
presence info).<br>
My guess is that online users uses presence module.<br>
<br>
Dave<br>
<br>
On Thu, Mar 24, 2011 at 11:31 AM, Duong Manh Truong<br>
<div><div></div><div class="h5"><<a href="mailto:ngoahotanglongbk@gmail.com">ngoahotanglongbk@gmail.com</a>> wrote:<br>
> Hi Dave,<br>
> My default config in was :<br>
> // default: $boxes[$box_id]['mi']['conn']="<a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>";<br>
> // default: $boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";<br>
> then i changed it to<br>
> $boxes[$box_id]['mi']['type']="fifo";<br>
> $boxes[$box_id]['mi']['fifo']="/tmp/opensips_fifo";<br>
> And i found some functions of CP works such as: Add/edit users; Add/edit<br>
> domain.<br>
> But a lot of others still dont work such as: cdrs, show online users,<br>
> ........<br>
> I see the "apply changes to server" button, i hit it and get this message<br>
> for a new web browser tab:<br>
> "<a href="http://10.2.14.122/cp/tools/system/domains/apply_changes.php" target="_blank">http://10.2.14.122/cp/tools/system/domains/apply_changes.php</a><br>
> Cannot connect to OpenSIPS Server via Management Interface ()"<br>
> I come to /cp/tools/system/domains but find no "apply_changes.php" file :-(<br>
> Please help me to find out how i can connect to Opensips Server and making<br>
> changes<br>
> Thanks!<br>
> 2011/3/24 Dave Singer <<a href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>><br>
>><br>
>> 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>
>> ========================*/<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>
>> <<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<br>
>> > (<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<br>
>> > on 5060 port. I remember that i have not configured CP listening port<br>
>> > 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<br>
>> > 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<br>
>> >> > schemes. All<br>
>> >> > changes are made to memory and database synchronization is done in<br>
>> >> > the<br>
>> >> > timer. The timer deletes all expired contacts and flushes all<br>
>> >> > modified or<br>
>> >> > new contacts to database. Use this scheme if you encounter high-load<br>
>> >> > peaks<br>
>> >> > and want them to process as fast as possible. The mode will not help<br>
>> >> > at all<br>
>> >> > if the load is high all the time. Also, latency of this mode is much<br>
>> >> > 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<br>
>> >> > 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<br>
>> >> > server?<br>
>> >> > Thanks !<br>
>> >> ><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<br>
>> >> >> what<br>
>> >> >> stuff<br>
>> >> >> is incorrect ! :-(<br>
>> >> >> I attached my config file in this email, hope that will help my<br>
>> >> >> problem to<br>
>> >> >> be?clearer!<br>
>> >> >> If anyone has had the same issue, please tell me how can i check or<br>
>> >> >> 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>
>> >> >> ? ? ?<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<br>
>> >> >> 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<br>
>> >> >>> 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,<br>
>> >> >>> 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<br>
>> >> >>> opensips<br>
>> >> >>> CP<br>
>> >> >>> config files (including mysql user/pass to connect to opensips<br>
>> >> >>> database)<br>
>> >> >>> No error found !<br>
>> >> >>> But i still can not use Opensips CP, someone help me to figure out<br>
>> >> >>> why<br>
>> >> >>> Opensips CP has no effect ??<br>
>> >> >>> Do i misconfig ?(or forget to config) some important parameters to<br>
>> >> >>> 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>
><br>
><br>
</div></div></blockquote></div><br></div>