[Moziax] Mac Installation with Minor Errors

Alan Ibrahim teksmart at hotmail.com
Tue Sep 26 16:26:00 EDT 2006


Hello,

With Jean-Genis's guidance, I was successful at compiling and running Moziax 
on my Mac OS X 10.4.x
Only catch is you have to first manually start network_client from the 
terminal before launching Mozphone in Firefox. And all the phone buttons 
using SVG do not display any numbers. Other than that, Mozphone works fine 
on the Mac... I tested it using GSM codecs with my Asterisk pbx and it runs 
brilliantly. If anyone has a solution for the minor errors incountered 
above, your input would be appreciated.

Here are the steps that you need to take to successfully run Moziax on your 
Mac:

1) Compile network_client, which is written is C. Note that it depends on 
the iaxclient library (http://iaxclient.sourceforge.net). According to the 
guy who succeeded
in compiling on Mac OSX, the only changes needed are:
- gastman.c
//  #ifdef __FreeBSD__
    #include <sys/types.h>
//  #endif
- network_client.c
#include <sys/time.h>
#include <time.h>

Iaxclient_network Makefile should also be adapted to your environment.
I saved my iaxclient library in /Library/moziax/src so I made the following 
changes to Makefile:
IAXC=/Library/moziax/src

Also change libiax/src to libiax2/src in Makefile:
CFLAGS=-I$(IAXC)/lib -I$(IAXC)/lib/libiax2/src -I$(IAXC)/lib/gsm/inc 
-I$(IAXC)/lib/portaudio/pa_common -I$(IAXC)/lib/portaudio/pablio -I.

Once network_client is compiled, you can test it from the command line. It 
will open port 9998 for 10 seconds, so you can connect from a second 
terminal with telnet localhost 9998, then type quit.

2) Build the xul interface. You will need to modify 
chrome/content/mozphone/mozphone.js:
in function ast_init() near line 300 you will need to launch network_client. 
Simply copying what is done for Linux causes the first error (but you can 
get past this error by manually starting network_client through the terminal 
before launching Mozphone).

Then for installation you will have to modify install_template.js in order 
to allow install on Mac platform:
Comment out lines 42 - 45:
//if( os == 'mac' ) {
//	cancelInstall();      // cancel the installation.
//	alert( "MozPhone not (yet) supported on Mac, sorry !\nInstallation 
cancelled.");
//}
and change line 49 to:
  if( os == 'unix' || os == 'mac' ) {

Then copy file install_template.js to src/install.js

3) In mkxpi.sh replace every instance of 'cp -a' with 'cp -R' (remove 
quotes)
And replace line 74 with:
sed "sß<em:version>.*</em:version>ß<em:version>$VER</em:version>ß" < 
$SRC/install.rdf > install.rdf

Build mozphone-linux.xpi by running mkxpi.sh at the command line. Install 
mozphone-linux.xpi on Firefox.

That should do it! Again if anyone has a solution for the minor errors 
encountered above, please post your solution.

~Alan Ibrahim

_________________________________________________________________
Try the new Live Search today!  
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG



More information about the Moziax mailing list