Commit Graph

297 Commits

Author SHA1 Message Date
Riza Sulistyo 9d4958ecfe Re #1643: Modification to avoid namespace conflict with pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4489 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 07:53:25 +00:00
Benny Prijono 66a9444b18 Re #1655, #1657: modified pjsua BB10 due to change in pjsua app framework
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4485 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-23 05:33:59 +00:00
Riza Sulistyo 0c5d8f768d Re #1643: Code restructure + modification to handle non blocking mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4476 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 06:05:06 +00:00
Sauw Ming 39280b8d8b Re #1655: Moved the definition of USE_GUI to pjsua iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4465 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-12 09:20:31 +00:00
Sauw Ming 57e265200d Re #1655: pjsua app CLI for iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4464 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-12 08:05:12 +00:00
Riza Sulistyo bc9c677287 Re #1643: Code restructure+add callback to support symbian gui app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4461 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-05 03:02:19 +00:00
Riza Sulistyo 7da46cd3bd Re #1643: add initial support for CLI
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4440 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-14 07:18:13 +00:00
Benny Prijono 5d47423d8e Fixed #1642: Media transport may not be cleaned up if call is hung up quickly
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4439 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-13 04:47:19 +00:00
Nanang Izzuddin bb3ae74c5a Misc (re #1562): Minor updates in pjsua app: fixed wrong error message and increased buffer for input menu.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4358 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-20 21:00:42 +00:00
Nanang Izzuddin 0c662eadf7 Close #1614: Added call redirect option PJSIP_REDIRECT_ACCEPT_REPLACE to accept call redirection with replaced 'To' header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4347 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-13 10:19:25 +00:00
Sauw Ming 35367d44bc Re #1559: Related to r4312, get the latest account config first before modifying the account
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4330 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 06:01:26 +00:00
Sauw Ming 9db6658d54 Re #1559: Fixed registration timeout setting used by ipjsua to take effect immediately.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4312 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-03 09:26:29 +00:00
Benny Prijono e135917e37 Fixed #1585: IPv6 support for SIP TCP and TLS transports and PJSUA-LIB v2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4262 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-20 06:00:23 +00:00
Benny Prijono c7abc1b598 Fixed #1412: Account specific NAT settings: STUN, ICE, and TURN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4218 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07 02:18:15 +00:00
Nanang Izzuddin 8c605b01db Re #1562: fixed typo in pjsua app video option help: the default for "--vrender-dev" should be "-2".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4216 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-27 14:00:29 +00:00
Nanang Izzuddin 48f46a9f37 Misc (re #1508): Fixed warning of unused var in pjsua_app.c when video is disabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4129 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-17 08:27:46 +00:00
Sauw Ming 2a04460ffe Re #1446 (misc): Disable SDL by default on iOS and fixed various compiler warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4087 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 03:39:24 +00:00
Sauw Ming e85cbee6b9 Re #1446 (misc): Fixed linking error if PJMEDIA_HAS_VIDEO is 0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4086 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 02:44:41 +00:00
Nanang Izzuddin 4560ee8d43 Misc (Re #1446): Add pjsua app video command for modifying video codec size/resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4027 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 08:38:49 +00:00
Nanang Izzuddin 8f1546d478 Misc (Re #1446): Add pjsua app video commands for modifying video codec bitrate & framerate.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4025 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 07:22:30 +00:00
Nanang Izzuddin 5ec95cd900 More re #1478: AVI cleanup steps in pjsua app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4024 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 04:41:24 +00:00
Sauw Ming 22d9b64287 Misc (Re #1446): Fixed wrong setting of pjsua_app's options.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4023 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 01:56:05 +00:00
Benny Prijono 83ee8f5371 More re #1478: now really do not connect to microphone when streaming avi (instead of disconnecting the whole audio)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4020 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 08:16:02 +00:00
Benny Prijono 837200acb4 More re #1478: do not connect the microphone when streaming avi
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4019 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 07:45:39 +00:00
Benny Prijono 2e727e8f70 Fixed #1478: AVI player virtual device. Initial spec:
- Currently only Works with raw video and audio AVI files
 - Added --play-avi and --auto-play-avi options in pjsua
 - No A/V synchronization yet


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4016 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 05:05:50 +00:00
Benny Prijono 28d3c56283 Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Nanang Izzuddin 84e0018670 Misc (re #1446): Minor fixes arrange_window() in pjsua app:
- calculate visible windows only (with 2 calls, there was already an out-of-screen window)
 - re-arrange windows on format changed event



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3971 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-09 03:03:10 +00:00
Benny Prijono ae86e6ad00 More re #1419: changed field names from video_count to vid_cnt and audio_cnt to aud_cnt for better consistency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3925 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-27 12:47:52 +00:00
Nanang Izzuddin 3da4ad8f85 Re #1234: Initial version of keyframe request/response via SIP INFO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3901 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-07 10:43:28 +00:00
Benny Prijono 7347f31251 Minor (re #1393): fixed compilation warning in pjsua app if video is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3894 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-02 09:26:44 +00:00
Nanang Izzuddin 3d7385c7f9 Misc (re #1393): fix linking error "app_config_init_video() not found" when video is disabled, also some compile warnings (unused variables).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3892 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 10:02:54 +00:00
Nanang Izzuddin debd48ae0b Re #1419, implement media count manipulation per call basis:
- moved the media count setting from account setting to call setting
 - introduced pjsua_call_setting, to be used by pjsua_call_make_call() and some new APIs: pjsua_call_answer2(), pjsua_call_reinvite2(), pjsua_call_update2() 




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3891 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 09:06:14 +00:00
Benny Prijono 2780b7aa79 Misc (re #1393): write log if adding pjsua buddy fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3875 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-28 05:09:53 +00:00
Sauw Ming 0ee072f2e3 Fixed #1401: Add support for video device's window flags
Now support flags PJMEDIA_VID_DEV_WND_BORDER and PJMEDIA_VID_DEV_WND_RESIZABLE.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3864 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 09:01:53 +00:00
Benny Prijono 4bc1575ed3 Added video for TCP account (previous fix did not work, re #1400)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3863 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 08:03:41 +00:00
Benny Prijono 0d6f755bbb Added missing video initialization to TCP local accounts in pjsua (fixed #1400)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3862 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 08:00:28 +00:00
Benny Prijono 7718350c7b Misc (re #1393): crash in vid win command without argument
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3852 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:12:33 +00:00
Nanang Izzuddin 034ac4199f Re #1400: init video settings for pjsua app accounts.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3851 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:11:04 +00:00
Benny Prijono d3de2a8d6f Re #1400: enhancements to video operations in pjsua application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3850 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 09:35:11 +00:00
Sauw Ming e7dbbc8f30 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3557:r3832

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 09:28:13 +00:00
Benny Prijono 565c52e6f0 Fixed compilation error in pjsua_app introduced by r3819 if video is not enabled (re #1390)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3825 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 06:51:34 +00:00
Nanang Izzuddin 65b04a692c Reenable ffmpeg H264 (re #1390):
- Review H264 codec settings such as profile, level, NAL unit size, bitrate, quality, latency.
 - Added new format PJMEDIA_FORMAT_GBRP, 24 bits planar RGB, one of the formats outputted by the latest ffmpeg H264 decoder.
 - Fixed format change detection bug in ffmpeg wrapper, decoder didn't update its internal state with the new format so format change event was generated in every decoding operation.
 - Added compile time configurations for enabling/disabling ffmpeg codec H263+ & H264.
 - Updated pjsua app to adjust window size to original video size. With H264, default window size will be too big as it is init'd with default H264 video size, e.g: 720x480 for profile level 30.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3819 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 01:51:01 +00:00
Benny Prijono d865de92d6 Misc (re #1370): pjsua hide preview window when setting preview off
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3800 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:48:07 +00:00
Benny Prijono 3c1ed0c724 Misc (re #1370): rename command "vid call set-cap" to "vid call cap", and added command "vid win arrange" to auto-arrange windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3798 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:33:06 +00:00
Benny Prijono 0e9082d021 Fixed link error in pjsua due to r3785 (Misc, re #1370)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3789 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 14:09:24 +00:00
Benny Prijono 1cad0bba2e Misc (re #1370): auto arranging of video windows in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3785 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 04:04:49 +00:00
Nanang Izzuddin 775918f35d Misc (re #1320): fixed wrong check order in pjsua app vid_handle_menu(), input string "vid " crashed the app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3735 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 07:58:52 +00:00
Benny Prijono e212bc1068 Re #1263 (Video API):
- Added PJSUA_CALL_VID_STRM_NO_OP to occupy value 0 for the enum
 - Added pjsua_call_vid_strm_op_param_default() to initialize pjsua_call_vid_strm_op_param
 - Renamed pjsua_call_get_transport_info() to pjsua_call_get_med_transport_info()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3694 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 09:38:42 +00:00
Nanang Izzuddin d93c68a997 Re #1326:
- Fixed compile warnings on vs2005
 - Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3666 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 08:40:20 +00:00
Nanang Izzuddin fe68f1dc55 Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 03:42:28 +00:00
Nanang Izzuddin 9808561961 Re #1263:
- Replaced video stream operation DISABLE into REMOVE.
 - Replaced video stream operation ENABLE into CHANGEDIR.
 - Added new param: media direction, used in operation ADD and CHANGEDIR.
 - Updated video stream operation START_TRANSMIT to ignore capture device param (as changing capture device is handled by CHANGE_CAP_DEV operation).



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3657 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:41:02 +00:00
Benny Prijono ee0ba1872c Re #1265 (GUI events): initial implementation, for renderer only first. Also re #1320 (misc): moved function prototypes from pjsua_xx.c to pjsua_internal.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3652 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 06:18:29 +00:00
Nanang Izzuddin f363802d77 Re #1263:
- Added API pjsua_vid_enum_wins() to enumerate video windows.
 - Minor fixes on video window manipulations.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3638 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 03:47:04 +00:00
Nanang Izzuddin c16590ad20 Re #1263: minor fixes:
- wrong boolean value to be used with PJMEDIA_VID_DEV_CAP_OUTPUT_HIDE in pjsua_vid.c
 - unupdated 'vid' commands in pjsua sample app




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3637 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 02:14:25 +00:00
Nanang Izzuddin 7ad53c33df Re #1263:
- Break down the operation type PJSUA_CALL_VID_STRM_MODIFY into PJSUA_CALL_VID_STRM_ENABLE, PJSUA_CALL_VID_STRM_DISABLE, PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV.
 - Implemented video stream re-enabling (PJSUA_CALL_VID_STRM_ENABLE).




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3636 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 13:31:08 +00:00
Nanang Izzuddin b4d4dade23 Re #1263:
- Renamed API pjsua_call_set_vid_out() with pjsua_call_set_vid_strm().
 - Implemented initial version of the function, features covered:
   - add, remove video media stream during the call
   - change which device to use during the call
   - start/stop video stream transmission




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3634 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 08:51:10 +00:00
Benny Prijono 2d64772d47 Fixed #1299: New callback to notify that sound device needs to be opened or closed
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3632 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 03:05:22 +00:00
Nanang Izzuddin 62053a6a44 Re #1263:
- implemented video window management (get/set visibility, pos, resize)
 - integrated video window and video capture preview into call




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3629 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 11:08:32 +00:00
Benny Prijono 9f468d176d Initial commit re #1263 (PJSUA-LIB Video API):
- API designed and reviewed (pjsua.h)
 - Implemented these APIs and added to pjsua sample application:
   - video device enums API
   - video capture preview API
 - refactoring in PJSUA-LIB:
   - video stuffs go to pjsua_vid.c
   - call dump goes to pjsua_dump.c

We're still missing:
 - video call API implementation
 - media info and statistic API implementation



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3609 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:46:33 +00:00
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Benny Prijono 83b424a3a9 Re #1214 (app): enlarge call dump buffer if RTCP XR is enabled, and added option to disable stderr (only works on Posix system)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3519 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 15:16:48 +00:00
Nanang Izzuddin 56b2ce43d8 Re #1186:
- Added custom negotiation callback mechanism in SDP negotiator, mainly for specific formats that require SDP fmtp negotiation.
 - Modified video codec ID string to use encoding name+payload type (was encoding name+clock rate), also added encoding description in video codec info, so duplicated codecs (e.g: multiple H264 configurations) can be differentiated.
 - Few enhancements for H264 in ffmpeg wrapper (e.g: added proper profile-id & packetization-mode setup).




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3500 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 13:55:01 +00:00
Benny Prijono 587c794c88 Re #1214 (apps): added registrar functionality in pjsua for easier testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3477 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 06:08:25 +00:00
Nanang Izzuddin 269eec1fc3 Re #1214:
- Added option in pjsua app to select video devices, and modified 'Cp' menu command to also change video codecs priority.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3472 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:50:48 +00:00
Benny Prijono 0bc99a9ca3 Modifications in PJSUA-LIB to support multiple media streams (multiple audio and/or video) and dynamic creation of media transports. This closed #1185 and closed #1201.
1185: Dynamic creation of media transports
============================================
Done:
 - media transports are created on demand now

Todo:
 - media transport creation is still blocking


1201: Video support in PJSUA-LIB
===================================
Done:
 - call now supports N media (N audio and M video)
 - number of audio/video streams is configurable per acc
 - extra audio stream info in pjsua_call_info to support multiple audio streams
in one call
 - video subsys and ffmpeg initialization in PJSUA-LIB
 - ability to offer and create video SDP answer
 - "dq" for more than 1 audio streams
 - introducing pjsua_state and pjsua_get_state()

API change:
 - on_stream_created() and on_stream_destroyed() callbacks: changed session to
stream

Todo:
 - many others features are disabled, just search for DISABLED_FOR_TICKET_1185
macro (these have also been added to ticket #1193 (Issues & Todos)). Notable
missing features are:
      - creation of duplicate SDP m= lines for optional SRTP
      - mm.. that's it?
 - whole lot of testings

pjsua:
===============
 - Added --extra-audio and --video options. Specify these more than once and
each time an extra audio/video streams will be added. :)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3457 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 04:34:43 +00:00
Benny Prijono e3e6580803 Initial implementation for re #1202 (PJILB System Information API) for Linux/Unix
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:44:19 +00:00
Benny Prijono 434baa4fc6 Re #1020 (Support for SIP outbound and Path extension (RFC 5626)): added pjsua --outb-rid option to set outbound reg-id parameter for the account
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3372 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-18 05:15:04 +00:00
Benny Prijono 3f4b8d7a36 Re #1151 (misc): also enable plain UDP SIP transport when enabling IPv6, since many UA will use IPv4 in their Contacts (keyword: sipit27)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3370 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:05:10 +00:00
Benny Prijono 70749d787a Re #1151 (misc fixes): fixed error in pjsua application when handling malformed URI in sending arbitrary request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3365 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-15 22:55:21 +00:00
Benny Prijono 6349989e20 Closed #1144: New presence callback to report subscription state (thanks Johan Lantz for the suggestion):
- added on_buddy_evsub_state() callback
 - added sample implementation in pjsua_app.c


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3339 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-12 12:45:15 +00:00
Benny Prijono c754578e5d Closed #1139 (Support for tel: URI in PJSUA-LIB):
- added new PJSUA API: pjsua_verify_url() which can be used for tel: URI
 - modified and tested according to spec
 - added new PJSIP error code, PJSIP_ENOROUTESET, to indicate that route set is needed to send to tel: URI
 - added couple of unit tests (we can't cover the whole tel: URI scenario yet)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3323 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28 07:43:18 +00:00
Nanang Izzuddin 4d32338063 Misc (re #1134): fixed default value of pjsua app param "--snd-auto-close" in pjsua app help message (was -1, should be 1, see r2493).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3318 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 17:07:39 +00:00
Nanang Izzuddin 742ef4bd30 Re #1120:
- Added enum pjsua_sip_timer_use for session timer usage types, containing: inactive, optional, required, always
 - Replaced require_timer (boolean) with above enum in global and account config setting.
 - Updated pjsua app --use-timer option accordingly.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3305 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-07 09:36:15 +00:00
Sauw Ming be3771a637 Closed ticket #1107: iOS4 background feature
* pjlib:
  * add support for activesock TCP to work in background mode.
  * add feature in ioqueue to recreate closed UDP sockets.
 * pjsip-apps:
  * ipjsua: add support for iPhone OS 4 background mode
  * ipjsystest: add support for iPhone OS 4 background mode



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3299 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-27 06:46:29 +00:00
Benny Prijono 1c1d734e05 Implemented core multipart support and support in the invite session (re #1070)
- incoming multipart message will be handled automatically
 - for testing, enable HAVE_MULTIPART_TEST in pjsua_app.c


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3243 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01 09:48:51 +00:00
Benny Prijono 29c8ca331c Fixed #1095 (New option to control the Route headers in REGISTER request). Details:
- added new account config setting: reg_use_proxy. This contains bitmask values to indicate whether outbound proxies and account proxies are to be added in the REGISTER request. Default value is to add both.
 - added new pjsua cmdline option to control this: --reg-use-proxy
 - miscellaneous minor fixes in other pjsua cmdline arguments


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3216 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-22 06:02:13 +00:00
Benny Prijono 4d6ff4d62c Fixed #1077: In ICE stream transport (ice_strans.c), automaticaly retry allocation once if TURN allocation fails. If this allocation retry also fails, notify the TURN user via on_ice_complete() callback. Details:
- added new PJ_ICE_STRANS_OP_KEEP_ALIVE operation
 - also added new on_ice_transport_error() pjsua callback to allow application to react to the failure.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3212 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-19 12:35:33 +00:00
Benny Prijono b5a60cd661 Re #1068 (misc fix): added --log-append option in pjsua to not overwrite existing log file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3183 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19 06:10:48 +00:00
Sauw Ming 7920fb2d16 Merge #1050, #1052, #1053, #1054 into the main trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3175 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17 13:07:39 +00:00
Nanang Izzuddin d89cc3a4c9 Re #1069:
- Added new approach of SRTP optional mode in pjsua-lib by duplicating SDP media line for secured and unsecured version of media transport.
 - Integrated this feature into pjsua app, it is activated via --use-srtp=3 param.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3172 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-13 05:22:51 +00:00
Sauw Ming bf16644012 Implemented ticket #1053: ipjsua: pjsua for iPhone OS
* ipjsua:
  * xcode project directory for ipjsua application
 * pjsua:
  * Modify pjsua to support printing messages and logs to a user-specified function



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3130 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 12:33:52 +00:00
Nanang Izzuddin 36dd5b607e Ticket #1044:
- Added initial version of automatic re-registration after registration failure and automatic call disconnection after re-registration attempt fails.
 - Published auto re-registration setting to pjsua app.
 - Updated pjsip_regc_send() to retrieve the transport earlier (was only in tsx_callback()).
 - Fixed TCP and TLS transport to prevent transport deletion in transport disconnection callback.
 - Fixed wrong keep-alive settings used by TLS transport (was using TCP keep-alive settings).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3128 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 11:13:59 +00:00
Benny Prijono 2140732ff3 More #1032 (new SIP TCP/TLS transport callback):
- PJSUA-LIB transport callback, if installed, will call the previously registered callback, to allow multiple transport callbacks to be installed
 - there seem to be a bug with the use of "pjsip_tp_state_callback" everywhere (the "pjsip_tp_state_callback" type is pointer, but most variables of this type are declared to pointer too)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3119 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-10 13:33:25 +00:00
Nanang Izzuddin 5e69da528f More ticket #1032:
- Updated transport state notification callback to return void.
 - Updated transport state enum to only contain connected and disconnected, no more bitmask value.
 - Added direction field to SIP transport.
 - Removed remote hostname hash from transport key.
 - Updated cert info dump to return -1 when buffer is insufficient.
 - Added new error code PJSIP_TLS_ECERTVERIF.
 - Updated get_cert_name() in ssl_sock_symbian.c to use heap buffer instead of stack.
 - Minors, e.g: added prefix PJ in cipher types, docs.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3110 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25 11:58:19 +00:00
Nanang Izzuddin 2fb937eb02 Ticket #1032:
- Initial version of server domain name verification:
   - Updated SSL certificate info, especially identities info
   - Updated verification mechanism as in the specifications in ticket desc.
   - Added server domain name info in pjsip_tx_data.
   - Added alternative API for acquiring transport and creating transport of transport factory to include pjsip_tx_data param.
   - Server identity match criteria:
     - full host name match
     - wild card not accepted
     - if identity is URI, it must be SIP/SIPS URI
 - Initial version of transport state notifications:
   - Added new API to set transport state callback in PJSIP and PJSUA.
   - Defined states: connected/disconnected, accepted/rejected, verification errors.
 - Minors: 
   - Updated SSL socket test: dump verification result, test of requiring client cert, and few minors.
   - Updated test cert to include subjectAltName extensions.
   - Added SSL certificate dump function.
   - Updated max number of socket async operations in Symbian sample apps (RSocketServ::Connect()) to 32 (was default 8).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3106 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24 05:43:34 +00:00
Benny Prijono c88ad8dccc Misc (#1026): swap the order fo --dis-codec and --add-codec execution in pjsua, so that user can now enable specific codecs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3093 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 08:16:48 +00:00
Nanang Izzuddin fdbfcf1ccf Ticket #1005:
- Fixed bug in pjsip_tls_transport_start(): specified ca_list_file must be applied even when cert_file is not set.
 - Fixed bug in lis_create_transport(): new transport should inherit cert settings (from listener).
 - Fixed pjsua app, missing TLS transport setting 'require_client_cert' for '--tls-verify-client' option.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3039 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-30 06:35:20 +00:00
Benny Prijono fe1bd34b90 More ticket #982 (MWI): support for Asterisk unsolicited MWI requests:
- undo r3019 which put unsolicited MWI support in pjsua app only
 - put the unsolicited MWI support in PJSUA-LIB instead
 - unsolicited MWI is by default enabled
 - on_mwi_info() callback will be called just as the solicited MWI version


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3021 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20 23:33:07 +00:00
Benny Prijono 6d936a37af More #982 (MWI): support for Asterisk unsolicited MWI in pjsua application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3019 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20 04:18:27 +00:00
Benny Prijono a25bc9dc21 Ticket #950 and #957:
- added QoS options on PJLIB/PJLIB SSL/TLS socket/transport
 - added demo in Symbian ua.cpp


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2998 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 08:51:34 +00:00
Benny Prijono 4dd961b2fb Implement ticket #982: Support for SIP Message Summary/Message Waiting Indication (MWI, RFC 3842)
- PJSIP-SIMPLE:
    - implement MWI
 - PJSUA-LIB:
    - added "mwi_enabled" flag in account config
    - added "on_mwi_info" callback
 - pjsua app:
    - added "--mwi" option to enable MWI on account
    - added simple callback to log the NOTIFY message
 - other:
     - added SIPp scenario files to simulate UAS side
 - build:
     - added MWI support on VS6, VS2005, MMP, and Makefile


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2968 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26 11:21:37 +00:00
Benny Prijono 4d79b0f7f1 Initial commit for ticket #950: QoS support:
- implementation:
     - PJLIB (sock_qos*.*)
 - added QoS support in:
     - SIP UDP transport, 
     - SIP TCP transport,
     - media UDP transport (done in pjsua-lib), 
     - pjnath ICE stream transport,
     - pjnath STUN socket,
     - pjnath TURN client
 - added QoS options in pjsua-lib:
     - QoS fields in pjsua_transport_config
 - added "--set-qos" parameter in pjsua

Notes:
 - QoS in TLS transport is not yet implemented, waiting for #957
 - build ok on VS6, VS2005 (multiple targets), Carbide, and Mingw
 - no run-time testing yet



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2966 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-25 09:02:07 +00:00
Benny Prijono 73bb72384f Initial commit for ticket #937: Revamping of presence management to make it more efficient
Presence enhancements:
 - finer grained buddy lock object, instead of using global PJSUA-LIB's mutex
 - individual resubscription timer for buddies and also add random delay interval so that resubscriptions don't happen simultaneously (may hog processing and bandwidth).
 - in general reduced the use of global PJSUA-LIB's mutex for more efficiency
 - added last termination code in buddy info
 - use the RPID note's text for buddy's offline status rather than the default "offline" status, if available
 - resubscribe automatically on several termination causes as explained in the ticket (still untested)

General enhancements:
 - added pjsua_schedule_timer() and pjsua_cancel_timer() APIs




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2956 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20 13:56:26 +00:00
Benny Prijono 71b602b2fd Misc (#951): r2906 accidentally left STEREO_DEMO option ON in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2907 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-21 13:38:32 +00:00
Benny Prijono 8ccd42897e Misc (ticket #951): fixed crash in pjsua application during shutdown with STEREO_DEO (thanks Andreas Ahland for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2906 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-21 11:12:19 +00:00
Nanang Izzuddin 8085b51327 Ticket #833: Updated dump-config in pjsua app to include Session Timer settings (and 100rel).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2897 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 20:28:47 +00:00
Benny Prijono ec5fb81de0 Misc (ticket #915): added reload command in pjsua to shutdown and reinitialize the library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2892 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 15:33:45 +00:00
Benny Prijono 70dfc273ec Bug fix for ticket #833 (session timer support)
- bug in verifying --timer-se option in pjsua



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2867 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 17:28:36 +00:00
Benny Prijono bb995fd284 Ticket #866: Allow application to specify more than one STUN servers for more robustness, and continue application startup if STUN resolution fails
PJSUA-LIB:
 - New fields in pjsua_config to specify more than one STUN servers (the stun_srv_cnt and stun_srv array)
 - The existing stun_host and stun_domain fields are deprecated, but backward compatibility is maintained. If stun_srv_cnt is zero, the library will import the entries from stun_host and stun_domain
 - The library will now resolve the STUN server entries one by one and test it before using it
 - New auxiliary API pjsua_resolve_stun_servers() to perform resolution and test against array of STUN servers

pjsua application:
 - The "stun-srv" command line options can now be specified more than once



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2864 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12 11:03:23 +00:00
Nanang Izzuddin 0ea0ead00e Misc fix (ticket #915): Fixed bug of a wrong check variable used in writing playback_lat setting in pjsua app (thanks Wolfgang Fritz for the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2862 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 18:34:03 +00:00