]> sjero.net Git - linphone/commitdiff
Merge branch 'master' of git://git.savannah.nongnu.org/linphone
authorJehan Monnier <jehan.monnier@linphone.org>
Tue, 20 Jul 2010 15:03:25 +0000 (17:03 +0200)
committerJehan Monnier <jehan.monnier@linphone.org>
Tue, 20 Jul 2010 15:03:25 +0000 (17:03 +0200)
12 files changed:
NEWS
build/android/Android.mk
coreapi/callbacks.c
coreapi/linphonecore.c
coreapi/linphonecore_jni.cc
coreapi/offeranswer.c
coreapi/proxy.c
java/common/org/linphone/core/LinphoneCoreListener.java
mediastreamer2
oRTP
pixmaps/Makefile.am
po/POTFILES.in

diff --git a/NEWS b/NEWS
index 68bbd71fa408c8f184e53dd32c384947232264d4..169f91adc6fd6c3ebb7c4861bc763afbb1825b8e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-linphone-3.3.2 -- June 25, 2010
+linphone-3.3.2 -- July 1st, 2010
        * fix crash when setting firewall address in gtk interface
        * fix crash while closing video window on windows
        * fix un-sent BYE message in some rare cases.
index 88dcb94c6e8c8bda5b770dde3a3cb20e21591cf1..7432a77222fff84be3c4e3b0d60bd16e23b7f2c0 100755 (executable)
@@ -77,7 +77,10 @@ LOCAL_STATIC_LIBRARIES := \
        libeXosip2 \
        libosip2 \
        libgsm
-#      libmsilbc \
+ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
+   LOCAL_CFLAGS += -DHAVE_ILBC=1
+   LOCAL_STATIC_LIBRARIES += libmsilbc
+endif
 LOCAL_MODULE_CLASS = SHARED_LIBRARIES
 
 include $(BUILD_SHARED_LIBRARY)
index 531f4542e9a7b41061e5dbda7c847b064da04d4a..6833fba82cb99f9f8e87edd9c8bdf93da419fb87 100644 (file)
@@ -271,7 +271,7 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
        /*char *retrymsg=_("%s. Retry after %i minute(s).");*/
        char *msg600=_("User does not want to be disturbed.");
        char *msg603=_("Call declined.");
-       char *msg=(char*)details;
+       const char *msg=details;
        LinphoneCall *call=lc->call;
 
        if (sal_op_get_user_pointer(op)!=lc->call){
@@ -281,11 +281,13 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
        if (lc->vtable.show) lc->vtable.show(lc);
 
        if (error==SalErrorNoResponse){
+               msg=_("No response.");
                if (lc->vtable.display_status)
-                       lc->vtable.display_status(lc,_("No response."));
+                       lc->vtable.display_status(lc,msg);
        }else if (error==SalErrorProtocol){
+               msg=details ? details : _("Protocol error.");
                if (lc->vtable.display_status)
-                       lc->vtable.display_status(lc, details ? details : _("Protocol error."));
+                       lc->vtable.display_status(lc, msg);
        }else if (error==SalErrorFailure){
                switch(sr){
                        case SalReasonDeclined:
@@ -336,7 +338,7 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
        if (call!=NULL) {
                linphone_call_destroy(call);
                if (sr!=SalReasonDeclined) gstate_new_state(lc, GSTATE_CALL_ERROR, msg);
-               else gstate_new_state(lc, GSTATE_CALL_END, NULL);
+               else gstate_new_state(lc, GSTATE_CALL_END, msg);
                lc->call=NULL;
        }
 }
index 2de23d23992682f209a0aca8bee7958c69d649b7..121b329243ce4056d08fcc47e32a9d04e72d2fda 100644 (file)
@@ -2246,6 +2246,7 @@ static void post_configure_audio_streams(LinphoneCore *lc){
        float recv_gain;
        float ng_thres=lp_config_get_float(lc->config,"sound","ng_thres",0.05);
        float ng_floorgain=lp_config_get_float(lc->config,"sound","ng_floorgain",0);
+       int dc_removal=lp_config_get_int(lc->config,"sound","dc_removal",0);
        
        if (mic_gain!=-1)
                audio_stream_set_mic_gain(st,mic_gain);
@@ -2255,6 +2256,9 @@ static void post_configure_audio_streams(LinphoneCore *lc){
        if (recv_gain != 0) {
                linphone_core_set_playback_gain_db (lc,recv_gain);
        }
+       if (st->volsend){
+               ms_filter_call_method(st->volsend,MS_VOLUME_REMOVE_DC,&dc_removal);
+       }
        if (linphone_core_echo_limiter_enabled(lc)){
                float speed=lp_config_get_float(lc->config,"sound","el_speed",-1);
                thres=lp_config_get_float(lc->config,"sound","el_thres",-1);
index 3a5511a00e1a722e0171cb071927dae51a4c421e..fcf3cc1ceb3c4c5f043e5bf4a2d009f22374f885 100644 (file)
@@ -83,7 +83,7 @@ public:
                /*displayStatus(LinphoneCore lc,String message);*/
                displayStatusId = env->GetMethodID(listernerClass,"displayStatus","(Lorg/linphone/core/LinphoneCore;Ljava/lang/String;)V");
                /*void generalState(LinphoneCore lc,int state); */
-               generalStateId = env->GetMethodID(listernerClass,"generalState","(Lorg/linphone/core/LinphoneCore;Lorg/linphone/core/LinphoneCore$GeneralState;)V");
+               generalStateId = env->GetMethodID(listernerClass,"generalState","(Lorg/linphone/core/LinphoneCore;Lorg/linphone/core/LinphoneCore$GeneralState;Ljava/lang/String;)V");
 
                generalStateClass = (jclass)env->NewGlobalRef(env->FindClass("org/linphone/core/LinphoneCore$GeneralState"));
                generalStateFromIntId = env->GetStaticMethodID(generalStateClass,"fromInt","(I)Lorg/linphone/core/LinphoneCore$GeneralState;");
@@ -145,7 +145,8 @@ public:
                env->CallVoidMethod(lcData->listener
                                                        ,lcData->generalStateId
                                                        ,lcData->core
-                                                       ,env->CallStaticObjectMethod(lcData->generalStateClass,lcData->generalStateFromIntId,gstate->new_state));
+                                                       ,env->CallStaticObjectMethod(lcData->generalStateClass,lcData->generalStateFromIntId,gstate->new_state),
+                                                       gstate->message ? env->NewStringUTF(gstate->message) : NULL);
        }
 
 };
@@ -161,9 +162,11 @@ extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_newLinphoneCore(JNIEnv*
        LinphoneCoreData* ldata = new LinphoneCoreData(env,thiz,jlistener,juserdata);
 #ifdef ANDROID
        ms_andsnd_register_card(jvm);
-       // requires an fpu libmsilbc_init();
 #endif /*ANDROID*/
 
+#ifdef HAVE_ILBC
+       libmsilbc_init(); // requires an fpu
+#endif
        jlong nativePtr = (jlong)linphone_core_new(     &ldata->vTable
                        ,userConfig
                        ,factoryConfig
index 2abf7174dfc03c95152fbd6eea4128d3f3897a45..d69a22ddd5805a566a027e5e09aa6bbe87b409d0 100644 (file)
@@ -59,8 +59,8 @@ static MSList *match_payloads(const MSList *local, const MSList *remote){
                matched=find_payload_type_best_match(local,p2);
                if (matched){
                        matched=payload_type_clone(matched);
-                       if (p2->recv_fmtp)
-                               payload_type_set_send_fmtp(matched,p2->recv_fmtp);
+                       if (p2->send_fmtp)
+                               payload_type_set_send_fmtp(matched,p2->send_fmtp);
                        res=ms_list_append(res,matched);
                        payload_type_set_number(matched,payload_type_get_number(p2));
                }else{
index 59d767303dfbde7b4f4635372fa1c55714e51f35..154ae06a2684e290695d90c03535700d2a4b7ff0 100644 (file)
@@ -90,22 +90,20 @@ bool_t linphone_proxy_config_is_registered(const LinphoneProxyConfig *obj){
  * - hostnames : sip:sip.example.net
 **/
 int linphone_proxy_config_set_server_addr(LinphoneProxyConfig *obj, const char *server_addr){
-       LinphoneAddress *addr;
-       char *try=NULL;
+       LinphoneAddress *addr=NULL;
+       char *modified=NULL;
        
        if (obj->reg_proxy!=NULL) ms_free(obj->reg_proxy);
        obj->reg_proxy=NULL;
        
        if (server_addr!=NULL && strlen(server_addr)>0){
-               addr=linphone_address_new(server_addr);
-               if (!addr){
-                       /*try to prepend 'sip:' */
-                       if (strstr(server_addr,"sip:")==NULL){
-                               try=ms_strdup_printf("sip:%s",server_addr);
-                               addr=linphone_address_new(try);
-                               ms_free(try);
-                       }
+               if (strstr(server_addr,"sip:")==NULL){
+                       modified=ms_strdup_printf("sip:%s",server_addr);
+                       addr=linphone_address_new(modified);
+                       ms_free(modified);
                }
+               if (addr==NULL)
+                       addr=linphone_address_new(server_addr);
                if (addr){
                        obj->reg_proxy=linphone_address_as_string_uri_only(addr);
                        linphone_address_destroy(addr);
@@ -167,7 +165,12 @@ int linphone_proxy_config_set_route(LinphoneProxyConfig *obj, const char *route)
                ms_free(obj->reg_route);
                obj->reg_route=NULL;
        }
-       obj->reg_route=ms_strdup(route);
+       if (route!=NULL){
+               /*try to prepend 'sip:' */
+               if (strstr(route,"sip:")==NULL){
+                       obj->reg_route=ms_strdup_printf("sip:%s",route);
+               }else obj->reg_route=ms_strdup(route);
+       }
        return 0;
 }
 
index f48f8a9eb00ba526573091d8863e44901733b39e..be75b946d9b326e54307fd8961af873b24fb41d7 100644 (file)
@@ -47,5 +47,6 @@ public interface LinphoneCoreListener {
                 * @param state LinphoneCore.GeneralState
                 * @return 
                 * */           
-               public void generalState(LinphoneCore lc,LinphoneCore.GeneralState state); 
+               public void generalState(LinphoneCore lc,LinphoneCore.GeneralState state, String message);
 }
+
index 5267b9b3e66519a17d75735e65ae0534ebfe3ff1..c6d39ca3e664ad89a8c437f630817334ada056ca 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 5267b9b3e66519a17d75735e65ae0534ebfe3ff1
+Subproject commit c6d39ca3e664ad89a8c437f630817334ada056ca
diff --git a/oRTP b/oRTP
index 18eccd4f3af64f3bd5293d635a1a169dc77c92ad..a8076d9487ee91d89df221256e0d3371e0fa3f50 160000 (submodule)
--- a/oRTP
+++ b/oRTP
@@ -1 +1 @@
-Subproject commit 18eccd4f3af64f3bd5293d635a1a169dc77c92ad
+Subproject commit a8076d9487ee91d89df221256e0d3371e0fa3f50
index 6247f4d277e89b0a55484deac45ff07fbfc70ed7..bf2f03a8c242adce0d23fa36b90c2fac1ec9e33e 100644 (file)
@@ -10,7 +10,7 @@ status-green.png \
 status-orange.png \
 status-red.png \
 status-offline.png \
-contact-orange.png dialer-orange.png \
+contact-orange.png dialer-orange.png history-orange.png\
 startcall-green.png stopcall-red.png 
 
 EXTRA_DIST=$(pixmap_DATA)
index 2ca5440ea8146fda0c0cdb891ee20387c408aa8e..2b0f2734f9e185649c02db51711ea7a0624b354f 100644 (file)
@@ -71,4 +71,4 @@ mediastreamer2/src/drawdib-display.c
 mediastreamer2/src/audiomixer.c
 mediastreamer2/src/chanadapt.c
 mediastreamer2/src/itc.c
-
+mediastreamer2/src/extdisplay.c