[Sofia-sip-devel] uClibc Cross Compile glib.h Error

2007-02-12 Thread Jerry Richards
Hello,

I am trying to cross-compile sofia-sip for a MIPS architecture using the
uClibc compiler.  When I try to build it, I get the following errors:

 /vobs/psp_linux/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc -DHAVE_CONF
IG_H -I. -I. -I../.. -I../../libsofia-sip-ua/su/sofia-sip -I../../libsofia-s
ip-ua/su -I../../libsofia-sip-ua/su -I../..//opt/glib/glib-2.12.0 -I../..//o
pt/glib/glib-2.12.0/. -I../..//opt/glib/glib-2.12.0/./glib -Wall -DNDEBUG -g
 -O2 -c su_source.c -Wp,-MD,.deps/su_source.TPlo  -fPIC -DPIC -o
.libs/su_source.o
su_source.c:45: glib.h: No such file or directory
In file included from su_source.c:53:
sofia-sip/su_source.h:46: glib.h: No such file or directory
In file included from su_source.c:54:
sofia-sip/su_glib.h:39: glib.h: No such file or directory
make[3]: *** [su_source.lo] Error 1
make[3]: Leaving directory
`/home/jerry/workspace/SipPhone_v04.00.00.00/Apps/sofia-sip/libsofia-sip-ua-
glib/su-glib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/jerry/workspace/SipPhone_v04.00.00.00/Apps/sofia-sip/libsofia-sip-ua-
glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/jerry/workspace/SipPhone_v04.00.00.00/Apps/sofia-sip'
make: *** [all] Error 2


Does anyone know how I can fix this?

Thanks.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] ANN: sofia-sip 1.12.5 released!

2007-02-12 Thread Kai Vehmanen
Hello all,

the first Sofia-SIP release for year 2007 is now finally out! Release 
notes follow:

Release notes for Sofia-SIP version 1.12.5 (2007-02-12)
===

Sofia-SIP is an open-source SIP User-Agent library, compliant with
the IETF RFC3261 specification. It can be used as a building block
for SIP client software for uses such as VoIP, IM, and many other
real-time and person-to-person communication services. The primary
target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is based on a
SIP stack developed at the Nokia Research Center. Sofia-SIP is
licensed under the LGPL.

Changes since last release
--

Support for request queuing has been added to the high-level user-agent 
API. Various portability improvements have been made related to Linux, 
Mac OS X, Windows and Solaris ports. SIP registrations have been 
modified to utilize persistent transport connections. The GObject 
interface to 'nua' (nua-glib) has been dropped from the package and is 
now distributed separately. Severe bugs in 'su', 'nua', 'nta', 'stun' and 
'su-glib' modules have been fixed.

API/ABI changes and versioning
--

New features in API are marked with Doxytag macro @NEW_1_12_5.
Experimental features are marked with Doxytag macro @EXP_1_12_5.

libsofia-sip-ua:
- Added nua tags NUTAG_APPL_METHOD() and NUTAG_NEWSUB()
- Added nua_substate_make(), nua_substate_name()
- Added nta_incoming_create_response() function
- Added tport tags TPTAG_TOS(), TPTAG_DUMP(), TPTAG_LOG()
- Added tport predicate function tport_is_connected()
- Added authentication functions auc_info() and auc_has_authorization(),
   added type msg_auth_info_t for Authentication-Info header
- Added msg_header_join_items() function
- Added sip_is_allowed() function and k_bitmap field to the
   sip_allow_t structure 
- Added sl_header_log implementation, updated its prototype
- Added experimental SIP headers Suppress-Notify-If-Match and
   Suppress-Body-If-Match and functions related to them,
   enabled with ./configure option --enable-experimental
- Added SIP header Refer-Sub and related functions
- Added sofia-sip/sip_extra.h include file
- Added auc_info() function (sofia-sip/auth_client.h)
- Added alternative implementations to event reactor object (su_port_t,
   referenced by su_root_t) that can be changed at runtime using SU_PORT
   environment variable, for instance
   - Internal semantics of su_port_t reference counting have changed:
 now su_port_create() has one reference, and su_root_create_with_port()
 always consumes one reference
- Changed return type of bm_memmem() and bm_memcasemem() to non-const
- This release is ABI/API compatible with applications linked against
   any 1.12.x release. However, applications built against this release won't
   work against an older library. The ABI has been tested with the nua module
   unit test (test_nua) built against original 1.12.0 release.

libsofia-sip-ua-glib:
- The 'nua-glib' module has been removed from the library and moved
   to a separate package 'sofia-nua-glib'. The remaining library (su-glib)
   is now considered stable and will be API/ABI compatible with later
   releases in the 1.12.x series.
- ABI has been modified and applications built against 1.12.4 and earlier
   releases, need to be rebuilt.
- Added su_glib_prefer_gsource() which makes glib-based su_port_t
   implementation the default choice when su_root_create() is called

Contributors to this release


- Petteri Puolakka (patch to stun)
- Mikhail Zabaluev (patch to su-glib mainloop integration)
- Michael Jerris (patch to url parsing # in sip/sips userpart)
- Colin Whittaker (TPTAG_TOS())
- Roman Filonenko (TPTAG_LOG(), TPTAG_DUMP(),
   patch to query DNS-servers with IP-Helper on win32)
- Remi Denis-Courmont (patch to network change API)
- Martti Mela (poll() emulation with select(), IPv6 and OS X fixes)
- Kai Vehmanen (persistent registrations, release management)
- Pekka Pessi (all the rest)

See the AUTHORS file in the distribution package.

Notes on new features
-

- The su_root_t reactor uses different implementation (epoll, poll or select
   on Linux), depending on SU_PORT environment variable.

- nua now supports request queuing, for instance, an application can send
   overlapping BYE and NOTIFY requests. The stack engine takes care of
   sending the new request only after the previous one has been responded.

- RFC 4488 defines the Refer-Sub header. Its datatypes, related functions and
   methods declared in sofia-sip/sip_extra.h include file. The Refer-Sub
   header structure can be accessed from sip_t structure with sip_refer_sub()
   method, e.g.,

   if (sip_refer_sub(sip) 
   strcasecmp(false, sip_refer_sub(sip)-rs_value) == 0) {
  /* Do not create implicit subscription */
   }

- Unsolicited NOTIFYs are now supported. The application can accept 

[Sofia-sip-devel] FW: [Freeswitch-trunk] [commit] r4213 -freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua

2007-02-12 Thread Michael Jerris
Attached below is I believe a more complete version of the patch that kv
just committed to darcs.  There is a second piece to this problem.
nua_server_request_is_pending is incorrectly not true after some 1xx
responses.  I believe the correct fix for this may be:

Index: nua_session.c
===
--- nua_session.c   (revision 4213)
+++ nua_session.c   (working copy)
@@ -1962,7 +1962,6 @@
   }
 
   if (reliable  sr-sr_status  200) {
-sr-sr_response.msg = NULL, sr-sr_response.sip = NULL;
 if (nta_reliable_mreply(sr-sr_irq, process_prack, nh, msg) ==
NULL)
   return -1;
 return 0;
@@ -1972,7 +1971,7 @@
 if (session_timer_is_supported(nh))
   use_session_timer(ss, 1, 1, msg, sip);
 
-  return nua_base_server_respond(sr, tags);  
+  return nua_server_respond(sr, tags);  
 }
 
 /** Check if the response should be sent reliably.



Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Freeswitch SVN
Sent: Monday, February 12, 2007 6:15 PM
To: [EMAIL PROTECTED]
Subject: [Freeswitch-trunk] [commit] r4213
-freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua

Author: mikej
Date: Mon Feb 12 18:14:36 2007
New Revision: 4213

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c

Log:
ignore CANCEL of incoming requests after we send a final response.
Patch by me and Kai Vehmanen.

Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c

==
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c
(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c
Mon Feb 12 18:14:36 2007
@@ -2210,16 +2210,15 @@
   nua_session_usage_t *ss = nua_dialog_usage_private(sr-sr_usage);
   msg_t *cancel = nta_incoming_getrequest_ackcancel(irq);
 
-  assert(nta_incoming_status(irq)  200);
-  assert(nua_server_request_is_pending(sr));
-  assert(ss); assert(ss == nua_session_usage_get(nh-nh_ds)); (void)ss;
+  if (nta_incoming_status(irq)  200 
nua_server_request_is_pending(sr) 
+ ss  (ss == nua_session_usage_get(nh-nh_ds))) {
+nua_stack_event(nh-nh_nua, nh, cancel, nua_i_cancel, SIP_200_OK,
NULL);
 
-  nua_stack_event(nh-nh_nua, nh, cancel, nua_i_cancel, SIP_200_OK,
NULL);
+SR_STATUS1(sr, SIP_487_REQUEST_TERMINATED);
 
-  SR_STATUS1(sr, SIP_487_REQUEST_TERMINATED);
-
-  nua_server_respond(sr, NULL);
-  nua_server_report(sr);
+nua_server_respond(sr, NULL);
+nua_server_report(sr);
+  }
 
   return 0;
 }

___
Freeswitch-trunk mailing list
[EMAIL PROTECTED]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-trunk
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-trunk
http://www.freeswitch.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel