[Osip] Multithreaded applcation with osip parser
Tal Cohen
talc10 at hotmail.com
Tue Sep 25 11:32:44 CEST 2007
Hi,
I have written an application which parses and changes SIP packets.
Here is a high level design of the appication:
The main function initiates the parser using initOSIP () function. Then it creates 2 different threads. Each thread holds it's own osip_message_t object which is initiated (osip_message_init) and freed (osip_message_free) after each SIP packet process.
It runs very well on my PC (windows XP), but when it runs on production server (Windows server 2003), it crashes after a short time.
Isolation of the problem show that from some reason the trigger for the problem is the osip_message_init function on the 2nd thread. However, this function never returns error code.
I have compiled the application on Visual Studio 2003 .NET (WinXP) and tried several releases of the libosip: libosip2-2.2.3 and libosip2-3.0.1. There wasn't any difference.
1. Is there any known issue with oSIP and Windows server 2003? Has someone ran oSIP parser application on this OS?
2. Is there any problem with the above design?
Thank you,
Tal
_________________________________________________________________
Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™.
http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2
More information about the Osip
mailing list