|
From: | John Hughes |
Subject: | Re: [Linphone-developers] help with linphone [ how can I disable call waiting beep ] |
Date: | Sat, 14 Nov 2020 22:29:03 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 |
And, of course, I forgot to attach the patch. Here it is. Sorry.
Minor fix to the patch, this bit:
+void linphone_core_set_distinctive_ring(LinphoneCore *lc,const char *path){ + if (lc->sound_conf.distinctive_ring!=0){ + ms_free(lc->sound_conf.distinctive_ring); + lc->sound_conf.distinctive_ring=NULL; + } + if (path) + lc->sound_conf.distinctive_ring=ms_strdup(path); + if ( linphone_core_ready(lc) && lc->sound_conf.distinctive_ring) + lp_config_set_string(lc->config,"sound","distinctive_ring",lc->sound_conf.distinctive_ring); +}
Should be
+ if ( linphone_core_ready(lc) ) + lp_config_set_string(lc->config,"sound","distinctive_ring",lc->sound_conf.distinctive_ring); +}
That way you can turn off distinctive ring if you want to.
[Prev in Thread] | Current Thread | [Next in Thread] |