Commit Graph

2350 Commits

Author SHA1 Message Date
Benny Prijono 713587ce11 More ticket #747: the previous fix in r2505 causes parsing IPv6 address in Via to fail. Also added some torture messages in the SIP message test vectors.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2522 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-18 18:24:40 +00:00
Benny Prijono 729d01a702 APS-direct fix (ticket #738): G.711 is disabled accidently
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2521 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-18 12:49:18 +00:00
Benny Prijono 83372f448d Part of APS-Direct (ticket #738): crash in stream.c when stream_info->param is NULL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2520 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-17 17:35:27 +00:00
Benny Prijono 733a5f61f2 Ticket #755: segfault with IPv6 transport (thanks Cedric Levequ for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2519 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-17 11:25:52 +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
Benny Prijono 6b6fce1e89 Compilation warnings in IPP codec (misc fixes, ticket #720)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2516 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-17 10:13:30 +00:00
Nanang Izzuddin e1f8eda698 Ticket #753: Fixed timestamp increment in clock thread to consider the channel count, also renamed the field name from samples_per_frame to timestamp_inc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2515 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-16 18:57:06 +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 6f7d5a1983 Ticket #737: Fixed assertion when auddev is opened in playback direction only.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2513 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-16 16:29:39 +00:00
Benny Prijono ae53fdc951 Documentation error for pj_timer_heap_poll(): if no timer exists, the second part of timeval will be filled with PJ_MAXINT32 and not -1. Thanks Phil Torre for the report
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2512 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-13 15:49:06 +00:00
Benny Prijono f32d7ad66f Ticket #751: Incorrect table based CRC32 calculation on big endian platforms (thanks Ruud Klaver for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2511 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-13 12:28:00 +00:00
Benny Prijono d24c7aadbf Ticket #729: MacOS X endianness detection on universal build (thanks Ruud Klaver for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2510 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-13 12:15:43 +00:00
Benny Prijono 275539b1a2 Wrong payload type for L16/48Khz stereo codec (thanks Yann for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2509 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-13 09:33:02 +00:00
Nanang Izzuddin 34f4066588 Ticket #739: Fixed static libs ordering in symbian_ua.mmp based on dependencies, most to least depeendent.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2508 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 23:40:36 +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 05b25282d1 Fixed Symbian APS auddev that Stop() should wait until initialization completed (if initialization is on progress).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2504 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-11 14:52:10 +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
Nanang Izzuddin df7937c365 Fixed Symbian APS auddev to apply output volume param in stream creation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2502 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-11 11:24:12 +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
Benny Prijono 5ba56a594f Part of task/ticket #741: updated VS 2005 project for audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2499 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 13:40:00 +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
Benny Prijono e506c8ca7c Disable echo cancellation related setting from pjsua_aud_get/set_setting()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2497 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 13:28:43 +00:00
Benny Prijono 09b0ff6a7c Bug fixes from last changes:
- close sound device after opening it in pjsua_aud_set_setting()
 - bug in aud_svmask checking



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2496 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 12:07:51 +00:00
Benny Prijono cf6b590455 Attempt to reduce burst in wmme_dev by limiting the number of AddBuffer calls. It does not seem to affect the burst much as it seem to have come from the device/driver itself
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2495 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-10 12:05:23 +00:00
Benny Prijono 85bdaa85ae WMME returns the updated volume setting in get_param()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2494 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-09 13:22:01 +00:00
Benny Prijono f798e5042e BIG refactoring in pjsua_media.c:
- switchboard/conf detection is done at run-time, removing #ifdefs
     - use one function, open_snd_dev() to open device
     - use one function, create_aud_param() to initialize 
       audio parameters:
         - get the default from device
         - override with user settings previously done with
           pjsua_snd_set_setting() (new API)
 - added new API to set/get sound device settings. The settings are
    semi permanent, it will be used for future opening of sound dev:
     - pjsua_snd_set_setting()
     - pjsua_snd_get_setting()
 - snd_auto_close_time default value changed to 1 (from -1)
 - both pjsua_enum_snd_devs() and pjsua_enum_aud_devs() API are now
    supported (previously it was done with #ifdef).
 - make_call() will not open the sound device is switchboard is 
    used



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2493 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-09 13:08:16 +00:00
Benny Prijono 7a380009f1 PJMEDIA/PJMEDIA-AUDIODEV update:
- pjmedia.h: re-added inclusion of <sound.h> since we have compat 
    layer now
- audiodev.h: 
    - added input_vol and output_vol in pjmedia_aud_param, and
       implement it on WMME dev
    - added  pjmedia_aud_dev_cap_name() to see cap name
    - added pjmedia_aud_param_set_cap() and  pjmedia_aud_param_get_cap()
      to set and get specific capability in param
- conference.h: exported PJMEDIA_CONF_BRIDGE_SIGNATURE and 
    PJMEDIA_CONF_SWITCH_SIGNATURE since these are needed by PJSUA-LIB
- WMME: bug due to addition of input_vol and output_vol in param: 
    volumes are set in flags in default_param(), but the
    fields are not set. This would cause audio volume to be set to
    zero for example.
- WMME: some refactoring, removed duplicate settings in param
- WMME: bug: setting set in set_cap() is not saved to param, so
    get_param() will return wrong setting
- APS: update because of s/out_route/output_route/ in param
- APS: same bug as WMME due to addition of input_vol and output_vol in
    param: flags are set in param but the fields are not



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2492 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-09 12:55:29 +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 7dc6b41d01 - Removed lines of "force to use C++ compiler" in some Symbian MMPs
- Updated symbian_ua UID
- Added compiler optimization flag in pjmedia_auddev.mmp
- Deleted obsolete symbain_audio_aps.mmp




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2490 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-06 16:12:31 +00:00
Benny Prijono 64f9138598 Ticket #736 (aps-direct branch): implemented the compatibility layer for the old sound API
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2489 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-05 18:02:28 +00:00
Benny Prijono 8eeab0bbf5 Ticket #734: error codes in audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2488 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 19:00:28 +00:00
Nanang Izzuddin 48c91fd4f9 Updated Symbian APS aud dev to disable G729's VAD since it is suspected to produce intermittent noise on silence (rough switches between voiced & unvoiced frames).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2487 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 18:49:06 +00:00
Nanang Izzuddin 8465c68153 Fixed pjsua_set_snd_dev() to differentiate the way of opening sound device based on the used conf type.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2486 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 17:23:25 +00:00
Benny Prijono 79c323a461 Ticket #744: Jitter buffer does not discard duplicate frame if it is currently empty (thanks Mårten Wikström for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2485 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 14:53:12 +00:00
Benny Prijono 9158a3a88e Ticket #742: Change in mapped/STUN IP address does not update ICE srflx candidate (thanks Alexei Kuznetsov for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2484 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 12:56:32 +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 6d17d50017 Updated check condition in creating aud dev Symbian MDA.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2479 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-26 21:12:44 +00:00
Nanang Izzuddin 7c3659f39d Ticket #730: Fixed stream to convert units of jitter buffer params, from msecs (in stream info) to frame counts (for jitter buffer).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2477 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-24 11:29:40 +00:00
Benny Prijono 689f8a8b1c Fixed warning in audiodev, and link error in symbian mda audio driver
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2476 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-24 08:23:36 +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 2e9887997d - Disable EC in sound port when codec is used in sound device
- Added log verbosity in wmme_dev.c
- Tested aps-direct with WMME



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2474 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 10:21:33 +00:00
Benny Prijono eef2a878e3 - Added main doxygen documentations for audiodev
- Added include/pjmedia_audiodev.h
- Fix include sound.h in pjmedia.h



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2473 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 09:55:52 +00:00
Benny Prijono 69afbf1adb Compilation error in conf_switch due to last commit
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2472 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-23 07:58:54 +00:00
Benny Prijono 5fad7be60e Some testing in wmme_dev.c before changing it to use WMME callback interface
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2471 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-22 21:33:20 +00:00