Greetings folks i have built a working voip stack based on linphone for legato+mangoh … using belle-sip mediastreamer2 and linphone … the idea would be to implement this as a service API not a standalone program …
i have added a legato shell audiofilter [driver] to mediastreamer to use the le_audio bits it fires up 2 threads one for read one fro write and using recorder/player diverts the audio to/from speaker/mic [possibly other streams] …
when done the console phone will be ported to a service api le_voip… if there is any interest or feed back it will be welcomed.
Hi Greg, I apologize for not getting back to you earlier. We definitely would like to hear about your voip service. Is the intention to eventually contribute back to the Legato community? Are you planning to commercialize this product?
This is a pure opensource project … the end product is a commercial product that will have a legato abstraction layer. the problem i am having at the moment is that its not possible to read and write from the PCM simultaneously a playback/record is required for VOIP to work … the cli can make / receive calls but cannot process audio due to this limitation.
DTMF decoding works only on MdmVoice Rx stream. DTMF’s reception handler must be installed before call initiation.
File Playback/Recording: WAVE, AMR Narrowband and AMR Wideband formats are supported.
Samples insertion/extraction: PCM samples using configuration of channel number, sampling rate and sampling resolution.
Several file playbacks can be activated simultaneously but not several file recordings. Playback and recording can’t be performed simultaneously. This also applies to samples insertion/extraction."
Hi Greg,
I’m afraid our documentation is quite outdated.
Actually, it should be possible on WP85 if you start the playback before the recording.
Please let me know.
Kr,
Tristan
I have got a build of it into the rootfs have not tested it much the problem has been audio support does not fully function i am now planing on running it via a USB sound card i am back on this project now.
linphonec> help
Commands are:
---------------------------
help Print commands help.
answer Answer a call
autoanswer Show/set auto-answer mode
call Call a SIP uri or number
calls Show all the current calls with their id and status.
call-logs Calls history
camera Send camera output for current call.
chat Chat with a SIP uri
conference Create and manage an audio conference.
duration Print duration in seconds of the last call.
firewall Set firewall policy
friend Manage friends
ipv6 Use IPV6
mute Mute microphone and suspend voice transmission.
nat Set nat address
pause pause a call
play play a wav file
playbackga Adjust playback gain.
proxy Manage proxies
record record to a wav file
resume resume a call
soundcard Manage soundcards
stun Set stun server address
terminate Terminate a call
transfer Transfer a call to a specified destination.
unmute Unmute microphone and resume voice transmission.
webcam Manage webcams
quit Exit linphonec
---------------------------
Type 'help <command>' for more details or
'help advanced' to list additional commands.
linphonec>
…