目前在早期的linphone項(xiàng)目在測(cè)試環(huán)境中發(fā)現(xiàn),客戶端與人工坐席在連接一段時(shí)間后,由于服務(wù)器上的設(shè)置,導(dǎo)致連接斷開,此時(shí)客戶端會(huì)存在 連接丟失警告音(斷線 嘟嘟聲)。
查看了 linphone sdk部分源碼及document. 初步斷定控制邏輯在 setCallErrorTone() 及 setTone() 方法上
/**
* Assign an audio file to played locally upon call failure, for a given reason.
* @param reason the #LinphoneReason representing the failure error code.
* @param path a wav file to be played when such call failure happens.
*/
public void setCallErrorTone(Reason reason, String path);
/**
* Assign an audio file to be played locally in replacement of common telephony tone.
* This is typically used to internationalize tones.
* @param id a tone id
* @param wavfile a path to a 16 bit PCM linear wav file.
*/
public void setTone(ToneID id, String wavfile);
經(jīng)試驗(yàn)后setTone()可以解決連接丟失屏蔽嘟嘟聲的問題.
擴(kuò)展閱讀:
liblinphone4.0+API文檔