In a commandline Perl Application running on Linux I need to make a phone call (SIP), play an audio file then wait for and receive DTMF input from the callee.
I can not run any GUI applications, so most Linux SIP clients are out of the competition.
At the moment I’m using pjsua, unfortunately this has some issues I’d like to avoid.
What is the best way to achieve this?
Are there any fully-scriptable commandline SIP client for Linux?
Are there any sane librarys that could be used?
I would highly recommend FreeSWITCH. It actually comes with a Perl API, so you can talk to a FreeSWITCH server from your Perl program and originate calls, send/receive DTMF, play audio files, etc.
There is also a way to let FreeSWITCH call your Perl program when a phone call arrives, for example.