Hi Ken, Perhaps the cc comes before call is connected/port created. I think you can use pjsua option --auto-play for you case, so you don't need the 'cc' command. nanang On 16/01/2008, Ken vM <khirmint at hotmail.com> wrote: > > Hey folks, > > I need to create a script that phones an extension on our local voip server, > plays a wav when the phone is answered and then hangs up. > > I can do this with the client by launching the program: > > ./pjsua --null-audio --play-file chirp.wav > > And then going through the menu.. > > m > ADDRESS > cc > 1 > 2 > > And then hang up when its finishd. But is there a way to script this in > linux so it does it automatically? > > I've tried putting the commands into a file and cat'ing it to the process. > It establishes the call, but I can't get it to play the audio file. > > Thanks, > > -Ken > > > ________________________________ > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >