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:p...@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 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users