[sip-comm-dev] where is sip-communicator.xml file in ubuntu


#1

Hi,

I've been spending long time working with sip-communicator in Ubuntu until
October. I was using the version 1798 (more or less) and I could see the
file sip-communicator.xml in /home/myuser/.sip-communicator/. But now I've
come back to use a newer version, upwards version 2000 and that file has
dissapear
Where is it? Instead of that file, I can see a sip-communicator.properties.

Does this file the equivalent of those one?

How can I translate that new one, because I had an application which use
the xml file.

Can anybody help me??

Thanks a lot

Pedro

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Where is it? Instead of that file, I can see a sip-communicator.properties.

Does this file the equivalent of those one?

An automatic attempt is made to convert the old .xml configuration to
the new .properties configuration. The .properties backend is much
faster than the .xml one.

How can I translate that new one, because I had an application which use
the xml file.

Please refer to
http://java.sun.com/javase/6/docs/api/java/util/Properties.html#load(java.io.Reader)
for the .properties file format.

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hey Pedro,

pmoreno@gbt.tfo.upm.es написа:

How can I translate that new one, because I had an application which use
the xml file.

In addition to what Lubomir already answered, it may also be worth
noting that old-style properties are very easily mapable to name=value
properties. Basically a property that used to look this way:

<net>
  <java>
    <sip>
      <communicator>
        <PROP value="propValue">
      </communicator>
    </sip>
  </java>
</net>

would now translate to

net.java.sip.communicator.impl.PROP=propValue

Hope this helps,
Emil

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hello Emil and Lubo

Thanks for answering, related to this issue (properties file instead of xml file) I have the following problem.

I've developed an application which uses the xml file SIPComm in order to make an automatic call reading specific contacts from contacts.xml file. But first I need to register my sip account, that is, I need a sip-communicator.xml with my SIP account. I generated that xml file with the installed version of SIPCommunicator on my ubuntu, but at the moment all available installed versions generate the .properties file.

So, how could I get an sipCommunicator-Ubuntu installed version (.deb package) that generate the xml file? I know version 1746 of before use that xml file.

Thanks in advance

Regards

···

-----Mensaje original-----
De: Emil Ivov [mailto:emcho@sip-communicator.org]
Enviado el: viernes, 12 de febrero de 2010 19:24
Para: dev@sip-communicator.dev.java.net
Asunto: Re: [sip-comm-dev] where is sip-communicator.xml file in ubuntu

Hey Pedro,

pmoreno@gbt.tfo.upm.es написа:

How can I translate that new one, because I had an application which use
the xml file.

In addition to what Lubomir already answered, it may also be worth
noting that old-style properties are very easily mapable to name=value
properties. Basically a property that used to look this way:

<net>
  <java>
    <sip>
      <communicator>
        <PROP value="propValue">
      </communicator>
    </sip>
  </java>
</net>

would now translate to

net.java.sip.communicator.impl.PROP=propValue

Hope this helps,
Emil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2682 - Release Date: 02/11/10 17:09:00

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Pedro Moreno написа:

Hello Emil and Lubo

Thanks for answering, related to this issue (properties file instead
of xml file) I have the following problem.

I've developed an application which uses the xml file SIPComm in
order to make an automatic call reading specific contacts from
contacts.xml file. But first I need to register my sip account, that
is, I need a sip-communicator.xml with my SIP account. I generated
that xml file with the installed version of SIPCommunicator on my
ubuntu, but at the moment all available installed versions generate
the .properties file.

So, how could I get an sipCommunicator-Ubuntu installed version (.deb
package) that generate the xml file? I know version 1746 of before
use that xml file.

There are no such version available anymore I am afraid. You could
either build one yourself by disabling the Properties store in SC's
configuration service or (which would probably be a better idea) make
your code generate properties rather than xml (should be very simple).

Having said this, it is generally not a good idea to write into the
configuration file itself because (as you can see) the format is subject
to change. You'd be better off creating accounts through the protocol
factory services, the way the account wizards do.

Hope this helps,
Emil

···

Thanks in advance

Regards

-----Mensaje original----- De: Emil Ivov
[mailto:emcho@sip-communicator.org] Enviado el: viernes, 12 de
febrero de 2010 19:24 Para: dev@sip-communicator.dev.java.net Asunto:
Re: [sip-comm-dev] where is sip-communicator.xml file in ubuntu

Hey Pedro,

pmoreno@gbt.tfo.upm.es написа:

How can I translate that new one, because I had an application
which use the xml file.

In addition to what Lubomir already answered, it may also be worth
noting that old-style properties are very easily mapable to
name=value properties. Basically a property that used to look this
way:

<net> <java> <sip> <communicator> <PROP value="propValue">
</communicator> </sip> </java> </net>

would now translate to

net.java.sip.communicator.impl.PROP=propValue

Hope this helps, Emil

---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net For additional
commands, e-mail: dev-help@sip-communicator.dev.java.net No virus
found in this incoming message. Checked by AVG - www.avg.com Version:
9.0.733 / Virus Database: 271.1.1/2682 - Release Date: 02/11/10
17:09:00

---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net For additional
commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net