<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="http:// xxxx" ( 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 "/usr/bin/xcap-icon", line 25, in <module><br>
from sipsimple.payloads.icon import Icon, Data<br> File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line 41, in <module><br> class Icon(XMLRootElement):<br> File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py", line 418, in __init__<br>
cls._xml_schema = etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir, cls._xml_schema_file), 'r')))<br> File "xmlschema.pxi", 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 'pres-rules':<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>
<?xml version='1.0' encoding='UTF-8'?><br><cp:ruleset xmlns:cp="urn:ietf:params:xml:ns:common-policy" xmlns:dr="<a href="http://openxcap.org/ns/dialog-rules%22/">http://openxcap.org/ns/dialog-rules"/</a>></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> </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><?xml version='1.0' encoding='UTF-8'?><br>
<rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists" xmlns="urn:ietf:params:xml:ns:rls-services"><br> <service uri="<a href="mailto:sip%3A10001-buddies@10.20.22.248">sip:10001-buddies@10.20.22.248</a>"><br>
<list/><br> <packages><br> <package>presence</package><br> </packages><br> </service><br></rls-services><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><?xml version="1.0" encoding="UTF-8"?><br><xs:schema targetNamespace="urn:oma:xml:prs:pres-content"<br> xmlns="urn:oma:xml:prs:pres-content"<br> xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" <br>
elementFormDefault="qualified" <br> attributeFormDefault="unqualified"></div>
<div><xs:import namespace="<a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>" schemaLocation="<a href="http://www.w3.org/2001/xml.xsd%22/">http://www.w3.org/2001/xml.xsd"/</a>></div>
<div><xs:element name="content"><br> <xs:complexType><br> <xs:sequence><br> <xs:element name="mime-type" minOccurs="0"><br> <xs:complexType><br>
<xs:simpleContent><br> <xs:extension base="xs:string"><br> <xs:anyAttribute processContents="lax"/><br> </xs:extension><br>
</xs:simpleContent><br> </xs:complexType><br> </xs:element></div>
<div> <xs:element name="encoding" minOccurs="0"><br> <xs:complexType><br> <xs:simpleContent><br> <xs:extension base="xs:string"><br>
<xs:anyAttribute processContents="lax"/><br> </xs:extension><br> </xs:simpleContent><br> </xs:complexType><br> </xs:element></div>
<div> <xs:element name="description" minOccurs="0" maxOccurs="unbounded"><br> <xs:complexType><br> <xs:simpleContent><br> <xs:extension base="xs:string"><br>
<xs:attribute ref="xml:lang"/><br> <xs:anyAttribute processContents="lax"/><br> </xs:extension><br> </xs:simpleContent><br>
</xs:complexType><br> </xs:element></div>
<div> <xs:element name="data"><br> <xs:complexType><br> <xs:simpleContent><br> <xs:extension base="xs:string"><br> <xs:anyAttribute processContents="lax"/><br>
</xs:extension><br> </xs:simpleContent><br> </xs:complexType><br> </xs:element></div>
<div> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/><br> </xs:sequence><br> <xs:anyAttribute processContents="lax"/><br>
</xs:complexType><br></xs:element></div>
<div></xs:schema></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"><<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>> root@shenhua-ims <mailto:<a href="mailto:root@shenhua-ims">root@shenhua-ims</a>>:~# xcap-icon<br>
<div class="im">> Traceback (most recent call last):<br>> File "/usr/local/bin/xcap-icon", line 25, in <module><br>> from sipsimple.payloads.icon import Icon, Data<br>> File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line<br>
> 41, in <module><br>> class Icon(XMLRootElement):<br>> File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py",<br>> line 418, in __init__<br>> cls._xml_schema =<br>
> etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,<br>> cls._xml_schema_file), 'r')))<br>> File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__<br>> (src/lxml/lxml.etree.c:101873)<br>
> 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>