Commit Graph

2350 Commits

Author SHA1 Message Date
Benny Prijono 2058f47d45 - Added pjmedia-audiodev/config.h
- Added a bit of doxygen documentation
- Added support for PCMA/PCMU codecs in wmme_dev.c



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2470 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-22 17:15:34 +00:00
Benny Prijono 96e74f3f8a - New convention about default audio device ID (now there is different ID for default capture/playback device. It should be backward compatible)
- Fixed crash if sound port is unable to open sound device
- Testing with the switchboard



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2469 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-22 12:00:12 +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
Nanang Izzuddin 5efbdf2401 Added Symbian audio (Mda) to audio dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2467 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-20 14:59:55 +00:00
Nanang Izzuddin 1b79114078 Added volume settings capability to Symbian APS audiodev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2466 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-19 19:13:49 +00:00
Nanang Izzuddin 1c1c7d47a1 Added Symbian S60 APS device in audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2465 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-19 17:19:46 +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 418e0a4dff Fixed checking macro in pjsua-lib for Symbian APS audio routing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2462 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 18:33:01 +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 598b01dbdf Added WMME device in audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2459 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-18 13:55:03 +00:00
Benny Prijono 2cd64f895d Initial checkin for pjmedia_audiodev
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2458 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-17 19:57:48 +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
Nanang Izzuddin 388a8eeccb Fixed possible access violation in conf_switch when port 0/sound device is in PCM mode and its TX buf contains FRAME_TYPE_NONE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2455 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-14 12:17:58 +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
Nanang Izzuddin 3405e2aba8 Ticket #728:
- Fixed l16_open() to initialize VAD & PLC settings.
 - Minor fixes: updated few parts related to macro PLC_DISABLED.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2453 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-13 15:33:03 +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
Benny Prijono 451b2c5ced Ticket #726: bug in parsing tel: URI causing syntax error in processing the request (thanks David Weidenkopf for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2451 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-13 10:13:08 +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 64fea4336b Fixed the way of stacking PCMU/A frames for APS player callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2449 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-10 13:02:11 +00:00
Benny Prijono 6627f3e64b Minor fix (ticket #724): set default pjsua_config.max_calls to PJSUA_MAX_CALLS if PJSUA_MAX_CALLS is lower than 4 (thanks Dan Aberg for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2448 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-10 11:08:54 +00:00
Nanang Izzuddin 124893cfd1 Ticket #722: Fixed VoIP metrics calculations in RTCP-XR for cases of no gap, no burst, and no both.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2447 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-10 08:18:08 +00:00
Nanang Izzuddin 86ea38b8e1 Minor fix/ticket #720: removed unused var & memory allocation in stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2446 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-10 07:38:38 +00:00
Nanang Izzuddin d5c54ab720 - Fixed conf switch on reinit-ing conf port TX buf.
- Updated conf switch to enable RX/TX level adjustment.
- Added VAD & PLC setting in passthrough codecs.
- Changed G711 fourcc codes.
- Updated bits-to-bytes calculations all over the places.
- Minor update: changed log level for dumping jbuf states in stream.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2445 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-10 04:43:16 +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
Nanang Izzuddin e788a4829e Ticket #695: Inserted wait loop between stop() & close() of APS client session to allow 'APS server' performs clean stop (it is APS server who suffers panic KERN-EXEC 0).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2443 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-06 12:14:15 +00:00
Benny Prijono f17942ea46 Ticket #718: Crash when handling incoming request without rport (thanks Norma Steveley and Seth Hinze for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2442 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-06 08:44:23 +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
Benny Prijono 18ece2f066 Allow SIP messages in mod_sendto.py to insert fields (ticket #707)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2440 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-06 07:56:09 +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 389d3264b7 - Fixed pjmedia_frame_ext helper functions, it didn't involve sizeof(bitlen) in calculating subframe address.
- Fixed audio switch board to handle such case that transmitter of port 0 has greater ptime, so it could save the remaining data in the TX buffer.
 - Fixed audio swtich board in handling FRAME_TYPE_NONE.
 - Updated audio switch board to handle keep alive mechanism.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2437 74dad513-b988-da41-8d7b-12977e46ad98
2009-02-01 14:10:49 +00:00
Nanang Izzuddin 8cdba46cca - Added pjmedia passthrough codec.
- Added field format in codec param info.
 - Updated pjmedia_frame_ext_get_subframe to have index range checking.
 - Added API docs on pjmedia_frame_ext routines.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2436 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-29 20:06:28 +00:00
Benny Prijono bf7b782391 Candidate fix for ticket #713: Assertion in ../src/pjsip/sip_util.c:729: pjsip_process_route_set() (thanks Ramesh D for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2435 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-29 19:13:55 +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 d661f574bc Continuation of ticket #704: error in the test if PJSIP_UNESCAPE_IN_PLACE is set to 1 (thanks Michael Broughton for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2433 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-28 14:17:14 +00:00
Nanang Izzuddin 7da94e2afc Fixed missing function declaration of pjmedia_snd_aps_activate_loudspeaker().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2432 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-28 11:39:48 +00:00
Nanang Izzuddin 27c98df853 Created branch for project APS-direct.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2431 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-27 17:46:15 +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 069731344f Ticket #707: pjmedia-test: link error when L16 codec is disabled, and compile error due to Unicode platform in sdp_test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2429 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-27 10:05:48 +00:00
Benny Prijono fce67816f5 Ticket #704: pjsip-test: Bus error on FreeBSD due to declaration of test data in read-only segment (thanks Michael Broughton for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2428 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-27 08:05:34 +00:00
Benny Prijono 5b2b445500 Minor fixes/ticket #703: added some more macros to enable software build under Apple XCode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2427 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-22 20:30:32 +00:00
Nanang Izzuddin 8161b66631 Ticket #701: Updated PA callbacks to check their thread registration status using both: manual flag and actual/TLS status.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2426 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-20 18:05:58 +00:00
Nanang Izzuddin 670f71b475 Ticket #699: Added sound device idle checking in media_channel_deinit(), which is called each time a call being disconnected (for any reason).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2425 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-20 14:05:54 +00:00
Nanang Izzuddin ec8718ea26 Ticket #698: Fixed the silly bug of possible NULL opt access.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2424 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-20 10:35:01 +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 605c1247ee Fixed ticket #696: Wrong timestamp calculation causing RTCP clock skew (thanks Guido Fischer for the fix!)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2422 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-20 07:39:03 +00:00
Benny Prijono c9361a97e1 Inconsistent implementation vs documentation in pjsip_endpt_create_request_from_hdr(): it should allow NULL Call-ID to be specified. Thanks Cedric Leveque for the report
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2421 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-14 15:34:00 +00:00