From rrodgers at mail.nih.gov Tue Sep 4 15:39:49 2007 From: rrodgers at mail.nih.gov (Rodgers, Richard (NIH/NLM/LHC) [E]) Date: Tue, 4 Sep 2007 18:39:49 -0400 Subject: [Moziax] Moziax under Mac OS X and SPARC/Solaris -- anyone succeeded? Message-ID: Dear Colleagues, We are interested in contacting anyone with experience trying to build/use Moziax under either Mac OSX or SPARC/Solaris. Thanks and Best Regards, Rick Rodgers From jd.girard at sysnux.pf Wed Sep 5 00:07:08 2007 From: jd.girard at sysnux.pf (Jean-Denis Girard) Date: Tue, 04 Sep 2007 21:07:08 -1000 Subject: [Moziax] Moziax under Mac OS X and SPARC/Solaris -- anyone succeeded? In-Reply-To: References: Message-ID: <46DE559C.3040702@sysnux.pf> Rodgers, Richard (NIH/NLM/LHC) [E] a ?crit : > Dear Colleagues, > > We are interested in contacting anyone with experience trying to build/use > Moziax under either Mac OSX or SPARC/Solaris. Hi Richard, There were a few discussions about Mac version in the past. Here are the references on the mailing list archives: http://www.mozdev.org/pipermail/moziax/2007-July/000273.html http://www.mozdev.org/pipermail/moziax/2007-April/000256.html http://www.mozdev.org/pipermail/moziax/2006-September/000171.html I've just added AdamB's modifications to network_client to cvs. It's available here: http://www.mozdev.org/source/browse/moziax/src/moziax_osx_test.tar.bz2 Sadly, I did not even take time to look at his work... From what he said network_client should be running, what is needed is to build the XPI. As far as I know, nobody ever tried to make a SPARC/Solaris version. I suspect it would not be that difficult, same principle as for Mac: first build a standalone version of network_client, then integrate in the XPI. Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 From rrodgers at mail.nih.gov Thu Sep 6 13:40:21 2007 From: rrodgers at mail.nih.gov (Rodgers, Richard (NIH/NLM/LHC) [E]) Date: Thu, 6 Sep 2007 16:40:21 -0400 Subject: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? References: <46DE559C.3040702@sysnux.pf> Message-ID: Jean-Denis, Thanks for the helpful response. With respect to getting Moziax running on SPARC/Solaris, I have discussed the problem with my collaborator Stephen Uhler at Sun labs, who reports that the key issue is this: what version of the iaxclient library does the Moxiax code base employ? He examined the Moziax code repository and it was not clear to him. If it's version 1, then getting Moziax running under Solaris would be fairly easy, as he has already put the requisite audio support pieces in place. If it is version 2, it may be more work, as he has not yet dealt with the "portable audio layer" v.19 code that apparently is part of version 2. We'd both like to see Moziax running on this platform eventually. Thanks and Best Regards, Rick Rodgers -----Original Message----- From: Jean-Denis Girard [mailto:jd.girard at sysnux.pf] Sent: Wed 9/5/2007 3:07 AM To: moziax at mozdev.org Cc: Wang, Ye (NIH/NLM/LHC) [C]; stephen.uhler at sun.com Subject: Re: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? Rodgers, Richard (NIH/NLM/LHC) [E] a ?crit : > Dear Colleagues, > > We are interested in contacting anyone with experience trying to build/use > Moziax under either Mac OSX or SPARC/Solaris. Hi Richard, There were a few discussions about Mac version in the past. Here are the references on the mailing list archives: http://www.mozdev.org/pipermail/moziax/2007-July/000273.html http://www.mozdev.org/pipermail/moziax/2007-April/000256.html http://www.mozdev.org/pipermail/moziax/2006-September/000171.html I've just added AdamB's modifications to network_client to cvs. It's available here: http://www.mozdev.org/source/browse/moziax/src/moziax_osx_test.tar.bz2 Sadly, I did not even take time to look at his work... From what he said network_client should be running, what is needed is to build the XPI. As far as I know, nobody ever tried to make a SPARC/Solaris version. I suspect it would not be that difficult, same principle as for Mac: first build a standalone version of network_client, then integrate in the XPI. Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 _______________________________________________ Moziax mailing list Moziax at mozdev.org http://mozdev.org/mailman/listinfo/moziax -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4149 bytes Desc: not available Url : http://mozdev.org/pipermail/moziax/attachments/20070906/7f15c2f4/attachment.bin From rrodgers at mail.nih.gov Thu Sep 6 13:47:59 2007 From: rrodgers at mail.nih.gov (Rodgers, Richard (NIH/NLM/LHC) [E]) Date: Thu, 6 Sep 2007 16:47:59 -0400 Subject: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? References: <46DE559C.3040702@sysnux.pf> Message-ID: Jena-Denis, One of the older postings you pointed out was from Alan Ibrahim and included an email address for him; the others, and your further note, all referred to "AdamB" but with no way of getting in touch with him. I'd much appreciate getting Adam's email address so as to be able to contact him to see if he has made any further headway with Moziax on the Mac. Cheers, Rick Rodgers -----Original Message----- From: Rodgers, Richard (NIH/NLM/LHC) [E] Sent: Thu 9/6/2007 4:40 PM To: moziax at mozdev.org Cc: Wang, Ye (NIH/NLM/LHC) [C]; stephen.uhler at sun.com; jd.girard at sysnux.pf; Rodgers, Richard (NIH/NLM/LHC) [E] Subject: RE: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? Jean-Denis, Thanks for the helpful response. With respect to getting Moziax running on SPARC/Solaris, I have discussed the problem with my collaborator Stephen Uhler at Sun labs, who reports that the key issue is this: what version of the iaxclient library does the Moxiax code base employ? He examined the Moziax code repository and it was not clear to him. If it's version 1, then getting Moziax running under Solaris would be fairly easy, as he has already put the requisite audio support pieces in place. If it is version 2, it may be more work, as he has not yet dealt with the "portable audio layer" v.19 code that apparently is part of version 2. We'd both like to see Moziax running on this platform eventually. Thanks and Best Regards, Rick Rodgers -----Original Message----- From: Jean-Denis Girard [mailto:jd.girard at sysnux.pf] Sent: Wed 9/5/2007 3:07 AM To: moziax at mozdev.org Cc: Wang, Ye (NIH/NLM/LHC) [C]; stephen.uhler at sun.com Subject: Re: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? Rodgers, Richard (NIH/NLM/LHC) [E] a ?crit : > Dear Colleagues, > > We are interested in contacting anyone with experience trying to build/use > Moziax under either Mac OSX or SPARC/Solaris. Hi Richard, There were a few discussions about Mac version in the past. Here are the references on the mailing list archives: http://www.mozdev.org/pipermail/moziax/2007-July/000273.html http://www.mozdev.org/pipermail/moziax/2007-April/000256.html http://www.mozdev.org/pipermail/moziax/2006-September/000171.html I've just added AdamB's modifications to network_client to cvs. It's available here: http://www.mozdev.org/source/browse/moziax/src/moziax_osx_test.tar.bz2 Sadly, I did not even take time to look at his work... From what he said network_client should be running, what is needed is to build the XPI. As far as I know, nobody ever tried to make a SPARC/Solaris version. I suspect it would not be that difficult, same principle as for Mac: first build a standalone version of network_client, then integrate in the XPI. Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 _______________________________________________ Moziax mailing list Moziax at mozdev.org http://mozdev.org/mailman/listinfo/moziax From jd.girard at sysnux.pf Sat Sep 8 21:10:22 2007 From: jd.girard at sysnux.pf (Jean-Denis Girard) Date: Sat, 08 Sep 2007 18:10:22 -1000 Subject: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? In-Reply-To: References: <46DE559C.3040702@sysnux.pf> Message-ID: <46E3722E.4030809@sysnux.pf> Rodgers, Richard (NIH/NLM/LHC) [E] a ?crit : > Jean-Denis, > > Thanks for the helpful response. With respect to getting Moziax > running on SPARC/Solaris, I have discussed the problem with my > collaborator Stephen Uhler at Sun labs, who reports that the key > issue is this: what version of the iaxclient library does the > Moxiax code base employ? He examined the Moziax code repository > and it was not clear to him. If it's version 1, then getting > Moziax running under Solaris would be fairly easy, as he has > already put the requisite audio support pieces in place. If it > is version 2, it may be more work, as he has not yet dealt with > the "portable audio layer" v.19 code that apparently is part of > version 2. We'd both like to see Moziax running on this platform > eventually. Current version of MozPhone was built with old libiaxclient, so you should be fine. I made a few modifications to it though, a diff was sent to the list back in March: http://www.mozdev.org/pipermail/moziax/2007-March/000244.html Do not hesitate to contact me if you need more information. Best regards, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 From jd.girard at sysnux.pf Sat Sep 8 21:22:23 2007 From: jd.girard at sysnux.pf (Jean-Denis Girard) Date: Sat, 08 Sep 2007 18:22:23 -1000 Subject: [Moziax] Moziax under Mac OS X and SPARC/Solaris --anyone succeeded? In-Reply-To: References: <46DE559C.3040702@sysnux.pf> Message-ID: <46E374FF.1070109@sysnux.pf> Rodgers, Richard (NIH/NLM/LHC) [E] a ?crit : > Jena-Denis, > > One of the older postings you pointed out was from Alan Ibrahim > and included an email address for him; the others, and your > further note, all referred to "AdamB" but with no way of getting > in touch with him. I'd much appreciate getting Adam's email > address so as to be able to contact him to see if he has made > any further headway with Moziax on the Mac. Rick, I sent an email to Adam, asking him to contact you directly, if he wishes to. Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 From voltagex at gmail.com Sun Sep 9 03:43:27 2007 From: voltagex at gmail.com (Adam) Date: Sun, 9 Sep 2007 20:43:27 +1000 Subject: [Moziax] OSX: updates, my instructions were incorrect Message-ID: <8f1cf64b0709090343j17acbf5q668a1466440ea918@mail.gmail.com> Checkout the normal CVS version of MozIAX cvs login cvs -z3 -d :pserver:guest at mozdev.org:/cvs co moziax/src assuming we are in /usr/src the MozIAX source should now be /usr/src/moziax/src **********UPDATE late on Sunday, 2007-09-09***** The instructions below were incorrect and I'm unsure of what I've done The patched IAXClient library should be in /usr/src/moziax/src/iaxclient if you are using my paths you run the make command in the same path as before. Download the patched version of IAXClient wget http://voltagex.org/moziax/patched_libiaxclient.tar.bz2 The MD5: e00274db0c1b7fad6475659928178a12 patched_libiaxclient.tar.bz2 tar jxf patched_libiaxclient.tar.bz2 cp -R lib/ moziax/src/iaxclient/ #2007-09-09 updated. cd moziax/src/iaxclient_network/lib make The moziax source tree with iaxclient already built for OSX is: 2a08a7b0184ea1876084b58984d22199 moziax_osx_test.tar.bz2 NOTE as per my updates above this is incorrect... http://voltagex.org/moziax/moziax_osx_test.tar.bz2 As always, ymmv. --Adam From voltagex at gmail.com Mon Sep 10 21:37:50 2007 From: voltagex at gmail.com (Adam) Date: Tue, 11 Sep 2007 14:37:50 +1000 Subject: [Moziax] OSX: updates, my instructions were incorrect Message-ID: <8f1cf64b0709102137v50c4f509x30e66ee85261e42@mail.gmail.com> More instructions. Assuming libiax (libiaxclient.a) built successfully, you need to (I was at /usr/src/moziax/src/iaxclient/lib) $ cd ../../iaxclient_network $ make clean $ make network_client should now be built for OS X. Some questions/comments: Is there a way to have (Jean's OSX-patched) source in the CVS to remove some of the steps from my instructions? Can network_client's Makefile be updated to build libiaxclient.a automatically? You should be able to get away without changing chrome/content/mozphone/mozphone.js for OS X (Line 345) because the Linux code below it should work just fine. Next thing to do is run mkxpi.sh and build the extension finally. From voltagex at gmail.com Sat Sep 15 00:48:21 2007 From: voltagex at gmail.com (Adam) Date: Sat, 15 Sep 2007 17:48:21 +1000 Subject: [Moziax] Fwd: Mozphone on the Mac In-Reply-To: References: <200709142054.l8EKsMuu028385@gack.sfbay.sun.com> Message-ID: <8f1cf64b0709150048v2e0e16a6r381673312bc0ca79@mail.gmail.com> Forwarding this yet again back to the mozphone mailing list, this discussion is going everywhere at once! ---------- Forwarded message ---------- [email addresses snipped] Stephen, Thanks for looking at this! I'm forwarding your note to several folks: Ye (who is probably no more comfortable on the Mac than I am), Eric Olson, a Mac developer with the Access Grid project (who is already up to his eyeballs with work, but does have the technical skills, and *might* be interested in looking at this if he realizes that it will be useful to the AG-phone gateway we are working on with Chris Willing in Queensland), and to Adam and Jean-Denis, who have been so helpful in the process of our getting Mozphone running on current platforms. As we now have Mozphone running on Windows and Linux, and you have gottent it running on Solaris (SPARC & i86), we are now one platform away (Mac OS X) from a IAX-based VoIP client that runs as a Firefox extension on all major platforms, which will be hugely useful for all sorts of applications. I am hopeful that at least one of the recipients might be eager to look at this further, or can recommend someone else who is... Cheers, Rick eolson -----Original Message----- From: Stephen Uhler [mailto:stephen.uhler at sun.com] Rick, I sort-of have Mozphone working on my PPC mac laptop. The network_client program compiles with no problem, but when I build the "xpi" file and install Mozphone on my mac: 1) Something is wrong with the fonts on the GUI, and the numbers disappear. 2) The net_client program doesn't start automatically when I start the phone. If I start the net_client program "by hand" from the command line I can place phone calls. If you can find someonw who is more knowlegable about the firefox/mac environnent, I'm happy to provide a working "network_client" program. (I already have one for mac/ppc, and could build one for Mac/intel if I had one) S From jd.girard at sysnux.pf Sat Sep 15 11:29:50 2007 From: jd.girard at sysnux.pf (Jean-Denis Girard) Date: Sat, 15 Sep 2007 08:29:50 -1000 Subject: [Moziax] Fwd: Mozphone on the Mac In-Reply-To: <8f1cf64b0709150048v2e0e16a6r381673312bc0ca79@mail.gmail.com> References: <200709142054.l8EKsMuu028385@gack.sfbay.sun.com> <8f1cf64b0709150048v2e0e16a6r381673312bc0ca79@mail.gmail.com> Message-ID: <46EC249E.2060503@sysnux.pf> Hi list, It seems that MozPhone on Mac is making progress: many thanks to the people working on it. > I sort-of have Mozphone working on my PPC mac laptop. > The network_client program compiles with no problem, but when I > build the "xpi" file and install Mozphone on my mac: > > 1) Something is wrong with the fonts on the GUI, and the > numbers disappear. I don't know what can cause that. Is it affecting all the GUI (preferences dialog), or just the dialpad? The dialpad is using SVG so that may be badly supported on the Mac. > > 2) The net_client program doesn't start automatically when I > start the phone. If I start the net_client program "by hand" from > the command line I can place phone calls. Maybe I can help here. network_client is started by the GUI. The JavaScript code is in chrome/content/mozphone/mozphone.js, at line 345. As you can see we are looking for network_client in different places, depending on the platform (Windows / Linux). Maybe a minor change is needed for the Mac. Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 From golfieri at gmail.com Tue Sep 18 01:28:15 2007 From: golfieri at gmail.com (Marcello Golfieri) Date: Tue, 18 Sep 2007 10:28:15 +0200 Subject: [Moziax] Changing handler from "tel:" to "callto:" protocol Message-ID: hi there, so far I tweaked Mozphone to allow me to achieve some targets, such as storing its iax server plain text pwd inside the mozilla profile, and changing few other minor things related to my deployment. But now I need to change something bigger, that is the protocol handler registerd into Firefox. I'd like to have it set on callto: instead of tel: tag. Peeking around, I found out some files citing it, but I then saw there are many more points that should be changed, I believe. For instance, in these files: src/components/nsMozphone.js: src/chrome/content/mozphone/mozphone.xul: src/chrome/content/mozphone/browser_overlay.xul: src/chrome/content/mozphone/mozphone.js: there are many code segments claiming the tag "tel", or "tel:", or whatever. Like in "src/components/nsMozphone.js": const TEL_MIMETYPE = "application/x-tel"; is it to change, or is it hardcoded as category "TELephony"? As you see, there's no core point in which you change code, and there it is, job is done... This was one of thousands of places in which I can't figure out whether I should change it into callto or not, hoping not to break moziax code. Being completely out of MozDev scene and mozilla development in general, I hope that you guys could hint me without much effort in this tweaking, for I believe it is really a gimmick. Isn't it? Hope it is! Thanks in advance guys... -- Marcello Golfieri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mozdev.org/pipermail/moziax/attachments/20070918/5d77eaae/attachment.html From jd.girard at sysnux.pf Tue Sep 18 09:45:13 2007 From: jd.girard at sysnux.pf (Jean-Denis Girard) Date: Tue, 18 Sep 2007 06:45:13 -1000 Subject: [Moziax] Changing handler from "tel:" to "callto:" protocol In-Reply-To: References: Message-ID: <46F00099.5030303@sysnux.pf> Hi Marcello, Marcello Golfieri a ?crit : > hi there, > > so far I tweaked Mozphone to allow me to achieve some targets, such as > storing its iax server plain text pwd inside the mozilla profile, and > changing few other minor things related to my deployment. Could you post your changes so they can be included, if not specific? > > But now I need to change something bigger, that is the protocol handler > registerd into Firefox. I'd like to have it set on callto: instead of > tel: tag. > > Peeking around, I found out some files citing it, but I then saw there > are many more points that should be changed, I believe. For instance, > in these files: > > src/components/nsMozphone.js: > src/chrome/content/mozphone/mozphone.xul: > src/chrome/content/mozphone/browser_overlay.xul: > src/chrome/content/mozphone/mozphone.js: > > there are many code segments claiming the tag "tel", or "tel:", or > whatever. Like in "src/components/nsMozphone.js": > > const TEL_MIMETYPE = "application/x-tel"; > > is it to change, or is it hardcoded as category "TELephony"? > > As you see, there's no core point in which you change code, and there it > is, job is done... > > This was one of thousands of places in which I can't figure out whether > I should change it into callto or not, hoping not to break moziax code. > Being completely out of MozDev scene and mozilla development in general, > I hope that you guys could hint me without much effort in this tweaking, > for I believe it is really a gimmick. > > Isn't it? Hope it is! The protocol handler is defined in the component (src/components/nsMozphone.js). Without looking back at the code, this should be the main (only?) file to modify the name of the protocol. Tell me if you need more assistance. Out of curiosity, why do you need the protocol to be "callto:"? Maybe "tel:" should be replaced by "iax:". Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 From golfieri at gmail.com Wed Sep 19 00:37:37 2007 From: golfieri at gmail.com (Marcello Golfieri) Date: Wed, 19 Sep 2007 09:37:37 +0200 Subject: [Moziax] Moziax Digest, Vol 23, Issue 6 In-Reply-To: References: Message-ID: Hi there, I'd like to let you know some of the modifications I did on my mozphone.xpi, mainly decided based on our requests (that is, installing mozphone on a firefox portable on a pendrive), JD told me there was the possibility that some of those could be useful, so there I am broadcasting 'em. 1) Changing prefs file position into mozilla user profile at line 98 and 101 in /moziax/chrome/content/mozphone/preferences.js change it like this: var d = new Dir( du.getMozUserHomeDir() ); d.append( '.mozphone' ); if( ! d.exists() ) d.create(); var d = new Dir( du.getMozUserHomeDir() ); This doesn't fix a major problem anyways: the fact that the pwd is stored in plain text anyways on the FS. A big hit could be integrating this auth storage inside mozilla security solution into the profile. Anybody knows how? 2) Labelling with debug messages the connection status (instead of just changing color): These lines have been ADDED! line 557 in mozphone.js: gui.registration.label='Connessione stabilita'; line 566: gui.registration.label='Errore di connessione'; line 573: gui.registration.label='Server irraggiungibile'; The other modifications are context-dependent, like filtering on moziax side some strings dragged from Zimbra, filtering its default +01... What I was telling JD was that I need to change the default protocol handler towards "callto:" because that's the default in Zimbra. And moziax looks much easier to modify! I'll try and let you know. -- Marcello Golfieri Message: 2 > Date: Tue, 18 Sep 2007 06:45:13 -1000 > From: Jean-Denis Girard > Subject: Re: [Moziax] Changing handler from "tel:" to "callto:" > protocol > To: moziax at mozdev.org > Message-ID: <46F00099.5030303 at sysnux.pf> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Marcello, > > Marcello Golfieri a ?crit : > > hi there, > > > > so far I tweaked Mozphone to allow me to achieve some targets, such as > > storing its iax server plain text pwd inside the mozilla profile, and > > changing few other minor things related to my deployment. > > Could you post your changes so they can be included, if not specific? > > > > > But now I need to change something bigger, that is the protocol handler > > registerd into Firefox. I'd like to have it set on callto: instead of > > tel: tag. > > > > Peeking around, I found out some files citing it, but I then saw there > > are many more points that should be changed, I believe. For instance, > > in these files: > > > > src/components/nsMozphone.js: > > src/chrome/content/mozphone/mozphone.xul: > > src/chrome/content/mozphone/browser_overlay.xul: > > src/chrome/content/mozphone/mozphone.js: > > > > there are many code segments claiming the tag "tel", or "tel:", or > > whatever. Like in "src/components/nsMozphone.js": > > > > const TEL_MIMETYPE = "application/x-tel"; > > > > is it to change, or is it hardcoded as category "TELephony"? > > > > As you see, there's no core point in which you change code, and there it > > is, job is done... > > > > This was one of thousands of places in which I can't figure out whether > > I should change it into callto or not, hoping not to break moziax code. > > Being completely out of MozDev scene and mozilla development in general, > > I hope that you guys could hint me without much effort in this tweaking, > > for I believe it is really a gimmick. > > > > Isn't it? Hope it is! > > The protocol handler is defined in the component > (src/components/nsMozphone.js). Without looking back at the code, this > should be the main (only?) file to modify the name of the protocol. Tell > me if you need more assistance. > > Out of curiosity, why do you need the protocol to be "callto:"? Maybe > "tel:" should be replaced by "iax:". > > Thanks, > -- > Jean-Denis Girard > > SysNux Syst?mes Linux en Polyn?sie fran?aise > http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mozdev.org/pipermail/moziax/attachments/20070919/dd1f2c84/attachment.html From golfieri at gmail.com Wed Sep 19 01:33:27 2007 From: golfieri at gmail.com (Marcello Golfieri) Date: Wed, 19 Sep 2007 10:33:27 +0200 Subject: [Moziax] Moziax Digest, Vol 23, Issue 6 In-Reply-To: References: Message-ID: Tried changing the default protocol to "callto:", but without luck... First of all, when you click on a callto://xxxxxxxxx it asks what application has to run to open that link (with the usual windows and two options, plus OK and Cancel). Since moziax is an extension and not an app itself, it's obvious that this is a non-standard behaviour. So clicking Cancel let the number field be filled with the number plus a trailing "/", not starting the call anyways. If I don't remember wrong, this happened even before my change to the protocol. How could it be avoided? Any ideas anybody? On 9/19/07, Marcello Golfieri wrote: > > Hi there, > > I'd like to let you know some of the modifications I did on my > mozphone.xpi, mainly decided based on our requests (that is, installing > mozphone on a firefox portable on a pendrive), JD told me there was the > possibility that some of those could be useful, so there I am broadcasting > 'em. > > 1) Changing prefs file position into mozilla user profile > > at line 98 and 101 in /moziax/chrome/content/mozphone/preferences.js > change it like this: > > var d = new Dir( du.getMozUserHomeDir() ); > d.append( '.mozphone' ); > if( ! d.exists() ) d.create(); > var d = new Dir( du.getMozUserHomeDir() ); > > > This doesn't fix a major problem anyways: the fact that the pwd is stored > in plain text anyways on the FS. A big hit could be integrating this auth > storage inside mozilla security solution into the profile. Anybody knows > how? > > > 2) Labelling with debug messages the connection status (instead of just > changing color): > > These lines have been ADDED! > > line 557 in mozphone.js: gui.registration.label='Connessionestabilita'; > line 566: gui.registration.label='Errore di connessione'; > line 573: gui.registration.label='Server irraggiungibile'; > > > > > The other modifications are context-dependent, like filtering on moziax > side some strings dragged from Zimbra, filtering its default +01... > > What I was telling JD was that I need to change the default protocol > handler towards "callto:" because that's the default in Zimbra. And moziax > looks much easier to modify! I'll try and let you know. > > > > > -- > Marcello Golfieri > > > > Message: 2 > > Date: Tue, 18 Sep 2007 06:45:13 -1000 > > From: Jean-Denis Girard > > Subject: Re: [Moziax] Changing handler from "tel:" to "callto:" > > protocol > > To: moziax at mozdev.org > > Message-ID: <46F00099.5030303 at sysnux.pf> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Hi Marcello, > > > > Marcello Golfieri a ?crit : > > > hi there, > > > > > > so far I tweaked Mozphone to allow me to achieve some targets, such as > > > storing its iax server plain text pwd inside the mozilla profile, and > > > changing few other minor things related to my deployment. > > > > Could you post your changes so they can be included, if not specific? > > > > > > > > But now I need to change something bigger, that is the protocol > > handler > > > registerd into Firefox. I'd like to have it set on callto: instead of > > > tel: tag. > > > > > > Peeking around, I found out some files citing it, but I then saw there > > > are many more points that should be changed, I believe. For instance, > > > > > in these files: > > > > > > src/components/nsMozphone.js: > > > src/chrome/content/mozphone/mozphone.xul: > > > src/chrome/content/mozphone/browser_overlay.xul: > > > src/chrome/content/mozphone/mozphone.js: > > > > > > there are many code segments claiming the tag "tel", or "tel:", or > > > whatever. Like in "src/components/nsMozphone.js": > > > > > > const TEL_MIMETYPE = "application/x-tel"; > > > > > > is it to change, or is it hardcoded as category "TELephony"? > > > > > > As you see, there's no core point in which you change code, and there > > it > > > is, job is done... > > > > > > This was one of thousands of places in which I can't figure out > > whether > > > I should change it into callto or not, hoping not to break moziax > > code. > > > Being completely out of MozDev scene and mozilla development in > > general, > > > I hope that you guys could hint me without much effort in this > > tweaking, > > > for I believe it is really a gimmick. > > > > > > Isn't it? Hope it is! > > > > The protocol handler is defined in the component > > (src/components/nsMozphone.js). Without looking back at the code, this > > should be the main (only?) file to modify the name of the protocol. Tell > > me if you need more assistance. > > > > Out of curiosity, why do you need the protocol to be "callto:"? Maybe > > "tel:" should be replaced by "iax:". > > > > Thanks, > > -- > > Jean-Denis Girard > > > > SysNux Syst?mes Linux en Polyn?sie fran?aise > > http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527 > > > > > > > > > -- Marcello Golfieri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mozdev.org/pipermail/moziax/attachments/20070919/884b83b1/attachment.html