从Linphone访问音频样本

3

我正在Linux上使用linphonec(没有gtk界面,只有命令行),我想访问传入和传出的声音样本,但我不知道应该编辑哪个文件来访问它们。 请问有人能给我提示吗?

1个回答

0
假设出站和入站声音样本与呼叫相关,例如您正在输入 linphonec> call sip:usernumber@someproxy.net
该函数的调用堆栈为:
lpc_cmd_call from linphone-version/console/commands.c
linphone_core_invite_with_params from linphone-version/coreapi/linphonecore.c
linphone_core_invite_address_with_params from linphone-version/coreapi/linphonecore.c
linphone_core_start_invite from linphone-version/coreapi/linphonecore.c
linphone_call_init_media_streams from linphone-version/coreapi/linphonecall.c
audio_stream_new from from linphone-version/mediastreamer2/src/audiostream.c

媒体流在主机上初始化,并可使用mediastreamer2 API访问。

就接受呼叫而言,请参见以下呼叫堆栈:

linphone_core_accept_call from linphone-version/coreapi/linphonecore.c
linphone_core_update_streams from linphone-version/coreapi/callbacks.c
linphone_call_start_media_streams from  linphone-version/coreapi/linphonecall.c
linphone_call_start_audio_stream from  linphone-version/coreapi/linphonecall.c
audio_stream_start_full from linphone-version/mediastreamer2/src/audiostream.c

客户端上初始化了媒体流,并可使用mediastreamer2 API进行访问。

mediastreamer2 API文档可以在这里找到。

linphone源代码可以在这里这里找到。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接