summaryrefslogtreecommitdiff
path: root/pjsip-apps
AgeCommit message (Collapse)Author
2010-05-17Merge #1050, #1052, #1053, #1054 into the main trunk.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3175 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-13Re #1069:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3172 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-10Added systest function to select which audio device to use (re #1068: misc ↵Benny Prijono
fixes) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3164 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-10Ref #1068 (misc fixes): added facility to change device ID at run time in ↵Benny Prijono
pjsystest git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3163 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20Misc (ticket #1026):Benny Prijono
- added aectest in Samples build git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3141 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-07More ticket #1055:Nanang Izzuddin
- Added APS codecs detection. - Minor updates in symsndtest: - added log of supported extended audio formats. - changed libraries order in symsndtest.mmp, this fixes linking error on S60 3rd MR SDK. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3135 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30More ticket #1041 (Unit test):Benny Prijono
- Symbian testing (plain, APS/Direct, VAS/Direct) - some MMPs need to be modified to support automated configuration - renamed Write to FileWrite command in scenario files - support for Visual Studio 2010 detection in configure script git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3131 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30Ticket #1044:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3128 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-10More #1032 (new SIP TCP/TLS transport callback):Benny Prijono
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3119 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-04Ticket #1008:Nanang Izzuddin
- Applied VAS AMR playback solution from Forum Nokia. - Fixed AMR playback for VAS and APS in composing DTX/NO_DATA (frame type 15) frame header. - Modified symbsndtest test application to support non-PCM audio. - Minor check fix in pjmedia_codec_mgr_destroy(), caught assertion when VAS factory init failed and media endpoint tried to destroy codec manager (codec mgr hasn't been init-ed). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3116 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-03Ticket #1042, minor updates related to AEC:Nanang Izzuddin
- Added requirement of AEC minimal latency between reference and echo in aectest sample app. - Modified AEC latency in sound port to 3/4 of playback latency. - Few cleaned up echo_common.c: unused vars, a bit stricter latency check (to be at least as much as PTIME). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3115 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25More ticket #1032:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3110 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24Ticket #1032:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3106 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10Misc (#1026): swap the order fo --dis-codec and --add-codec execution in ↵Benny Prijono
pjsua, so that user can now enable specific codecs git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3093 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-05Misc (#1018):Liong Sauw Ming
* httpdemo: make the 2nd parameter (output filename) optional (result will be printed to stdout if output file is not provided. * remove trailing "\n" from PJ_LOG. * change response.status_code from pj_str_t to pj_uint16_t. * remove PJ_EPENDING status checking from on_complete. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3089 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-04Implemented ticket #1018: Simple HTTP client implementationLiong Sauw Ming
* pjlib-util: * implement http_client * pjlib-util-test: * unit test for http_client * pjsip-apps/samples: * sample http client implementation * build: * added http_client support on VS6, VS2005, MMP, and Makefile git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3087 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25Misc fix (#1026): incoming call event is not detected by PocketPJ sample ↵Benny Prijono
application git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3073 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08Misc (#1003):Benny Prijono
- Fixed gcc warnings in activesock unit test - 'make clean' did not clear pjsystest executable git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3048 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04Misc PJLIB fix (#1003): fix gcc warning about unused return valueBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3043 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-30Ticket #1005:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3039 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-29Misc PocketPJ fixes (#1006):Benny Prijono
- always intantiate TCP to support TCP auto-switching - bug fix in retrieving DNS server field from GetNetworkParams() return value git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3036 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-08Fixed ticket #999:Benny Prijono
Several bug fixes to the TURN client library and icedemo sample application: 1. ICE stream transport reports ICE initialization/candidate gathering stage as successful even when TURN client TCP connection has failed. 2. Bad ChannelData framing when TCP is used. PJNATH did not properly add padding to the TURN ChannelData packet if TCP is used and the data is not aligned to four bytes boundary. Similarly incoming ChannelData with padding (over TCP) may not be handled correctly. 3. Incoming data over TCP may be delayed. PJNATH only processed one frame (be it request, indication, or ChannelData) on an incoming stream, so if the stream contains more than one frames, the processing of subsequent frames will be delayed until more stream is received on the TCP transport. 4. The icedemo sample application overwrites the incoming packet buffer with NULL character ('\0') before printing the message to console. If there is another packet after current packet (as often happens when TCP is used), the subsequent packet will get corrupted. The combinations of bugs above may cause PJNATH to return "Invalid STUN message length (PJNATH_EINSTUNMSGLEN)" error when processing incoming TURN ChannelData message over TCP. And a small enhancement: 1. Add logging to file option to icedemo sample. Thanks Sarun Nandakumar for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3028 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20More ticket #982 (MWI): support for Asterisk unsolicited MWI requests:Benny Prijono
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3021 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20More #982 (MWI): support for Asterisk unsolicited MWI in pjsua applicationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3019 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10More #955 (Python fixes): calling buddy_set_user_data with invalid buddy ID ↵Benny Prijono
will raise assertion git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3010 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10Misc python module fixes (#955):Benny Prijono
- transport config is not initialized with default values, causing assertion in QoS call - memory leak with py_pjsua_simple_parse_uri git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3007 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09More #957 (TLS)Benny Prijono
- added missing servername setup in symbian_ua. Without this, TLS connection will fail with KErrAborted/Interrupted on some devices (it may succeed on some FP1 devices but not others) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2999 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Ticket #950 and #957: Benny Prijono
- added QoS options on PJLIB/PJLIB SSL/TLS socket/transport - added demo in Symbian ua.cpp git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2998 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-08Misc (#951): some fixes for pjsystest application:Benny Prijono
- added the missing build target on the Makefile build system - added alternative search path for the WAV files git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2991 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-29More ticket #982: added MWI support for PythonBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2976 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26Implement ticket #982: Support for SIP Message Summary/Message Waiting ↵Benny Prijono
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: http://svn.pjsip.org/repos/pjproject/trunk@2968 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-25Initial commit for ticket #950: QoS support:Benny Prijono
- 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: http://svn.pjsip.org/repos/pjproject/trunk@2966 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20Initial commit for ticket #937: Revamping of presence management to make it ↵Benny Prijono
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: http://svn.pjsip.org/repos/pjproject/trunk@2956 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-11Ticket #951 (misc fixes):Benny Prijono
- fixed misc compiler warnings with gcc on Linux git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2938 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-27Ticket #957: Initial version of TLS transport for Symbian, includes:Nanang Izzuddin
- Secure socket, generic abstraction and Symbian implementation (using CSecureSocket). - Initial rewriting of SIP TLS transport. - Updated symbian_ua.mmp to support SIP transport TLS (experimental). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2913 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-24More #956: added admin commands and html modeBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2912 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-23Ticket #956: confbot application, initial versionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2911 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-22Ticket #955 (fixes and enhancements to Python module):Benny Prijono
- allow user to specify either custom body or header in call.send_request(). Previously user has to specify both (thanks Saúl Ibarra for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2910 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-22Ticket #955 (fixes and enhancements to Python module):Benny Prijono
- added acc.send_pager() API to send IM from account to an arbitrary URI (thanks Saúl Ibarra for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2909 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-21Misc (#951): r2906 accidentally left STEREO_DEMO option ON in pjsuaBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2907 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-21Misc (ticket #951): fixed crash in pjsua application during shutdown with ↵Benny Prijono
STEREO_DEO (thanks Andreas Ahland for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2906 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17Ticket #833: Updated dump-config in pjsua app to include Session Timer ↵Nanang Izzuddin
settings (and 100rel). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2897 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17Misc (ticket #915): added reload command in pjsua to shutdown and ↵Benny Prijono
reinitialize the library git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2892 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12Bug fix for ticket #833 (session timer support)Benny Prijono
- bug in verifying --timer-se option in pjsua git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2867 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12Ticket #866: Allow application to specify more than one STUN servers for ↵Benny Prijono
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: http://svn.pjsip.org/repos/pjproject/trunk@2864 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11Misc fix (ticket #915): Fixed bug of a wrong check variable used in writing ↵Nanang Izzuddin
playback_lat setting in pjsua app (thanks Wolfgang Fritz for the fix). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2862 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11Ticket #833:Nanang Izzuddin
- Renamed pjsip_timer_default_setting() to pjsip_timer_setting_default(). - Updated session timer settings in pjsua-lib as whole session timer setting struct (pyhton version remains using se & min_se). - Added output param SIP status code in pjsip_timer_process_resp() and pjsip_timer_process_req() to specify the corresponding SIP status code when function returning non-PJ_SUCCESS. - Fixed print header functions in sip_timer.c to have buffer check. - Added PJSIP_SESS_TIMER_DEF_SE setting to specify the default value of session timer interval. - Fixed role reference of the refresher, it is transaction role, not dialog role. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2859 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11Ticket #833:Nanang Izzuddin
- Initial version of Session Timers (RFC 4028). - Added new options in pjsua app to configure Session Timers settings. - Added python tests for Session Timers. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2858 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-05More ticket #925: added compile time option to enable verbose logging ↵Benny Prijono
output, and one more fix about samples_per_frame mismatch git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2854 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-04Ticket #930:Nanang Izzuddin
- Changed semantic of pjsua_acc_config.contact_params, it is now used for specifying Contact header parameters (it was used for specifying Contact URI parameters). - Added a new field pjsua_acc_config.contact_uri_params, for specifying Contact URI parameters. - Added fields pjsua_acc_config.contact_params and pjsua_acc_config.contact_uri_params into python pjsua. - Updated/added option in pjsua app to specify Contact header parameters and Contact URI parameters. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2852 74dad513-b988-da41-8d7b-12977e46ad98