Thanks Juha, useful for a quicker starting point -- hope to get a bit time soon to play with and eventually replace some of the heavy apps I use in couple of testing scenarios.
Cheers, Daniel
On 26.03.20 17:31, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
wondering if anyone here is aware of a lightweight sip app that can answer a call, play some file and/or do echo mode, mainly targeted at using it for basic sip routing and call testing.
baresip cli app can do all that.
OK, thanks, I will look into it! One more quick question: this is something that can be done directly via command line parameters or its config file?
Here is an example configuration of a SIP UA that plays a file when it receives a call:
.baresip/config: ... audio_source gst,file:///tmp/file_to_play.wav ... module gst1.so ...
.baresip/accounts: "Play" sip:play@test.tutpro.com;auth_user="play";auth_pass="something";outbound="sip:192.87.89.90:5060;transport=tcp";ptime=20;audio_codecs=OPUS/48000/2,PCMU,PCMA;regint=600;pubint=0;regq=0.5;sipnat=outbound;answermode=auto
-- Juha
Asking because in the past, with pjsua I had to write small shell command wrappers to simulate sending commands -- like for example sending the command set in $CMD after 30secs:
(sleep 30; echo $CMD) | pjsua ...
Cheers, Daniel
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda