Commit Graph

4132 Commits

Author SHA1 Message Date
Benny Prijono bebd0971c4 Re #1519: fixed threading issues on Python. On Python, only threads created by Python can call Python. This creates problem with calling callback from worker thread. The SIP worker thread can be disabled, but we have other worker threads such as the sound device that cannot be disabled. The solution in this patch is to create small framework to post a job to "main thread" during libHandleEvents(). The main thread is thread that calls libCreate().
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4678 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-05 03:03:36 +00:00
Nanang Izzuddin 559f01c4c9 Re #1708: Implement adding participants, also various misc updates/fixes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4677 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 12:19:48 +00:00
Benny Prijono e08f706e95 Re #1519: added AudioMedia for the sound device
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4676 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 07:05:35 +00:00
Benny Prijono 654d0a2e23 Re #1708: fix so that deleted account does not register itself to the treeview again during unregistration
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4675 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 07:04:49 +00:00
Benny Prijono 5f8aaf2096 Re #1519: added misc comment to clarify
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4674 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 04:05:02 +00:00
Benny Prijono b193b53196 Re #1519: fixed compilation error in pjsua2_demo
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4673 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 03:08:24 +00:00
Benny Prijono cb7fd11125 Re #1519: doxygen fixes and other minor fixes
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4672 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 03:01:20 +00:00
Nanang Izzuddin c083f3adcb Re #1708: Initial work on chat window.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4671 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 02:46:42 +00:00
Nanang Izzuddin cc45350a25 Misc update & fix:
- added new files (call & media) to VS2005 project
 - fixed compile warnings
 - fixed compile error when video is disabled
 - fixed Makefile when JAVA_HOME env var is set



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4670 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-04 02:38:20 +00:00
Riza Sulistyo b23faaba40 Re #1519: Added codec management operations to Media API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4669 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-03 10:45:36 +00:00
Riza Sulistyo 3932e857bb Re #1519: Added audio device management operations to Media API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4668 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-03 07:14:22 +00:00
Benny Prijono 2f2de4cc3b Re #1630: updated wrong documentation about default jb_init value in pjsua. The default is 0, not 150.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4667 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-03 05:22:10 +00:00
Sauw Ming 638413c5ea Re #1519: Add call media
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4666 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-02 04:40:29 +00:00
Benny Prijono bb13e795c3 Re #1519: implemented Settings dialog and reorganization in config variables in Pygui app
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4665 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 12:16:43 +00:00
Benny Prijono ed3543416a Re #1519: Fully configurable account settings (more or less) and other small fixes
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4664 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 07:39:07 +00:00
Sauw Ming 64e77a85c2 Re #1519: Add Call API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4663 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 05:56:02 +00:00
Riza Sulistyo ff6231c790 Re #1519: Added Media API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4662 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 03:05:48 +00:00
Benny Prijono a9b82cfbed Fixed #1714: Workaround for stuck in TCP/TLS shutdown when another thread is destroying the transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4661 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-29 00:33:05 +00:00
Nanang Izzuddin 83f15d5e7d Re #1519: Added VS2005 project for pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4660 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:50:42 +00:00
Benny Prijono ba493f2041 More #1519: renamed pj_status_code member from status to code for more consistency, and removed exception throwing from Account destructor
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4659 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:42:21 +00:00
Nanang Izzuddin 91c14d9065 Re #1519: Minor fix on TransportInfo, use fromPj() method to import data from pjsua_transport_info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4658 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:18:18 +00:00
Nanang Izzuddin 732c75a69d Re #1519: Added presence API in pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4657 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 09:37:32 +00:00
Benny Prijono f912318dd8 Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4656 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23 07:13:40 +00:00
Nanang Izzuddin fb16bfb024 Re #1519: Added converter methods, to/from pjsua_msg_data, for SipTxOption.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4655 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23 03:54:03 +00:00
Nanang Izzuddin 20838ee07c Re #1519: Minor update on PJ_UINT64() macro for GCC compiler. "LLU" is not recognized by C preproc on mingw/msys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4654 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-22 10:18:08 +00:00
Benny Prijono 92cb5621ac Fixed #1712: Must not send BYE before ACK is received
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4653 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-19 10:18:17 +00:00
Sauw Ming f68beb9682 Re #1630 (misc): Prevent retransmit timer cancellation during retransmission of STUN request.
This is related to ticket #1620: Fix the calculation of transmission count during retransmission of STUN request. If mod_count is set to PJ_FALSE, retransmit timer shouldn't be cancelled.
 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4652 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-14 09:36:05 +00:00
Sauw Ming 73c6eb3c6e Re #1516: Set AR and RANLIB (thanks to Brian Walker for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4651 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-13 05:47:56 +00:00
Nanang Izzuddin c0ce4d60e9 Fix #1710: Modified resolver to always remove cache entry from cache hash table first before releasing/resetting cache pool.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4649 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-07 08:20:30 +00:00
Benny Prijono 7ad605c32f Re #1519: persistent support in PyGui application, making use of the new persistent API in pjsua2
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4648 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:14:17 +00:00
Benny Prijono 623be9d0ce Re #1519: added some C++ snippet to demonstrate or test persistent API in C++
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4647 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:09:05 +00:00
Benny Prijono 4034949659 Re #1519: Updated SWIG interface file with new headers (persistent.hpp, json.hpp, siptypes.hpp) as part of persistent API development
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4646 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:07:58 +00:00
Benny Prijono 4572e3aac9 More re #1519: the previous commit was missing this siptypes.cpp (this is part of persistent API development in pjsua2)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4645 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:06:40 +00:00
Benny Prijono 494d18e0c1 Re #1519: Added persistent API in pjsua2, with JSON as the format. The API is extensible to support more formats. All config structures are serializable now. Tested in Python.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4644 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 08:05:11 +00:00
Benny Prijono e389e2ec9b Re #1519: Added support for JSON (JavaScript Object Notation, RFC 4627) format in PJLIB-UTIL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4643 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 07:46:15 +00:00
Benny Prijono a6bcf96f7f Re #1519: added pj_strtof() to convert string to float in PJLIB, as part of pjsua2 persistent API development
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4642 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 07:41:40 +00:00
Nanang Izzuddin 8210f65326 Fix #1709: Fixed scanner in processing escaped quote right after quote begin.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4641 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-04 09:05:43 +00:00
Benny Prijono 64ff3f68b4 Re #1708 (PyGUI: New Python GUI Application based on pjsua2+SWIG API)
Initial implementation, some account functionality has been implemented. Details:
 - Uses Tk for GUI and pickle for object serialization. These are Python built-in modules
 - So far so good, everything (=Account API only so far!) seems to work, including:
    - STL string
    - STL vector
    - inheritance
    - calling callback that is implemented in Python with inheritance (the "director" feature")
 - Some notes though:
    - SIP worker threads need to be disabled because Tk GUI cannot be called from other threads (the worker thread will invoke callback which in turn will update GUI)
 - Features implemented in the GUI so far:
    - Account addition/deletion/modification
    - Registration
    - Logging to window
    - Persistent config (limited)





git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4640 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-01 08:49:43 +00:00
Benny Prijono f673a6ef92 Re #1519: Major change in pjsua2.i and etc after actual test in Python:
- Major changes in SWIG interface file (pjsua2.i). 
    - The "ignore" and "unignore" approach caused link error with vector (duplicate symbols because SWIG generates two identical vector functions in the wrapper) so it cannot be used (tried with many combinations and still doesn't work).
    - So scrap that, and now we use "importing" approach, where needed symbols must be listed in symbols.lst file, then use importsym.py to import the symbol declarations to symbols.i. Then include symbols.i in pjsua.i
    - Due to the way importsym.py work, some macros and naked constants need to be placed into a named enumeration, for example:
       - #define PJ_SUCCESS 0  ==> enum pj_constants_ { PJ_SUCCESS=0 }; [types.h]
       - enum { PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 } ==> enum pjmedia_vid_dev_std_index { PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 }; [videodev.h]
    - Makefile was changed so that symbols.i would be generated if symbols.lst has changed
 - Added "make install" and "make uninstall" targets for swig. Only implemented on Python. This will install to user's lib dir so doesn't need sudo.
 - Deleted approachX.hpp files
 - Added libVersion() method to Endpoint along with Version struct.
 - Fix pjsua2.i to make exception (or redirection?) works in Python
 - Add polling and worker thread related API:
    - PJSUA-LIB: pjsua_register_worker_thread(), pjsua_stop_worker_threads()
    - Endpoint: libRegisterWorkerThread(), libStopWorkerThreads(), libHandleEvents();



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4639 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-01 07:11:48 +00:00
Benny Prijono b64284082a Re #1519: Implementation of Account API, with inheritance approach:
- With small demo app (samples/pjsua2_demo.cpp)
 - Endpoint changed to use inheritance approach too
 - Simple account registration demo and callback works
 - Further tests will be done in high level app (Python GUI?)
 - Temporary build setting fixes (Makefile) to allow linking with pjsua2 and libstdc++
 - Temporary hacks in Makefile to ignore other build targets to speed up build. This should be fixed during integration.

Issues:
 - incomplete Endpoint::on_incoming_subscribe() implementation. There is no Account::presNotify() yet.
 - incomplete Endpoint::on_pager2(), on_pager_status2(), to handle call's pager rather than account's pager
 - some SWIGTYPE (unknown type by Swig) still unresolved



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4638 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-25 10:34:38 +00:00
Sauw Ming fc1fb24b87 Re #1630 (misc): Use the right compiler and flags to compile C++ (.cpp) files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4637 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 07:12:39 +00:00
Sauw Ming c8b3e27e8c Re #1697: Removed extra spaces in aconfigure.ac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4636 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 07:07:39 +00:00
Benny Prijono 350e07cb1d Re #1697: fixed build error with the new coreaudio_dev.m introduced by r4617, because build process looks for an ObjC compiler
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4635 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 06:27:14 +00:00
Riza Sulistyo 218c3d54c8 Re #1643: Fix some build warnings detected on VS2012
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4634 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 09:29:35 +00:00
Sauw Ming 3b238cc900 Re #1630 (misc): Fixed compilation error on iOS by setting AR_FLAGS (introduced in r4628) in configure-iphone
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4633 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 08:39:04 +00:00
Sauw Ming fdd63c3b60 Fixed #1707: Add support for paralel build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4632 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 06:39:47 +00:00
Benny Prijono fe3e558601 More re #1519:
- account API implementation (incomplete, callback is still not called)
 - using callback class design pattern (observer?)
 - after this, it might be changed to use inheritance pattern instead


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4631 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 05:34:48 +00:00
Sauw Ming 6ef94b23ec Fixed #1706: Race condition in SIP transaction
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4630 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-22 10:16:28 +00:00
Sauw Ming 83fe3b5b7c Re #1630 (misc): Thanks to Mark Michelson for the patch
This changes the autoconfigure script to use different checks for ar and ranlib.
The previous methods were causing compilation failures since it may cause a non-existent "ccar" command to be run.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4628 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 07:52:35 +00:00
Sauw Ming 2938e723c6 Re #1630 (misc): Thanks to Mark Michelson for the patch.
This creates an "uninstall" target in the project Makefile that will remove the installed libraries from the system.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4627 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 07:07:35 +00:00