[OpenSIPS-Users] Error on presence_xml

bay2x1 rod at racequeen.ph
Thu Mar 26 07:19:54 CET 2009


Yes I am using the latest opensips 1.5 version... and i am using this config and still encountering the same problem: can not bind xcap_client.  I have set integrated_xcap_server to 1 and I am wondering why is it looking for xcap_client.  Please look at how the modules are loaded I think this might be the problem. 

/* uncomment next line for MySQL DB support */
loadmodule "db_mysql.so"
loadmodule "signaling.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "mi_datagram.so"
loadmodule "uri_db.so"
loadmodule "uri.so"
loadmodule "xlog.so"
loadmodule "acc.so"
loadmodule "siptrace.so"          	
loadmodule "mediaproxy.so"        	
loadmodule "dialog.so"            	
loadmodule "call_control.so"      

loadmodule "pua.so"			
loadmodule "pua_mi.so"			
loadmodule "presence.so"         	
loadmodule "presence_xml.so"		
loadmodule "presence_mwi.so"		
loadmodule "presence_xcapdiff.so"	
loadmodule "rls.so"			

loadmodule "domain.so"			
loadmodule "avpops.so"			



Hi,

I really don't know how to help you.
I have copied exactly your parameters:

# ----- 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")


and it works.

Again I am asking: Are you sure you are running with this config?

regards,
Anca

bay2x1 wrote:
> 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
>>
>>
>>     
>
>   


_______________________________________________
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-tp2465350p2536821.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.




More information about the Users mailing list