Commit Graph

740 Commits

Author SHA1 Message Date
Benny Prijono 4d69c3d162 Misc (Re #1068): compilation warning with gcc about unchecked fgets() return value
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3249 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 10:37:47 +00:00
Benny Prijono 0828055887 Re #1068 (Misc): fixed compilation warnings with MSVC compiler
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3245 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01 15:25:04 +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 7655487fe1 Fix #1053: change the libaries' path type to relative
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3179 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-18 15:17:03 +00:00
Sauw Ming e9edc04bbc Fix #1052: change library path as a relative path.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3178 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-18 15:11:20 +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
Benny Prijono c712c2835b Added systest function to select which audio device to use (re #1068: misc fixes)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3164 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-10 09:51:02 +00:00
Benny Prijono adca6fdd2f Ref #1068 (misc fixes): added facility to change device ID at run time in pjsystest
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3163 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-10 09:05:19 +00:00
Benny Prijono c58e9f7a6b Misc (ticket #1026):
- added aectest in Samples build


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3141 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 09:44:27 +00:00
Nanang Izzuddin 0048fbdd5d More ticket #1055:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@3135 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-07 13:21:31 +00:00
Benny Prijono 3d71eb0fb1 More ticket #1041 (Unit test):
- 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: https://svn.pjsip.org/repos/pjproject/trunk@3131 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 13:02:40 +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
Sauw Ming a74876262d Implemented ticket #1052: ipjsystest: pjsystest for iPhone OS
* ipjsystest:
  * xcode project directory for ipjsystest application
* pjsystest:
  * Modify pjsystest to support appending path during runtime



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3129 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30 11:42:51 +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 308d5332ab Ticket #1008:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@3116 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-04 15:47:25 +00:00
Nanang Izzuddin 6050f881a7 Ticket #1042, minor updates related to AEC:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@3115 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-03 14:47:35 +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
Sauw Ming 63236bb7f5 Misc (#1018):
* 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: https://svn.pjsip.org/repos/pjproject/trunk@3089 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-05 16:03:29 +00:00
Sauw Ming d8435e6798 Implemented ticket #1018: Simple HTTP client implementation
* 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: https://svn.pjsip.org/repos/pjproject/trunk@3087 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-04 18:29:16 +00:00
Benny Prijono 3614fbc7e7 Misc fix (#1026): incoming call event is not detected by PocketPJ sample application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3073 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25 17:38:07 +00:00
Benny Prijono 3b6f0d995a Misc (#1003):
- Fixed gcc warnings in activesock unit test
 - 'make clean' did not clear pjsystest executable


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3048 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 09:53:31 +00:00
Benny Prijono 982e47eb3a Misc PJLIB fix (#1003): fix gcc warning about unused return value
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3043 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04 14:20:22 +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 981e59e7e9 Misc PocketPJ fixes (#1006):
- always intantiate TCP to support TCP auto-switching
 - bug fix in retrieving DNS server field from GetNetworkParams() return value


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3036 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-29 15:33:13 +00:00
Benny Prijono 41903da982 Fixed ticket #999:
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: https://svn.pjsip.org/repos/pjproject/trunk@3028 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-08 13:11:25 +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 8595f8aa79 More #955 (Python fixes): calling buddy_set_user_data with invalid buddy ID will raise assertion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3010 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 10:57:29 +00:00
Benny Prijono 16639d9cd2 Misc python module fixes (#955):
- transport config is not initialized with default values, causing assertion in QoS call
 - memory leak with py_pjsua_simple_parse_uri


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3007 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 10:06:58 +00:00
Benny Prijono 28efe81d0a More #957 (TLS)
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2999 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 09:52:23 +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 c6f0e1a171 Misc (#951): some fixes for pjsystest application:
- added the missing build target on the Makefile build system
 - added alternative search path for the WAV files


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2991 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-08 03:35:41 +00:00
Benny Prijono 6a46488521 More ticket #982: added MWI support for Python
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2976 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-29 08:16:46 +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 140beae268 Ticket #951 (misc fixes):
- fixed misc compiler warnings with gcc on Linux


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2938 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-11 05:06:43 +00:00
Nanang Izzuddin 6c62bf450d Ticket #957: Initial version of TLS transport for Symbian, includes:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2913 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-27 19:55:13 +00:00
Benny Prijono 0079ac3853 More #956: added admin commands and html mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2912 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-24 11:56:13 +00:00
Benny Prijono 8b9f0083c2 Ticket #956: confbot application, initial version
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2911 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-23 14:26:37 +00:00
Benny Prijono f5dd34e7ed Ticket #955 (fixes and enhancements to Python module):
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2910 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-22 11:47:00 +00:00
Benny Prijono 2d1a94b8a6 Ticket #955 (fixes and enhancements to Python module):
- added acc.send_pager() API to send IM from account to an arbitrary URI (thanks Saúl Ibarra for the patch)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2909 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-22 11:41:49 +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
Nanang Izzuddin 65add62e5e Ticket #833:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2859 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 16:26:20 +00:00
Nanang Izzuddin 59dffb1a5c Ticket #833:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2858 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11 12:42:38 +00:00
Benny Prijono 7e8e0c1653 More ticket #925: added compile time option to enable verbose logging output, and one more fix about samples_per_frame mismatch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2854 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-05 17:10:35 +00:00
Nanang Izzuddin e2c7e85a43 Ticket #930:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2852 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-04 14:36:17 +00:00
Benny Prijono 1f47f3f56d Ticket #925: New application to simulate network and system impairments to see how it affects the audio quality
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2846 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-29 12:28:31 +00:00
Benny Prijono dbf4cb963f More ticket #920: fixed wrong latency calculation when there is loud noise in the start of recording
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2840 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-18 09:18:26 +00:00
Benny Prijono 258dc213b2 More ticket #720: added Win32 target in VS2005 project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2839 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-17 11:37:42 +00:00
Benny Prijono 5a8663af07 More ticket #920: fixed VS directory output for WM6 Pro
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2838 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-16 18:53:39 +00:00
Benny Prijono ff64ccfa2f More ticket #920: fix latency calculation not able to calculate latency higher than 500ms and added copyright info in source files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2836 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-16 11:37:15 +00:00
Benny Prijono 7b40c6c166 Ticket #920: New pjsystest application for testing target system/device. Initial work on Win32 and WM
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2835 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-16 10:36:48 +00:00
Benny Prijono d06d8c505f Related to #911:
- added subscription state name string in pjsua_buddy_info and display this in pjsua


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2824 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 13:53:47 +00:00
Nanang Izzuddin d687a5028c Ticket #909:
- Added new audio device VAS for Symbian platform.
 - Updated symsndtest to use the latest audio device framework.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2821 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 13:37:26 +00:00
Nanang Izzuddin 940d3f625a Ticket #758:
- fixed transport TCP to call on_connect_complete when connect() returns PJ_SUCCESS.
 - added option to enable transport TCP in symbian_ua.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2781 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 14:06:40 +00:00
Nanang Izzuddin 7433b1ee93 Misc (#838): Updated symbian_ua_gui.mmp libraries order, previously there was linking error on MR when APS direct enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2780 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 13:55:26 +00:00
Nanang Izzuddin 530820eab9 Misc (#838): Added libpassthroughcodec.lib into symbian_ua_gui.mmp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2779 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 12:03:01 +00:00
Benny Prijono 329d638568 Integration of Sipit24 branch, many tickets involved:
- #793: AMR encoder should regard 'mode-set' param specified by remote decoder.
 - #831: Automatically switch to TCP transport when sending large request
 - #832: Support for outbound proxy setting without using Route header
 - #849: Modify conference audio switch behavior in connecting ports.
 - #850: Remove 'Require=replaces' param in 'Refer-To' header (in call transfer with replaces).
 - #851: Support for regular nomination in ICE
 - #852: --ip-addr support for IPv6 for media transport in pjsua
 - #854: Adding SOFTWARE attribute in all outgoing requests may cause compatibility problem with older STUN server (thanks Alexei Kuznetsov for the report)
 - #855: Bug in digit map frequencies for DTMF digits (thanks FCCH for the report)
 - #856: Put back the ICE candidate priority values according to the default values in the draft-mmusic-ice
 - #857: Support for ICE keep-alive with Binding indication
 - #858: Do not authenticate STUN 438 response
 - #859: AMR-WB format param in the SDP is not negotiated correctly.
 - #867: Return error instead of asserting when PJSUA-LIB fails to open log file




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2724 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-29 13:04:03 +00:00
Nanang Izzuddin b696cedcfa Ticket #847: Fixed audio device settings/macros in symbian_ua_gui.mmp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2698 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-14 14:31:09 +00:00
Nanang Izzuddin c91cd64b13 Ticket #818:
- Updated config_site_sample.h to enable resampling with small filter on WM platforms. 
 - Updated quality setting in WM sample apps (PocketPJ & pjsua_wince) to use default value.
 - Updated VS projects of G722.1, Speex, libresample: turning on optimization for debug mode on WM platforms.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2678 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 18:59:31 +00:00
Nanang Izzuddin 494ff7f82c Ticket #818:
- Added libresample.mmp
 - Modified config_site_sample.h to enable resampling with small filter on Symbian platforms.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2676 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 15:37:47 +00:00
Benny Prijono fb4b4e1333 Part of #706, #809: fix Python module build error and added python_pjsua to the main .sln
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2674 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 10:28:52 +00:00
Nanang Izzuddin 7f02df4d4e Ticket #772 (misc fix): Reverted back symbian_ua app UID to use unprotected/development UID range to avoid installation problem when installer is self-signed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2673 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-05 10:46:51 +00:00
Benny Prijono 8267464c5d Ticket #810 and part of #706: changed samples output directory to bin/samples/$TARGET
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2669 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-01 10:05:13 +00:00
Benny Prijono c95649bdc2 More ticket #774: added g722.1/Siren7/Siren14 codecs to Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2666 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 20:59:22 +00:00
Benny Prijono dc8c49028e More ticket #706: renamed output names from vs8 to vc8 to make it backward compatible
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2664 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 15:30:38 +00:00
Nanang Izzuddin f10b04b989 Ticket #706: Merged branch vs-reorg2 into trunk:
- Currently supported platforms are: Win32, WM6 std & pro, WM5 SP & PPC, WM2003 SP & PPC.
 - Added libpjproject into solution, this is a single 'combo' library that bundles all PJSIP libraries.
 - Cleaned up most of compile warnings, note that warning level of libgsmcodec has been reduced from 4 to 3.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2660 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 19:38:43 +00:00
Nanang Izzuddin c0a146a45d Updated output & intermediate dir settings in samples.vcproj for WM platforms (just for directory cleanness).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2659 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 19:18:03 +00:00
Nanang Izzuddin 679bdb720f Added 'combo' lib project that bundles all pjproject libraries into a single 'big' library.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2658 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-28 15:52:27 +00:00
Nanang Izzuddin 2e4f03fd27 Cleaned up bunch of compile warnings. Special for libgsmcodec, its warning level is reduced from 4 to 3.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2654 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 19:18:38 +00:00
Nanang Izzuddin c2d3bc6479 - Added some missing 'output' directories & set svn:ignore attribute.
- Modified precompiled header in pjsua_wince project settings.
- Added property sheets for WM5 & wm2003 platforms.
- Added additional libs "secchk.lib" & "ccrtrtti.lib" for wm2003 linking in its property sheet.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2652 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 14:35:37 +00:00
Benny Prijono 7efa2d60cc Ticket #798: UAC disconnect call when receiving BYE in early state (thanks Gang Liu for the suggestion)
- UAC now handles the BYE, and treat it as out-of-order disconnect request, meaning that it will disconnect the call
 - it will also activate timer to terminate the INVITE transaction, in case final response never arrives
 - added SIPp UAS scenario to test this
 - also added forked 200/OK response SIPp scenario,
 - and fixed the prack_fork.xml SIPp scenario



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2650 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 12:50:16 +00:00
Nanang Izzuddin 89c273edc7 Initial VS settings for all platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2649 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 12:41:05 +00:00
Benny Prijono fe8e582c56 More ticket #706: removed all currently unsupported platforms such as WM 2003 from all projects and solution, to remove Mixed Platforms which is suspected to have caused VS to hang. These platforms will be re-added again later
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2645 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-23 14:53:30 +00:00
Nanang Izzuddin 00fdd88b61 Ticket #706:
- Added missing PocketPj.vcproj.
 - Updated include paths of pjmedia_codec.vcproj.
 - Fixed pjproject-vs8.sln that might cause VS stuck in loading.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2640 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 15:37:28 +00:00
Nanang Izzuddin 0cf8d05d62 Ticket #706: Merged branch vs-reorg into trunk:
- Currently supported platforms are Win32 & WM6 std/pro.
 - Renamed project test_pjsip with pjsip_test, also source directory 'test-pjsip' to 'test'.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2638 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 14:27:55 +00:00
Nanang Izzuddin 432dd25d47 #792: Updated samples makefile to sync output file name format as other projects, removed Mixed Platform from VS Solution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2637 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 13:37:11 +00:00
Nanang Izzuddin 0ed1df0703 #792: Resetted DeleteExtensionsOnClean setting for pjsua_wince.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2636 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 11:06:07 +00:00
Perry Ismangil 721c0f0a5e #792 work in progress testing simple proj change
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2633 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 10:04:20 +00:00
Nanang Izzuddin 5ac6cdf3a7 #792: Fixed WM6 build configs, updated svn prop for pjsua_wince & pocketpj.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2631 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 19:04:26 +00:00
Nanang Izzuddin 57ccc7ff4f #792: Updated output file name: use short platform name wm6std/pro & replace hyphen with dash.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2630 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 17:00:57 +00:00
Perry Ismangil 50a7530d1d #792 work in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2629 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 14:59:35 +00:00
Nanang Izzuddin ae0e64b159 #792: updated pocketpj & pjsua_wince so it's runable in Release & Debug config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2628 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 14:08:49 +00:00
Nanang Izzuddin c2856f7776 #792: initial config for WM6 apps, added PocketPj & pjsua_wince
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2627 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 12:50:49 +00:00
Nanang Izzuddin 29b6baf2c4 #792: Renamed test_pjsip to pjsip_test, updated some missing settings for Win32 platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2626 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 11:12:40 +00:00
Nanang Izzuddin 6ae3846f7e #792: Updated property sheet win32-common and updated some projects settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2625 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 20:11:18 +00:00
Perry Ismangil 740891ec08 #792 work in progress: all vcproj now has property sheets wired in.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2622 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 16:41:35 +00:00
Nanang Izzuddin a5c1abf3fb Added sample of ps inherited from another ps.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2609 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-17 13:54:57 +00:00
Nanang Izzuddin 56e380affa Ticket #774:
- Added build config for GNU autoconf & make.
 - Fixed some G.722.1 codes for linux & mingw32 targets, e.g: types 
defs, collision function name 'round'.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2601 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 14:45:41 +00:00
Benny Prijono 3ec27ba23c More ticket #780: more work on icedemo sample application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2600 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-15 13:38:40 +00:00
Benny Prijono 0023877556 Ticket #780: initial work on an ICE demo app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2592 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13 18:41:04 +00:00
Perry Ismangil aedca3a8de Branching for #706 work on reorganisation of Visual Studio projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2588 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-08 22:17:46 +00:00
Perry Ismangil 05d1769aaf #706 work in progress: all Win32 projects now have all 6 configs. Settings not correct yet.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2584 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-08 11:28:16 +00:00
Benny Prijono ef1391705e Misc (ticket #772): removed pasound.c and wmme_sound.c from pjmedia eVC4 project, and added pjmedia_auddev_wince to wince_demos eVC4 workspace and fix the pjsua_wince project dependency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2571 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-06 10:53:51 +00:00
Benny Prijono 8972bf0c3b Ticket #776: IPv6 option in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2568 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-05 18:30:45 +00:00
Benny Prijono a2591fe7fa Misc (ticket #772): added pjmedia-audiodev to pjsip_apps VS6 workspace
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2567 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-03 10:21:14 +00:00
Benny Prijono 45f2f35792 Misc (ticket #772): bug in pjsua application when reading the URL from the buddy list, causing corrupt/invalid URI to be returned
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2566 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-02 12:15:23 +00:00
Benny Prijono 045ce3e37d Misc (ticket #772): added pjmedia-audiodev dependency for PocketPJ in EVC4 workspace
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2561 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-30 18:27:24 +00:00
Perry Ismangil 74338058c2 Addition of Debug-Static, Debug-Dynamic, Release-Static, and Release-Dynamic build configuration for Visual Studio, for Win32 target
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2559 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-30 12:15:43 +00:00
Nanang Izzuddin fc96d5baf9 Ticket #771 (auddev-misc): Minor fix in auddemo menu.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2558 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-27 15:43:44 +00:00
Nanang Izzuddin 21286f269d Ticket #771 (auddev-misc):
Updated audio test tool:
 - Fixed playback report on avg interval.
 - Added feature to set/get capture & playback latecies setting.
 - Minor update on drift calculation, improve a bit readibility for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2555 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-27 15:15:46 +00:00
Nanang Izzuddin eaed311096 Ticket #737: Updated eVC 4 projects to support for the new audio device API.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2518 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-17 11:20:30 +00:00
Benny Prijono 51fc47f497 Fixed warnings about unchecked fgets() return value with gcc 4
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2517 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-17 11:19:48 +00:00
Nanang Izzuddin a3aa6f9f0b Ticket #737: Minor fix for auddemo.c, disable its log color (that may cause log unreadable on bright/white shell background).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2514 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-16 16:34:33 +00:00
Nanang Izzuddin 11951c3997 Ticket #716 (app misc): fixed info of ilbc default mode in pjsua app menu.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2507 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 23:04:21 +00:00
Benny Prijono 9920dc304b (Major) Task #737 and #738: integration of APS-Direct and Audiodev from aps-direct branch to trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2506 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 18:11:37 +00:00
Benny Prijono d9e8dfea2d Initial fixes for ticket #747: bugs in parsing SIP torture messages (RFC 4475):
- SIP version components may be separated by whitespaces (e.g. "SIP / 2.0")
 - parsing of mangled header when for unknown/generic header
 - Via parameters were parsed with paramchar rather than token
 - handling NULL character inside quoted string

Some torture messages have been added in the Python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2505 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 11:25:11 +00:00
Nanang Izzuddin fa92382c62 - updated delay statistic calculations to use pj_math_stat, also added
min, avg, dev of latency into the test result
- fixed drift report
- updated test result calculations to use division with rounding




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2503 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-11 11:28:44 +00:00
Benny Prijono ccd90bbee2 Continuing task #741 for aps-direct: updated GNU build system for the new audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2501 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 15:14:11 +00:00
Nanang Izzuddin 08694eaa20 - Added feature to increase/decrease output volume in symbian_ua
- Removed optimization setting in some MMP files
- Added new symbian_ua.pkg in Carbide development for comfortness



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2500 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 15:03:04 +00:00
Nanang Izzuddin fcb92d01a6 - updated APS set_cap() to store output volume setting into stream param.
- updated APS get_param() to return actual volume setting.
- updated symbian_ua application to use the new pjsua-lib APIs: snd_set/get_setting().




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2498 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 13:32:09 +00:00
Nanang Izzuddin da37ea3e5d - Fixed compile errors/warnings for Symbian targets.
- Updated module dependencies of symbian auddev implementations.
- Minor updates, e.g: missing update on symbian_ua UID changing, updated default log level for logfile.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2491 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-06 16:24:43 +00:00
Nanang Izzuddin a377597ed8 - Fixed player callback (for PCM) of APS aud dev to zero-fill the buffer whenever it gets non-audio frame type.
- Updated symbian_ua.mmp to allow it links to multiple audio back-ends (feature of the new audio device framework).
- Minor fix in symbian_ua to use codec macros instead of sound device macro.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2483 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-03 18:25:55 +00:00
Nanang Izzuddin 90b8320681 Ticket #732:
- Added new Symbian specific API in PJLIB, pj_symbianos_set_connection_status(), to let PJLIB knows the connection status.
 - Added connection status checks before Symbian socket operations.
 - Added loop limiter in Symbian busy_sleep() to avoid the possibility of infinite loop.
 - Added sample of connection monitor in Symbian sample application (ua.cpp).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2481 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-02 15:48:45 +00:00
Nanang Izzuddin 0cb3b02b09 Added one new pjsua-lib API to get audio device stream instance, also added its usage sample for audio routing in symbian_ua.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2480 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-27 17:37:35 +00:00
Nanang Izzuddin a940b36960 - Updated Symbian bld.inf & MMP projects to use new audio framework.
- Updated audiodev.c to accomodate Symbian audio devs (APS & standard multimedia framework).
- Fixed compile warning & errors on Symbian.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2475 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 13:53:30 +00:00
Benny Prijono 10454dc424 Updated libraries and applications to use the new Audio Device API
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2468 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-21 14:21:59 +00:00
Benny Prijono 555139d839 Updated audio test
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2464 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-19 12:08:19 +00:00
Benny Prijono e3ebd55df7 Added audiotest and initial work on audio demo sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2463 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 20:14:15 +00:00
Nanang Izzuddin 452b66bf76 - Updated audio route API for Symbian APS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2461 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 15:23:47 +00:00
Nanang Izzuddin fe02a0684d - Added APS-direct sound device management into pjsua-lib (and removed it from apps).
- Fixed bug in conf_switch.c to always update ts_rx (even if port is not transmitting).
- Minor updates: 'fmt_id' to 'id', added transmitter_Cnt in conf port info, explicit mapping in Symbian audio APS impl from pjmedia_format_id to Symbian APS fourcc.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2460 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 14:28:49 +00:00
Benny Prijono f863ca3f77 Added bitrate and vad info in pjmedia_format, and changed audio route to use enumeration rather than boolean
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2457 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-17 15:19:45 +00:00
Nanang Izzuddin 83457d5937 Changed term 'fourcc' to 'format' and few minor fixes/updates.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2456 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-16 16:29:05 +00:00
Benny Prijono b995a38a75 Bug in APS-Direct emulation in sound_port causing crash and tick noise, and handle wideband audio in APS-Direct emulation in pjsua_app.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2454 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-13 15:57:46 +00:00
Benny Prijono b7dfc9ce09 Added APS-Direct emulation to sound port and pjsua_app.c, also fixed miscellaneous compilation warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2452 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-13 11:53:12 +00:00
Nanang Izzuddin 798bf45e03 Updated symbian_ua menu, adding commands to test codecs & audio routing, removing 'less used' commands.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2450 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-12 12:35:27 +00:00
Nanang Izzuddin bfa860b133 - Added support for codec ILBC, G729, and AMR.
- Updated audio switch board to make user possible to update its port 0 (master port) attributes, this is needed since sound device need to be reopened (e.g: for changing ptime or codec) while conf is not recreated.
- Added new API to AMR helper to resolve mode/frame-type based on frame len.
- Updated pmedia_frame_ext helper functions for a bit optimization.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2444 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-09 10:39:58 +00:00
Benny Prijono 98d8c95902 Ticket #716 (miscellaneous): write nameserver settings in dump config in pjsua_app.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2441 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-06 08:13:43 +00:00
Nanang Izzuddin 4906604fd7 - Fixed pjmedia_frame_ext_pop_subframes() in calculating len.
- Fixed symbian_sound_aps.cpp in filling silence, previously just by filling zeroes.
- Some fixes in ua.cpp: always reopen sound device (even if PCM is in use), make sure sound device closed before quit, release application pool.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2439 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-05 12:28:38 +00:00
Nanang Izzuddin 81db8c724a - Added new API for sound & sound port to create/open sound device with extended setting, to allow opening sound device with non-PCM format and other settings.
- Updated symbian_ua/ua.cpp to be able to reopen sound device when audio stream session is using non-PCM data/passthrough codec.
- Updated stream.c to allow it works with non-PCM data.
- Added PCMU/A frames processing into non-PCM play/record callbacks in symbian_audio_aps.cpp.
- Added passthrough codec init/deinitialization in pjsua-lib.
- Added a new pjmedia_frame_ext helper function, pjmedia_frame_ext_pop_subframes, to pop-out/remove some subframes.
- Other minor updates/fixes.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2438 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-05 10:59:14 +00:00
Nanang Izzuddin 4e50262076 Initial sources of APS-direct.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2434 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-28 18:03:12 +00:00
Benny Prijono 298c12e70e Ticket #706: Part 1 of VS 2005 projects reorganization: introduction of Windows Mobile 6 standard SDK in the build platform
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2430 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-27 10:14:52 +00:00
Benny Prijono becb31be0b Minor fix sin simpleua.c sample: should put authentication scheme in the sample snippet for authentication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2423 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-20 08:53:38 +00:00
Benny Prijono 32d267bb67 Fixed gcc-4.3.2 warnings with the warn_unused_result flag in some APIs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2408 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 22:08:21 +00:00
Benny Prijono 95b5340fa6 Fixed unreached code, deprecated fopen(), unused arguments, and other warnings with MSVC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2407 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 20:56:36 +00:00
Benny Prijono 844653c1f2 Updated copyright notice in all files to Teluu Inc., and changed the year as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 17:27:53 +00:00