Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I perform a call using VoIP and play an audio file with Python?

Tags:

python

voip

sip

My goal is to perform a call using VoIP and play an audio file (no matter what format) with Python and record the call. I found some libraries but their documentation is unclear and they don't seem to be maintained. I have also tried using external utilities like sipcli. This worked but I want to have more control over calling and I'd like not to depend on external software. P.S. I need it to both work on Linux and on Windows

like image 887
crinny Avatar asked Oct 16 '22 09:10

crinny


1 Answers

Have you explored Pjsip python module.

https://www.pjsip.org/python/pjsua.htm

python example:

https://svn.pjsip.org/repos/pjproject/trunk/pjsip-apps/src/python/samples/call.py

like image 53
mail2subhajit Avatar answered Oct 19 '22 17:10

mail2subhajit