<div dir="ltr">Dear Anca, <br><br>I&#39;ve gone through the link given by you. Thanks for clearing the doubts that I had for XCAP server. Yes,&nbsp; I&#39;ve set the &#39;force_active&#39; parameter to 1. So, I guess that I dont need XCAP server if I allow automatic acceptance of subscription request by the client. <br>
<br>Yes, I am using openser_1.3.1-notls version on Fedora Core 8. It will be great if you could please let me know the parameters that were removed from presence in this version, and if I still require to write them to implement the basic presence functionality in openser. <br>
<br>I did not get the logfile of openser in my system. Probably, I have mistakenly filtered it out. But can I get the log file by loading the module xlog of openser? In that case, where can I find the logs??<br><br>Also, it will be really helpful for me if you could tell that what &quot;&quot;lock_set_size&quot; parameter means.. i.e, if I need to use this parameter necessarily as it gives me error if I use it. Hence, I commented it in openser.cfg file but I dont see any interruption in other modules of server. <br>
<br>Do you also have idea if SER is also automatically installed if we try to install openSER on linux machine? It happened for me as I can see SER pids when I run &quot;ps&quot; command. On contrary, I do not see openser pid in the list of pids even though I can,now, successfully run openSER using /etc/init.d/openser start. Does openser also has a process in the name of SER?<br>
I want to use presence functionality, so I need to run OpenSER and not SER. Please let me know incase you&#39;ve had any knowledge on the issues I raised. <br><br>Thanking you again for your response, <br><br>Looking for your co-operation, <br>
Regards<br>Megs<br><br><br><br><br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 10:43 PM, Anca Vamanu &lt;<a href="mailto:anca@voice-system.ro">anca@voice-system.ro</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Megha Saini wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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;&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; [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>
</blockquote></div></div>
You don&#39;t necessarily need the XCAP functionality. Only If you want to have privacy permission rules enables( and of course it you have clients that support this - eyebeam for example). And if you set the &#39;force_active&#39; parameter to 1 it means that you don&#39;t want this feature. See <a href="http://www.openser.org/docs/modules/1.3.x/presence_xml.html#AEN92" target="_blank">http://www.openser.org/docs/modules/1.3.x/presence_xml.html#AEN92</a><br>

What version of openser are you using? If 1.3.x then some of the parameters from presence were removed. Look in the log file of openser ( syslog if you have not filtered it) and search for the first error when starting openser.<br>

<br>
regards,<br>
Anca<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks in advance,<br>
Megs<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp;<br>
</blockquote>
<br>
</blockquote></div><br></div>