[OpenSIPS-Users] Error on presence_xml

bay2x1 rod at racequeen.ph
Fri Mar 20 01:34:20 CET 2009


I am using opensips 1.5

Anca Vamanu-2 wrote:
> 
> What opensips version are you using? 1.5 or 1.4.4?
> 
> Anca
> 
> bay2x1 wrote:
>> The code I am using is exactly the same as the one I have copied here.  I
>> have disabled the xcap_client module and its parameters but I now
>> encounter
>> the following error:
>>
>> Mar 14 08:04:22 ws16 /usr/sbin/opensips[3963]: INFO:pua:db_restore: the
>> query returned no result
>> Mar 14 08:04:22 ws16 /usr/sbin/opensips[3963]: NOTICE:presence:mod_init:
>> initializing module ...
>> Mar 14 08:04:22 ws16 /usr/sbin/opensips[3963]:
>> ERROR:presence_xml:mod_init:
>> Can't bind xcap_client
>> Mar 14 08:04:22 ws16 /usr/sbin/opensips[3963]: ERROR:core:init_mod:
>> failed
>> to initialize module presence_xml
>> Mar 14 08:04:22 ws16 /usr/sbin/opensips[3963]: ERROR:core:main: error
>> while
>> initializing modules
>> Mar 14 08:04:22 ws16 /usr/sbin/opensips[3963]: NOTICE:presence:destroy:
>> destroy module ...
>>
>>
>>
>>
>> Anca Vamanu-2 wrote:
>>   
>>> Hi,
>>>
>>> I have tried with exactly your parameters and it worked ok.
>>> You don't need to load the xcap_client module if you set 
>>> integrated_xcap_server module parameter in both presence_xml and rls.
>>> Are you sure you trying to run with this config :) ?
>>>
>>> regards,
>>> Anca
>>>
>>>
>>> bay2x1 wrote:
>>>     
>>>> Base on my understanding I dont need to set the xcap_server parameter
>>>> if
>>>> I
>>>> set the modparam("presence_xml", "integrated_xcap_server", 1)? BTW I am
>>>> using version 1.5
>>>>
>>>>
>>>>
>>>> Bogdan-Andrei Iancu wrote:
>>>>   
>>>>       
>>>>> Hi,
>>>>>
>>>>> I think the error is self explanatory:
>>>>>
>>>>> ERROR:presence_xml:shm_copy_xcap_list: no xcap_server parameter set
>>>>>
>>>>> You need to set the "xcap_server" parameter for the presence_xml
>>>>> module. 
>>>>> See: 
>>>>> http://www.opensips.org/html/docs/modules/1.4.x/presence_xml.html#id228211
>>>>>
>>>>> Regards,
>>>>> Bogdan
>>>>>
>>>>> bay2x1 wrote:
>>>>>     
>>>>>         
>>>>>> I have enabled the xcap_client module and the error was eliminated
>>>>>> but
>>>>>> encountered another stumbling block this is how my opensips.cfg
>>>>>> configuration intergrating openxcap given all the needed modules has
>>>>>> been
>>>>>> loaded.
>>>>>>
>>>>>> # ----- presence params -----                    enabled: openxcap
>>>>>> support
>>>>>> /* uncomment the following lines if you want to enable presence */
>>>>>> modparam("presence", "db_url",
>>>>>> "mysql://opensips:opensipsrw@localhost/opensips")
>>>>>> modparam("presence", "server_address", "sip:presence at 10.0.0.1")
>>>>>> modparam("presence", "fallback2db", 1)
>>>>>> modparam("presence", "clean_period",  30)
>>>>>>
>>>>>> # -- xcap params --                              added: openxcap
>>>>>> support
>>>>>> modparam("presence_xml", "db_url",
>>>>>> "mysql://opensips:opensipsrw@localhost/opensips")
>>>>>> modparam("presence_xml", "force_active", 0)
>>>>>> modparam("presence_xml", "pidf_manipulation", 1)
>>>>>> modparam("presence_xml", "integrated_xcap_server", 1)
>>>>>>
>>>>>> # -- rls params --				 added: openxcap support
>>>>>> modparam("rls", "db_url",
>>>>>> "mysql://opensips:opensipsrw@localhost/opensips")
>>>>>> modparam("rls", "server_address",         "sip:rls at 10.0.0.1")
>>>>>> modparam("rls", "to_presence_code", 5)
>>>>>> modparam("rls", "integrated_xcap_server", 1)
>>>>>>
>>>>>> modparam("pua", "db_url",
>>>>>> "mysql://opensips:opensipsrw@localhost/opensips")
>>>>>> modparam("pua", "db_table", "pua")
>>>>>> */
>>>>>>
>>>>>> #-----------------xcap client -------------------------
>>>>>> modparam("xcap_client", "db_url",
>>>>>> "mysql://opensips:opensipsrw@localhost/opensips")
>>>>>> modparam("xcap_client", "xcap_table", "xcaps")
>>>>>> modparam("xcap_client", "periodical_query", 0)
>>>>>>
>>>>>> this is the error log. ERROR LOG
>>>>>>
>>>>>> Mar 12 13:43:23 ws16 /usr/sbin/opensips[19514]:
>>>>>> NOTICE:presence:mod_init:
>>>>>> initializing module ...
>>>>>> Mar 12 13:43:24 ws16 /usr/sbin/opensips[19514]:
>>>>>> ERROR:presence_xml:shm_copy_xcap_list: no xcap_server parameter set
>>>>>> Mar 12 13:43:24 ws16 /usr/sbin/opensips[19514]:
>>>>>> ERROR:presence_xml:mod_init:
>>>>>> copying xcap server list in share memory
>>>>>> Mar 12 13:43:24 ws16 /usr/sbin/opensips[19514]: ERROR:core:init_mod:
>>>>>> failed
>>>>>> to initialize module presence_xml
>>>>>> Mar 12 13:43:24 ws16 /usr/sbin/opensips[19514]: ERROR:core:main:
>>>>>> error
>>>>>> while
>>>>>> initializing modules
>>>>>> Mar 12 13:43:24 ws16 /usr/sbin/opensips[19514]:
>>>>>> NOTICE:presence:destroy:
>>>>>> destroy module ...
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> bay2x1 wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> I have integrated openxcap on my config and opensips fails to run
>>>>>>> generating error log below....
>>>>>>>
>>>>>>> Mar 12 10:57:10 ws16 /usr/sbin/opensips[14469]:
>>>>>>> INFO:dialog:mod_init:
>>>>>>> Dialog module - initializing
>>>>>>> Mar 12 10:57:10 ws16 /usr/sbin/opensips[14469]:
>>>>>>> NOTICE:presence:mod_init:
>>>>>>> initializing module ...
>>>>>>> Mar 12 10:57:10 ws16 /usr/sbin/opensips[14469]:
>>>>>>> ERROR:presence_xml:mod_init: Can't bind xcap_client
>>>>>>> Mar 12 10:57:10 ws16 /usr/sbin/opensips[14469]: ERROR:core:init_mod:
>>>>>>> failed to initialize module presence_xml
>>>>>>> Mar 12 10:57:10 ws16 /usr/sbin/opensips[14469]: ERROR:core:main:
>>>>>>> error
>>>>>>> while initializing modules
>>>>>>> Mar 12 10:57:10 ws16 /usr/sbin/opensips[14469]:
>>>>>>> NOTICE:presence:destroy:
>>>>>>> destroy module ...
>>>>>>>
>>>>>>> I had checked my presence_xml configuration and check the opensips
>>>>>>> documentation and I can say that I have done what was instructed in
>>>>>>> the
>>>>>>> configuration instruction.  At first I was encountering segfault
>>>>>>> error,
>>>>>>> but now this error is now appearing
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>   
>>>>       
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>     
>>
>>   
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Error-on-presence_xml-tp2465350p2506353.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.




More information about the Users mailing list