]> sjero.net Git - linphone/blobdiff - coreapi/linphonecall.c
add automatic tone user indications
[linphone] / coreapi / linphonecall.c
index dba7381c7893e307770ca6f258f8c60cf9f901a1..6c01c65bd73073500c65690787d5883d7b07345c 100644 (file)
@@ -2114,7 +2114,7 @@ static void linphone_core_disconnected(LinphoneCore *lc, LinphoneCall *call){
        if (from)
        {
                snprintf(temp,sizeof(temp),"Remote end %s seems to have disconnected, the call is going to be closed.",from);
-               free(from);
+               ms_free(from);
        }
        else
        {
@@ -2123,6 +2123,7 @@ static void linphone_core_disconnected(LinphoneCore *lc, LinphoneCall *call){
        if (lc->vtable.display_warning!=NULL)
                lc->vtable.display_warning(lc,temp);
        linphone_core_terminate_call(lc,call);
+       linphone_core_play_named_tone(lc,LinphoneToneCallFailed);
 }
 
 static void handle_ice_events(LinphoneCall *call, OrtpEvent *ev){