scripting a call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080116/f674a7fb/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux