[OpenSIPS-Devel] OpenXCAP refreshWatchers error

Anca Vamanu anca at voice-system.ro
Mon Sep 22 16:21:20 CEST 2008


Hi,

If you plan on using an Xcap server, then you definitely don't need to 
set the force_active parameter. This is used when you don't use an xcap 
server and want all the watchers to be allowed to see the presence state 
of a presentity.
Anyhow, this is not the cause of what you are seeing, the document being 
in the table, but the module not being able to fetch it. Can you please 
catch the sql command to check if it is looking for the correct user? ( 
if you have mysql logging enable and you use debian you will find it in 
/var/log/mysql/mysql.log).

Anca

Andrew Pogrebennyk wrote:
> That is the same URL and the same table. The table is properly 
> populated by OpenXCAP, but OpenSIPS fails to read the document for 
> some reason. I'll debug it and i get a free minute. Currently I am 
> using the following parameters on the presence_xml module, but I also 
> tried different values of each:
>
> loadmodule "presence_xml.so"
> modparam("presence_xml", "db_url", 
> "mysql://sqluser:ser@localhost/opensips")
> modparam("presence_xml", "force_active", 1)
> modparam("presence_xml", "xcap_table", "xcap")
> modparam("presence_xml", "pidf_manipulation", 1)
> modparam("presence_xml", "integrated_xcap_server", 1)
>
> Anca Vamanu wrote:
>> Hi,
>>
>> No, it is not compulsory for the two to run on the same machine. 
>> However, they must share the same database. The OpenXCAP server 
>> writes in the 'xcap' table, and OpenSIPS reads from there. The 
>> database used by the OpenXCAP is also defined in the Server section. 
>> You should make sure that it is the same url as the database url for 
>> the OpenSIPS presence server.
>




More information about the Devel mailing list