<div dir="ltr">Hi, <br><br>I am using OpenSER since a few months, but only with basic functionality, i.e. no Presence, Message-waiting functionality, XCAP etc. I configured the server with MySQL on the same machine and I am able to add new users using the openserctl script as:<br>

/usr/local/sbin/openserctl add user password user@domain<br><br>Now, I wish to include Presence functionality to see the status of users on client side. Thus, I loaded the module presence.so and also presence_xml.so. I also uncommenetd other features in openser.cfg that are required for presence funcionality:<br>

<br># ----- presence params -----<br><br>modparam(&quot;presence|presence_xml&quot;, &quot;db_url&quot;,<br>&nbsp;&nbsp;&nbsp; &quot;mysql://user:pwd@domain/openser&quot;)<br>modparam(&quot;presence_xml&quot;, &quot;force_active&quot;, 1)<br>

modparam(&quot;presence&quot;, &quot;server_address&quot;, &quot;sip:ip:port&quot;)<br>modparam(&quot;presence&quot;, &quot;presentity_table&quot;, &quot;presentity&quot;)<br>modparam(&quot;presence&quot;, &quot;active_watchers_table&quot;, &quot;active_watchers&quot;)<br>

modparam(&quot;presence&quot;, &quot;watchers_table&quot;, &quot;watchers&quot;)<br><br>modparam(&quot;presence&quot;, &quot;clean_period&quot;, 100)<br>modparam(&quot;presence&quot;, &quot;to_tag_pref&quot;, &#39;megs&#39;)<br>

#modparam(&quot;presence&quot;, &quot;lock_set_size&quot;, 8)<br>modparam(&quot;presence&quot;, &quot;expires_offset&quot;, 10)<br>modparam(&quot;presence&quot;, &quot;max_expires&quot;, 3600)<br>modparam(&quot;presence&quot;, &quot;fallback2db&quot;,1)<br>

<br>#------------------------------------------------------<br><br><br>However, now if I try to start openser using the command : /usr/local/sbin/openser start,<br>I see that all modules are loaded and my connection &quot;user:pwd@domain/openser&quot; is in the pool. It also displays that all modules have successfully connected to the database. After this when I try to run:<br>

<br>/usr/local/lib/openser/openserctl/openserctl start<br><br>It displays:<br>database engine &#39;MYSQL&#39; loaded <br>control engine &#39;FIFO&#39; loaded<br>INFO: Starting OpenSER:<br><br>ERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed<br>

<br>There is no file openser.pid on the path &quot;/var/run/&quot;. But previously, I was able to start openser successfully.<br><br>I also tried starting openser by: /etc/init.d/openser start <br>But it just says: <br>Starting Openser:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [FAILED]<br>

<br>Can anyone please tell me how to solve this bug. Where can I find openser.pid file? <br>If not this, then please tell me if I am doing some configuration mistake. <br><br>Another thing, I see that when I am running my client, I am still able to Register to the server and I am gettin 200OK for REGISTER message. I find it strange!<br>

<br>I can see that I have all the tables required for &quot;presence&quot; in the openser database, i.e. presentity, active_watchers etc. <br>Also, when I am using SUBSCRIBE-NOTIFY messages on client side, I get 202 Accepted from the server when the other user is online and 404 NOT FOUND when the user is offline. But I see that all tables in &#39;openser&#39; database are empty except subscriber table in which I can easily make entries using &#39;openserctl&#39; script file. I find it strange that how my server is keeping the information of the online users when all databse tables are empty. Ideally, it should keep an entry of availabe users in &quot;location&quot; table, but that table is also empty even though I have written in openser.cfg file:<br>
&nbsp;modparam(&quot;usrloc&quot;,&quot;db_mode&quot;,2) <br>to enable DB persistency for location entries. <br>
<br>Please anyone help me clear the doubts, as I need to complete the presence module soon due to strich deadlines. I have been workin on it since 2 weeks already! :(<br><br>Do I need to have XCAP server necessarily to implement simple presence status using SUBSCRIBE-NOTIFY messages?<br>

<br>Thanks in advance,<br>Megs<br><br><br><br><br><br><br><br></div>