diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-11-11 22:23:26 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-11-11 22:23:26 +0000 |
commit | 396af9c62b1747896ec3bfbf89df2f3b7c80350b (patch) | |
tree | d3031540135a97ac8ee5db76dd54e9ecb650c4d5 /package/pjsip/patches | |
parent | 409ee4a22638c5223c6264cf09843f716f6b7958 (diff) |
pjsip: bump to 1.10 and improve ltq_tapi backend
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28963 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pjsip/patches')
-rw-r--r-- | package/pjsip/patches/000-aconf.patch | 11 | ||||
-rw-r--r-- | package/pjsip/patches/100-pjsua_acc__snprintf.patch | 14 | ||||
-rw-r--r-- | package/pjsip/patches/210-pjmedia_audiodev.patch | 4 |
3 files changed, 17 insertions, 12 deletions
diff --git a/package/pjsip/patches/000-aconf.patch b/package/pjsip/patches/000-aconf.patch index 96c519aea..46e4aad4a 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 cb347213d..929ecc94d 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( "<sip:%s%.*s%s:%d%s>", 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, - "<sip:%.*s%s%s%.*s%s:%d;transport=%s%.*s>%.*s", + "<sip:%.*s%s%s%.*s%s:%d;transport=%s%.*s%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 8acba6ef4..bb2a22183 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 |