Hi,

On Feb 28, 2013, at 1:56 AM, Yuming Zheng wrote:

> Hi,
> 
> This is my scenario:
> 
> 
> based on OpenSIPS (1.9.0-unstable-notls (i386/linux)) and openxcap 2.0.1,
> 
> Two UAs is involved,Alice and Bob,and Bob have subscribed to the 
> presence.winfo of himself 
> when startup,and then Alice try to add Bob as a buddy,Alice update the 
> resource-list of XCAP
> table,and then openxcap send a mi command  mi_refreshWatchers to opensips 
> througth the 
> opensips-mi-proxy,and opensips received this command:  
> :mi_refreshWatchers:#012"sip:[email protected]"#012"presence"#0120"#012
> just as :mi_refreshWatchers: "sip:[email protected]" "presence" "0",but Bob 
> cannot 
> receive a Notify message of presence.winfo.
> Is this my configuration problem?
> 
> My configuraton of opensips is:
> loadmodule "xcap.so"
> modparam("xcap", "db_url","mysql://opensips:[email protected]/opensips")
> modparam("xcap", "integrated_xcap_server", 1)
> modparam("xcap", "xcap_table", "xcap")
> 
> #### PRESENCE modulesd
> loadmodule "presence.so"
> modparam("presence", 
> "db_url","mysql://opensips:[email protected]/opensips") 
> modparam("presence", "server_address", "sip:127.0.0.1:5060")
> 
> 
> loadmodule "presence_xml.so"
> ## TODO: research the source to confirm these settings.
> modparam("presence_xml", "force_active", 0)
> modparam("presence_xml", "xcap_server", "127.0.0.1")
> ##modparam("presence_xml", "xcap_table", "xcap")
> ##modparam("presence_xml", "pidf_manipulation", 1)
> 
> After digged a little,the watchers and active-watchers is not changed.
> We try to adding a SUBSCRIBE action from Alice to Bob after put the xcap 
> document,
> and then Bob received the presence.winfo Notify message.
> So which condition trigger the Notify message of presence.winfo in opensips?
> 

presence.winfo notifications are triggered when an active subscription changes 
authorization state. By active I mean a SUBSCRIBE was sent and a 2XX response 
was received. Since you modified resource-lists and, unless you are using the 
OMA mode, it has nothing to do with authorization, there is no presence.winfo 
event to be generated.


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to