Access audio samples from a line phone

I use linphonec (without gtk interface, only on the command line) on Linux, and I want to receive incoming and outgoing sound samples, but I don’t know which file I need to edit to access them. Can someone give me a key please?

+3
source share
1 answer

Assuming that the outgoing and incoming sound samples are associated with a call, for example, you are dialing linphonec> call sip:usernumber@someproxy.net.

Function call stack:

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

The media stream is initialized on the host and can be accessed using the mediastreamer2 API

In terms of accepting a call, see the following call stack:

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

- API- mediastreamer2.

mediastreamer2 API

linphone

0

Source: https://habr.com/ru/post/1754006/


All Articles