[Moziax] Changing handler from "tel:" to "callto:" protocol

Marcello Golfieri golfieri at gmail.com
Tue Sep 18 01:28:15 PDT 2007


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 


More information about the Moziax mailing list