linphone 连接丢失警告音(嘟嘟声)去除

目前在早期的linphone项目在测试环境中发现,客户端与人工坐席在连接一段时间后,由于服务器上的设置,导致连接断开,此时客户端会存在 连接丢失警告音(断线 嘟嘟声)
查看了 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);

经试验后setTone()可以解决连接丢失屏蔽嘟嘟声的问题.

扩展阅读:
liblinphone4.0+API文档

你可能感兴趣的:(linphone 连接丢失警告音(嘟嘟声)去除)