[OpenSIPS-Users] [OpenSIPS-Devel] New OpenXCAP release 1.2.1

CheeWii quanwei87 at gmail.com
Tue Jul 6 15:24:18 CEST 2010


Hi Saúl,

    I have just reinstall a fresh UBUNTU 9.10 with ubuntu-9.10-dvd-i386.

    Then I execute many operations as follows:

    1, apt-get install vim sshd
    2, export http_proxy="http:// xxxx" ( for I have connect to foreign web)
    3, vim /etc/apt/sources.list  and add the two lines:
        deb     http://ag-projects.com/ubuntu karmic main
        deb-src http://ag-projects.com/ubuntu karmic main

    4,wget http://download.ag-projects.com/agp-debian-gpg.key
    5,apt-key add *agp-debian-gpg.key*
    6,apt-get update
    7,apt-get install python-sipsimple
    8,apt-get install sipclients

    And , all the commands executed successfully, and many packages are
installed successfully .

    Now, let us check where does the problem exist?

    root at cheewii-desktop:/usr/bin# locate xcap-icon
    /usr/bin/xcap-icon
    root at cheewii-desktop:/usr/bin# xcap + TAB
    xcapclient         xcap-directory     xcap-pres-rules
    xcap-dialog-rules  xcap-icon          xcap-rls-services

root at cheewii-desktop:/usr/bin# sip-settings -a add 10001 at 10.20.22.247 10001
Account added
root at cheewii-desktop:/usr/bin# sip-settings -a default
10001 at 10.20.22.247<10001 at 10.20.22.247>
Account 10001 at 10.20.22.247 is now default account
root at cheewii-desktop:/usr/bin# sip-settings -a set xcap.xcap_root=
http://10.20.22.248/xcap-root
Account updated
root at cheewii-desktop:/usr/bin#

    root at cheewii-desktop:/usr/bin# xcap-icon   (wait for a long time...)
Traceback (most recent call last):
  File "/usr/bin/xcap-icon", line 25, in <module>
    from sipsimple.payloads.icon import Icon, Data
  File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line 41,
in <module>
    class Icon(XMLRootElement):
  File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py", line
418, in __init__
    cls._xml_schema =
etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,
cls._xml_schema_file), 'r')))
  File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__
(src/lxml/lxml.etree.c:101873)
lxml.etree.XMLSchemaParseError: Operation in progress
root at cheewii-desktop:/usr/bin#

root at cheewii-desktop:~# xcap-directory
Retrieving xcap-directory from http://10.20.22.248/xcap-root
Folder 'pres-rules':
        index.xml etag: aae3d665d44ed329121938851ce962a8
root at cheewii-desktop:~#

root at cheewii-desktop:~# xcap-dialog-rules
Retrieving current dialog rules from http://10.20.22.248/xcap-root
Allowed watchers:
Blocked watchers:
Polite-blocked watchers:
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.
Dialog rules document:
<?xml version='1.0' encoding='UTF-8'?>
<cp:ruleset xmlns:cp="urn:ietf:params:xml:ns:common-policy" xmlns:dr="
http://openxcap.org/ns/dialog-rules"/<http://openxcap.org/ns/dialog-rules%22/>
>
Allowed watchers:
Blocked watchers:
Polite-blocked watchers:
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.
watcher>

root at cheewii-desktop:~# xcap-pres-rules
Retrieving current presence rules from http://10.20.22.248/xcap-root
Allowed watchers:
        10001 at 10.20.22.248
Blocked watchers:
Polite-blocked watchers:
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.

root at cheewii-desktop:~# xcap-rls-services
Retrieving current RLS services from http://10.20.22.248/xcap-root
Managing service URI
sip:10001-buddies at 10.20.22.248<sip%3A10001-buddies at 10.20.22.248>
Buddies:
Press (a) to add or (r) to remove a buddy. (s) will show the RLS services
xml. (d) will delete the currently selected service.
RLS services document:
<?xml version='1.0' encoding='UTF-8'?>
<rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
xmlns="urn:ietf:params:xml:ns:rls-services">
  <service uri="sip:10001-buddies at 10.20.22.248<sip%3A10001-buddies at 10.20.22.248>
">
    <list/>
    <packages>
      <package>presence</package>
    </packages>
  </service>
</rls-services>
Then ,check some configure files:

root at cheewii-desktop:/usr/share/pyshared/sipsimple/payloads/xml-schemas# ls
caps.xsd           data-model.xsd        pidf.xsd           rpid.xsd
common-policy.xsd  dialog-info.xsd       pres-rules.xsd     watcherinfo.xsd
common-schema.xsd  im-iscomposing.xsd    resourcelists.xsd
xcap-directory.xsd
conference.xsd     oma-pres-content.xsd  rlsservices.xsd    xml.xsd

I found any xsd related icon, is it a error? And these *.xsd, I have not
touched them.

root at cheewii-desktop:/usr/src# vim
/usr/share/pyshared/sipsimple/payloads/xml-schemas/oma-pres-content.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:oma:xml:prs:pres-content"
   xmlns="urn:oma:xml:prs:pres-content"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   elementFormDefault="qualified"
   attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="
http://www.w3.org/2001/xml.xsd"/ <http://www.w3.org/2001/xml.xsd%22/>>
<xs:element name="content">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="mime-type" minOccurs="0">
            <xs:complexType>
               <xs:simpleContent>
                  <xs:extension base="xs:string">
                     <xs:anyAttribute processContents="lax"/>
                  </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
         <xs:element name="encoding" minOccurs="0">
            <xs:complexType>
               <xs:simpleContent>
                  <xs:extension base="xs:string">
                     <xs:anyAttribute processContents="lax"/>
                  </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
         <xs:element name="description" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
               <xs:simpleContent>
                 <xs:extension base="xs:string">
                   <xs:attribute ref="xml:lang"/>
                    <xs:anyAttribute processContents="lax"/>
                 </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
         <xs:element name="data">
            <xs:complexType>
               <xs:simpleContent>
                  <xs:extension base="xs:string">
                     <xs:anyAttribute processContents="lax"/>
                  </xs:extension>
               </xs:simpleContent>
            </xs:complexType>
         </xs:element>
         <xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:anyAttribute processContents="lax"/>
   </xs:complexType>
</xs:element>
</xs:schema>
root at cheewii-desktop:/usr/src#


This problem is really interesting..... Hope you can help me ^ ^..

CheeWii





2010/7/6 Saúl Ibarra Corretgé <saul at ag-projects.com>

> Hi,
>
> > root at shenhua-ims <mailto:root at shenhua-ims>:~# xcap-icon
> > Traceback (most recent call last):
> >    File "/usr/local/bin/xcap-icon", line 25, in <module>
> >      from sipsimple.payloads.icon import Icon, Data
> >    File "/usr/lib/pymodules/python2.6/sipsimple/payloads/icon.py", line
> > 41, in <module>
> >      class Icon(XMLRootElement):
> >    File "/usr/lib/pymodules/python2.6/sipsimple/payloads/__init__.py",
> > line 418, in __init__
> >      cls._xml_schema =
> > etree.XMLSchema(etree.parse(open(os.path.join(cls._xml_schema_dir,
> > cls._xml_schema_file), 'r')))
> >    File "xmlschema.pxi", line 85, in lxml.etree.XMLSchema.__init__
> > (src/lxml/lxml.etree.c:101873)
> > lxml.etree.XMLSchemaParseError: Operation in progress
>
> Can you check if your
> /usr/share/pyshared/sipsimple/payloads/xml-schemas/oma-pres-content.xsd
> is corrupt?
>
> Also, do other XCAP applications like xcap-directory work? Check it with
> the scripts from the sipclients package, not xcapclient.
>
>
> Regards,
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100706/09529c8b/attachment-0001.htm 


More information about the Users mailing list