Asterisk VOIP server works! could not find just a command line VOIP client. Need Asterisk server. Freeswitch is another VOIP program that I tried first, but could not get work. It had some bug. Sometimes started sometimes not and portaudio was newer found although it was installed. opkg install asterisk14 main program asterisk14-sounds puts sound files under /usr/lib/asterisk/sounds asterisk14-chan-oss for USB soundcard or headset. Tutorial: http://www.youtube.com/watch?v=GzQMtXwxPn4&feature=related See it and you will understand how to set up Asterisk! Tutorial tells to delete the 2 original files and write them new. ========================================== sip.conf File where clients 1000 and 1001 are registered. Connect to router from SIP programms on PC like Blink or X-lite. -------------------------------------------------------------------------- [general] port=5060 bindaddr=0.0.0.0 [1000] type=friend host=dynamic secret=1000 [1001] type=friend host=dynamic secret=1001 ============================================= ============================= extensions.conf what to do when number is dialed. ------------------------------- [default] exten => 999,1,Answer() exten => 999,2,Playback(hello-world) sxten => 999,3,Hangup() exten => 1001,1,Dial(SIP/1001) exten => 1000,1,Dial(SIP/1000) exten => 51,1,Dial(console/dsp,20,A(beep)) exten => 51,2,Hangup() exten => 60,1,Answer exten => 60,2,Playback(at-tone-time-exactly) exten => 60,3,SayUnixTime(,,IMp) exten => 60,4,Playback(beep) exten => 60,5,Hangup ============================= 999 plays sound 1000 and 1001 dials to clients registered on PC 60 tells time 51 is most important for me. When this number is called it connects to USB sound card or skype USB adapter. Info under http://www.voip-info.org/wiki/view/Setting+up+paging+with+a+sound+card The buttons on skype adapter do not work. Control need to do via asterisk console dial 1000 console hangup Ring tone on skype headeset adapter does not work. Probably need to get some kind of speaker that can be run from USB 5V. Without speaker my mom will not notice that someone is calling. My mom does not know how to use computer so I thought that headset attached to router would be ideal, also because of power consumption. SIP softphone on router would be important for me to call my mom in Riga for free. And she would not need to switch on PC. Of couse skype is better as it gets through firewalls. And could use Android phone with skype on WiFi. Informative Asterisk links, too hard for me as a beginner: https://wiki.koumbit.net/Asterisk14OnOpenWRT http://www.voip-info.org/wiki/view/Asterisk+quickstart http://www.voip-info.org/wiki/view/Asterisk+CLI Setting up paging with a sound card The definitive guide to soundcard installation, configuration, and usage with Asterisk@Home 2.X --------------------------------------------- Batch files with CLI If you meant "can Asterisk read a series of commands from a file" the answer is no, but something like the following may do: cat batch-file\ | awk '{printf "/usr/sbin/asterisk -r -x \"%s\"\n", $0}'\ | sh The above is very slow, though. A faster option is to use socat and write the commands directly to the Asterisk socket. #!/bin/sh while read line do echo -n "$line" sleep 0.001 done \ | socat STDIN UNIX-CONNECT:/var/run/asterisk/asterisk.ctl The short sleep is only needed to guarantee that every line is written in a separate write() call. It will not print any output from any command, though, or even report an error. And you'll have to end your "programs" with a "quit" line. -----------------------------------------