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
_______________________________________________
Moziax mailing list
Moziax mozdev.org
http://mozd
ev.org/mailman/listinfo/moziax
|