[OpenSER-Users] PRESENCE module not working and openser.pid file not found

Megha Saini megs20 at gmail.com
Tue Jul 22 20:45:04 CEST 2008


Dear Anca,

I've gone through the link given by you. Thanks for clearing the doubts that
I had for XCAP server. Yes,  I've set the 'force_active' parameter to 1. So,
I guess that I dont need XCAP server if I allow automatic acceptance of
subscription request by the client.

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.

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??

Also, it will be really helpful for me if you could tell that what
""lock_set_size" 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.


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 "ps" 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?
I want to use presence functionality, so I need to run OpenSER and not SER.
Please let me know incase you've had any knowledge on the issues I raised.

Thanking you again for your response,

Looking for your co-operation,
Regards
Megs





On Mon, Jul 21, 2008 at 10:43 PM, Anca Vamanu <anca at voice-system.ro> wrote:

> Megha Saini wrote:
>
>> Hi,
>>
>> 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:
>> /usr/local/sbin/openserctl add user password user at domain
>>
>> 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:
>>
>> # ----- presence params -----
>>
>> modparam("presence|presence_xml", "db_url",
>>    "mysql://user:pwd@domain/openser")
>> modparam("presence_xml", "force_active", 1)
>> modparam("presence", "server_address", "sip:ip:port")
>> modparam("presence", "presentity_table", "presentity")
>> modparam("presence", "active_watchers_table", "active_watchers")
>> modparam("presence", "watchers_table", "watchers")
>>
>> modparam("presence", "clean_period", 100)
>> modparam("presence", "to_tag_pref", 'megs')
>> #modparam("presence", "lock_set_size", 8)
>> modparam("presence", "expires_offset", 10)
>> modparam("presence", "max_expires", 3600)
>> modparam("presence", "fallback2db",1)
>>
>> #------------------------------------------------------
>>
>>
>> However, now if I try to start openser using the command :
>> /usr/local/sbin/openser start,
>> I see that all modules are loaded and my connection "user:pwd at domain/openser"
>> is in the pool. It also displays that all modules have successfully
>> connected to the database. After this when I try to run:
>>
>> /usr/local/lib/openser/openserctl/openserctl start
>>
>> It displays:
>> database engine 'MYSQL' loaded
>> control engine 'FIFO' loaded
>> INFO: Starting OpenSER:
>>
>> ERROR: PID file /var/run/openser.pid does not exist -- OpenSER start
>> failed
>>
>> There is no file openser.pid on the path "/var/run/". But previously, I
>> was able to start openser successfully.
>>
>> I also tried starting openser by: /etc/init.d/openser start
>> But it just says:
>> Starting Openser:             [FAILED]
>>
>> Can anyone please tell me how to solve this bug. Where can I find
>> openser.pid file?
>> If not this, then please tell me if I am doing some configuration mistake.
>>
>> 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!
>>
>> I can see that I have all the tables required for "presence" in the
>> openser database, i.e. presentity, active_watchers etc.
>> 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 'openser' database
>> are empty except subscriber table in which I can easily make entries using
>> 'openserctl' 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 "location" table, but
>> that table is also empty even though I have written in openser.cfg file:
>>  modparam("usrloc","db_mode",2)
>> to enable DB persistency for location entries.
>>
>> 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! :(
>>
>> Do I need to have XCAP server necessarily to implement simple presence
>> status using SUBSCRIBE-NOTIFY messages?
>>
>>  You don'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 'force_active'
> parameter to 1 it means that you don't want this feature. See
> http://www.openser.org/docs/modules/1.3.x/presence_xml.html#AEN92
> 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.
>
> regards,
> Anca
>
>  Thanks in advance,
>> Megs
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.openser.org
>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080723/a217a512/attachment.htm>


More information about the sr-users mailing list