我在Linux中使用linphonec(没有gtk接口,只有命令行),我想访问传入和传出的声音样本,但我不知道应该编辑哪个文件来访问它们。 请问有人给我一些线索吗?
答案 0 :(得分: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文档可用here