From 0e35877fea23419303e922553a9b50c9f0e100f7 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 11 Nov 2011 22:23:26 +0000 Subject: pjsip: bump to 1.10 and improve ltq_tapi backend SVN-Revision: 28963 --- package/pjsip/patches/000-aconf.patch | 11 +++++++---- package/pjsip/patches/100-pjsua_acc__snprintf.patch | 14 ++++++++------ package/pjsip/patches/210-pjmedia_audiodev.patch | 4 ++-- 3 files changed, 17 insertions(+), 12 deletions(-) (limited to 'package/pjsip/patches') diff --git a/package/pjsip/patches/000-aconf.patch b/package/pjsip/patches/000-aconf.patch index 96c519aea0..46e4aad4ac 100644 --- a/package/pjsip/patches/000-aconf.patch +++ b/package/pjsip/patches/000-aconf.patch @@ -1,15 +1,18 @@ --- a/aconfigure.ac +++ b/aconfigure.ac -@@ -48,7 +48,7 @@ +@@ -48,9 +48,9 @@ if test -z "$CROSS_COMPILE"; then CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` fi -if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi +AR="${CROSS_COMPILE}ar rv" AC_SUBST(AR) - if test "$LD" = ""; then LD="$CC"; fi +-if test "$LD" = ""; then LD="$CC"; fi ++LD="${CROSS_COMPILE}gcc" AC_SUBST(LD) -@@ -590,6 +590,15 @@ + if test "$LDOUT" = ""; then LDOUT="-o"; fi + AC_SUBST(LDOUT) +@@ -597,6 +597,15 @@ AC_ARG_ENABLE(ext_sound, AC_MSG_RESULT([Checking if external sound is set... yes]) fi] ) @@ -27,7 +30,7 @@ AC_SUBST(ac_no_small_filter) --- a/pjmedia/build/os-auto.mak.in +++ b/pjmedia/build/os-auto.mak.in -@@ -118,4 +118,11 @@ +@@ -118,4 +118,11 @@ ifeq ($(AC_PJMEDIA_SND),external) export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 endif diff --git a/package/pjsip/patches/100-pjsua_acc__snprintf.patch b/package/pjsip/patches/100-pjsua_acc__snprintf.patch index cb347213d6..929ecc94dd 100644 --- a/package/pjsip/patches/100-pjsua_acc__snprintf.patch +++ b/package/pjsip/patches/100-pjsua_acc__snprintf.patch @@ -1,6 +1,6 @@ --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c -@@ -430,7 +430,7 @@ +@@ -511,7 +511,7 @@ PJ_DEF(pj_status_t) pjsua_acc_add_local( "", beginquote, (int)t->local_name.host.slen, @@ -9,9 +9,9 @@ endquote, t->local_name.port, transport_param); -@@ -1158,18 +1158,18 @@ +@@ -1327,19 +1327,19 @@ static pj_bool_t acc_check_nat_addr(pjsu len = pj_ansi_snprintf(tmp, PJSIP_MAX_URL_SIZE, - "%.*s", + "%.*s", (int)acc->user_part.slen, - acc->user_part.ptr, + acc->user_part.slen ? acc->user_part.ptr : "", @@ -26,15 +26,16 @@ (int)acc->cfg.contact_uri_params.slen, - acc->cfg.contact_uri_params.ptr, + acc->cfg.contact_uri_params.slen ? acc->cfg.contact_uri_params.ptr : "", + ob, (int)acc->cfg.contact_params.slen, - acc->cfg.contact_params.ptr); + acc->cfg.contact_params.slen ? acc->cfg.contact_params.ptr : ""); if (len < 1) { PJ_LOG(1,(THIS_FILE, "URI too long")); pj_pool_release(pool); -@@ -2233,22 +2233,22 @@ +@@ -2467,23 +2467,23 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uac contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE, - "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>%.*s", + "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s%s>%.*s", (int)acc->display.slen, - acc->display.ptr, + acc->display.slen ? acc->display.ptr : "", @@ -54,13 +55,14 @@ (int)acc->cfg.contact_uri_params.slen, - acc->cfg.contact_uri_params.ptr, + acc->cfg.contact_uri_params.slen ? acc->cfg.contact_uri_params.ptr : "", + ob, (int)acc->cfg.contact_params.slen, - acc->cfg.contact_params.ptr); + acc->cfg.contact_params.slen ? acc->cfg.contact_params.ptr : ""); return PJ_SUCCESS; } -@@ -2390,22 +2390,22 @@ +@@ -2625,22 +2625,22 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uas contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE, "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>%.*s", (int)acc->display.slen, diff --git a/package/pjsip/patches/210-pjmedia_audiodev.patch b/package/pjsip/patches/210-pjmedia_audiodev.patch index 8acba6ef45..bb2a22183d 100644 --- a/package/pjsip/patches/210-pjmedia_audiodev.patch +++ b/package/pjsip/patches/210-pjmedia_audiodev.patch @@ -1,6 +1,6 @@ --- a/pjmedia/src/pjmedia-audiodev/audiodev.c +++ b/pjmedia/src/pjmedia-audiodev/audiodev.c -@@ -98,6 +98,10 @@ +@@ -98,6 +98,10 @@ pjmedia_aud_dev_factory* pjmedia_symb_md pjmedia_aud_dev_factory* pjmedia_null_audio_factory(pj_pool_factory *pf); #endif @@ -11,7 +11,7 @@ #define MAX_DRIVERS 16 #define MAX_DEVS 64 -@@ -404,6 +408,9 @@ +@@ -409,6 +413,9 @@ PJ_DEF(pj_status_t) pjmedia_aud_subsys_i #if PJMEDIA_AUDIO_DEV_HAS_NULL_AUDIO aud_subsys.drv[aud_subsys.drv_cnt++].create = &pjmedia_null_audio_factory; #endif -- cgit v1.2.3