Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#556 closed enhancement (fixed)

New object oriented Python abstraction for pjsua API

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.0-rc1
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

pjsua.py
Implement new objected oriented Python wrapper for pjsua API. This is a new Python module, and it is implemented purely in Python, on top of the C module.
_pjsua C python module
This is the implementation of the Python C module. It is based on the old py_pjsua.c module with some changes and new features. The py_pjsua.c module is now deprecated.

Change History (4)

comment:1 Changed 16 years ago by bennylp

  • Summary changed from New and better object oriented Python wrapper/abstraction for pjsua API to New object oriented Python abstraction for pjsua API

comment:2 Changed 16 years ago by bennylp

Initial, alpha version in r2119

comment:3 Changed 16 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

r2120:

  • updated setup.py for Linux

r2122:

  • fixed bug in player_get_slot() and recorder_get_slot()

comment:4 Changed 16 years ago by bennylp

In r2163:
Major modifications in Python module and pjsua.py wrapper:

  • replaced call/acc/buddy dictionaries with user data attachment
  • recommended to install callback when creating the object, to prevent missing some events
  • fixed circular references by using weakref
  • protect access to pjsua with mutex; found out that without this there will be deadlock in Python
  • fixed memory leaks in the _pjsua.c module (objects reference counter not properly maintained)
Note: See TracTickets for help on using tickets.