Commit Graph

828 Commits

Author SHA1 Message Date
Nanang Izzuddin c67d7bc66d Ticket #958: Fixed missing codec type check in initializing iLBC setting in codec_open() of passthrough codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2914 74dad513-b988-da41-8d7b-12977e46ad98
2009-09-10 15:20:05 +00:00
Benny Prijono 3d2eaed29c Ticket #952: Error in calculating RTP packet extended header (thanks Thomas Falk for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2904 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-20 13:06:17 +00:00
Benny Prijono 5133dfeb05 More ticket #833:
- special treatment in ICE media transport, since Session Timer refresh when sending re-INVITE doesn't call transport_encode_sdp(), causing the ICE media transport to mistakenly think that it's role is UAS hence it will disable current ICE session


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2896 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 18:55:13 +00:00
Benny Prijono 769e9edc16 Fixed ticket #974: SRTP stops functioning after the library is restarted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2891 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 15:17:36 +00:00
Nanang Izzuddin fcdfd55985 Misc fix (ticket #915):
- Removed self detach() in destroy() in transport SRTP.
 - Added few more assertion checks in transport SRTP.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2885 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17 09:06:31 +00:00
Benny Prijono 41a1451410 Ticket #944: misc fixes in pjmedia_test:
- Assertion in pjmedia tests's MIPS test with iLBC codec due to ptime mismatch
 - added compile time macro in test.h to enable/disable specific tests
 - also added SVN keyword expansion attributes to the source files



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2882 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-15 10:05:36 +00:00
Benny Prijono 3ee562cbbc More ticket #924: removed assertion in detach() since SRTP transport calls this function with NULL argument (in transport_srtp.c:792)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2881 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-15 09:53:58 +00:00
Benny Prijono 681a8bf67c Misc fixes (ticket #915): added more search paths for jbtest.dat
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2880 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-15 09:08:11 +00:00
Benny Prijono 2e8cf63b0f Misc (#915):
- updated missing doxygen documentation from various PJMEDIA-CODEC headers


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2875 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-13 15:57:26 +00:00
Nanang Izzuddin 30b615c7cc Ticket #886:
- Added C++ wrapper files for C source files using exception (PJ_TRY & PJ_THROW).
 - Updated Symbian MMPs.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2873 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-13 11:54:35 +00:00
Benny Prijono 1383e477b8 Misc fixes (ticket #915): compilation warning in IPP about conversion from int to char
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2851 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-01 09:23:15 +00:00
Benny Prijono ec4b67e9b6 Initial commit for ticket #929: Improve packet lost concealment (PLC) when handling burst of lost packets
WSOLA improvements:
 - Introduce fade-out and fade-in effect
 - Limit the number of continuous synthetic samples (only take effect when fading is used)
 - Export many settings as macros:
   - PJMEDIA_WSOLA_DELAY_MSEC (was HANNING_PTIME)
   - PJMEDIA_WSOLA_TEMPLATE_LENGTH_MSEC (was TEMPLATE_PTIME)
   - PJMEDIA_WSOLA_MAX_EXPAND_MSEC

PLC:
 - added compile time macro PJMEDIA_WSOLA_PLC_NO_FADING to disable fading (default enabled)

Stream:
 - fixed bug when stream is not PLC-ing subsequent packet loss (only the first)
 - also add maximum PLC limit just as precaution if PLC doesn't limit number of synthetic frames
 - unrelated: fixed warning about unused send_keep_alive() function

Delaybuf:
 - modified to NOT use fading in WSOLA since we don't expect it to generate many continuous synthetic frames



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2850 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-01 09:20:59 +00:00
Benny Prijono 9475b15b4b Ticket #926 (SDP compliance with RFC 4566): updated token definition, which allows more characters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2847 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-30 19:35:24 +00:00
Benny Prijono ba23a3621a Ticket #924: Loop media transport now allows more than one streams to receive the reflected packets
- This ticket allows the same loop media transport instance to be attached to more than one streams, and allow application to control which stream(s) receives the reflected packets. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2845 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-29 12:19:25 +00:00
Benny Prijono 4d8846bc96 Ticket #923: New API to retrieve current jitter buffer state from a stream/session
- added pjmedia_session_get_stream_stat_jbuf() and pjmedia_session_get_stream_stat_jbuf()
 - fixed const correctness in pjmedia_jbuf_get_state(), jb_framelist_size(), and pj_math_stat_get_stddev(), 
 - modify the jitter buffer statistic log message printed by stream (it contains newlines)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2844 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-29 12:14:21 +00:00
Benny Prijono cdf2c9c441 Misc (#915): added WAVE_FORMAT_DIRECT flag when opening waveIn/Out in WMME audio dev, hopefully it can reduce latency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2841 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-18 09:21:09 +00:00
Nanang Izzuddin 873f3e4de6 Ticket #919:
- Added default ilbc mode into codec passthrough setting.
 - Added iLBC mode 'negotiation' in iLBC codec_open().
 - Updated stream_create() to prioritize codec_open(), that may update the codec params, over stream initializations involving codec params.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2834 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-15 17:55:16 +00:00
Nanang Izzuddin fc279de2ab Ticket #909:
- Added support for Nokia VAS 2.0.
 - Fixed wrong value assigned to last downstream state var in downstream callback.
 - Minor fix in config_site_sample.h related to VAS Direct setting.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2833 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-14 14:33:39 +00:00
Nanang Izzuddin 54ad79787c Ticket #918: Added C compatible declarations in modules: G.711, transport SRTP, libresample.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2832 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-14 13:45:52 +00:00
Nanang Izzuddin abf58dbe71 Ticket #910:
- Added a new API pjmedia_codec_passthrough_init2().
 - Updated the initialization steps of passthrough codec in pjsua_media.c, to configure the codecs (of passthrough codec) to be enabled based on audio device extended/encoded formats.
 - Minor update: added passthrough.h into pjmedia_codec.vcproj.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2825 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-30 15:02:06 +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
Benny Prijono bb51e500e4 Misc (#838): don't print error if MDA MaiscRecordComplete() or MaoscPlayComplete() returns KErrCancel (-3)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2777 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-19 09:15:59 +00:00
Nanang Izzuddin d3708c30ea Ticket #895: Updated jbuf test to use defined search paths for locating test data file (when opening the file in working dir fails).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2776 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-18 15:49:06 +00:00
Nanang Izzuddin e2cdc864a0 Ticket #808: Added compile time trap to avoid both implementations coexist.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2763 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-16 10:46:03 +00:00
Nanang Izzuddin e90a39c0a9 Ticket #883:
- Fixed stream bug in generating RTP header for keep-alive packet with empty RTP.
 - Updated stream to skip suspending the VAD when PJMEDIA_STREAM_VAD_SUSPEND_MSEC is set to 0.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2761 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-13 15:51:30 +00:00
Nanang Izzuddin 4ff93f4710 Ticket #884: Fixed codecs (that use pjmedia VAD) to avoid generating keep-alive frames/payload when PJMEDIA_CODEC_MAX_SILENCE_PERIOD is set to -1.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2760 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-13 15:28:37 +00:00
Nanang Izzuddin c7fe30dc1a Ticket #883: Added user defined NAT hole-punching and keep-alive mechanism to media stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2759 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-12 17:37:13 +00:00
Nanang Izzuddin 1b5536e718 Ticket #830: Fixed noise from EC by keeping the playing frames unmodified (pjmedia_delay_buf_put() may modify the input frames and there is a case that the modified frames are not aligned anymore).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2757 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-09 13:05:18 +00:00
Nanang Izzuddin 67cdbe24e7 Ticket #879: Reverted back changes in r2747, r2748, r2751.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2755 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-07 16:49:42 +00:00
Benny Prijono aff5b59ade Ticket #844: Assertion in on_rx_rtp(transport_udp.c) possibly due to race condition (thanks Peter Cai and Michael Broughton for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2753 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-05 15:55:28 +00:00
Benny Prijono 6a1fcf4e30 More ticket #879:
- updated VS6, Makefile, and Symbian .mmp project files with new file sync_port.c.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2751 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 22:51:18 +00:00
Nanang Izzuddin 57cab34be8 Ticket #879:
- Fixed bug in conf bridge create_on_port() (bug of r2747).
 - Updated sound port to instantiate sync port only when audio format is PCM.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2748 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 19:36:52 +00:00
Nanang Izzuddin 6b9e93b715 Ticket #879:
- Added pjmedia synchronizer port.
 - Updated affected components, i.e: sound port, AEC, conference bridge.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2747 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04 18:48:49 +00:00
Benny Prijono d65f78cf1f More ticket #876:
- fixed crash when null-audio is used with switchboard



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2742 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 18:59:37 +00:00
Benny Prijono debe8e12bb Ticket #853: ./configure with --disable-sound argument does not work
- when --disable-sound is specified, no sound factory will be created
 - modified audiodev.c to not return error when there's no device found
 - compilation error in pa_dev.c when it's disabled and include path is not set


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2740 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-03 12:29:35 +00:00
Nanang Izzuddin 5fe031483c Ticket #874: Updated some pjmedia codecs to maintain timestamp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2735 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-02 18:01:49 +00:00
Nanang Izzuddin 0b9da6498a Ticket #793: Updated (IPP) AMR codec to choose mode in the mode-set based on default mode setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2734 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-02 16:28:24 +00:00
Nanang Izzuddin 18a9ef11b7 Ticket #793: Updated (IPP) AMR codec to choose the highest mode in mode-set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2733 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-02 12:38:15 +00:00
Nanang Izzuddin c24ead6bb1 Ticket #834:
- Added calls to delay buf destructor in conference.c and echo_common.c.
 - Moved mutex creation to the end of pjmedia_delay_buf_create().
 - Deprecated pjmedia_conf_add_passive_port().




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2728 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-01 13:56:09 +00:00
Nanang Izzuddin 9f25ec0187 Ticket #862: Updated validations of SRTP crypto attribute.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2726 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-30 10:17:55 +00:00
Nanang Izzuddin 38faa59224 Ticket #849: Updated warning log level and message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2725 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-30 09:23:03 +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
Benny Prijono f82645edba Minor (#838): should not print sound device creation to the log when the conference bridge is created with PJMEDIA_CONF_NO_DEVICE (thanks Fabio Cherchi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2696 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 18:22:16 +00:00
Nanang Izzuddin f5011665c6 Ticket #820: Fixed sound port to return zero-filled audio frame when there is 'problem' getting frame from remote port ('no_frame' label), this seems to fix stutter noise issue on Mac.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2685 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-07 16:51:17 +00:00
Nanang Izzuddin e3cddc8fc7 Ticket #774: Minor update in G722.1 default setting in pjmedia codec's config.h: removed phrase 'under development', G722.1 remains disabled by default.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2680 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 19:13:16 +00:00
Nanang Izzuddin 551ace80e7 Ticket #819:
- Updated APS to supports for sampling rate 16kHz and stereo (using resample).
 - Fixed buffer len calculations in Symbian MDA.
 - Disabled multichannel support on Symbian MDA (since its input device doesn't support for stereo?).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2677 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 15:44:12 +00:00
Benny Prijono 2eabad9b7e More ticket #774: fixed G.722.1 compilation warnings on linux/gcc-4.3.2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2675 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-06 14:34:13 +00:00
Nanang Izzuddin d5190be977 Ticket #762: Fixed jitter buffer in handling DTX with relative short period of 'keep alive', e.g: Speex DTX seems to periodically send a keep alive frame every 20 silence frames.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2672 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-01 15:13:01 +00:00
Benny Prijono 3105be6a26 Fixed ticket #812: Noise with Symbian MDA sound backend when making a call
- handle frame type NONE in the MDA



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2668 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-30 18:49:13 +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