Rajkumar S wrote: > My idea work flow would be to > > 1. Register with asterisk > 2. dial a number, entering the menu > 3. wait couple of seconds and send RFC2833 digit (loop till the > required leaf node is reached) > 4. playback a wav. > > I know that this can be done using menu, but can it be done using a > script, so that I can just invoke ./pjsua --config-file alice.cfg and > it will perform testing of one menu ? Yeah! Assuming on Windows: C:\> copy con command.txt m sip:number at asterisk sleep 5000 # 123 sleep 1000 cc 1 2 ^Z C:\> type command.txt | pjsua_vc6 --play-file FILE.WAV On Windows, pjsua will switch stdin back to console after it has finished executing the redirected input. On Linux, it will quit. cheers, -benny