Building minisip_textui with visual studio 2005

Philippe Torrelli philippe.torrelli at alcatel.fr
Tue Oct 10 19:45:52 CEST 2006


Hello, 

I would like to share the modifications I had to do to be able to build most
of minisip components with vs2005 enterprise.

I've been successful in building minisip_textui in revisions 2813 and 2823.

What is built is a debug mode, non unicode version of minisip_textui binary,

with g711 codec embedded, the mportaudio and directsound plugins, libmikey, 
libminisip, libmutil, libmcrypto, and libmstun libraries.

The resulting binary has been tested in portaudio mode using  non 
encrypted sip against other sip phones - including real phones 
registered to an openser proxy. 

Well actually 'tested' here means that calls could be established
 and both parties could speak and listen to the other party. 
Also the sip exchanges were quickly overlooked to help understand 
some configurations issues we had with the proxy. 

With minimal tweaking of the libminisip project it was easy to add and check
support for gsm ( took the gsm codec found in SEMS ), 
but I didn't include it because the status of the gsm license is unclear 
to me. 

It shouldn't be too hard to build the gtk client starting from this base,
but I didn't try.
---------------
Basically this zip contains a diff file containing a set of changes so that
vs2005 accepts to build minisip, a readme, a directory with a set of files 
and a vbscript file that propulates the source tree with  equivalents for
makefile and config file from this directory.
I hope most of these changes will be accepted, and don't break
compatibility.

I did a vbscript file to do that because basically I would like to be able
to compile on systems lacking libtool configure..., and also 
because I don't know how to use correctly autoconf...  

---------------
Things I noted with this build - I don't know if it's a problem with this 
build or if it's a more general problem :

- each time a call is establish, two ( one during invite, one when the Ok is
received )  rtpreceiver  thread are created, but when the session is hung,
one thread is not destroyed.  There doesn't seem to be the same problem when
a call is received. 

- When the quit 'command' is used, there is a crash happening on 
CoUnInitialize.. ( or in destructor of portaudiodriver, depending on what
happened in the session ... ) 
Seems to be related to the fact that the static singleton objects are
destroyedin the onexit crt function outside of the "main" function. 
Seems to be visible only when run in a debugger.

If you have informations about these problems I'd like to know cause
I eventually planned to investigate on these when time permits.

Things planned:
- an "install" project dependant on every other projects, that will do the
actions currently performed by 'post build events' 
- Correct as many of the (many) warnings issued by the build as I can
- a 'release' configuration
- tests/build with a tls version 


Regards
Philippe Torrelli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minisip_build_vs2K5.zip
Type: application/octet-stream
Size: 74227 bytes
Desc: not available
Url : http://lists.minisip.org/pipermail/minisip-devel/attachments/20061010/cb7cc7f9/minisip_build_vs2K5-0001.obj


More information about the Minisip-devel mailing list