[sip-comm-dev] loading a contactlist.xml


#1

Hi everyone,

I would like to load a list of contacts from a MySQL database to
sip-communicator.
When starting, sip-communicator is loading a XML file call contactlist.xml which
is located in /root/.sip-communicator/.
I have made a litle application in PHP that asks my username and then picks up
informations from a MySQL database to generate a good contactlist.xml. The
application makes a copy of this file and replaces the original
/root/.sip-communicator/contactlist.xml. I restart sip-communicator and
everything works perfectly.

Now I would like to put this application on a web page. The user gives is
username and a personnal contactlist.xml is generated.
Problem : I can't modify his original contactlist.xml in local !

Maybe someone has an other solution or has already setup something close ?

Thanks in advance,

Kind regards,

Edouard

···

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


#2

Hi,

To modify the local file you need to run your php application in local too.

Maybe with a java applet, I'm not sure but I think it can write on local files.

Bye

Damien

···

2008/6/17 <ebarthelemy@doonya.eu>:

Hi everyone,

I would like to load a list of contacts from a MySQL database to
sip-communicator.
When starting, sip-communicator is loading a XML file call contactlist.xml which
is located in /root/.sip-communicator/.
I have made a litle application in PHP that asks my username and then picks up
informations from a MySQL database to generate a good contactlist.xml. The
application makes a copy of this file and replaces the original
/root/.sip-communicator/contactlist.xml. I restart sip-communicator and
everything works perfectly.

Now I would like to put this application on a web page. The user gives is
username and a personnal contactlist.xml is generated.
Problem : I can't modify his original contactlist.xml in local !

Maybe someone has an other solution or has already setup something close ?

Thanks in advance,

Kind regards,

Edouard

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

--
Damien ROTH
Programmeur n.m : Celui qui résout un problème que vous n'aviez pas,
d'une façon que vous ne comprenez pas.

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


#3

Maybe with a java applet, I'm not sure but I think it can write on local files.

But only if you sign your applet - otherwise it has no permission to
modify files on the local system.

Sebastian

···

Bye

Damien

2008/6/17 <ebarthelemy@doonya.eu>:

Hi everyone,

I would like to load a list of contacts from a MySQL database to
sip-communicator.
When starting, sip-communicator is loading a XML file call contactlist.xml which
is located in /root/.sip-communicator/.
I have made a litle application in PHP that asks my username and then picks up
informations from a MySQL database to generate a good contactlist.xml. The
application makes a copy of this file and replaces the original
/root/.sip-communicator/contactlist.xml. I restart sip-communicator and
everything works perfectly.

Now I would like to put this application on a web page. The user gives is
username and a personnal contactlist.xml is generated.
Problem : I can't modify his original contactlist.xml in local !

Maybe someone has an other solution or has already setup something close ?

Thanks in advance,

Kind regards,

Edouard

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

--
/**
* Sebastian Heib
* Software Developer
*
* Synyx GmbH & Co. KG
* Business in Components
* Karlstr. 68
* 76137 Karlsruhe
*
* phone +49(0)721 66 24 866
* fax +49(0)721 66 48 877
* eMail heib@synyx.de
* www http://www.synyx.de
* irc irc.synyx.de
*
* Sitz der Gesellschaft: Karlsruhe
* Registergericht: Mannheim
* Handelsregisternummer: HRA 4793
* USt-IdNr.: DE249264296
*
* Komplement�rin: Elatech Verwaltungs GmbH
* Sitz der Gesellschaft: Karlsruhe
* Gesch�ftsf�hrer: Markus Daniel
* Registergericht: Mannheim
* Handelsregisternummer: HRB 7250
*/

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