<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.6332" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2>So,you mean OMA mode must be used
with openxcap and opensips to receive the presence.winfo message.</FONT></DIV>
<DIV><FONT color=#000080>Is it possible when I just use the IETF
mode?</FONT></DIV>
<DIV><FONT color=#000080>Or may I modify some code to implememt this feature due
to I have only IETF implementaion now.</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>BR,</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2013-03-01 </FONT></DIV><FONT
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>zhengyumingnanjing</SPAN>
</FONT></DIV>
<HR color=#b5c4df SIZE=1>
<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Sa鷏_Ibarra_Corretg
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2013-02-28 17:23:58
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> OpenSIPS users mailling
list </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: [OpenSIPS-Users] The
NOTIFY message of presence.winfo is notsent from opensips. </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Hi,</DIV>
<DIV></DIV>
<DIV>On Feb 28, 2013, at 1:56 AM, Yuming Zheng wrote:</DIV>
<DIV></DIV>
<DIV>> Hi,</DIV>
<DIV>> </DIV>
<DIV>> This is my scenario:</DIV>
<DIV>> </DIV>
<DIV>> </DIV>
<DIV>> based on OpenSIPS (1.9.0-unstable-notls (i386/linux)) and openxcap 2.0.1,</DIV>
<DIV>> </DIV>
<DIV>> Two UAs is involved,Alice and Bob,and Bob have subscribed to the presence.winfo of himself </DIV>
<DIV>> when startup,and then Alice try to add Bob as a buddy,Alice update the resource-list of XCAP</DIV>
<DIV>> table,and then openxcap send a mi command mi_refreshWatchers to opensips througth the </DIV>
<DIV>> opensips-mi-proxy,and opensips received this command: :mi_refreshWatchers:#012"sip:Bob@172.22.198.1"#012"presence"#0120"#012</DIV>
<DIV>> just as :mi_refreshWatchers: "sip:Bob@172.22.198.1" "presence" "0",but Bob cannot </DIV>
<DIV>> receive a Notify message of presence.winfo.</DIV>
<DIV>> Is this my configuration problem?</DIV>
<DIV>> </DIV>
<DIV>> My configuraton of opensips is:</DIV>
<DIV>> loadmodule "xcap.so"</DIV>
<DIV>> modparam("xcap", "db_url","mysql://opensips:opensipsrw@127.0.0.1/opensips")</DIV>
<DIV>> modparam("xcap", "integrated_xcap_server", 1)</DIV>
<DIV>> modparam("xcap", "xcap_table", "xcap")</DIV>
<DIV>> </DIV>
<DIV>> #### PRESENCE modulesd</DIV>
<DIV>> loadmodule "presence.so"</DIV>
<DIV>> modparam("presence", "db_url","mysql://opensips:opensipsrw@127.0.0.1/opensips") </DIV>
<DIV>> modparam("presence", "server_address", "sip:127.0.0.1:5060")</DIV>
<DIV>> </DIV>
<DIV>> </DIV>
<DIV>> loadmodule "presence_xml.so"</DIV>
<DIV>> ## TODO: research the source to confirm these settings.</DIV>
<DIV>> modparam("presence_xml", "force_active", 0)</DIV>
<DIV>> modparam("presence_xml", "xcap_server", "127.0.0.1")</DIV>
<DIV>> ##modparam("presence_xml", "xcap_table", "xcap")</DIV>
<DIV>> ##modparam("presence_xml", "pidf_manipulation", 1)</DIV>
<DIV>> </DIV>
<DIV>> After digged a little,the watchers and active-watchers is not changed.</DIV>
<DIV>> We try to adding a SUBSCRIBE action from Alice to Bob after put the xcap document,</DIV>
<DIV>> and then Bob received the presence.winfo Notify message.</DIV>
<DIV>> So which condition trigger the Notify message of presence.winfo in opensips?</DIV>
<DIV>> </DIV>
<DIV></DIV>
<DIV>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.</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>Regards,</DIV>
<DIV></DIV>
<DIV>--</DIV>
<DIV>Saúl Ibarra Corretgé</DIV>
<DIV>AG Projects</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>_______________________________________________</DIV>
<DIV>Users mailing list</DIV>
<DIV>Users@lists.opensips.org</DIV>
<DIV>http://lists.opensips.org/cgi-bin/mailman/listinfo/users</DIV></FONT></DIV></BODY></HTML>