PJSUA API - High Level Softphone API for C/C++ and Python
Detailed Description
PJSUA API is very high level API, available for C/C++ and Python language, for constructing SIP multimedia user agent applications. It wraps together the signaling and media functionalities into an easy to use call API, provides account management, buddy management, presence, instant messaging, along with multimedia features such as conferencing, file streaming, local playback, voice recording, and so on.
Application must link with
pjsua-lib to use this API. In addition, this library depends on the following libraries:
- pjsip-ua,
- pjsip-simple,
- pjsip-core,
- pjmedia,
- pjmedia-codec,
- pjlib-util, and
- pjlib,
so application must also link with these libraries as well. For more information, please refer to Getting Started with PJSIP page.
The Python binding for PJSUA-API is implemented by
py_pjsua module, in
pjsip-apps/py_pjsua directory. This module is built by building
py_pjsua project in
pjsip_apps Visual Studio workspace, or by invoking the usual
setup.py Python installer script.
The Python script then can import the PJSUA-API Python module by using import py_pjsua construct as usual.
Few samples are provided both in C and Python.
- Samples: Simple PJSUA
Very simple SIP User Agent with registration, call, and media, using PJSUA-API, all in under 200 lines of code.
- PJSUA
This is the reference implementation for PJSIP and PJMEDIA. PJSUA is a console based application, designed to be simple enough to be readble, but powerful enough to demonstrate all features available in PJSIP and PJMEDIA.
Please refer to
PJSUA-API Basic API on how to create and initialize the API. And then see the Modules on the bottom of this page for more information about specific subject.