Martin Drasar napsal(a): > Martin Drasar napsal(a): > >> Pekka Pessi napsal(a): >> >>> 2007/9/11, Martin Drašar <[EMAIL PROTECTED]>: >>> >>> >>>> I would like to ask you if someone has tested (and made working) sofia >>>> on Solaris 9 / 64bit sparc. >>>> >>>> I have problem with nua_i_invite event. >>>> *sip->sip_content_type has >>>> c_type = 0x10069f7b9 "application/sdp", c_subtype = 0x10069f7c5 "sdp" >>>> but *sip->sip_payload is NULL >>>> >>>> I don't have this problem on Win32, Linux32, Opensolaris on intel >>>> >>>> If you have any idea what might be wrong, I would be very greatful. >>>> >>>> >>> No idea... Really. ;) >>> >>> Can you run test_nua from libsofia-sip-ua/nua directory? If it fails, >>> please send me a output from, e.g., env NUA_DEBUG=9 ./test_nua -A -B >>> -C --log=proxy >>> >>> >>> >> Hi, >> >> my computer specs: >> >> System = SunOS >> Node = glen >> Release = 5.10 >> KernelID = Generic_125100-10 >> Machine = sun4u >> BusType = <unknown> >> Serial = <unknown> >> Users = <unknown> >> OEM# = 0 >> Origin# = 1 >> NumCPU = 1 >> >> sofia library (current version from darcs repository) was configured >> this way: >> >> CFLAGS="-m64" LDFLAGS="-m64" ./configure --with-pic --disable-static >> --with-openssl=no --disable-stun --disable-nth --prefix=/tmp/sofia >> >> attached files: >> >> sofia_test.log - libsofia-sip-ua/nua$ ./test_nua -A -B -C --log=proxy >> >>> sofia_test.log 2>&1 >>> >> main.cpp - test program that aborts after it receives invite. In event >> callback function you can see that sip_payload is NULL. >> change bind address if you want to test it, it's hardcoded. >> >> compiled with: g++ main.cpp -o test >> -I/tmp/sofia/include/sofia-sip-1.12/ -L/tmp/sofia/lib -lsofia-sip-ua >> -m64 -g -O0 >> >> Thanks for your time. >> >> Martin >> >> > One thing to add - problem with sip payload does not occur when compiled > in 32 bit mode. > I suspect that there is a problem with endianity. I will try to find out > more... > > Martin > > So I have finally found where was the catch...
There is a type incompatibility between sip_content_length_s->l_length (uint32_t) and msg_numeric_s->x_value (unsigned long) After changing x_value to uint32_t, things seem to be working. What do you think? Will this fix break something somewhere else? Martin -- Martin Drasar, Developer / Analyst OptimSys, s.r.o. [EMAIL PROTECTED] Tel: +420 541 143 065 Fax: +420 541 143 066 http://www.optimsys.cz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel