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

1

6

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

Jephthah answered 26/10, 2019 at 16:52 Comment(0)
O
4

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

Ordinarily answered 26/10, 2019 at 23:12 Comment(2)
Looking good, but the installation is really messy. I would love to see a library, that I can install simply using pip.Jephthah
PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. it has one of the best feature set for a VOIP call.Ordinarily

© 2022 - 2024 — McMap. All rights reserved.