<div>Hi Saúl,</div>
<div> </div>
<div>    I have just reinstall a fresh UBUNTU 9.10 with ubuntu-9.10-dvd-i386.</div>
<div> </div>
<div>    Then I execute many operations as follows:</div>
<div>   </div>
<div>    1, apt-get install vim sshd</div>
<div>    2, export http_proxy=&quot;http:// xxxx&quot; ( for I have connect to foreign web)</div>
<div>    3, vim /etc/apt/sources.list  and add the two lines:</div>
<div>        deb     <a href="http://ag-projects.com/ubuntu">http://ag-projects.com/ubuntu</a> karmic main<br>        deb-src <a href="http://ag-projects.com/ubuntu">http://ag-projects.com/ubuntu</a> karmic main</div>
<div><br>    4,wget <a href="http://download.ag-projects.com/agp-debian-gpg.key">http://download.ag-projects.com/agp-debian-gpg.key</a></div>
<div>    5,apt-key add <u><font color="#0000ff">agp-debian-gpg.key</font></u><br>    6,apt-get update</div>
<div>    7,apt-get install python-sipsimple</div>
<div>    8,apt-get install sipclients</div>
<div> </div>
<div>    And , all the commands executed successfully, and many packages are installed successfully .</div>
<div> </div>
<div>    Now, let us check where does the problem exist?</div>
<div> </div>
<div>    <a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># locate xcap-icon <br>    /usr/bin/xcap-icon</div>
<div>    <a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># xcap + TAB<br>    xcapclient         xcap-directory     xcap-pres-rules    <br>    xcap-dialog-rules  xcap-icon          xcap-rls-services</div>

<div>    
<div><a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># sip-settings -a add <a href="mailto:10001@10.20.22.247">10001@10.20.22.247</a> 10001<br>Account added<br><a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># sip-settings -a default 10001<a href="mailto:10001@10.20.22.247">@10.20.22.247</a><br>
Account <a href="mailto:10001@10.20.22.247">10001@10.20.22.247</a> is now default account<br><a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># sip-settings -a set xcap.xcap_root=<a href="http://10.20.22.248/xcap-root">http://10.20.22.248/xcap-root</a><br>
Account updated<br><a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># </div>
<div> </div></div>
<div>    <a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># xcap-icon   (wait for a long time...)<br>Traceback (most recent call last):<br>  File &quot;/usr/bin/xcap-icon&quot;, line 25, in &lt;module&gt;<br>
    from sipsimple.payloads.icon import Icon, Data<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py&quot;, line 41, in &lt;module&gt;<br>    class Icon(XMLRootElement):<br>  File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py&quot;, line 418, in __init__<br>
    cls._xml_schema = etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir, cls._xml_schema_file), &#39;r&#39;)))<br>  File &quot;xmlschema.pxi&quot;, line 85, in lxml.etree.XMLSchema.__init__ (src/lxml/lxml.etree.c:101873)<br>
lxml.etree.XMLSchemaParseError: Operation in progress<br><a href="mailto:root@cheewii-desktop:/usr/bin">root@cheewii-desktop:/usr/bin</a># </div>
<div> </div>
<div><a href="mailto:root@cheewii-desktop">root@cheewii-desktop</a>:~# xcap-directory <br>Retrieving xcap-directory from <a href="http://10.20.22.248/xcap-root">http://10.20.22.248/xcap-root</a><br>Folder &#39;pres-rules&#39;:<br>
        index.xml etag: aae3d665d44ed329121938851ce962a8<br><a href="mailto:root@cheewii-desktop">root@cheewii-desktop</a>:~# </div>
<div> </div>
<div><a href="mailto:root@cheewii-desktop">root@cheewii-desktop</a>:~# xcap-dialog-rules <br>Retrieving current dialog rules from <a href="http://10.20.22.248/xcap-root">http://10.20.22.248/xcap-root</a><br>Allowed watchers:<br>
Blocked watchers:<br>Polite-blocked watchers:<br>Press (a) to allow, (d) to deny, (p) to politely block a new watcher or (r) to remove a watcher from the rules. (s) will show the dialog rules xml.<br>Dialog rules document:<br>
&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;<br>&lt;cp:ruleset xmlns:cp=&quot;urn:ietf:params:xml:ns:common-policy&quot; xmlns:dr=&quot;<a href="http://openxcap.org/ns/dialog-rules%22/">http://openxcap.org/ns/dialog-rules&quot;/</a>&gt;</div>

<div>Allowed watchers:<br>Blocked watchers:<br>Polite-blocked watchers:<br>Press (a) to allow, (d) to deny, (p) to politely block a new watcher or (r) to remove a watcher from the rules. (s) will show the dialog rules xml.<br>
watcher&gt; </div>
<div> </div>
<div><a href="mailto:root@cheewii-desktop">root@cheewii-desktop</a>:~# xcap-pres-rules <br>Retrieving current presence rules from <a href="http://10.20.22.248/xcap-root">http://10.20.22.248/xcap-root</a><br>Allowed watchers:<br>
        <a href="mailto:10001@10.20.22.248">10001@10.20.22.248</a><br>Blocked watchers:<br>Polite-blocked watchers:<br>Press (a) to allow, (d) to deny, (p) to politely block a new watcher or (r) to remove a watcher from the rules. (s) will show the presence rules xml.</div>

<div> </div>
<div><a href="mailto:root@cheewii-desktop">root@cheewii-desktop</a>:~# xcap-rls-services <br>Retrieving current RLS services from <a href="http://10.20.22.248/xcap-root">http://10.20.22.248/xcap-root</a><br>Managing service URI <a href="mailto:sip%3A10001-buddies@10.20.22.248">sip:10001-buddies@10.20.22.248</a></div>

<div>Buddies:<br>Press (a) to add or (r) to remove a buddy. (s) will show the RLS services xml. (d) will delete the currently selected service.<br>RLS services document:<br>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;<br>
&lt;rls-services xmlns:rl=&quot;urn:ietf:params:xml:ns:resource-lists&quot; xmlns=&quot;urn:ietf:params:xml:ns:rls-services&quot;&gt;<br>  &lt;service uri=&quot;<a href="mailto:sip%3A10001-buddies@10.20.22.248">sip:10001-buddies@10.20.22.248</a>&quot;&gt;<br>
    &lt;list/&gt;<br>    &lt;packages&gt;<br>      &lt;package&gt;presence&lt;/package&gt;<br>    &lt;/packages&gt;<br>  &lt;/service&gt;<br>&lt;/rls-services&gt;<br></div>
<div>Then ,check some configure files:</div>
<div> </div>
<div><a href="mailto:root@cheewii-desktop:/usr/share/pyshared/sipsimple/payloads/xml-schemas">root@cheewii-desktop:/usr/share/pyshared/sipsimple/payloads/xml-schemas</a># ls<br>caps.xsd           data-model.xsd        pidf.xsd           rpid.xsd<br>
common-policy.xsd  dialog-info.xsd       pres-rules.xsd     watcherinfo.xsd<br>common-schema.xsd  im-iscomposing.xsd    resourcelists.xsd  xcap-directory.xsd<br>conference.xsd     oma-pres-content.xsd  rlsservices.xsd    xml.xsd</div>

<div> </div>
<div>I found any xsd related icon, is it a error? And these *.xsd, I have not touched them.</div>
<div> </div>
<div><a href="mailto:root@cheewii-desktop:/usr/src">root@cheewii-desktop:/usr/src</a># vim /usr/share/pyshared/sipsimple/payloads/xml-schemas/oma-pres-content.xsd </div>
<div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;xs:schema targetNamespace=&quot;urn:oma:xml:prs:pres-content&quot;<br>   xmlns=&quot;urn:oma:xml:prs:pres-content&quot;<br>   xmlns:xs=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; <br>
   elementFormDefault=&quot;qualified&quot; <br>   attributeFormDefault=&quot;unqualified&quot;&gt;</div>
<div>&lt;xs:import namespace=&quot;<a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>&quot; schemaLocation=&quot;<a href="http://www.w3.org/2001/xml.xsd%22/">http://www.w3.org/2001/xml.xsd&quot;/</a>&gt;</div>

<div>&lt;xs:element name=&quot;content&quot;&gt;<br>   &lt;xs:complexType&gt;<br>      &lt;xs:sequence&gt;<br>         &lt;xs:element name=&quot;mime-type&quot; minOccurs=&quot;0&quot;&gt;<br>            &lt;xs:complexType&gt;<br>
               &lt;xs:simpleContent&gt;<br>                  &lt;xs:extension base=&quot;xs:string&quot;&gt;<br>                     &lt;xs:anyAttribute processContents=&quot;lax&quot;/&gt;<br>                  &lt;/xs:extension&gt;<br>
               &lt;/xs:simpleContent&gt;<br>            &lt;/xs:complexType&gt;<br>         &lt;/xs:element&gt;</div>
<div>         &lt;xs:element name=&quot;encoding&quot; minOccurs=&quot;0&quot;&gt;<br>            &lt;xs:complexType&gt;<br>               &lt;xs:simpleContent&gt;<br>                  &lt;xs:extension base=&quot;xs:string&quot;&gt;<br>
                     &lt;xs:anyAttribute processContents=&quot;lax&quot;/&gt;<br>                  &lt;/xs:extension&gt;<br>               &lt;/xs:simpleContent&gt;<br>            &lt;/xs:complexType&gt;<br>         &lt;/xs:element&gt;</div>

<div>         &lt;xs:element name=&quot;description&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;<br>            &lt;xs:complexType&gt;<br>               &lt;xs:simpleContent&gt;<br>                 &lt;xs:extension base=&quot;xs:string&quot;&gt;<br>
                   &lt;xs:attribute ref=&quot;xml:lang&quot;/&gt;<br>                    &lt;xs:anyAttribute processContents=&quot;lax&quot;/&gt;<br>                 &lt;/xs:extension&gt;<br>               &lt;/xs:simpleContent&gt;<br>
            &lt;/xs:complexType&gt;<br>         &lt;/xs:element&gt;</div>
<div>         &lt;xs:element name=&quot;data&quot;&gt;<br>            &lt;xs:complexType&gt;<br>               &lt;xs:simpleContent&gt;<br>                  &lt;xs:extension base=&quot;xs:string&quot;&gt;<br>                     &lt;xs:anyAttribute processContents=&quot;lax&quot;/&gt;<br>
                  &lt;/xs:extension&gt;<br>               &lt;/xs:simpleContent&gt;<br>            &lt;/xs:complexType&gt;<br>         &lt;/xs:element&gt;</div>
<div>         &lt;xs:any namespace=&quot;##other&quot; processContents=&quot;lax&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;<br>      &lt;/xs:sequence&gt;<br>      &lt;xs:anyAttribute processContents=&quot;lax&quot;/&gt;<br>
   &lt;/xs:complexType&gt;<br>&lt;/xs:element&gt;</div>
<div>&lt;/xs:schema&gt;</div>
<div><a href="mailto:root@cheewii-desktop:/usr/src">root@cheewii-desktop:/usr/src</a># </div>
<div>    </div>
<div>    </div>
<div>This problem is really interesting..... Hope you can help me ^ ^..</div>
<div> </div>
<div>CheeWii    </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">2010/7/6 Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>&gt; root@shenhua-ims &lt;mailto:<a href="mailto:root@shenhua-ims">root@shenhua-ims</a>&gt;:~# xcap-icon<br>

<div class="im">&gt; Traceback (most recent call last):<br>&gt;    File &quot;/usr/local/bin/xcap-icon&quot;, line 25, in &lt;module&gt;<br>&gt;      from sipsimple.payloads.icon import Icon, Data<br>&gt;    File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py&quot;, line<br>
&gt; 41, in &lt;module&gt;<br>&gt;      class Icon(XMLRootElement):<br>&gt;    File &quot;/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py&quot;,<br>&gt; line 418, in __init__<br>&gt;      cls._xml_schema =<br>
&gt; etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,<br>&gt; cls._xml_schema_file), &#39;r&#39;)))<br>&gt;    File &quot;xmlschema.pxi&quot;, line 85, in lxml.etree.XMLSchema.__init__<br>&gt; (src/lxml/lxml.etree.c:101873)<br>
&gt; lxml.etree.XMLSchemaParseError: Operation in progress<br><br></div>Can you check if your<br>/usr/share/pyshared/sipsimple/payloads/xml-schemas/oma-pres-content.xsd<br>is corrupt?<br><br>Also, do other XCAP applications like xcap-directory work? Check it with<br>
the scripts from the sipclients package, not xcapclient.<br>
<div>
<div></div>
<div class="h5"><br><br>Regards,<br><br>--<br>Saúl Ibarra Corretgé<br>AG Projects<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></div></blockquote></div><br>