hello,
i was working on a project which needed my raspberry pi to be configured as a SIP client.So i installed Linphone and is working great exempt for one problem.I only want the SIP Client to work like a speaker. I don’t need it to have an audio input.But linphone needed to be specified a capture device for it to work.Since the raspberry pi doesn’t have a capture device,i made a dummy device from the info found on
http://www.raspberrypi.org/forums/viewtopic.php?&t=42285
it works fine too.But occasionally when i connect to the pi client from another client,it gives me a disturbing noise.When i MUTE the linphone client form the command line of the pi.The sound stops.
So it is probably the Linphone reading some thing from its capture device.
i tried writing a code with linphonecsh which i thought get rid of the need for a GUI for linphone but it didn’t work put.I also wanted it to auto answer and auto mute every call.so i wrote the following code.
linphonecsh init
linphonecsh register --host --username --password
linphonecsh generic “autoanswer enable”
linphonecsh generic “mute”
I already got the functionality working exempt the mute function using another shell script as follows.
!#bin/bash
linphonec -a
The registration part was done in the GUI once and when ever Linphonec -a was executed it automatically registered to the server.
can anyone please tell me a way to either
- Write an effective bash code to auto mute every call
or
- To get rid of the spurious noise coming from the dummy source.
i would also love to know the reason why that noise is coming.
Thank you